/* ============================================================
   DIGITAL OIL — Monochrome design system
   Ink on white. Swiss grid, hairlines, poster type.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --gray: #6b6b6b;
  --hairline: #ececec;
  --line: #d8d8d8;
  --font-display: "Anton", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Typography ---------- */

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(28px, 4.5vw, 50px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
  display: block;
  margin-bottom: 20px;
}

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--gray); max-width: 620px; }

.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .wave { font-family: var(--font-body); font-size: 24px; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 36px; }

.main-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .main-nav a.btn { border: 1px solid var(--ink); margin-top: 16px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 10vw, 130px) 0 0; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin: 28px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }


/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--hairline); }
.section:last-of-type { border-bottom: none; }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 720px; }
.section-head .lede { margin-top: 20px; }

/* Two-column split cards */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.split-card { padding: clamp(28px, 4vw, 48px); }
.split-card:first-child { border-right: 1px solid var(--line); }
.split-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--gray); display: block; margin-bottom: 24px; }
.split-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin-bottom: 16px; }
.split-card p { color: var(--gray); margin-bottom: 24px; }
.split-card a { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split-card:first-child { border-right: none; border-bottom: 1px solid var(--line); }
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.cell .eyebrow { margin-bottom: 12px; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--gray); font-size: 15px; }
.cell ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cell ul li { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--hairline); padding: 5px 10px; }

@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

/* Numbered list rows (formats, steps, principles) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 80px 1fr 2fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.row .num { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.row h3 { font-size: 19px; }
.row p { color: var(--gray); font-size: 15px; }
.row .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.row .tags span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--hairline); padding: 5px 10px; }

@media (max-width: 720px) {
  .row { grid-template-columns: 48px 1fr; }
  .row p, .row .tags { grid-column: 2; }
}

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 130px) 0; }
.contact h2 { max-width: 14ch; }
.contact .lede { color: #a8a8a8; margin: 24px 0 40px; }

.roles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.role {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #4a4a4a;
  background: transparent;
  color: var(--paper);
  padding: 12px 22px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.role:hover { border-color: var(--paper); }
.role.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.contact .btn { border-color: var(--paper); color: var(--paper); }
.contact .btn:hover { background: var(--paper); color: var(--ink); }

.contact-meta { margin-top: 48px; font-family: var(--font-mono); font-size: 13px; color: #a8a8a8; letter-spacing: 0.04em; }
.contact-meta a { border-bottom: 1px solid #4a4a4a; }
.contact-meta a:hover { border-color: var(--paper); color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); margin-bottom: 16px; font-weight: 400; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 14px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand p { color: var(--gray); font-size: 14px; max-width: 300px; margin-top: 14px; }

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.footer-legal strong { color: var(--ink); font-weight: 500; }
.footer-legal a { border-bottom: 1px solid var(--hairline); }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 120px); }
.prose h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 12px; }
.prose .updated { font-family: var(--font-mono); font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 48px; display: block; }
.prose h2 { font-family: var(--font-body); font-weight: 600; font-size: 22px; text-transform: none; letter-spacing: 0; line-height: 1.3; margin: 44px 0 14px; }
.prose p, .prose li { color: #3a3a3a; margin-bottom: 14px; font-size: 15px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { border-bottom: 1px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; background: #fafafa; font-weight: 500; }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Cookie banner ---------- */

.cc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.55;
  display: none;
}
.cc-banner.cc-visible { display: block; }
.cc-banner p { margin-bottom: 16px; }
.cc-banner a { border-bottom: 1px solid var(--ink); }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) { .cc-actions .btn { width: 100%; text-align: center; } }

.hero--plain { padding-bottom: clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--line); }

/* ---------- Masonry gallery (Pinterest-style) ---------- */

.masonry { columns: 2; column-gap: 14px; }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 18px; } }
@media (min-width: 1080px) { .masonry { columns: 4; } }

.tile {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #f2f2f2;
  transition: transform .25s ease;
}
@media (min-width: 720px) { .tile { margin-bottom: 18px; } }
.tile:hover { transform: translateY(-3px); }

.tile img { width: 100%; height: auto; display: block; }

.tile figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  padding: 10px 14px 12px;
}

/* Placeholder tiles — replace with real <img> when photos are ready */
.tile--ph .ph {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: #ececec;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}
.tile--ph:nth-child(3n) .ph { background: #e3e3e3; }
.tile--ph:nth-child(4n) .ph { background: #0a0a0a; color: #8a8a8a; }
.r-45 { aspect-ratio: 4 / 5; }
.r-11 { aspect-ratio: 1 / 1; }
.r-34 { aspect-ratio: 3 / 4; }
.r-23 { aspect-ratio: 2 / 3; }
.r-169 { aspect-ratio: 16 / 9; }
