/* Carsyn Long — personal site
   Palette and type match her resume and portfolio PDFs (navy + brass, Source Serif 4 + Inter). */

:root {
  --navy: #1b2a44;
  --navy-deep: #131f33;
  --brass: #c9a96a;        /* on navy only */
  --brass-ink: #86672a;    /* brass that passes contrast on white */
  --ink: #1a2230;
  --slate: #556070;
  --mist: #f2f4f7;
  --rule: #dde2e8;
  --paper: #ffffff;
  --on-navy: rgba(255, 255, 255, 0.92);
  --on-navy-2: rgba(255, 255, 255, 0.68);
  --on-navy-rule: rgba(201, 169, 106, 0.38);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 11vw, 150px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-navy :focus-visible, .site-nav:not(.is-scrolled) :focus-visible { outline-color: var(--brass); }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--brass); color: var(--navy-deep);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */
.serif { font-family: var(--serif); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-intro {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--slate);
  font-size: 1.125rem;
}
.text-link {
  color: var(--brass-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 0.15s;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-size: 0.975rem; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; border-radius: 2px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-brass { background: var(--brass); color: var(--navy-deep); }
.btn-brass:hover { background: #d8bc82; }
.btn-line { border: 1px solid var(--on-navy-rule); color: var(--on-navy); }
.btn-line:hover { border-color: var(--brass); color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: var(--on-navy);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.01em; text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-links .nav-resume {
  padding: 8px 16px; border: 1px solid var(--on-navy-rule); border-radius: 2px;
}
.nav-links .nav-resume:hover { border-color: var(--brass); }
.site-nav.is-scrolled .nav-resume { border-color: var(--navy); color: var(--navy); }
.site-nav.is-scrolled .nav-resume:hover { background: var(--navy); color: #fff; }

@media (max-width: 480px) {
  .wordmark { font-size: 1.12rem; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.9rem; }
  .nav-links .nav-resume { padding: 7px 12px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.02rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.85rem; }
  .nav-links .nav-resume { padding: 6px 10px; }
}
/* The hero's "See Selected Work" button covers this link on the narrowest phones. */
@media (max-width: 350px) { .nav-work { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px));
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4.25rem, 15.5vw, 14.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero-name .ch { display: inline-block; }
.hero-rule {
  width: 72px; height: 2px; background: var(--brass);
  margin: clamp(26px, 3.5vw, 40px) 0 22px;
  transform-origin: left;
}
.hero-intro {
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--on-navy);
}
.hero-intro strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  margin-top: clamp(8px, 1.6vw, 24px);
}
.hero-portrait::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--brass);
  transform: translate(14px, 14px);
}
.portrait-mask { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
}

.facts {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
}
.facts::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--on-navy-rule); transform-origin: left;
}
.facts > div { padding: 22px 24px 30px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.facts dt { font-size: 0.8125rem; font-weight: 500; color: var(--brass); letter-spacing: 0.01em; }
.facts dd { margin-top: 6px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.35; color: #fff; }

/* ---------- Opening sequence ----------
   The only motion that plays on its own. main.js holds it until fonts and the portrait are ready
   (html.is-loaded), then lifts the intro curtain and starts the hero (html.is-ready).
   Repeat visits in the same session skip the curtain (html.intro-skip). */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--navy-deep);
}
.js .intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass);
}
.intro-mark { display: grid; justify-items: center; gap: 20px; }
.intro-mono {
  display: block; overflow: hidden; padding: 0 0.04em 0.06em;
  font-family: var(--serif); font-weight: 600; font-size: 3.4rem; line-height: 1;
  letter-spacing: -0.02em; color: #fff;
}
.intro-mono span { display: inline-block; }
.intro-bar { display: block; width: 136px; height: 1px; background: rgba(201, 169, 106, 0.22); overflow: hidden; }
.intro-bar i {
  display: block; height: 100%; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.intro-started .intro-bar i { transform: scaleX(0.72); }
.is-loaded .intro-bar i { transform: scaleX(1); transition-duration: 0.32s; transition-timing-function: ease-out; }
.is-loaded .intro-mark { opacity: 0; transform: translateY(-12px); transition: opacity 0.35s ease 0.24s, transform 0.35s ease 0.24s; }
.is-ready .intro { transform: translateY(-100%); transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1); }
.intro-done .intro, .intro-skip .intro { display: none; }
.js:not(.intro-done):not(.intro-skip) body { overflow: hidden; }

