/* palette: bg=#FFFFFF fg=#1D1D1F accent=#0071E3 */
/* fonts: display="Sora" body="Inter" mono="IBM Plex Mono" */

:root {
  --bg: #FFFFFF;          /* dominant near-white background from reference */
  --bg-alt: #F5F5F7;      /* Apple-style alternating light-grey section */
  --fg: #1D1D1F;          /* primary near-black text */
  --fg-soft: #3A3A3C;     /* slightly lighter foreground */
  --muted: #6E6E73;       /* secondary text */
  --accent: #0071E3;      /* product-page blue accent */
  --accent-deep: #0058B8; /* darker accent for hover */
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);
  --serif: 'Sora', ui-sans-serif, system-ui, 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: 1200px;
}

*, *::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;
  -moz-osx-font-smoothing: grayscale;
  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; }
::selection { background: var(--accent); color: #fff; }

/* ---------- layout primitives ---------- */
.container { width: 100%; 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--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }
.section--dark .muted { color: rgba(255,255,255,0.62); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  display: inline-block;
}
.section--dark .eyebrow { color: #5AC8FA; }

.muted { color: var(--muted); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1.2em; }

.lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.55; color: var(--fg-soft); max-width: 640px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border-color: var(--border);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--fg);
  display: grid; place-items: center;
  position: relative;
}
.brand__mark::after {
  content: ""; width: 11px; height: 11px; border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 0; transform: rotate(45deg);
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav a { font-size: 14px; color: var(--fg-soft); transition: color 0.2s var(--ease); }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px;
  margin-right: -10px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.5px; 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(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 0; z-index: 99;
  background: var(--bg);
  padding: 32px 20px 48px;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a {
  display: block; font-family: var(--serif); font-size: 1.7rem;
  padding: 14px 0; border-bottom: 1px solid var(--border); letter-spacing: -0.02em;
}
.mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  background: var(--accent); color: #fff;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { background: rgba(255,255,255,0.88); color: var(--fg); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.arrow-link:hover { gap: 12px; }
.arrow-link .ico { transition: transform 0.25s var(--ease); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 0%, #EAF3FE 0%, rgba(234,243,254,0) 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  padding: 96px 0 64px;
}
.hero__inner { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 300;
  margin: 0 0 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero__meta div { min-width: 110px; }
.hero__meta .n { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em; display: block; }
.hero__meta .l { font-size: 12px; color: var(--muted); }

.hero__visual {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -28px rgba(0,40,90,0.32);
  aspect-ratio: 4 / 3.4; border: 1px solid var(--border);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- feature image band ---------- */
.figband { position: relative; }
.figband__frame {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 8; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.22);
}
.figband__frame img { width: 100%; height: 100%; object-fit: cover; }
.figcap { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }

/* ---------- essay / manifesto ---------- */
.essay { max-width: 760px; margin: 0 auto; }
.essay p { font-size: clamp(1.06rem, 1.7vw, 1.22rem); line-height: 1.78; color: var(--fg-soft); }
.essay p + p { margin-top: 1.4em; }
.essay .dropcap::first-letter {
  font-family: var(--serif); font-size: 3.6em; font-weight: 500; float: left;
  line-height: 0.78; padding: 6px 12px 0 0; color: var(--fg);
}

.statement {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.16; letter-spacing: -0.025em;
}
.statement em { font-style: normal; color: var(--accent); }
.section--dark .statement em { color: #5AC8FA; }

.pullquote { max-width: 1000px; margin: 0 auto; position: relative; padding-top: 40px; }
.pullquote::before {
  content: "\201C"; position: absolute; top: -34px; left: -8px;
  font-family: var(--serif); font-size: 9rem; line-height: 1; color: var(--accent); opacity: 0.22;
}
.pullquote blockquote {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.24; letter-spacing: -0.02em;
}
.pullquote cite { display: block; margin-top: 28px; font-style: normal; font-size: 14px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- section header ---------- */
.shead { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.shead h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 300; }
.shead p { margin-top: 22px; }

/* ---------- service / feature grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 30px; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08);
}
.card:hover { box-shadow: 0 12px 40px -8px rgba(0,0,0,0.14); transform: translateY(-3px); border-color: var(--border-strong); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.4rem; margin: 18px 0 12px; letter-spacing: -0.02em; }
.card p { font-size: 0.98rem; color: var(--muted); margin: 0; line-height: 1.66; }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 20px;
}
.section--alt .card { background: #fff; }

/* numbered process list */
.steps { display: grid; gap: 0; border-top: 1px solid var(--border); }
.step {
  display: grid; gap: 8px; padding: 34px 0; border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .step { grid-template-columns: 120px 1.1fr 1.4fr; gap: 32px; align-items: start; } }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; }
.stat .l { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: clamp(1.1rem, 2.4vw, 1.42rem); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 22px; height: 22px; position: relative; margin-top: 6px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.3s var(--ease); }
.faq summary .pm::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq summary .pm::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq details[open] summary .pm::after { transform: translateX(-50%) scaleY(0); }
.faq details p { color: var(--muted); padding: 0 46px 28px 0; margin: 0; max-width: 700px; }

/* ---------- principles / list ---------- */
.plist { display: grid; gap: 0; }
.plitem { display: grid; gap: 14px; padding: 40px 0; border-top: 1px solid var(--border); }
@media (min-width: 820px) { .plitem { grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: baseline; } }
.plitem h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; }
.plitem p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; max-width: 900px; margin: 0 auto; }
.cta p { margin: 26px auto 0; max-width: 520px; }
.cta .hero__actions, .cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; padding: 14px 16px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--bg); color: var(--fg); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-content: center; margin-top: 6px; }
.formnote { font-size: 12px; color: var(--muted); margin: 0; }

.infoblock { display: grid; gap: 28px; }
.infoblock h3 { font-size: 1rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 400; }
.infoblock .row { padding: 22px 0; border-top: 1px solid var(--border); }
.infoblock .row a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 18px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--fg-soft); font-size: 1rem; line-height: 1.78; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.footer { background: var(--fg); color: rgba(255,255,255,0.72); padding: clamp(64px, 9vw, 110px) 0 40px; }
.footer__top { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer .brand { color: #fff; }
.footer__tag { margin-top: 22px; max-width: 300px; color: rgba(255,255,255,0.6); font-size: 0.96rem; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 400; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.45);
}
.footer__bottom a:hover { color: #fff; }

/* ---------- 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(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); padding:32px 36px; max-width:460px; border-radius:14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4); }
.cookie-popup__label { font-family: var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent); margin-bottom:12px; }
.cookie-popup__card h3 { font-size:1.3rem; margin-bottom:12px; letter-spacing:-0.02em; }
.cookie-popup__card p { font-size:0.92rem; color:var(--muted); line-height:1.6; margin:0; }
.cookie-popup__actions { display:flex; gap:12px; margin-top:22px; }
.cookie-popup__actions button { padding:11px 24px; border:1px solid var(--border-strong); cursor:pointer; font-size:14px; border-radius:9999px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.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); border-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__visual img { animation: none; }
}

/* breadcrumb / page hero */
.pagehero { padding: clamp(120px, 16vw, 200px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #F8FAFD, #FFFFFF); }
.pagehero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.pagehero h1 em { font-style: normal; color: var(--accent); }
.pagehero p { margin-top: 26px; }
