/* ==========================================================================
   Jennifer Diffley — UX Writing Portfolio
   Editorial type system. Warm paper, pine, bronze.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-prose: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Warm paper palette */
  --paper: #fbfaf7;
  --paper-alt: #f4f1ea;
  --surface: #ffffff;
  --ink: #1a1815;
  --ink-mid: #4a453d;
  --ink-soft: #6f685d;
  --rule: #e2dcd1;
  --rule-soft: #ece7dd;

  --pine: #1b4d45;
  --pine-hover: #12352f;
  --pine-wash: #edf3f1;
  --bronze: #a98363;
  --bronze-soft: #cbb49c;
  /* Darker bronze for small text — --bronze is only 3.3:1 on --paper, which
     fails WCAG AA below 18pt. Use this wherever bronze carries actual words. */
  --bronze-ink: #8a6543;

  /* Layout */
  --container: 1120px;
  --prose: 68ch;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.05);
  --shadow-md: 0 4px 16px rgba(26, 24, 21, 0.07);
  --shadow-lg: 0 12px 40px rgba(26, 24, 21, 0.1);

  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #13120f;
  --paper-alt: #1a1814;
  --surface: #1e1b16;
  --ink: #f3f0e8;
  --ink-mid: #c4bdb1;
  --ink-soft: #989083;
  --rule: #322e26;
  --rule-soft: #262319;

  --pine: #7cbfb0;
  --pine-hover: #9ad3c6;
  --pine-wash: #1b2b28;
  --bronze: #c9a583;
  --bronze-soft: #8a7159;
  /* Already 8.2:1 on the dark paper — no separate text shade needed. */
  --bronze-ink: #c9a583;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-prose);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--pine-hover); }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* --------------------------------------------------------------------------
   3. Utility
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pine);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid fallback first, for browsers without color-mix() */
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-nav.is-stuck { border-bottom-color: var(--rule); }

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark .wordmark-rule {
  display: block;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.wordmark:hover .wordmark-rule { transform: scaleX(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }

.theme-toggle,
.nav-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-mid);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; border-radius: var(--radius); }
.nav-toggle .bar {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle .bar + .bar { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(72px, 13vw, 148px) 0 clamp(56px, 9vw, 104px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pine-wash) 0%, transparent 68%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 5.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.hero .hero-rule {
  width: 72px;
  height: 2px;
  background: var(--bronze);
  margin: 30px 0 26px;
}
.hero-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.hero-lede {
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 34ch;
  margin: 0 0 38px;
  font-weight: 300;
}
.hero-lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--pine-hover);
  border-color: var(--pine-hover);
  color: #fff;
  transform: translateY(-1px);
}
html[data-theme="dark"] .btn { color: #10201d; }
html[data-theme="dark"] .btn:hover { color: #10201d; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .btn--ghost:hover { color: var(--ink); }

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid var(--rule-soft);
}
.section--alt { background: var(--paper-alt); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}
.section-intro {
  color: var(--ink-mid);
  /* Wider than --prose. These are one- or two-line deks sitting under a
     full-width heading, so a 68ch measure left them filling barely half the
     container and reading as a mistake. 88ch lands around 85 characters a
     line — at the top of the comfortable range, but still short of the
     ~120 characters a full-width line would give. */
  max-width: 88ch;
  text-wrap: pretty;
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Reveal on scroll
   Scoped to html.js (set by the inline script in <head>) so that with
   JavaScript disabled — or if main.js fails to load — the content is simply
   visible rather than stuck at opacity 0. Keep the .js prefix on every rule
   below, or specificity will leave content hidden in print / reduced motion. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-prose p {
  margin: 0 0 20px;
  color: var(--ink-mid);
  font-size: 1.125rem;
  line-height: 1.75;
}
.about-prose p:first-child {
  font-size: 1.3125rem;
  color: var(--ink);
  line-height: 1.6;
}
.about-prose p:last-child { margin-bottom: 0; }

.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-portrait img { width: 100%; }
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26, 24, 21, 0.08);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-does {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about-does li {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--ink-mid);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.about-does li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 1px;
  background: var(--bronze);
}
.about-does strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-mid);
}
.stat-context {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
}

/* --------------------------------------------------------------------------
   9. Case studies
   -------------------------------------------------------------------------- */
