/* ============================================================
   Toucan — sections & components
   ============================================================ */

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0);
  transition: background var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--ink-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-on-dark);
}
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.95rem;
  color: var(--text-on-dark-soft);
  transition: color var(--dur-fast);
}
.nav__links a:hover { color: var(--text-on-dark); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--ink-line);
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-on-dark-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.32em 0.72em;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lang__btn:hover { color: var(--text-on-dark); }
.lang__btn.is-active { background: var(--text-on-dark); color: var(--ink); }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: calc(var(--nav-h) + clamp(4rem, 2rem + 9vw, 9rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -12%; right: -6%;
  background: radial-gradient(circle at 30% 30%, var(--beak-2), transparent 70%);
  animation: drift1 22s var(--ease-soft) infinite alternate;
}
.orb--2 {
  width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  bottom: -18%; left: -10%;
  background: radial-gradient(circle at 50% 50%, var(--beak-4), transparent 70%);
  opacity: 0.42;
  animation: drift2 28s var(--ease-soft) infinite alternate;
}
.orb--3 {
  width: 26vw; height: 26vw; max-width: 360px; max-height: 360px;
  top: 36%; left: 42%;
  background: radial-gradient(circle at 50% 50%, var(--beak-3), transparent 70%);
  opacity: 0.3;
  animation: drift1 25s var(--ease-soft) infinite alternate-reverse;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

@keyframes drift1 { to { transform: translate3d(-6%, 8%, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(8%, -6%, 0) scale(1.12); } }

.hero__inner { position: relative; }
.hero__title {
  font-size: var(--text-hero);
  line-height: var(--lh-tight);
  margin-bottom: 1.6rem;
}
.hero__lede {
  font-size: var(--text-lede);
  line-height: 1.45;
  color: var(--text-on-dark-soft);
  max-width: 38ch;
  margin-bottom: 2.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__marquee {
  margin-top: clamp(3.5rem, 2rem + 6vw, 7rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-soft);
}

/* ───────────────────────── Section base ───────────────────────── */
.section { padding-block: var(--section-pad); position: relative; }
.section__head { max-width: 40ch; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section__title { font-size: var(--text-h2); line-height: var(--lh-snug); }

.section--services { background: var(--paper); color: var(--text-on-light); }
.section--approach { background: var(--ink); color: var(--text-on-dark); }
.section--approach .eyebrow { color: var(--beak-2); }

/* ───────────────────────── Services / feature rows ───────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--paper-line);
}
.feature:last-child { border-bottom: 1px solid var(--paper-line); }
.feature__index {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.feature__title { font-size: var(--text-h3); margin-bottom: 1rem; line-height: var(--lh-snug); }
.feature__text {
  color: var(--text-on-light-soft);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-light);
  padding: 0.5em 1em;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: var(--paper-2);
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }

@media (min-width: 860px) {
  .feature { grid-template-columns: 7rem minmax(0, 1fr); }
}

/* ───────────────────────── Approach / principles ───────────────────────── */
.principles {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.principle {
  padding: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.principle:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-4px); }
.principle__num {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--beak-2);
  margin-bottom: 1.6rem;
}
.principle h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.principle p { color: var(--text-on-dark-soft); font-size: 1.02rem; }

@media (min-width: 820px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
}

/* ───────────────────────── Contact ───────────────────────── */
.section--contact {
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.orb--4 {
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--beak-3), transparent 68%);
  opacity: 0.28;
  filter: blur(80px);
}
.contact__inner { max-width: 42ch; margin-inline: auto; }
.contact__title { font-size: var(--text-h2); line-height: var(--lh-snug); margin-bottom: 1.2rem; }
.contact__lede { color: var(--text-on-dark-soft); font-size: var(--text-lede); margin-bottom: 2.4rem; }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  background: var(--ink);
  color: var(--text-on-dark-soft);
  padding-block: 3rem;
  border-top: 1px solid var(--ink-line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
  align-items: end;
}
.footer__brand .brand__word { color: var(--text-on-dark); display: block; margin-bottom: 0.5rem; }
.footer__brand p { font-size: 0.95rem; max-width: 30ch; }
.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  text-align: right;
}
.footer__meta a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}
