/* palette: bg=#F4F5F6 fg=#23292E accent=#1FA2DB */
/* fonts: display="Archivo" body="IBM Plex Sans" mono="IBM Plex Mono" */

:root {
  --bg: #F4F5F6;          /* light concrete */
  --bg-alt: #E2E6E9;      /* poured-concrete grey */
  --bg-deep: #181C1F;     /* dark slate band */
  --fg: #23292E;          /* primary text — dark slate */
  --fg-soft: #3C454C;     /* softer slate */
  --muted: #6B767D;       /* secondary text */
  --accent: #1FA2DB;      /* cloud cyan */
  --accent-deep: #137FB0; /* darker cyan for hover */
  --line: #C9D0D4;        /* concrete hairline */
  --border: rgba(35, 41, 46, 0.14);
  --serif: 'Archivo', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', 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);
  font-size: 18px;
  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: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: #EEF1F2; }
.section--dark .muted, .section--dark .eyebrow { color: #9AA6AD; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.65; color: var(--fg-soft); max-width: 60ch; }

.h2 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), opacity 0.3s;
}
.btn:hover { transform: translateY(-3px); background: var(--accent-deep); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.section--dark .btn--ghost { color: #EEF1F2; border-color: rgba(255,255,255,0.24); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--bg-deep); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 16px; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 246, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(35,41,46,0.04), 0 8px 30px -20px rgba(35,41,46,0.5);
  border-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: none; gap: 38px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { font-size: 15px; color: var(--fg-soft); transition: color 0.25s; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1.5px; background:var(--accent); transition: width 0.3s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { height: 2px; width: 100%; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s; }
.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); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu[data-open="true"] { transform: none; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #F2F5F6;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,20,23,0.45) 0%, rgba(16,20,23,0.55) 45%, rgba(16,20,23,0.86) 100%);
}
.hero__inner { padding: 140px 0 64px; max-width: 1000px; }
.hero .eyebrow { color: #6FD2F4; }
.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: -0.04em;
  font-weight: 300;
  line-height: 0.96;
}
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero__sub { margin-top: 30px; max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(238,241,242,0.86); line-height: 1.6; }
.hero__actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero__meta-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
@media (min-width: 768px) { .hero__meta-row { grid-template-columns: repeat(4, 1fr); } }
.hero__meta-item { padding: 20px 0; }
.hero__meta-item .n { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; display: block; line-height: 1; }
.hero__meta-item .l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(238,241,242,0.6); margin-top: 8px; display: block; }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: clamp(30px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.35s var(--ease);
}
.card:hover { background: #FBFCFC; }
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent-deep); }
.card h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.card p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.card ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card li { font-family: var(--mono); font-size: 13px; color: var(--fg-soft); display: flex; gap: 10px; }
.card li::before { content: "—"; color: var(--accent); }