:root { --t0: 0.38s; }
.intro-skip { --t0: 0s; }

@media (prefers-reduced-motion: no-preference) {
  .js .intro-mono span { transform: translateY(110%); }
  .intro-started .intro-mono span { animation: rise 0.8s var(--ease) both; }
  .intro-started .intro-mono span + span { animation-delay: 0.07s; }

  .js .hero-name .ch { animation: riseFar 1s var(--ease) calc(var(--t0) + var(--i) * 0.045s) both; }
  .js .portrait-mask { animation: unveil 1.25s cubic-bezier(0.65, 0, 0.2, 1) calc(var(--t0) + 0.1s) both; }
  .js .hero-portrait img { animation: settle 1.9s var(--ease) calc(var(--t0) + 0.1s) both; }
  .js .hero-portrait::before { animation: frameIn 0.9s var(--ease) calc(var(--t0) + 0.75s) both; }
  .js .hero-rule { animation: draw 0.8s var(--ease) calc(var(--t0) + 0.55s) both; }
  .js .hero-intro { animation: fadeUp 0.8s var(--ease) calc(var(--t0) + 0.65s) both; }
  .js .hero-actions { animation: fadeUp 0.8s var(--ease) calc(var(--t0) + 0.78s) both; }
  .js .facts::before { animation: draw 1.1s var(--ease) calc(var(--t0) + 0.75s) both; }
  .js .facts > div { animation: fadeUp 0.7s var(--ease) calc(var(--t0) + 0.9s) both; }
  .js .facts > div:nth-child(2) { animation-delay: calc(var(--t0) + 0.98s); }
  .js .facts > div:nth-child(3) { animation-delay: calc(var(--t0) + 1.06s); }
  .js .facts > div:nth-child(4) { animation-delay: calc(var(--t0) + 1.14s); }
  .js .site-nav { animation: navIn 0.7s var(--ease) calc(var(--t0) + 0.9s) both; }

  /* Hold everything at its first frame until the page is ready. */
  .js:not(.is-ready) .hero *,
  .js:not(.is-ready) .hero *::before,
  .js:not(.is-ready) .hero::before,
  .js:not(.is-ready) .facts::before,
  .js:not(.is-ready) .site-nav { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .js .intro { display: none; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes riseFar { from { transform: translateY(135%); } to { transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.16); } to { transform: none; } }
@keyframes frameIn { from { clip-path: inset(0 0 100% 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-name { font-size: clamp(4.5rem, 21vw, 9rem); }
  .hero-portrait { justify-self: start; width: min(78%, 340px); order: -1; margin-bottom: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 16px 0 18px; border-left: 0; }
  .facts > div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ---------- Brands strip ---------- */
.brands { border-bottom: 1px solid var(--rule); }
.brands-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px;
  padding-block: 26px 28px;
}
.brands-label { font-size: 0.9rem; color: var(--slate); flex: none; }
.brands-list { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.brands-list li {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--navy); letter-spacing: -0.005em;
}

.work-now {
  margin-top: 14px; max-width: 60ch;
  padding-left: 14px; border-left: 2px solid var(--brass-ink);
  color: var(--ink); font-size: 1rem;
}

/* Feature project gets a little more room for its photos */
.project-feature { grid-template-columns: minmax(0, 3.6fr) minmax(0, 7.4fr); }

/* ---------- About photo ---------- */
.about-photo { margin-top: 32px; max-width: 360px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 3px; }
.about-photo figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--slate); }
@media (max-width: 960px) { .about-photo { max-width: 300px; } }

/* ---------- Work ---------- */
.work { padding-block: var(--section-y); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.work-head .text-link { margin-bottom: 8px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
}
.work-head + .project { margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.project-text { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.project-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.015em;
}
.project-meta { margin-top: 10px; color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
.project-meta strong { color: var(--ink); font-weight: 600; }
.project-summary { margin-top: 20px; }
.did { margin-top: 18px; }
.did li { position: relative; padding-left: 20px; margin-top: 8px; color: #333c4a; }
.did li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 9px; height: 1px; background: var(--brass-ink);
}
.results { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.results div { display: flex; flex-direction: column-reverse; }
.results dt { font-size: 0.875rem; color: var(--slate); line-height: 1.35; margin-top: 4px; }
.results dd { font-family: var(--serif); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--navy); }

.gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; gap: 14px; }
.shot {
  flex: var(--ar) 1 0; min-width: 0;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.shot img {
  width: 100%; aspect-ratio: var(--ar); object-fit: cover;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--mist);
  transition: border-color 0.2s;
}
.shot:hover img { border-color: #b9c2ce; }
.gallery-caption { color: var(--slate); font-size: 0.875rem; margin-top: -4px; }

@media (max-width: 860px) {
  .project, .project-feature { grid-template-columns: minmax(0, 1fr); }
  .project-text { position: static; }
}
/* On phones each row becomes a swipeable strip so images stay readable. */
@media (max-width: 640px) {
  .row {
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .row::-webkit-scrollbar { display: none; }
  .row .shot { flex: none; height: 300px; width: calc(300px * var(--ar)); max-width: 86vw; scroll-snap-align: start; }
  .row .shot img { height: 100%; width: 100%; aspect-ratio: auto; }
}

/* A wall of same-format pieces, e.g. a monthly series */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mosaic .shot img { aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ---------- Published writing ---------- */
.writing {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}
.articles { border-top: 1px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--rule); }
.article {
  display: grid; gap: 6px;
  padding: 22px 0 24px;
  text-decoration: none;
}
.article-meta { font-size: 0.875rem; color: var(--slate); }
.article-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.article:hover .article-title { text-decoration-color: var(--brass-ink); color: var(--navy); }
.article-summary { color: #333c4a; max-width: 62ch; }
@media (max-width: 860px) {
  .writing { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Experience ---------- */
.experience { background: var(--mist); padding-block: var(--section-y); }
.experience-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.experience-head .text-link { margin-bottom: 8px; }

.timeline { margin-top: clamp(40px, 6vw, 72px); }
.job {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0 clamp(28px, 4vw, 56px);
  position: relative;
}
.job + .job .job-body { padding-top: 34px; }
.job-dates {
  padding-top: 6px;
  text-align: right;
  font-size: 0.95rem; font-weight: 500; color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.job + .job .job-dates { padding-top: 40px; }
.job-body {
  position: relative;
  padding-left: clamp(28px, 4vw, 48px);
  padding-bottom: 6px;
  border-left: 1px solid #c9d1db;
  max-width: 760px;
}
.job-body::before {
  content: ""; position: absolute; left: -6px; top: 13px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--navy);
}
.job + .job .job-body::before { top: 47px; }
.job.is-current .job-body::before { background: var(--navy); box-shadow: 0 0 0 4px rgba(27, 42, 68, 0.12); }
.job.is-current .job-dates { color: var(--navy); font-weight: 600; }
.job-company {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 2.3vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em;
}
.job-role { color: var(--brass-ink); font-weight: 600; margin-top: 2px; }
.job-role span { color: var(--slate); font-weight: 400; }
.job ul { margin-top: 12px; }
.job li { position: relative; padding-left: 20px; margin-top: 7px; color: #333c4a; }
.job li::before {
  content: ""; position: absolute; left: 0; top: 0.8em;
  width: 9px; height: 1px; background: var(--brass-ink);
}

.earlier {
  display: grid; grid-template-columns: 190px 1fr; gap: 0 clamp(28px, 4vw, 56px);
  margin-top: 56px;
}
.earlier-label { text-align: right; font-size: 0.95rem; font-weight: 500; color: var(--slate); padding-top: 4px; }
.earlier-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px;
  padding-left: clamp(28px, 4vw, 48px);
  border-left: 1px solid #c9d1db;
  max-width: 760px;
}
.earlier-list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.earlier-list p { color: var(--slate); font-size: 0.95rem; margin-top: 4px; }

@media (max-width: 760px) {
  .job, .earlier { grid-template-columns: minmax(0, 1fr); }
  .job-dates, .earlier-label { text-align: left; padding: 0 0 6px clamp(28px, 4vw, 48px); border-left: 1px solid #c9d1db; }
  .job + .job .job-dates { padding-top: 34px; }
  .job + .job .job-body { padding-top: 0; }
  .job-body::before, .job + .job .job-body::before { top: -24px; }
  .earlier-list { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { padding-block: var(--section-y); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
}
.about-lede {
  margin-top: 28px;
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45;
  color: var(--ink);
}
.about-copy p + p { margin-top: 18px; }
.about-copy p:not(.about-lede) { color: #333c4a; max-width: 60ch; }

.about-details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px; align-content: start;
  padding-top: 10px;
}
.detail h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.detail.wide { grid-column: 1 / -1; }
.strengths { columns: 2; column-gap: 40px; }
.strengths li { break-inside: avoid; padding: 5px 0; }
.tools { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.tools dt { font-weight: 600; font-size: 0.95rem; }
.tools dd { color: #333c4a; font-size: 0.95rem; }
.detail p, .detail li { font-size: 0.975rem; }
.detail .muted { color: var(--slate); }
.plain li + li { margin-top: 5px; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .about-details { grid-template-columns: 1fr; }
  .strengths { columns: 1; }
  .tools { grid-template-columns: 1fr; gap: 2px; }
  .tools dd { margin-bottom: 10px; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: var(--section-y);
}
.contact .section-title { color: #fff; }
.contact-intro { margin-top: 18px; color: var(--on-navy-2); font-size: 1.125rem; max-width: 46ch; }
.contact-email {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.75rem, 5.4vw, 4.25rem); line-height: 1.1; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
  border-bottom: 2px solid var(--brass);
  padding-bottom: 6px;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--brass); }
.contact-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--on-navy-rule);
}
.contact-list li { padding: 22px 24px 28px 0; }
.contact-list li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list span { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--brass); }
.contact-list a { display: inline-block; margin-top: 6px; font-family: var(--serif); font-size: 1.2rem; color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }

.site-footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: 26px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.875rem; color: var(--on-navy-2);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 680px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-list li, .contact-list li + li { padding: 16px 0 18px; border-left: 0; }
  .contact-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  padding: 0; border: 0;
  background: rgba(15, 23, 38, 0.94);
  color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: zoomIn 0.25s var(--ease); }
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lb-figure { display: contents; }
.lb-img {
  max-width: min(1400px, 100vw - 140px); max-height: calc(100vh - 140px);
  width: auto; height: auto; object-fit: contain;
  align-self: end; border-radius: 3px;
}
.lb-caption { padding: 18px var(--gutter) 28px; text-align: center; color: rgba(255,255,255,0.78); font-size: 0.95rem; max-width: 70ch; }
.lb-btn {
  position: fixed; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1;
  transition: background-color 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .lb-img { max-width: 100vw; max-height: calc(100vh - 160px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

body.lb-open { overflow: hidden; }

.nowrap { white-space: nowrap; }
