/* ============================================================
   swan.contact — sub-pages stylesheet
   Reuses the design system from index.html inline CSS:
   same tokens, typography scale, button/eyebrow/lede patterns,
   chip-blink hover, focus-visible, scrollbar, selection.
   ============================================================ */

:root {
  --ink: #ededec; --ink-dim: #9a9a97; --ink-faint: #555551;
  --bg: #0a0a0a; --bg-2: #111110;
  --line: #242422; --line-2: #2f2f2c;
  --accent: #d6ff4a;
  --serif: "Fraunces", "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); }

/* Shared chip-blink animation (imported from index.html) */
@keyframes chip-blink {
  0%, 49%   { color: var(--ink); font-style: normal; }
  50%, 100% { color: var(--accent); font-style: italic; }
}

/* ============ Dock nav bas — 1:1 avec index.html .hdr-dock ============ */
.hdr {
  position: fixed; z-index: 50;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
}
.hdr a {
  color: var(--ink-dim);
  transition: color .2s ease, transform .1s ease;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px;
}
.hdr a:hover { color: var(--accent); }
.hdr a:active { transform: scale(0.96); }
.hdr .brand { color: var(--ink); letter-spacing: 0.22em; }
.hdr .sep { width: 1px; height: 14px; background: var(--line-2); display: inline-block; }
.hdr .back::before { content: "← "; margin-right: 2px; }
.hdr-dock { bottom: 18px; left: 50%; transform: translateX(-50%); }
.hdr-dock .dock-inner {
  display: flex; gap: 14px; align-items: center; padding: 10px 14px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 720px) {
  .hdr-dock { left: 12px; right: 12px; transform: none; }
  .hdr-dock .dock-inner { overflow-x: auto; justify-content: flex-start; }
}

/* ============ Page wrapper ============ */
main { display: block; }
.page-wrap { max-width: 820px; margin: 0 auto; padding: 72px 28px 160px; }

/* ============ Eyebrow (matches hero .eyebrow) ============ */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 28px;
}

/* ============ H1 lede (matches hero .statement scale) ============ */
h1.lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.5vw, 88px); line-height: 1.15; letter-spacing: -0.03em;
  margin: 0 0 56px; text-wrap: balance;
}
h1.lede em { font-style: italic; color: var(--ink-dim); }

/* ============ H2 (section titles) ============ */
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.12; letter-spacing: -0.02em;
  margin: 80px 0 24px; text-wrap: balance;
}
h2 em { font-style: italic; color: var(--ink-dim); }
h2:first-of-type { margin-top: 56px; }

/* ============ H3 ============ */
h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

/* ============ Body text ============ */
p, li {
  color: var(--ink-dim); font-size: 15.5px; line-height: 1.7;
  text-wrap: pretty; margin: 0 0 14px;
}
p strong, li strong { color: var(--ink); font-weight: 500; }
p a, li a { color: var(--accent); transition: color .2s ease; }
p a:hover, li a:hover { color: var(--ink); }

article ul, article ol { padding-left: 22px; margin: 10px 0 22px; }
article li { margin-bottom: 8px; }

code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 6px; color: var(--ink);
  border-radius: 2px;
}

blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 24px; margin: 32px 0;
  font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.35;
  color: var(--ink); font-style: italic; letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ============ Pills (matches stack chips + proj-stack) ============ */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 40px; }
.pills span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line-2); padding: 5px 10px;
}

/* ============ Meta dl — mirrors .contact-facts horizontal layout ============ */
dl.meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 36px 0 64px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
dl.meta > div {
  padding: 14px 16px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
dl.meta > div:nth-child(2n) { border-right: 0; }
dl.meta > div:nth-last-child(-n+2) { border-bottom: 0; }
dl.meta dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 8px;
}
dl.meta dd {
  margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.45;
  transition: color .2s ease, font-style .2s ease;
}
dl.meta > div:hover dd { animation: chip-blink .7s steps(2, jump-none) infinite; }

/* ============ Button (1:1 with index.html .btn) ============ */
.cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 72px 0 0; padding-top: 56px;
  border-top: 1px solid var(--line);
}
.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 20px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  display: inline-flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: scale(0.96); }
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn.primary:hover { background: transparent; color: var(--accent); }

