:root {
  --ink: #0B1520;
  --paper: #F8FAFC;
  --teal: #115E59;
  --teal-bright: #2DD4BF;
  --teal-glow: #5EEAD4;
  --copper: #92400E;
  --on-dark: #E7F5F3;
  --body-light: rgba(19, 78, 74, 0.85);
  --body-dark: rgba(231, 245, 243, 0.78);
  --card-radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--paper);
  color: var(--body-light);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

h1, h2, h3 {
  color: var(--teal);
  margin: 0;
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 em, h2 em {
  font-style: normal;
}

/* ---------- Monogram ---------- */

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header .wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--on-dark);
  transition: color 0.4s var(--ease);
}

.site-header.scrolled {
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(17, 94, 89, 0.12);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header.scrolled .wordmark {
  color: var(--teal);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--body-dark);
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  position: relative;
  transition: color 0.4s var(--ease);
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--teal-bright);
}

.lang-toggle button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.lang-sep {
  color: var(--body-dark);
  opacity: 0.45;
  transition: color 0.4s var(--ease);
}

.site-header.scrolled .lang-toggle button {
  color: var(--body-light);
}

.site-header.scrolled .lang-toggle button[aria-pressed="true"] {
  color: var(--copper);
}

.site-header.scrolled .lang-sep {
  color: var(--teal);
  opacity: 0.35;
}

/* ---------- Kickers ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.8rem;
  margin: 0 0 26px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 64px;
  height: 8px;
  border-radius: 4px;
}

.kicker-dark {
  color: var(--teal-bright);
}

.kicker-dark::before {
  background-color: var(--teal-bright);
  box-shadow: 0 0 24px var(--teal-glow);
}

.kicker-dash {
  display: block;
  width: 64px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--copper);
  margin-bottom: 26px;
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.what-we-do,
.approach {
  padding: clamp(72px, 12vh, 148px) 0;
}

.what-we-do .container,
.approach .container {
  position: relative;
}

.ghost-numeral {
  position: absolute;
  top: -0.35em;
  right: clamp(20px, 5vw, 64px);
  font-weight: 800;
  font-size: clamp(6rem, 16vw, 9rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(17, 94, 89, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--ink);
  overflow: hidden;
  padding: 128px 0 max(9vw, 96px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.aurora-blob-1 {
  width: 52vw;
  height: 52vw;
  top: -12vw;
  left: -8vw;
  background: radial-gradient(circle at center, rgba(17, 94, 89, 0.95), rgba(17, 94, 89, 0) 68%);
  animation: drift-1 30s var(--ease) infinite alternate;
}

.aurora-blob-2 {
  width: 46vw;
  height: 46vw;
  top: 6vw;
  right: -10vw;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.35), rgba(45, 212, 191, 0) 66%);
  animation: drift-2 26s var(--ease) infinite alternate;
}

.aurora-blob-3 {
  width: 40vw;
  height: 40vw;
  bottom: -14vw;
  left: 24vw;
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0) 62%);
  animation: drift-3 38s var(--ease) infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.18) rotate(24deg); }
}

@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg); }
  to   { transform: translate3d(-5vw, 6vw, 0) scale(0.88) rotate(-18deg); }
}

@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0) scale(0.95) rotate(0deg); }
  to   { transform: translate3d(4vw, -6vw, 0) scale(1.25) rotate(30deg); }
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-texture::before,
.hero-texture::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-texture::before {
  color: var(--on-dark);
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  opacity: 0.06;
}

.hero-texture::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.05;
}

.kicker.kicker-dark {
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  color: var(--on-dark);
  max-width: 20ch;
  margin-bottom: 28px;
}

.hero h1 em {
  background: linear-gradient(90deg, var(--teal-bright), var(--teal-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  color: var(--body-dark);
  max-width: 54ch;
  margin: 0;
}

/* hero load reveal */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.9s var(--ease) forwards;
}

.kicker.hero-reveal { animation-delay: 0.1s; }
.hero h1.hero-reveal { animation-delay: 0.25s; }
.subtitle.hero-reveal { animation-delay: 0.45s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(5vw + 26px);
  transform: translateX(-50%);
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--teal-bright), rgba(45, 212, 191, 0));
  z-index: 2;
  transform-origin: top center;
  animation: cue-pulse 2.2s var(--ease) infinite;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.6); }
  50%      { opacity: 1;    transform: translateX(-50%) scaleY(1); }
}

/* ---------- What we do ---------- */

.what-we-do h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 94, 89, 0.1);
  border-radius: var(--card-radius);
  padding: 34px 32px 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--copper));
}

.card-index {
  position: absolute;
  top: 20px;
  right: 24px;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: rgba(17, 94, 89, 0.12);
  user-select: none;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(17, 94, 89, 0.08);
  color: var(--teal);
  margin-bottom: 22px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  color: var(--body-light);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(17, 94, 89, 0.16);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #FFFFFF;
}

/* ---------- Approach ---------- */

.approach {
  background-color: #ECFDF9;
  padding-top: clamp(96px, 14vh, 172px);
  padding-bottom: clamp(120px, 16vh, 200px);
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.approach-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--teal);
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  opacity: 0.04;
}

.approach .ghost-numeral {
  color: rgba(17, 94, 89, 0.08);
}

.approach h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 36px;
}

.approach-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 28px;
  border-left: 10px solid var(--copper);
  max-width: 60ch;
}

.approach-quote p {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--teal);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background-color: var(--ink);
  overflow: hidden;
  padding: max(11vw, 120px) 0 clamp(48px, 8vh, 72px);
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
  margin-top: -5vw;
}

.footer-aurora {
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(17, 94, 89, 0.55), rgba(17, 94, 89, 0) 66%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.site-footer .wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--on-dark);
  margin: 0;
}

.footer-content::before {
  content: "";
  display: block;
  width: 48px;
  height: 6px;
  border-radius: 3px;
  background-color: var(--teal-bright);
  box-shadow: 0 0 18px var(--teal-glow);
  margin-bottom: 28px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--body-dark);
  margin: 0;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .card.reveal:nth-child(1) { transition-delay: 0.05s; }
.card-grid .card.reveal:nth-child(2) { transition-delay: 0.17s; }
.card-grid .card.reveal:nth-child(3) { transition-delay: 0.29s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .footer-aurora {
    animation: none !important;
  }

  .scroll-cue {
    display: none;
  }

  .hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

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

  .site-header,
  .card,
  .card-icon,
  .lang-toggle button,
  .site-header .wordmark {
    transition: none;
  }
}
