/* Layout: a project brief. Left-aligned single column, wide margins, cream callouts, thin bronze rules. */
:root {
  --paper: #FBFAF7;
  --cream: #F4F0E6;
  --ink: #1B2A41;
  --text: #2B3546;
  --muted: #5D6777;
  --bronze: #8A6D3B;
  --gold: #C7A878;
  --line: #E4DED1;
  --card: #FFFFFF;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Arimo", "Liberation Sans", Arial, Helvetica, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.4rem, 5vw, 3.6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11161E; --cream: #19212C; --ink: #EDE7DA; --text: #D3D8DF; --muted: #9AA3B1;
    --bronze: #D2B486; --gold: #8F7448; --line: #2B3442; --card: #161D27; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11161E; --cream: #19212C; --ink: #EDE7DA; --text: #D3D8DF; --muted: #9AA3B1;
  --bronze: #D2B486; --gold: #8F7448; --line: #2B3442; --card: #161D27; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--body); font-size: var(--step--1); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--bronze);
}
.measure { max-width: 38rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: italic; color: var(--bronze); }
.lede { font-size: var(--step-1); color: var(--text); max-width: 36rem; line-height: 1.55; }
.meta-line { color: var(--muted); font-size: 0.95rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.25rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem;
  border-radius: 3px; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--bronze); border-color: var(--bronze); color: var(--paper); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

.portrait { position: relative; max-width: 26rem; justify-self: end; width: 100%; }
.portrait img { position: relative; z-index: 1; border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 24px 48px -28px rgba(27, 42, 65, 0.45); }
.rings { position: absolute; z-index: 0; pointer-events: none; color: var(--gold); }
.rings-a { width: 62%; left: -26%; bottom: -12%; }
.rings-b { width: 38%; right: -12%; top: -9%; }
.rings circle { fill: none; stroke: currentColor; stroke-width: 1; }

