/* palette: bg=#FCFBF8 fg=#141210 accent=#EC583E */
/* fonts: display="Archivo" body="Work Sans" mono="Space Mono" */

:root {
  --bg: #FCFBF8;         /* warm near-white, extracted from reference */
  --bg-alt: #F2EEE7;     /* alternating light section */
  --fg: #141210;         /* near-black grotesque ink */
  --fg-soft: #34302B;    /* softer heading tone */
  --muted: #6D675E;      /* secondary text */
  --accent: #EC583E;     /* coral-red from Remedy wordmark/CTA */
  --accent-deep: #D2432B;/* darker coral for hover */
  --dark: #100F0D;       /* dark inverted band */
  --dark-soft: #1B1917;  /* card on dark */
  --border: rgba(20, 18, 16, 0.12);
  --border-soft: rgba(20, 18, 16, 0.07);
  --border-inv: rgba(255, 255, 255, 0.14);

  --serif: 'Archivo', system-ui, sans-serif;   /* display grotesque */
  --sans: 'Work Sans', system-ui, sans-serif;   /* body */
  --mono: 'Space Mono', ui-monospace, monospace;/* eyebrows/labels */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 32px);
}

*, *::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;
  text-rendering: optimizeLegibility;
  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 { margin: 0; font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--fg); }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

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

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.section-head p { margin-top: 22px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--dark { border-color: var(--fg); color: var(--fg); }
.btn--dark:hover { background: var(--fg); color: var(--bg); }
.btn--inv { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--inv:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--sm { padding: 11px 22px; font-size: 11px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg); transition: gap .3s var(--ease), color .3s var(--ease);
}
.arrow-link span { transition: transform .3s var(--ease); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover span { transform: translateX(5px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.header[data-scrolled="true"] {
  box-shadow: 0 1px 0 rgba(20,18,16,.06), 0 10px 30px -18px rgba(20,18,16,.3);
  border-bottom-color: var(--border-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.nav { display: none; gap: 34px; }
.nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-soft); position: relative; padding: 4px 0; transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }
.header__cta { display: none; }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); display: block; transition: transform .35s var(--ease), opacity .25s 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); }

.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 40px var(--pad);
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-family: var(--serif); font-weight: 700; font-size: 2rem; padding: 14px 0; border-bottom: 1px solid var(--border-soft); letter-spacing: -0.02em; }
.mobile-menu nav a.btn { border: 1.5px solid var(--accent); border-radius: 9999px; font-family: var(--mono); font-size: 12px; font-weight: 700; margin-top: 22px; justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 64px) 0 0; }
.hero__eyebrow { margin-bottom: clamp(20px, 4vw, 34px); }
.hero__wordmark {
  font-family: var(--serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-size: clamp(3rem, 13.5vw, 12rem);
  color: var(--accent);
  margin: 0;
}
.hero__lower {
  display: grid; gap: 32px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.hero__statement { display: flex; align-items: flex-start; gap: 16px; }
.hero__statement .brand__mark { width: 40px; height: 40px; margin-top: 4px; }
.hero__statement p { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero__body { color: var(--fg-soft); font-size: 1.12rem; line-height: 1.7; max-width: 46ch; }
.hero__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: 6px;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- split (what we do) ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 8px 16px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.badge-pill .brand__mark { width: 18px; height: 18px; }
.split { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split__media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__body h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 26px; }
.split__body p { color: var(--muted); margin-bottom: 20px; max-width: 52ch; }
.split__body .btn { margin-top: 12px; }

/* ---------- work / dark band ---------- */
.band-dark { background: var(--dark); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p { color: rgba(255,255,255,.62); }
.band-dark .eyebrow { color: var(--accent); }
.work__grid { display: grid; gap: 26px; }
.work-card { display: flex; flex-direction: column; }
.work-card__media { position: relative; overflow: hidden; border-radius: 5px; aspect-ratio: 4 / 3; background: var(--dark-soft); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(1.02); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__cat { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 20px 0 8px; }
.work-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.work-card p { color: rgba(255,255,255,.6); font-size: 0.98rem; }
.work__foot { margin-top: clamp(40px, 6vw, 64px); display: flex; justify-content: flex-start; }
.band-dark .arrow-link { color: #fff; }
.band-dark .arrow-link:hover { color: var(--accent); }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .container { max-width: 960px; }
.manifesto__quote { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.16; letter-spacing: -0.025em; }
.manifesto__quote em { color: var(--accent); font-style: normal; }
.manifesto__mark { font-family: var(--serif); font-size: clamp(5rem, 12vw, 10rem); line-height: .6; color: var(--accent); display: block; margin-bottom: 8px; opacity: .9; }
.manifesto__by { margin-top: 36px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.band-dark .manifesto__by { color: rgba(255,255,255,.55); }

/* ---------- stats ---------- */
.stats { display: grid; gap: 2px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.stat { background: var(--bg); padding: clamp(30px, 4vw, 48px) clamp(24px, 3vw, 36px); }
.stat__num { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 0.98rem; max-width: 26ch; }

/* ---------- services grid ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.svc-card { background: var(--bg); padding: clamp(30px, 4vw, 44px); transition: background .4s var(--ease); }
.svc-card:hover { background: var(--bg-alt); }
.svc-card__no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.svc-card h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 20px 0 14px; }
.svc-card p { color: var(--muted); font-size: 1rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { border-top: 2px solid var(--fg); padding-top: 26px; }
.step__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.step h3 { font-size: 1.5rem; font-weight: 700; margin: 16px 0 12px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- quotes ---------- */
.quotes { display: grid; gap: 26px; }
.quote-card { background: var(--bg-alt); border-radius: 6px; padding: clamp(30px, 4vw, 44px); display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.4; letter-spacing: -0.015em; }
.quote-card__foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 9999px; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1rem; color: #fff; flex: none; letter-spacing: -0.01em; }
.quote-card__meta strong { display: block; font-weight: 600; font-size: 0.98rem; }
.quote-card__meta span { color: var(--muted); font-size: 0.86rem; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--border); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.6rem; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 60px 30px 0; font-size: 1.02rem; }

/* ---------- cta band ---------- */
.cta { background: var(--accent); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 16ch; margin: 0 auto 28px; }
.cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 40px; font-size: 1.1rem; }
.cta .btn--inv { border-color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 14px 16px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236,88,62,.13); }
.field textarea { resize: vertical; min-height: 130px; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { color: var(--muted); font-size: 0.85rem; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.info-block h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.info-block p, .info-block a { color: var(--fg-soft); font-size: 1.02rem; }
.info-block a:hover { color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(70px, 11vw, 150px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); letter-spacing: -0.03em; font-weight: 800; max-width: 16ch; }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p { margin-top: 28px; color: var(--muted); font-size: 1.15rem; max-width: 56ch; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; font-weight: 700; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1.04rem; margin-bottom: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: clamp(60px, 9vw, 110px) 0 40px; }
.footer__grid { display: grid; gap: 44px; }
.footer__brand .brand { color: #fff; font-size: 1.4rem; }
.footer__brand p { margin-top: 18px; color: rgba(255,255,255,.55); max-width: 34ch; font-size: 0.98rem; }
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.45); font-weight: 400; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer address a, .footer address { color: rgba(255,255,255,.7); font-style: normal; font-size: 0.98rem; transition: color .3s var(--ease); }
.footer ul a:hover, .footer address a:hover { color: var(--accent); }
.footer address { line-height: 1.8; }
.footer__bottom { margin-top: clamp(50px, 8vw, 80px); padding-top: 30px; border-top: 1px solid var(--border-inv); display: flex; flex-direction: column; gap: 10px; }
.footer__bottom p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ---------- 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,.4); backdrop-filter: blur(4px); -webkit-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: 6px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.4); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 700; }
.cookie-popup__card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); border-radius: 9999px; cursor: pointer; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; transition: background .3s var(--ease), color .3s var(--ease); }
.cookie-popup__actions button:hover { border-color: var(--fg); }
.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 .65s var(--ease), transform .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__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .hero__lower { grid-template-columns: 1.15fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cookie-popup__card { max-width: 460px; }
}
@media (min-width: 768px) {
  body { font-size: 19px; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.3fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .split--reverse .split__media { order: 2; }
}
