:root {
  --ink: #0f2a3d;
  --ink-soft: #243b4d;
  --teal: #1a6b63;
  --teal-bright: #2a9d8f;
  --mist: #e8f3f1;
  --sand: #f4f7f6;
  --line: rgba(15, 42, 61, 0.12);
  --white: #ffffff;
  --glow: rgba(42, 157, 143, 0.18);
  --radius: 14px;
  --max: 1120px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(15, 42, 61, 0.06), transparent 50%),
    linear-gradient(180deg, #f7fbfa 0%, var(--sand) 45%, #eef5f3 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 250, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 251, 250, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  height: 2rem;
  width: auto;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-word span {
  color: var(--teal);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(15, 42, 61, 0.88) 0%, rgba(15, 42, 61, 0.55) 42%, rgba(26, 107, 99, 0.35) 100%),
    url("../assets/hero-pattern.svg") center / cover no-repeat,
    linear-gradient(135deg, #0f2a3d, #1a6b63 70%, #2a9d8f);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(232, 243, 241, 0.18), transparent 28%),
    linear-gradient(180deg, transparent 55%, rgba(15, 42, 61, 0.55) 100%);
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
  opacity: 0.45;
  animation: gridDrift 28s linear infinite;
  z-index: -1;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-64px, -32px, 0); }
}

.hero-content {
  padding: 7rem 0 4.5rem;
  color: var(--white);
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
}

.hero-brand span {
  color: #9fd8cf;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.hero p {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--mist);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.hero .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Services */
.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  padding-top: 0.2rem;
}

.service-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service-row p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Process */
.process {
  background: var(--ink);
  color: var(--white);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.35), transparent 60%);
  pointer-events: none;
}

.process .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.process .eyebrow {
  color: #9fd8cf;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #9fd8cf;
  margin-bottom: 0.6rem;
  letter-spacing: -0.04em;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.project {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.project h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.project p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Team */
.team-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.team-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.team-visual {
  position: relative;
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(26, 107, 99, 0.12), rgba(15, 42, 61, 0.08)),
    var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 1.75rem;
}

.team-visual::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.35), transparent 70%);
  top: -40px;
  right: -30px;
  animation: pulseSoft 5s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.team-stat {
  position: relative;
  margin-bottom: 1.25rem;
}

.team-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.team-stat span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside p {
  color: var(--ink-soft);
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-bottom-color: var(--teal);
}

.contact-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.3em;
}

.form-status.ok { color: var(--teal); }
.form-status.err { color: #9b2c2c; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Privacy page */
.legal {
  padding: 6rem 0 4rem;
  max-width: 720px;
}

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

/* Mobile */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .team-panel,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 4.25rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 42, 61, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.9rem;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-grid,
  .team-visual::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
