/* ---------- Tokens ---------- */
:root {
  --ocean: #0E2A3B;
  --ocean-2: #163B52;
  --sun: #F2994A;
  --coral: #E4572E;
  --sand: #FBF6EE;
  --sand-2: #F3EADB;
  --ink: #142430;
  --muted: #5B6B76;
  --line: #E6DCCB;
  --card: #FFFFFF;

  --bg: var(--sand);
  --bg-alt: var(--sand-2);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--coral);

  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(14, 42, 59, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1F2C;
    --bg-alt: #0F2737;
    --text: #F3EEE6;
    --text-muted: #A9B6BF;
    --line: #22404F;
    --card: #12303F;
    --accent: #F2884F;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ocean); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn:focus-visible, .site-nav a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-light { background: #fff; color: var(--ocean); border-color: #fff; }
.btn-light:hover { box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.header-controls { display: flex; align-items: center; gap: 22px; }

.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-icon-wrap { position: relative; width: 50px; height: 47px; display: block; }
.logo-body-img { position: absolute; left: 0; top: 9px; width: 50px; height: 38px; display: block; }
.logo-arcs-img {
  position: absolute; left: 15px; top: 0; width: 19px; height: 13px; display: block;
  transform-origin: 50% 100%; will-change: transform;
  transition: transform .3s cubic-bezier(.25, .8, .25, 1);
}
.logo-wordmark-img { height: 24px; width: auto; display: block; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding-bottom: 3px;
  text-decoration: none; color: var(--text-muted);
  font-size: .95rem; font-weight: 600; letter-spacing: -0.01em;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Custom language dropdown (no native <select>, so every pixel of the
   open panel is ours to style, unlike a native select's OS-drawn popup) */
.lang-switch { position: relative; }
.lang-switch-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; font: 600 .8rem var(--font-body);
  letter-spacing: .03em; cursor: pointer; transition: color .2s, border-color .2s;
}
.lang-switch-trigger:hover { color: var(--text); border-color: var(--text-muted); }
.lang-switch-trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(242, 153, 74, .45); }
.lang-caret { width: 8px; height: 5px; fill: currentColor; transition: transform .2s ease; }
.lang-switch[data-open="true"] .lang-caret { transform: rotate(180deg); }

.lang-options {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px; min-width: 110px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.lang-switch[data-open="true"] .lang-options {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.lang-options li {
  padding: 9px 12px; border-radius: 9px; font-size: .88rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.lang-options li:hover, .lang-options li:focus-visible { background: var(--bg-alt); color: var(--text); outline: none; }
.lang-options li[aria-selected="true"] { color: var(--accent); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-controls { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 72px 0 140px; overflow: hidden;
  background: var(--ocean); color: var(--sand); isolation: isolate;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.15fr; gap: 48px; align-items: stretch; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--sun); font-family: "Space Grotesk", var(--font-body);
  font-weight: 600; letter-spacing: .06em;
}
.hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 10px 1px rgba(242, 153, 74, .7);
  flex-shrink: 0;
}
.hero h1 {
  font-family: "Space Grotesk", var(--font-body); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.04;
}
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { font-size: 1.15rem; color: #C9D3D9; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .btn-ghost { color: var(--sand); border-color: rgba(243, 238, 230, .35); }
.hero .btn-ghost:hover { border-color: var(--sand); }
.hero .btn.magnetic, .hero .btn-ghost.magnetic { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }

/* Shader background + grain */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mouse-tracking light beam, emitted from the header logo's antenna arcs */
.hero-beam {
  position: fixed; top: 0; left: 0; z-index: 60; width: 0; height: 34px;
  transform-origin: 0 50%; pointer-events: none; opacity: 0;
  clip-path: polygon(0 44%, 100% 4%, 100% 96%, 0 56%);
  background: linear-gradient(90deg, rgba(255, 238, 210, .65), rgba(242, 153, 74, .32) 35%, rgba(228, 87, 46, 0) 82%);
  filter: blur(6px); mix-blend-mode: screen;
  transition: opacity .5s ease;
}
.hero-beam-dot {
  position: fixed; top: 0; left: 0; z-index: 60; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 238, 210, .65), rgba(242, 153, 74, .35) 45%, transparent 72%);
  filter: blur(2px); mix-blend-mode: screen;
  transition: opacity .5s ease;
}

/* Headline word reveal */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-word-inner {
  display: inline-block; transform: translateY(115%);
  transition: transform .75s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(220ms + var(--i, 0) * 45ms);
}
.hero.is-ready .reveal-word-inner { transform: translateY(0); }

/* Fade-up reveal for the rest of the hero copy */
.reveal-fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hero.is-ready .reveal-fade { opacity: 1; transform: translateY(0); }
.eyebrow.reveal-fade { transition-delay: .05s; }
.lead.reveal-fade { transition-delay: .62s; }
.hero-actions.reveal-fade { transition-delay: .76s; }
.hero-float.reveal-fade { transition-delay: .9s; }

/* Hero "what we do" summary — plain floating content, no card/window */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: stretch; }
.hero-float {
  position: relative; width: 100%; max-width: 480px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-float-cta { padding: 0 0 18px; }
.cta-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.bulb-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(242, 153, 74, .22), rgba(228, 87, 46, .12));
  border: 1px solid rgba(242, 153, 74, .35);
  animation: bulb-glow 2.6s ease-in-out infinite;
}
.bulb-icon svg {
  width: 19px; height: 19px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(242, 153, 74, .85));
}
@keyframes bulb-glow {
  0%, 100% { box-shadow: 0 0 10px 1px rgba(242, 153, 74, .3); }
  50% { box-shadow: 0 0 20px 5px rgba(242, 153, 74, .6); }
}
.hero-float-cta h2 { font-size: 1.4rem; margin: 0; }
.hero-float-cta p { color: #C9D3D9; font-size: .95rem; margin: 0; }

.hero-float-services {
  list-style: none; margin: 0; padding: 26px 0 0; display: flex; flex-direction: column; gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-float-services li { display: flex; gap: 14px; align-items: flex-start; }
.hero-service-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
}
.hero-service-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-float-services h3 { font-size: .98rem; margin: 0 0 3px; color: var(--sand); }
.hero-float-services p { font-size: .84rem; line-height: 1.45; color: #AAB8C2; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: auto; margin-top: 32px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.1rem; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

#services .section-head h2 {
  font-family: "Space Grotesk", var(--font-body); font-weight: 700; letter-spacing: -0.02em;
}

/* Services — numbered editorial list, no icons */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 110px 1fr; gap: 32px;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.service-num {
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; line-height: 1;
  color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.service-body h3 { margin-bottom: 14px; }
.service-body > p { color: var(--text-muted); font-size: 1.05rem; max-width: 50em; margin: 0 0 20px; }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.service-list li {
  position: relative; padding-left: 16px; font-size: .9rem; color: var(--text-muted);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .service-num { font-size: 1.8rem; }
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 40px 0 0; display: grid;
  grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
}
.step { position: relative; padding: 0 36px; }
.step:first-child { padding-left: 0; }
.step:not(:first-child) { border-left: 1px solid var(--line); }
.step-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  color: color-mix(in srgb, var(--accent) 55%, var(--line)); display: block; margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; margin: 0 0 10px; }
.step p { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--line); padding-left: 36px; }
  .step:nth-child(n+3) { margin-top: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { border-left: none !important; padding: 28px 0 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .step:first-child { border-top: none; padding-top: 0; margin-top: 0; }
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-word {
  display: flex; flex-direction: column; gap: 12px; position: relative; padding-left: 28px;
}
.about-word::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
  background: linear-gradient(var(--sun), var(--coral));
}
.about-word::after {
  content: ""; position: absolute; width: 100px; height: 70px; left: 6px; top: -46px; z-index: -1;
  background:
    radial-gradient(circle 5px at 15% 60%, var(--coral) 97%, transparent),
    radial-gradient(circle 9px at 45% 25%, var(--sun) 97%, transparent),
    radial-gradient(circle 3px at 70% 55%, var(--coral) 97%, transparent);
  opacity: .4; pointer-events: none;
}
.word { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--text); position: relative; z-index: 1; }
.pos { font-style: italic; color: var(--text-muted); position: relative; z-index: 1; }
.def { font-size: 1.15rem; color: var(--text-muted); max-width: 18em; position: relative; z-index: 1; }
.about-copy p:not(.eyebrow) { color: var(--text-muted); font-size: 1.08rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

.team-eyebrow { margin: 96px 0 24px; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 48px; }
.team-member { display: flex; flex-direction: column; }
.team-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px;
}
.team-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 4px; }
.team-role { color: var(--accent); font-weight: 600; font-size: .92rem; letter-spacing: .02em; margin: 0 0 12px; }
.team-bio { color: var(--text-muted); font-size: .98rem; line-height: 1.6; margin: 0; }
@media (max-width: 560px) { .team-eyebrow { margin-top: 64px; } .team { grid-template-columns: 1fr; gap: 36px; } }

/* Footer */
.site-footer { background: var(--ocean); color: #A9B6BF; padding: 36px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; justify-content: center; }
.copyright { margin: 0; font-size: .9rem; text-align: center; }

/* Contact page */
.contact-hero { padding: 64px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-intro h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2rem, 4vw, 2.6rem); margin: 10px 0 16px; }
.contact-intro .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 32em; }
.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.contact-form .form-row { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.2em; color: var(--text-muted); }
.form-status[data-state="error"] { color: var(--coral); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
