/* dpaul.studio — shared styles (2026 overhaul)
   Every text/background pair below is WCAG AA or better.
   Measured ratios (on --bg #141414 / on --surface #1e1e1e):
     --text    #f4f3ef  16.6 / 15.0
     --muted   #b8b5ad   9.0 /  8.1
     --accent  #ff5a3c   6.0 /  5.4   (links, small accent text)
     button: #141414 on --accent  6.0
   --brand #e6432a is 4.56 on --bg: used only for large display text and decoration. */

:root {
  --bg: #141414;
  --surface: #1e1e1e;
  --line: #343434;
  --text: #f4f3ef;
  --muted: #b8b5ad;
  --accent: #ff5a3c;
  --brand: #e6432a;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Anton', 'Impact', sans-serif;
  --body: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ── */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--text); text-decoration: none; text-transform: lowercase; letter-spacing: 0.01em; }
.logo span { color: var(--brand); }
.site-nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.site-nav a { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: lowercase; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ── Type ── */
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
h1, h2, h3 { font-weight: 400; line-height: 1.05; }
h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: 0.005em; }
h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 20px; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
h1 .hl, h2 .hl { color: var(--brand); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.6; color: var(--text); max-width: 46ch; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }

/* ── Sections ── */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 16ch; margin-bottom: 28px; }
.hero-home .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.phone-spin { display: block; position: relative; width: min(56vw, 240px); height: auto; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect; }
@media (min-width: 900px) {
  .hero-home { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
  .hero-home .wrap { grid-template-columns: 1fr minmax(240px, 340px); gap: 48px; }
  .phone-spin { width: 100%; max-height: 78vh; object-fit: contain; }
}
.section { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 0; }

/* ── Buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 13px 22px; border: 2px solid var(--accent); background: var(--accent); color: #141414; }
.btn:hover { background: var(--text); border-color: var(--text); }
.btn.small { font-size: 0.9375rem; padding: 9px 16px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }

/* ── Work cards ── */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0d0d0d; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card p { color: var(--muted); font-size: 1rem; }
.card .tags { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 14px; }
.card .links { margin-top: auto; padding-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

/* ── Case study ── */
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-meta dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.cs-meta dd { font-size: 1rem; }
.cs-shot { border: 1px solid var(--line); margin-top: 8px; }
.cs-section { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); display: grid; gap: 12px 48px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cs-section { grid-template-columns: 220px 1fr; } }
.cs-section h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.cs-section ul { padding-left: 1.2em; }
.cs-section li + li { margin-top: 0.4em; }
.cs-section li::marker { color: var(--brand); }
.draft-note { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; font-size: 0.95rem; color: var(--muted); margin-top: 16px; }
.draft-note strong { color: var(--text); }
.next-cs { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; }

/* ── Synth feature ── */
.feature-band { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.feature-band h2 { max-width: 16ch; }
.feature-band .actions { margin-top: 24px; margin-bottom: 16px; }
.feature-band img { width: 100%; max-width: 340px; margin: 0 auto; }
@media (min-width: 900px) { .feature-band { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.v-body p { color: var(--muted); font-size: 0.95rem; }
/* background video (synth page) */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); }
.page-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, 0.86); }
.promo { display: block; width: 100%; height: auto; background: #000; border: 1px solid rgba(255, 255, 255, 0.32); }

/* ── About ── */
.skills { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.skills > div { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.skills p { color: var(--muted); font-size: 1rem; }
.portrait { width: 100%; max-width: 360px; border: 1px solid var(--line); }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.6fr 1fr; } }

/* ── Contact ── */
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list a { font-family: var(--mono); font-size: 1.0625rem; overflow-wrap: anywhere; }
form.contact { display: grid; gap: 18px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
form.contact input, form.contact textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #6b6964; padding: 12px 14px; width: 100%; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent); }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-status { min-height: 1.6em; font-weight: 600; }

/* ── CTA + footer ── */
.cta { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.cta h2 { max-width: 18ch; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }

@media (max-width: 520px) {
  .logo { font-size: 1.35rem; }
  .site-nav { gap: 16px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
.synth-small { display: block; width: 100%; max-width: 440px; border: 0; border-radius: 8px; }
.synth-media { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.synth-media .synth-small { max-width: none; }
@media (min-width: 760px) { .synth-media { grid-template-columns: 1fr 1fr; } }
.timeline { list-style: none; margin-top: 32px; max-width: 68ch; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 8px 0 8px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; background: var(--brand); border-radius: 50%; }
.timeline .yr { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); padding-top: 2px; }
.quote { margin-top: 1.5em; padding: 18px 22px; border-left: 3px solid var(--brand); background: rgba(30, 30, 30, 0.8); font-size: 1.0625rem; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.cs-shot.narrow { width: 100%; max-width: 620px; }
.page-bg.desk { background: #141414 url('bg-desk.jpg') center / cover no-repeat; }
.page-bg.desk::after { background: rgba(20, 20, 20, 0.8); }
.tool-list { list-style: none; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.tool-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tool-list a { font-weight: 600; }
.tool-list span { color: var(--muted); font-size: 1rem; }
@media (max-width: 520px) { .tool-list li { grid-template-columns: 1fr; gap: 2px; } }
/* live site previews */
.live-shot { position: relative; }
.live-shot iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: #fff; }
.live-shot.is-live iframe { opacity: 1; }
.live-shot .shot-link { position: absolute; inset: 0; z-index: 1; }
/* video page */
.video-feature { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-feature { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.video-feature h2 { margin-bottom: 14px; }
.video-feature .tags { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin-top: 14px; }
.yt-grid { list-style: none; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.yt p { margin-top: 10px; font-size: 0.95rem; }
.yt-play, .yt iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.32); background: #000; padding: 0; cursor: pointer; overflow: hidden; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); background: var(--accent); border-radius: 10px; }
.yt-icon::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #141414; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: var(--text); }
.phone-wrap { position: relative; isolation: isolate; }
.phone-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; height: 175%; z-index: -1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #141414 60%, rgba(20, 20, 20, 0.8) 75%, rgba(20, 20, 20, 0) 100%); pointer-events: none; }
.page-bg.desk.mono { filter: grayscale(1); }
/* tool cards: name instead of screenshot */
.card .name-shot { position: relative; display: block; }
.card .name-shot span { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-weight: 700; font-size: 0.875rem; line-height: 1; letter-spacing: 0; color: #181818; background: var(--accent); padding: 6px 9px; }
.card .name-shot:hover span { background: var(--text); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card .label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.more-work { margin-top: 28px; color: var(--muted); }