.case-list {
  display: grid;
  gap: 20px;
}

.case-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 34px);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.case-card:hover {
  border-color: var(--bronze-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.case-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bronze);
  line-height: 1;
  padding-top: 4px;
  font-variation-settings: "WONK" 1;
}

.case-title {
  font-size: clamp(1.375rem, 2.7vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.018em;
}
.case-org {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.case-desc {
  color: var(--ink-mid);
  margin: 0 0 18px;
  max-width: 60ch;
  line-height: 1.7;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-cta {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pine);
  white-space: nowrap;
}
.case-cta .lock {
  width: 15px; height: 15px;
  flex-shrink: 0;
}
.case-cta .arrow {
  transition: transform 0.25s var(--ease);
  width: 14px; height: 14px;
}
.case-card:hover .case-cta .arrow { transform: translateX(4px); }

.pill {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  white-space: nowrap;
}
.section--alt .pill { background: var(--surface); }

.case-note {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 2px solid var(--bronze);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-mid);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.case-note svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--bronze);
}
.case-note strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Experience timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.tl-item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--bronze-soft);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.section--alt .tl-item::before { background: var(--paper-alt); }
.tl-item:first-child::before {
  background: var(--pine);
  border-color: var(--pine);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 4px;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.tl-org {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}
.tl-date {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-left: auto;
  white-space: nowrap;
}
.tl-body {
  color: var(--ink-mid);
  margin: 8px 0 0;
  max-width: var(--prose);
  line-height: 1.7;
}
.tl-points {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: var(--prose);
}
.tl-points li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.65;
}
.tl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--bronze-soft);
}

/* --------------------------------------------------------------------------
   11. Skills
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.skill-group h3 {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* --------------------------------------------------------------------------
   12. Copywriting
   -------------------------------------------------------------------------- */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 18px;
}
.copy-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.copy-card:hover {
  border-color: var(--bronze-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.copy-meta {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.copy-title {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin: 0 0 10px;
}
.copy-desc {
  color: var(--ink-mid);
  font-size: 0.9875rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.copy-result {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 500;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-result::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bronze);
  flex-shrink: 0;
}
.copy-link {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pine);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.copy-card:hover .copy-link svg { transform: translateX(3px); }

.copy-footer {
  margin-top: 32px;
  text-align: center;
}

/* Campaigns with no public URL to point at — presented, not clickable.
   Overrides the hover affordance so it doesn't look like a dead link. */
.copy-card--static:hover {
  border-color: var(--rule);
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   13. Recommendations
   -------------------------------------------------------------------------- */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.rec-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.rec-quote {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 22px;
  position: relative;
}
.rec-quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--bronze-soft);
  display: block;
  margin-bottom: -14px;
}
.rec-author {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.rec-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pine-wash);
  color: var(--pine);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.rec-name {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.35;
}
.rec-title {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  display: block;
  line-height: 1.4;
}
.recs-footer { margin-top: 28px; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.linkedin-link svg { width: 16px; height: 16px; }
.linkedin-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-links a:hover { padding-left: 10px; color: var(--pine); }
.contact-links svg {
  width: 17px; height: 17px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.contact-links a:hover svg { color: var(--pine); }
.contact-links .ext {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 34px);
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-wash);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }
.contact-form button { justify-content: center; margin-top: 4px; }
.form-status {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  margin: 0;
  min-height: 1.2em;
}
.form-status.is-ok { color: var(--pine); }
.form-status.is-err { color: #b4483b; }
html[data-theme="dark"] .form-status.is-err { color: #e88a7d; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0;
  background: var(--paper);
}
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.footer-inner p { margin: 0; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 500;
}
.to-top svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 280px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 32px minmax(0, 1fr); }
  .case-cta { grid-column: 2; align-self: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 13px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-inner { position: relative; }

  .form-row { grid-template-columns: 1fr; }
  .tl-date { margin-left: 0; width: 100%; }
  .hero::before { width: 380px; height: 380px; top: -18%; right: -22%; }
}

@media (max-width: 480px) {
  .container, .nav-inner, .footer-inner { padding-inline: 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat { padding: 26px 22px; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-nav, .hero-actions, .contact-form, .to-top, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, html.js .reveal { opacity: 1; transform: none; }
  .section { border-top: 1px solid #ccc; page-break-inside: avoid; }
}
