/* palette: bg=#3D30B8 fg=#FFFFFF accent=#FF9E2C */
/* fonts: display="Space Grotesk" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #3D30B8;          /* dominant deep indigo/violet */
  --bg-deep: #2C2192;     /* darker indigo band */
  --bg-alt: #F4F2FC;      /* light lavender section */
  --fg: #FFFFFF;          /* text on indigo */
  --fg-soft: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.56);
  --ink: #1C1550;         /* dark text on light sections */
  --ink-soft: #4A4478;
  --accent: #FF9E2C;      /* amber/orange accent */
  --accent-deep: #E8811A; /* darker accent for hover */
  --line: rgba(255, 255, 255, 0.16);
  --line-ink: rgba(28, 21, 80, 0.14);
  --serif: 'Space Grotesk', ui-sans-serif, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--light { background: var(--fg); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--ink { border: 1px solid var(--line-ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--fg); }
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.txtlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.txtlink .arw { transition: transform 0.4s var(--ease); }
.txtlink:hover .arw { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  background: rgba(61, 48, 184, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header[data-scrolled="true"] {
  background: rgba(44, 33, 146, 0.9);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.nav { display: none; gap: 34px; }
.nav a {
  font-size: 14px;
  color: var(--fg-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.header__cta { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: var(--bg-deep);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 30px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(44,33,146,0.94) 0%, rgba(44,33,146,0.62) 44%, rgba(44,33,146,0.2) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding: 120px 0 90px; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8.4rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 22px 0 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin-top: 30px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--fg-soft);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.hero__scroll .dot {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
}
.hero__scroll .dot span { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(-3px);} 50%{ transform: translateY(3px);} }

.hero__float {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 2;
  display: none;
}
.hero__float .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  text-align: right;
}
@media (min-width: 768px) { .hero__float { display: block; } }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section--light { background: var(--bg-alt); color: var(--ink); }
.section--light .eyebrow { color: var(--accent-deep); }
.section--light .eyebrow::before { background: var(--accent-deep); }
.section--deep { background: var(--bg-deep); }

.sec-head { max-width: 760px; }
.sec-head h2 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.sec-head h2 em { font-style: normal; color: var(--accent); }
.section--light .sec-head h2 em { color: var(--accent-deep); }
.sec-head p {
  margin-top: 22px;
  font-size: 18px;
  color: var(--fg-soft);
  max-width: 54ch;
}
.section--light .sec-head p { color: var(--ink-soft); }

/* ---------- Statement / manifesto ---------- */
.statement { text-align: left; }
.statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.statement p em { font-style: normal; color: var(--accent); }
.statement__grid {
  margin-top: 64px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .statement__grid { grid-template-columns: 1.1fr 0.9fr 0.9fr; }
}
.statement__card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 240px;
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.statement__card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.statement__card--brand {
  display: grid;
  place-items: center;
  background: var(--fg);
}
.statement__card--brand .glyph {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 30px;
}

/* ---------- Solutions grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border-radius: 16px;
  padding: 34px 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); box-shadow: 0 12px 40px -8px rgba(0,0,0,0.35); }
.card__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.card h3 { font-size: 22px; margin: 16px 0 12px; font-weight: 500; }
.card p { color: var(--fg-soft); font-size: 15.5px; }
.section--light .card {
  background: #fff;
  border-color: var(--line-ink);
  box-shadow: 0 4px 24px -12px rgba(28,21,80,0.14);
}
.section--light .card:hover { box-shadow: 0 12px 40px -8px rgba(28,21,80,0.16); }
.section--light .card p { color: var(--ink-soft); }
.section--light .card__no { color: var(--accent-deep); }

/* ---------- Stats band ---------- */
.stats { display: grid; gap: 40px 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 840px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 12px; color: var(--fg-soft); font-size: 14.5px; max-width: 26ch; }

/* ---------- Process / numbered ---------- */
.steps { margin-top: 56px; border-top: 1px solid var(--line-ink); }
.section--deep .steps { border-color: var(--line); }
.step {
  display: grid;
  gap: 8px 40px;
  grid-template-columns: 1fr;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-ink);
}
.section--deep .step { border-color: var(--line); }
@media (min-width: 768px) { .step { grid-template-columns: 100px 0.9fr 1.3fr; align-items: baseline; } }
.step__no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 500; }
.step p { color: var(--fg-soft); font-size: 16px; }
.section--light .step p { color: var(--ink-soft); }

/* ---------- Work / projects ---------- */
.work { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 56px; }
@media (min-width: 768px) { .work { grid-template-columns: 1fr 1fr; } }
.work__item { display: block; }
.work__frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}
.work__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work__item:hover .work__frame img { transform: scale(1.05); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 18px; }
.work__meta h3 { font-size: 21px; font-weight: 500; }
.work__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.work__meta p { color: var(--fg-soft); font-size: 14.5px; margin-top: 4px; }

/* ---------- Quote ---------- */
.quote { max-width: 960px; }
.quote .mark {
  font-family: var(--serif);
  font-size: 100px;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  height: 46px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.quote figcaption { margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line-ink); }
.faq__item { border-bottom: 1px solid var(--line-ink); }
.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
}
.faq__q .sign { font-family: var(--mono); font-size: 22px; color: var(--accent-deep); transition: transform 0.4s var(--ease); flex: none; }
.faq__item[data-open="true"] .faq__q .sign { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq__a p { padding: 0 60px 30px 0; color: var(--ink-soft); font-size: 16.5px; }
.faq__item[data-open="true"] .faq__a { max-height: 360px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { margin: 24px auto 40px; color: var(--fg-soft); max-width: 52ch; font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.contact-info dl { margin: 0; }
.contact-info .row { padding: 22px 0; border-bottom: 1px solid var(--line-ink); }
.contact-info dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.contact-info dd { margin: 8px 0 0; font-size: 17px; color: var(--ink); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(255,158,44,0.2);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); padding: 84px 0 40px; }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand .brand { font-size: 24px; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); max-width: 40ch; font-size: 15px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--fg-soft); font-size: 15px; padding: 7px 0; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p, .footer__bottom a { color: var(--muted); font-size: 13px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a:hover { color: var(--fg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

/* ---------- Legal / article pages ---------- */
.page-hero { padding: 140px 0 60px; background: var(--bg-deep); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.03em; max-width: 18ch; }
.page-hero p { margin-top: 20px; color: var(--fg-soft); max-width: 56ch; font-size: 18px; }
.prose { max-width: 760px; padding: 70px 0 40px; }
.prose h2 { font-size: 1.7rem; font-weight: 500; margin: 48px 0 14px; }
.prose h3 { font-size: 1.25rem; font-weight: 500; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.78; }
.prose p { margin: 14px 0; }
.prose ul { padding-left: 22px; margin: 14px 0; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); }

/* thanks page */
.thanks { min-height: 74vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.03em; }
.thanks p { color: var(--fg-soft); max-width: 46ch; margin: 22px auto 34px; font-size: 18px; }

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-alt); color: var(--ink); padding: 32px 36px; max-width: 480px; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.cookie-popup__card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--line-ink); cursor: pointer; font-size: 14px; border-radius: 9999px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cookie-popup__actions button:first-child:hover { background: rgba(28,21,80,0.06); }
.cookie-popup__actions button:last-child { background: var(--ink); color: var(--fg); border-color: var(--ink); }
.cookie-popup__actions button:last-child:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
