/* MODULUS DESIGN HUB — single-page static site
   Palette and type match the previous Squarespace theme:
   Roboto 300 body / 600 headings, accent hsl(8 86% 58%). */

:root {
  --accent: hsl(8, 86%, 58%);
  --accent-dark: hsl(19, 40%, 15%);
  --accent-light: hsl(20, 40%, 94%);
  --ink: #111;
  --ink-soft: #444;
  --ink-muted: #777;
  --line: #e4e0dc;
  --paper: #fff;
  --paper-alt: #f7f5f3;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 300; color: var(--ink-soft); max-width: 46ch; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; }
.dash-list { list-style: none; padding: 0; }
.dash-list li { padding-left: 1.3em; position: relative; margin-bottom: 0.35em; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 120px) 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 0.4em; }

/* Buttons */
.btn {
  display: inline-block; font-family: inherit; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; transition: background .18s, color .18s, transform .18s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--accent); }
.nav a.cta { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; border: 0; }
.nav a.cta:hover { background: var(--accent); }
.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(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.cta { margin-top: 12px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); aspect-ratio: 6/5; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero figure { order: -1; } .hero img { aspect-ratio: 16/10; } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.card .num { font-weight: 600; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.15rem; }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { border-top: 2px solid var(--line); padding-top: 1rem; }
.steps .num { font-weight: 600; color: var(--accent); font-size: 1.6rem; line-height: 1; margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Expandable panels (details) */
details.panel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.05rem; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--accent); transition: transform .2s; flex: none; }
details.panel[open] > summary::after { transform: rotate(45deg); }
details.panel > .panel-body { padding: 8px 0 clamp(32px, 4vw, 56px); }

/* Disciplines (full process) */
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .disciplines { grid-template-columns: 1fr; } }
.discipline h3 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; }
.discipline ol { list-style: none; padding: 0; margin: 0; }
.discipline li { padding: 0.7rem 0 0.7rem 1.4rem; position: relative; border-bottom: 1px dotted var(--line); font-size: 0.95rem; }
.discipline li:last-child { border-bottom: 0; }
.discipline li::before { content: "●"; position: absolute; left: 0; top: 0.75rem; font-size: 0.6rem; color: var(--accent); }
.discipline li strong { display: block; font-weight: 600; margin-bottom: 0.1rem; }

.prose { max-width: 70ch; }
.prose-2col { columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.prose-2col > * { break-inside: avoid; }
@media (max-width: 800px) { .prose-2col { columns: 1; } }
.stat { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }

/* Media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Strategy Session */
.fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 2rem 0; }
.fee .stat { font-size: clamp(2rem, 4vw, 3rem); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.5em; position: relative; margin-bottom: 0.5em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6em; height: 0.6em; background: var(--accent); }
.note { font-size: 0.9rem; color: var(--ink-muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 720px) { .projects { grid-template-columns: 1fr; } }
.project-card { text-decoration: none; display: block; }
.project-card figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-alt); }
.project-card img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.03); }
.project-card .meta { padding: 1rem 0 0; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.project-card .tag { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.project-card p { color: var(--ink-soft); font-size: 0.98rem; }
.project-card .more { display: inline-block; margin-top: 0.6rem; font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid var(--accent); }

/* Case studies */
.case { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.case:nth-of-type(even) { background: var(--paper-alt); }
.case .case-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .case .case-head { grid-template-columns: 1fr; } }
.case h2 { text-transform: lowercase; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0.2em; }
.case .sub { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.case .sub strong { color: var(--accent); display: block; margin-top: 0.3em; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); font-size: 0.95rem; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; color: var(--ink-muted); padding-top: 0.15em; }
.case-body { display: grid; gap: clamp(28px, 4vw, 56px); }
.case-block h3 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.case-block { max-width: 70ch; }
.case-block.wide { max-width: none; }
.gallery { display: grid; gap: clamp(12px, 2vw, 24px); }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .gallery.g3, .gallery.g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery.g2, .gallery.g3, .gallery.g4 { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.gallery figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.6rem; }
.gallery figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.legend { font-size: 0.85rem; color: var(--ink-soft); }
.legend strong { letter-spacing: 0.12em; font-size: 0.75rem; display: block; margin-bottom: 0.4rem; }
.legend ol { margin: 0; padding-left: 1.3em; }
.award { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.award img { height: 44px; width: auto; }
.case-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 4vw, 48px); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.case-nav a { text-decoration: none; font-weight: 600; }
.case-nav a:hover { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 1.6rem; cursor: pointer; }

/* About */
.about .split { align-items: start; }
.about h2 { margin-bottom: 1rem; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols h3 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.quote { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 300; max-width: 30ch; line-height: 1.3; }
.quote strong { font-weight: 600; }

/* Contact */
.contact .split { align-items: start; }
.form { display: grid; gap: 22px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.field .desc { font-size: 0.9rem; color: var(--ink-soft); margin: -0.2rem 0 0.6rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-weight: 300; padding: 12px 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; border-radius: 0; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.two > label { grid-column: 1 / -1; margin-bottom: 0; }
.field.two input { margin-top: 0; }
.field.two .sub { font-size: 0.8rem; color: var(--ink-muted); display: block; margin-top: 0.3rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; display: inline-block; margin: 0; font-weight: 400; font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-msg.ok { display: block; background: var(--accent-light); color: var(--accent-dark); }
.form-msg.err { display: block; background: #fdecea; color: #8a1c0f; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.site-footer img { height: 22px; width: auto; margin-bottom: 14px; }
.site-footer a { color: var(--ink); }
.site-footer .legal { text-align: right; }
@media (max-width: 620px) { .site-footer .legal { text-align: left; } }

/* Legal page */
.legal-page { padding: clamp(48px, 7vw, 96px) 0; }
.legal-page .prose { max-width: 76ch; }
.legal-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 2.2rem; }
.legal-page .back { display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; }

/* Reveal on scroll (subtle) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .nav-toggle, .lightbox, .btn, .case-nav { display: none !important; }
  details.panel { border: 0; }
  details.panel > .panel-body { display: block; }
  a { text-decoration: none; }
}