/* ============ FAQ items ============ */
.faq-item { border-top: 1px solid var(--line); padding: 40px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.8vw, 30px);
  transition: color .2s ease, font-style .2s ease;
}
.faq-item:hover h2 { animation: chip-blink .7s steps(2, jump-none) infinite; }
.faq-item p { margin: 0 0 12px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul { margin: 10px 0 12px; padding-left: 22px; }

/* ============ Case study — hero block ============ */
.case-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start;
  margin: 0 0 64px; padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.case-hero .intro p {
  font-size: 17px; line-height: 1.65; color: var(--ink);
}
.case-hero dl.meta { margin: 0; }

/* Case study — hero image */
figure.hero-shot { margin: 0 0 64px; }
figure.hero-shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

/* Case study — gallery grid */
.case-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 32px 0 56px;
}
.case-gallery figure { margin: 0; }
.case-gallery img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.case-gallery figcaption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-top: 10px;
}

/* ============ Table of contents ============ */
.toc {
  border: 1px solid var(--line-2);
  padding: 26px 28px; margin: 0 0 72px;
  background: color-mix(in oklab, var(--bg-2) 60%, transparent);
}
.toc .t {
  color: var(--ink-dim); margin: 0 0 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc; margin: 10px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-faint); margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--ink); transition: color .2s ease; }
.toc a:hover { color: var(--accent); }

/* ============ CV sections — same column pattern as .stack-group ============ */
.cv-section {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.cv-section:last-of-type { border-bottom: 1px solid var(--line); }
.cv-section > h2 {
  margin: 0; font-size: 11px; font-family: var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 500;
  padding-top: 6px;
}
.cv-entry { margin-bottom: 36px; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry .role {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 28px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
  margin: 0 0 6px;
  transition: color .2s ease, font-style .2s ease;
}
.cv-entry:hover .role { animation: chip-blink .7s steps(2, jump-none) infinite; }
.cv-entry .org {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
  margin: 0 0 14px;
}
.cv-entry .org .date { color: var(--ink-faint); margin-left: 8px; }
.cv-entry p { margin: 0 0 8px; }
.cv-entry ul { margin: 10px 0 0; padding-left: 20px; }
.cv-entry ul li { font-size: 14.5px; line-height: 1.6; }

/* ============ Footer (1:1 with index.html footer.site) ============ */
footer.site {
  padding: 48px 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
footer.site a { color: var(--ink-dim); transition: color .2s ease, transform .1s ease; }
footer.site a:hover { color: var(--accent); }
footer.site a:active { transform: scale(0.96); }

/* ============ Lightbox ============ */
img.is-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
  cursor: zoom-out;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color .15s ease, border-color .15s ease, transform .1s ease;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-close:active { transform: scale(0.94); }

/* ============ A11y ============ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }
.page-nav a:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .faq-item:hover h2,
  .cv-entry:hover .role,
  dl.meta > div:hover dd {
    animation: none; color: var(--accent); font-style: italic;
  }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .case-hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; margin-bottom: 48px; }
  .case-gallery { grid-template-columns: 1fr; }
  .cv-section { grid-template-columns: 1fr; gap: 16px; }
  .cv-section > h2 { padding-top: 0; font-size: 10px; }
}
@media (max-width: 720px) {
  .page-nav { padding: 12px 20px; gap: 14px; }
  .page-nav .links { gap: 14px; }
}
@media (max-width: 640px) {
  .page-wrap { padding: 72px 20px 120px; }
  dl.meta { grid-template-columns: 1fr; }
  dl.meta > div,
  dl.meta > div:nth-child(2n) { border-right: 0; }
  h2 { margin-top: 56px; }
  .faq-item { padding: 32px 0; }
  .faq-item h2 { font-size: 22px; }
  footer.site { padding: 40px 20px; }
  .toc { padding: 22px 22px; margin-bottom: 56px; }
  .cv-entry .role { font-size: 22px; }
  figure.hero-shot { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .page-wrap { padding: 64px 16px 100px; }
  footer.site { padding: 32px 16px; font-size: 10px; }
  .page-nav { font-size: 10px; }
  .cta-row { margin-top: 56px; padding-top: 40px; }
  h1.lede { margin-bottom: 40px; }
}