/* Proof strip */
.proof { background: var(--cream); border-block: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.stat { display: grid; gap: 0.35rem; border-top: 1px solid var(--gold); padding-top: 1rem; }
.stat-num { font-family: var(--display); font-size: var(--step-3); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat-text { color: var(--text); font-size: 0.98rem; line-height: 1.45; }
.stat-src { color: var(--muted); font-size: var(--step--1); }

/* Case cards */
.cases { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: baseline;
  padding-block: 2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.case-num { font-family: var(--display); font-size: var(--step-2); color: var(--bronze); font-variant-numeric: lining-nums; }
.case-body { display: grid; gap: 0.6rem; min-width: 0; }
.case h3 { font-size: var(--step-2); transition: color .2s; }
.case p { color: var(--muted); max-width: 40rem; }
.case-arrow { color: var(--bronze); font-size: 1.4rem; transition: transform .2s; }
.case:hover h3 { color: var(--bronze); }
.case:hover .case-arrow { transform: translateX(4px); }
.chip {
  display: inline-block; justify-self: start; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border: 1px dashed var(--gold); color: var(--bronze); border-radius: 2px;
}

/* Practices */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
.practice { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.practice h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.practice p { color: var(--text); }

/* Experience */
.roles { display: grid; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.5rem 2.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.role-when { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.role-what { display: grid; gap: 0.4rem; min-width: 0; }
.role h3 { font-family: var(--body); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; }
.role-org { color: var(--bronze); font-weight: 700; font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 18rem; outline: 1px solid var(--gold); outline-offset: 8px; }
.about-copy { display: grid; gap: 1.25rem; min-width: 0; }
.creds { display: grid; gap: 0.9rem; margin-top: 0.75rem; padding: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: 2px; }
.creds ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.tools { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { background: var(--cream); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 1.5rem; max-width: 40rem; }
.contact h2 { font-size: var(--step-3); }
.contact-lines { display: grid; gap: 0.6rem; font-size: var(--step-1); }
.contact-lines span { color: var(--muted); font-size: var(--step--1); display: block; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.contact-lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); word-break: break-word; }
.contact-lines a:hover { color: var(--bronze); }

.site-footer { padding-block: 2rem; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Case study pages */
.cs-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.back { font-size: 0.95rem; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--bronze); }
.cs-hero .wrap { display: grid; gap: 1.25rem; }
.cs-hero h1 { font-size: var(--step-4); max-width: 46rem; }
.spec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 2px; background: var(--card); margin-top: 1rem; }
.spec div { padding: 1rem 1.1rem; display: grid; gap: 0.3rem; border-right: 1px solid var(--line); min-width: 0; }
.spec div:last-child { border-right: 0; }
.spec dt { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.spec dd { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.4; }
.cs-body { padding-block: 2rem 4rem; }
.cs-body .wrap { display: grid; gap: 3rem; max-width: 50rem; margin-inline: 0; }
@media (min-width: 72rem) { .cs-body .wrap { margin-inline: auto; } }
.cs-section { display: grid; gap: 1rem; }
.cs-section h2 { font-size: var(--step-2); }
.cs-section .label { margin-bottom: -0.25rem; }
.outcome { background: var(--cream); border-left: 3px solid var(--gold); padding: 1.5rem; border-radius: 0 2px 2px 0; }
.draft {
  border: 1px dashed var(--gold); border-radius: 2px; padding: 1.1rem 1.25rem; background: var(--card);
  display: grid; gap: 0.6rem; font-size: 0.96rem;
}
.draft strong { color: var(--bronze); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }
.draft ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--text); }
.facts { color: var(--muted); }
.cs-next { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.cs-next .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cs-next a { text-decoration: none; display: grid; gap: 0.25rem; }
.cs-next a span:last-child { font-family: var(--display); font-size: var(--step-1); color: var(--ink); }
.cs-next a:hover span:last-child { color: var(--bronze); }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 20rem; margin-top: 1rem; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: minmax(0, 1fr) auto; }
  .case-num { grid-column: 1 / -1; font-size: var(--step-1); }
  .practices { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { max-width: 12rem; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec div:nth-child(odd) { border-right: 1px solid var(--line); }
  .spec div:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
}
@media (max-width: 30rem) {
  .proof-grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec div, .spec div:nth-child(odd) { border-right: 0; }
}

/* Work sample placeholder */
.sample-slot {
  display: grid; place-items: center; gap: 0.5rem; text-align: center; min-height: 14rem; padding: 2rem;
  background: var(--cream); border: 1px dashed var(--gold); border-radius: 2px; color: var(--muted);
}
.sample-slot strong { color: var(--bronze); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; }
.sample-slot p { max-width: 32rem; }

/* Written case study content */
.cs-section p { max-width: 42rem; }
.cs-section.lead p { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.cs-section ul.plain { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.6rem; max-width: 42rem; }
.cs-section ul.plain li::marker { color: var(--bronze); }
.cs-section strong { color: var(--ink); }
.decision { display: grid; gap: 0.35rem; padding-left: 1rem; border-left: 1px solid var(--gold); }
.decision h3 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }

/* Tighter spacing on case study pages */
.cs-section { padding-block: 0; }
.cs-body .wrap { gap: 2.75rem; }
.cs-section.lead p { font-size: var(--step-0); line-height: 1.65; color: var(--ink); }

/* Work sample */
.sample { margin: 0; display: grid; gap: 0.9rem; }
.sample img { width: 100%; max-width: 34rem; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 18px 40px -28px rgba(27, 42, 65, 0.5); background: #fff; }
.sample figcaption { color: var(--muted); font-size: 0.95rem; max-width: 40rem; }
.sample figcaption a { font-weight: 700; display: inline-block; margin-top: 0.35rem; }

/* v14: lead summary back to larger size; a little more space between case study sections */
.cs-section.lead p { font-size: var(--step-1); line-height: 1.55; }
.cs-body .wrap { gap: 3.5rem; }