/* ---------- work / case cards ---------- */
.work { display: grid; gap: 28px; }
@media (min-width: 800px) { .work { grid-template-columns: repeat(2, 1fr); } }
.work__item { display: block; background: var(--bg); border: 1px solid var(--border); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.work__item:hover { transform: translateY(-6px); box-shadow: 0 18px 50px -16px rgba(35,41,46,0.28); }
.work__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work__item:hover .work__media img { transform: scale(1.06); }
.work__body { padding: 28px 30px 32px; }
.work__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); }
.work__body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 12px 0 10px; }
.work__body p { color: var(--muted); font-size: 15.5px; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .container { max-width: 980px; }
.manifesto__mark { font-family: var(--serif); font-size: 6rem; line-height: 0.5; color: var(--accent); display: block; margin-bottom: 8px; }
.manifesto blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.02em; line-height: 1.12; }
.manifesto blockquote em { font-style: normal; color: var(--accent); }
.manifesto cite { display: block; margin-top: 36px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #9AA6AD; }

/* ---------- process / steps ---------- */
.steps { display: grid; gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.step { background: var(--bg); padding: clamp(34px, 5vw, 60px) 4px; display: grid; gap: 18px; }
@media (min-width: 800px) { .step { grid-template-columns: 120px 1fr 1.4fr; align-items: start; gap: 40px; } }
.step__n { font-family: var(--serif); font-size: clamp(2.4rem,5vw,4rem); font-weight: 600; color: var(--accent); line-height: 1; }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(255,255,255,0.12); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat { padding: clamp(28px,4vw,44px) 8px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat .l { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #9AA6AD; margin-top: 14px; display: block; line-height: 1.5; }

/* ---------- principles (text team) ---------- */
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2,1fr); } }
.principle { background: var(--bg); padding: clamp(30px,4vw,48px); display: flex; gap: 22px; align-items: flex-start; }
.avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff; border-radius: 2px; }
.principle h3 { font-size: 1.3rem; }
.principle .role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep); margin: 4px 0 12px; }
.principle p { color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 8px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.faq summary .ic::before, .faq summary .ic::after { content:""; position:absolute; background: var(--accent); }
.faq summary .ic::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq summary .ic::after { left: 10px; top: 0; width: 2px; height: 22px; transition: transform 0.3s var(--ease); }
.faq details[open] summary .ic::after { transform: scaleY(0); }
.faq details p { padding: 0 0 28px; color: var(--muted); font-size: 16.5px; max-width: 70ch; }

/* ---------- CTA / form ---------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 820px; }
.cta-band h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); letter-spacing: -0.03em; }
.cta-band p { margin: 24px auto 0; color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.section--dark.cta-band p { color: #9AA6AD; }
.cta-band .hero__actions { justify-content: center; margin-top: 40px; }

.form { display: grid; gap: 20px; max-width: 720px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 2px; color: var(--fg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,162,219,0.16); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { color: var(--accent-deep); text-decoration: underline; }

/* ---------- contact info grid ---------- */
.info-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(3,1fr); } }
.info { background: var(--bg); padding: clamp(28px,3.5vw,40px); }
.info .eyebrow { margin-bottom: 14px; }
.info p { color: var(--fg-soft); font-size: 16px; line-height: 1.6; }
.info a { color: var(--accent-deep); }

/* ---------- split (about) ---------- */
.split { display: grid; gap: clamp(36px,5vw,72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--rev .split__media { order: -1; }
.split__media { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--border); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 18px; }

/* ---------- legal ---------- */
.legal { padding: clamp(120px,14vw,180px) 0 clamp(70px,9vw,120px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem,6vw,4rem); margin-bottom: 14px; }
.legal .updated { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.4rem,3vw,2rem); margin: 48px 0 16px; }
.legal h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.78; }
.legal p { margin-bottom: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }
.legal a { color: var(--accent-deep); text-decoration: underline; }

/* ---------- thanks ---------- */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 90px; }
.thanks h1 { font-size: clamp(2.6rem,7vw,5rem); }
.thanks p { margin: 24px auto 36px; color: var(--muted); max-width: 50ch; }
.thanks__code { font-family: var(--mono); color: var(--accent-deep); letter-spacing: 0.2em; font-size: 13px; text-transform: uppercase; margin-bottom: 24px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); color: #C5CDD2; padding: clamp(64px,8vw,100px) 0 40px; }
.footer__top { display: grid; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer__about { max-width: 40ch; font-size: 15px; line-height: 1.7; color: #9AA6AD; }
.footer h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: #7F8B92; font-weight: 500; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: #C5CDD2; font-size: 15px; margin-bottom: 12px; transition: color 0.25s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 30px; font-size: 13px; color: #7F8B92; }
@media (min-width: 700px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__bottom a { color: #9AA6AD; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
}

/* ---------- cookie popup ---------- */
.cookie-popup { position:fixed; inset:0; z-index:9999; display:flex; align-items:flex-end; justify-content:flex-start; padding:24px; background:rgba(16,20,23,0.45); 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); padding:32px 36px; max-width:480px; border-radius:4px; border-top: 3px solid var(--accent); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.cookie-popup__label { font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.16em; color:var(--accent-deep); margin-bottom:12px; }
.cookie-popup__card h3 { font-size:1.4rem; margin-bottom:12px; }
.cookie-popup__card p { font-size:14.5px; color:var(--muted); line-height:1.6; }
.cookie-popup__card p a { color:var(--accent-deep); text-decoration:underline; }
.cookie-popup__actions { display:flex; gap:12px; margin-top:22px; }
.cookie-popup__actions button { padding:12px 26px; border:1px solid var(--border); cursor:pointer; font-family:var(--mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase; border-radius:2px; transition: background 0.25s, color 0.25s; }
.cookie-popup__actions button:first-child:hover { background: var(--bg-alt); }
.cookie-popup__actions button:last-child { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
