/* =========================================================
   Inner pages: Work, case studies, About, Contact
   ========================================================= */

/* ---------- Shared page hero ---------- */
.page-hero { padding-top: clamp(120px, 16vw, 220px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-title { line-height: .82; }
.page-hero-row {
  display: grid; gap: 28px; margin-top: clamp(20px, 3vw, 40px);
  align-items: end;
}
@media (min-width: 900px) { .page-hero-row { grid-template-columns: 1fr auto; } }
.page-lead { color: var(--text-dim); font-size: var(--step-1); max-width: 44ch; line-height: 1.45; }

/* gold satin inside the letters: the brand's two materials in one word */
.satin-type {
  color: transparent;
  background:
    linear-gradient(115deg, var(--gold-deep) 0%, var(--gold-light) 38%, var(--gold) 55%, var(--gold-light) 72%, var(--gold-deep) 100%);
  background-size: 220% 100%;
  background-position: var(--sheen, 50%) 50%;
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-reduced-motion: no-preference) {
  .satin-type { animation: sheen 9s var(--ease-in-out) infinite alternate; }
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Explore tracker (light gamification) ---------- */
.explore {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: var(--step--1); color: var(--text-dim);
}
.explore b { color: var(--cream); font-weight: 600; }
.explore-ring { width: 44px; height: 44px; transform: rotate(-90deg); flex: none; }
.explore-track { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.explore-fill {
  fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0));
  transition: stroke-dashoffset 1s var(--ease-out);
}
.explore-msg { display: block; color: var(--gold-light); }
.explore-msg:empty { display: none; }
.explore-msg a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Filters ---------- */
.filter-bar {
  position: sticky; top: clamp(76px, 7vw, 96px); z-index: 30;
  padding-block: 10px;
  pointer-events: none;
}
.filter-inner {
  pointer-events: auto;
  position: relative;
  display: flex; gap: 4px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px; border-radius: var(--radius-pill);
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.8);
}
.filter-inner::-webkit-scrollbar { display: none; }
.chip {
  position: relative; z-index: 1; flex: none;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  color: var(--text-dim); font-size: .92rem; font-weight: 500; white-space: nowrap;
  transition: color .3s;
}
.chip span { margin-left: 4px; color: var(--text-faint); font-size: .8em; transition: color .3s; }
.chip:hover { color: var(--cream); }
.chip[aria-pressed="true"] { color: var(--black); }
.chip[aria-pressed="true"] span { color: rgba(8,6,5,.6); }
.chip-glider {
  position: absolute; z-index: 0; top: 6px; left: 0; height: 44px; width: 0;
  border-radius: var(--radius-pill); background: var(--cream);
  transform: translateX(var(--gx, 6px)); width: var(--gw, 0);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

/* ---------- Work grid ---------- */
.work-index { padding-top: clamp(16px, 2vw, 32px); padding-bottom: var(--section-y); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: clamp(150px, 12vw, 280px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.1vw, 20px);
}
.wcard { grid-row: span 2; min-width: 0; }
.wcard--tall { grid-row: span 3; }
@media (min-width: 640px) {
  .wcard--wide, .wcard--lg { grid-column: span 2; grid-row: span 2; }
  .wcard--xl { grid-column: span 2; grid-row: span 3; }
}
.wcard[hidden] { display: none; }
.wcard a {
  position: relative; display: block; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--espresso); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease-out);
}
.wcard a:hover, .wcard a:focus-visible { border-color: rgba(251,231,178,.32); }
.wcard-media { position: absolute; inset: 0; }
.wcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.wcard-media--device {
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(182,154,88,.22), transparent 70%),
    linear-gradient(180deg, var(--espresso-2), var(--espresso));
}
.wcard-media--device img { object-fit: contain; padding: 6% 6% 22%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.wcard a:hover .wcard-media img, .wcard a:focus-visible .wcard-media img { transform: scale(1.05); }
.wcard a::after { /* legibility scrim for the title */
  content: ""; position: absolute; inset: 40% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,6,5,.88));
}
.wcard-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(14px, 1.4vw, 22px);
  display: grid; gap: 6px;
}
.wcard-title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(1rem, .9rem + .5vw, 1.4rem); line-height: 1.08; text-transform: uppercase;
}
.wcard-kind { color: var(--text-dim); font-size: .82rem; line-height: 1.4; }
.wcard-flag, .wcard-seen {
  position: absolute; top: 14px; z-index: 2;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.wcard-flag { left: 14px; background: rgba(251,231,178,.92); color: var(--black); }
.wcard-seen {
  right: 14px; background: rgba(8,6,5,.55); color: var(--gold-light); border: 1px solid var(--glass-edge);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease-out);
}
.wcard.is-seen .wcard-seen { opacity: 1; transform: none; }

/* filter view transitions: cards glide to their new spots */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16,1,.3,1); }

/* ---------- Viewer dialog (work index + case lightbox) ---------- */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--text);
}
.viewer::backdrop { background: rgba(8,6,5,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.viewer[open] { display: grid; place-items: center; }
.viewer-shell {
  position: relative;
  width: min(100% - 24px, 1500px); height: min(100% - 24px, 920px);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(34,26,20,.7); border: 1px solid var(--glass-edge);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9);
}
@media (min-width: 960px) { .viewer:not(.viewer--lightbox) .viewer-shell { grid-template-rows: none; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); } }
.viewer[open] .viewer-shell { animation: viewer-in .5s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.viewer-stage {
  position: relative; min-height: 0;
  background: radial-gradient(80% 80% at 50% 50%, rgba(182,154,88,.12), transparent 70%), var(--black);
}
.viewer-scroll {
  position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; place-items: center; padding: clamp(16px, 3vw, 48px);
}
.viewer-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
/* very tall pieces (emails) scroll inside the stage at a readable width */
.viewer-img.is-tall { max-height: none; width: min(100%, 640px); align-self: start; }
.viewer-img.is-swapping { opacity: 0; transform: scale(.985); }
.viewer-img { transition: opacity .3s, transform .4s var(--ease-out); }
.viewer-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,6,5,.6); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, color .3s;
}
.viewer-nav:hover { background: var(--cream); color: var(--black); }
.viewer-nav svg { width: 18px; height: 18px; }
.viewer-prev { left: 14px; } .viewer-next { right: 14px; }
.viewer-nav[hidden] { display: none; }
.viewer-count {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(8,6,5,.6);
  font-size: .8rem; color: var(--text-dim);
}
.viewer-count:empty { display: none; }
.viewer-info {
  overflow-y: auto; padding: clamp(20px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--line);
  max-height: 45vh;
}
@media (min-width: 960px) { .viewer-info { max-height: none; border-top: 0; border-left: 1px solid var(--line); } }
.viewer-label { color: var(--gold-light); font-size: .82rem; font-weight: 600; }
.viewer-title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-2); line-height: 1; text-transform: uppercase; }
.viewer-sub { color: var(--text-dim); }
.viewer-desc { color: var(--cream); max-width: 60ch; }
.viewer-meta { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); }
.viewer-meta dt { color: var(--text-faint); }
.viewer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer-thumbs:empty { display: none; }
.viewer-thumbs button {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); opacity: .55; transition: opacity .3s, border-color .3s;
}
.viewer-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-light); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer-projects { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.viewer-projects .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,6,5,.65); border: 1px solid var(--line-strong);
  transition: background .3s, color .3s, transform .4s var(--ease-out);
}
.viewer-close:hover { background: var(--cream); color: var(--black); transform: rotate(90deg); }
.viewer-close svg { width: 18px; height: 18px; }
.viewer-caption { padding: 14px 64px 16px 20px; color: var(--text-dim); font-size: var(--step--1); }
.viewer--lightbox .viewer-shell { background: rgba(8,6,5,.6); }

/* ---------- Case study ---------- */
.case-hero { padding-top: clamp(120px, 14vw, 200px); padding-bottom: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; gap: 10px; color: var(--text-faint); font-size: var(--step--1); margin-bottom: clamp(20px, 3vw, 40px); }
.crumbs a { color: var(--text-dim); } .crumbs a:hover { color: var(--gold-light); }
.case-title { margin-inline: 0; }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px 32px; margin-top: clamp(28px, 4vw, 56px);
  padding-top: 24px; border-top: 1px solid var(--line);
}
.case-meta dt { color: var(--text-faint); font-size: var(--step--1); margin-bottom: 4px; }
.case-meta dd { color: var(--cream); }

.case-cover { margin: 0; padding-inline: var(--gutter); }
.case-cover .g-open { display: block; width: 100%; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.case-cover-inner { height: clamp(320px, 62vw, 92vh); overflow: hidden; background: var(--espresso); }
.case-cover-inner img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.case-cover--device .case-cover-inner {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(182,154,88,.25), transparent 70%),
    linear-gradient(180deg, var(--espresso-2), var(--espresso));
}
.case-cover--device .case-cover-inner img { object-fit: contain; height: 100%; padding: 4% 6%; filter: drop-shadow(0 50px 60px rgba(0,0,0,.6)); }

.case-overview-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 1000px) { .case-overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.case-h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-2); line-height: 1; text-transform: uppercase; margin-bottom: clamp(20px, 2.4vw, 36px); }
.case-h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: var(--step-0); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.case-lead { font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
@media (min-width: 1000px) { .case-lead { font-size: clamp(1.4rem, 1rem + 1vw, 2.1rem); } }
.case-p { color: var(--text-dim); max-width: 52ch; font-size: var(--step-1); line-height: 1.5; }
.case-small { color: var(--text-faint); font-size: var(--step--1); margin: -6px 0 18px; }
.case-note { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--gold); color: var(--text-dim); font-size: var(--step--1); max-width: 60ch; }
.case-side { display: grid; gap: 40px; align-content: start; }
.case-stat {
  padding: clamp(22px, 2.4vw, 36px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(182,154,88,.16), rgba(34,26,20,.6));
  border: 1px solid var(--glass-edge);
}
.case-stat b {
  display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .9;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-stat p { margin-top: 12px; color: var(--text-dim); }
.case-list { display: grid; }
.case-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--cream); }
.case-list li:first-child { border-top: 1px solid var(--line); }

/* gallery */
.gallery {
  display: grid; gap: clamp(10px, 1.2vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  grid-auto-flow: dense;
}
@media (min-width: 900px) { .g-wide { grid-column: span 2; } .g-tall { grid-row: span 2; } }
.g-item { margin: 0; display: grid; gap: 10px; align-content: start; }
.g-open { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--espresso); border: 1px solid var(--line); cursor: zoom-in; }
.g-open img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.g-open:hover img { transform: scale(1.03); }
.g-trans .g-open { padding: clamp(20px, 4vw, 56px); background: radial-gradient(70% 70% at 50% 50%, rgba(182,154,88,.16), transparent 70%), var(--espresso); }
.g-tall .g-open { height: 100%; }
.g-tall .g-open img { height: 100%; object-fit: cover; object-position: 50% 0; }
.g-item figcaption { color: var(--text-faint); font-size: .82rem; }

/* FASS social: phone feed + post systems */
.social-intro { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .social-intro { grid-template-columns: auto 1fr; } }
.phone {
  width: clamp(220px, 22vw, 300px); aspect-ratio: 9 / 19; margin-inline: auto;
  padding: 10px; border-radius: 44px;
  background: linear-gradient(145deg, #3a3029, #120e0b);
  box-shadow: inset 0 0 0 1px rgba(251,231,178,.18), 0 50px 80px -30px rgba(0,0,0,.9);
}
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone-feed { display: grid; gap: 6px; animation: feed 40s linear infinite; }
.phone-feed img { width: 100%; height: auto; aspect-ratio: 1; }
@keyframes feed { to { transform: translateY(-50%); } }
.phone:hover .phone-feed { animation-play-state: paused; }
.post-system { margin-top: clamp(40px, 5vw, 72px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: clamp(8px, 1vw, 16px); }
.post-system--single .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 280px)); }
.post-grid .g-open { border-radius: 12px; }

/* STRIDE process */
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; margin-bottom: clamp(40px, 5vw, 72px); }
.steps li { padding: 22px; border-radius: var(--radius-md); background: var(--espresso); border: 1px solid var(--line); position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 1px; background: var(--gold);
}
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light); font-size: .82rem; font-weight: 600; margin-bottom: 14px;
}
.steps h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: var(--step-0); }
.steps p { color: var(--text-dim); font-size: var(--step--1); margin-top: 6px; }
.compare { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr auto .8fr; } }
.compare figure { margin: 0; display: grid; gap: 12px; }
.compare figcaption { display: grid; }
.compare figcaption b { font-weight: 600; }
.compare figcaption span { color: var(--text-faint); font-size: var(--step--1); }
.compare-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); justify-self: center; }
.compare-arrow svg { width: 20px; height: 20px; }
@media (max-width: 899px) { .compare-arrow { transform: rotate(90deg); } }

/* next project */
.next-project { border-top: 1px solid var(--line); }
.next-link {
  position: relative; display: grid; gap: 10px; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 9vw, 160px) var(--gutter);
}
.next-label { color: var(--text-dim); font-size: var(--step--1); }
.next-title { font-size: clamp(2.4rem, 1rem + 6vw, 8rem); transition: color .4s, transform .8s var(--ease-out); }
.next-media {
  position: absolute; z-index: -1; right: var(--gutter); top: 50%;
  width: min(42vw, 640px); aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  translate: 0 -50%; opacity: 0; scale: .9; rotate: 3deg;
  transition: opacity .5s, scale .8s var(--ease-out), rotate .8s var(--ease-out);
}
.next-media img { width: 100%; height: 100%; object-fit: cover; }
.next-go {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); margin-top: 16px;
  transition: background .35s, color .35s, transform .5s var(--ease-out);
}
.next-go svg { width: 22px; height: 22px; }
.next-link:hover .next-media, .next-link:focus-visible .next-media { opacity: .55; scale: 1; rotate: 0deg; }
.next-link:hover .next-title, .next-link:focus-visible .next-title { color: var(--gold-light); transform: translateX(12px); }
.next-link:hover .next-go, .next-link:focus-visible .next-go { background: var(--gold-light); color: var(--black); transform: rotate(-45deg); }
.next-alt { padding-bottom: 48px; }

/* ---------- About ---------- */
.about-hero {
  display: grid; gap: clamp(40px, 6vw, 100px); align-items: center;
  padding-top: clamp(120px, 14vw, 200px); padding-bottom: clamp(40px, 6vw, 96px);
}
@media (min-width: 1000px) { .about-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.about-title { font-size: clamp(3rem, 1.4rem + 7vw, 9.5rem); }
.about-lead { margin-top: clamp(24px, 3vw, 40px); font-size: var(--step-2); line-height: 1.25; max-width: 26ch; color: var(--cream); }
.about-p { margin-top: 20px; color: var(--text-dim); max-width: 58ch; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.portrait-wrap { position: relative; max-width: 560px; width: 100%; justify-self: center; perspective: 1200px; }
.portrait {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-edge);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out);
  box-shadow: 0 60px 100px -40px rgba(0,0,0,.9);
}
.portrait img { width: 100%; height: auto; }
.portrait-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(251,231,178,.45), transparent 50%);
}
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.portrait-card {
  position: absolute; left: -16px; bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
}
@media (max-width: 600px) { .portrait-card { left: 12px; bottom: 12px; } }
.portrait-card img { width: 18px; height: 33px; }
.portrait-card p { display: grid; font-size: var(--step--1); line-height: 1.35; }
.portrait-card b { font-weight: 600; }
.portrait-card span { color: var(--text-dim); }

.timeline { position: relative; display: grid; gap: 0; padding-left: 28px; }
.timeline-line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--tl, 0) * 100%); background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.job { position: relative; display: grid; gap: 8px 48px; padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.job::before {
  content: ""; position: absolute; left: -28px; top: 36px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--gold);
}
@media (min-width: 900px) { .job { grid-template-columns: 180px 1fr; } }
.job-when { color: var(--gold-light); font-size: var(--step--1); font-weight: 600; padding-top: 6px; }
.job-role { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: var(--step-1); text-transform: uppercase; line-height: 1.15; }
.job-org { color: var(--text-dim); margin-top: 4px; }
.job-points { margin-top: 14px; display: grid; gap: 8px; max-width: 70ch; }
.job-points li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: var(--step--1); line-height: 1.6; }
.job-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--gold); }

.about-cols { display: grid; gap: clamp(56px, 7vw, 120px); }
@media (min-width: 1000px) { .about-cols { grid-template-columns: 1fr 1.2fr; } }
.about-h2 { font-size: var(--step-3); margin-bottom: 28px; }
.edu-item { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.cred-list { display: grid; }
.cred-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cred-list li:first-child { border-top: 1px solid var(--line); }
.cred-list span { color: var(--text-dim); font-size: var(--step--1); }
.skill-group + .skill-group { margin-top: 32px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-size: var(--step--1); color: var(--cream);
  transition: background .3s, color .3s, border-color .3s;
}
.pill-list li:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.tool-grid li {
  --px: 50%; --py: 50%;
  position: relative; overflow: hidden;
  padding: 22px 20px; border-radius: var(--radius-md);
  background: var(--espresso); border: 1px solid var(--line);
  font-weight: 500;
}
.tool-grid li::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--px) var(--py), rgba(251,231,178,.16), transparent 60%);
}
.tool-grid li:hover::before { opacity: 1; }
.cta-band { text-align: left; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: var(--step-4); }
.cta-band p { margin-top: 18px; color: var(--text-dim); font-size: var(--step-1); max-width: 40ch; }

/* ---------- Contact ---------- */
.contact-page { position: relative; isolation: isolate; min-height: 100vh; padding-bottom: var(--section-y); overflow: hidden; }
.contact-bg { position: absolute; inset: -10% -5% auto; height: 120%; z-index: -1; opacity: .7; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,6,5,.35), rgba(8,6,5,.65) 55%, var(--black) 92%); }
.contact-hero { padding-top: clamp(130px, 16vw, 230px); padding-bottom: clamp(32px, 4vw, 64px); }
.contact-title { margin-inline: 0; color: var(--white); }
.contact-intro { margin-top: 24px; font-size: var(--step-1); color: var(--text-dim); max-width: 46ch; }
.contact-bento {
  display: grid; gap: clamp(10px, 1.2vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1000px) { .contact-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cb {
  --px: 50%; --py: 50%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: clamp(150px, 14vw, 220px);
  padding: clamp(18px, 2vw, 30px); border-radius: var(--radius-lg);
  text-align: left; color: var(--cream);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.cb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--px) var(--py), rgba(251,231,178,.16), transparent 55%);
}
.cb:hover::before, .cb:focus-visible::before { opacity: 1; }
a.cb:hover, button.cb:hover { border-color: rgba(251,231,178,.35); transform: translateY(-3px); }
.cb--email { grid-column: 1 / -1; min-height: clamp(200px, 20vw, 300px); }
@media (min-width: 1000px) { .cb--email { grid-column: span 3; grid-row: span 1; } }
.cb-label { color: var(--text-faint); font-size: var(--step--1); }
.cb-big { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, .6rem + 4.2vw, 5rem); line-height: 1; word-break: break-all; color: var(--white); }
.cb-big .at { color: var(--gold); }
.cb-mid { font-size: var(--step-1); font-weight: 600; }
.cb-small { color: var(--text-dim); font-size: var(--step--1); margin-top: -12px; }
.cb-go {
  position: absolute; top: clamp(18px, 2vw, 30px); right: clamp(18px, 2vw, 30px);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: background .3s, color .3s, transform .5s var(--ease-out);
}
.cb-go svg { width: 18px; height: 18px; }
a.cb:hover .cb-go { background: var(--gold-light); color: var(--black); }
.cb--email:hover .cb-go { transform: rotate(-45deg); }
.cb--copy[data-state="copied"] { border-color: var(--gold-light); }
.cb--copy[data-state="copied"] .cb-mid { color: var(--gold-light); }

/* fitted headings on inner pages align left with the content */
.page-title, .case-title, .contact-title { margin-inline: 0; }
.explore { justify-self: start; }

/* covers from smaller source files: sharp image over its own blurred glow */
.case-cover--framed .case-cover-inner { position: relative; display: grid; place-items: center; padding: clamp(16px, 3vw, 48px); }
.cover-glow { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(60px) saturate(120%); opacity: .45; }
.case-cover--framed .case-cover-inner img {
  position: relative; width: auto; height: 100%; max-height: var(--nh); max-width: 100%;
  object-fit: contain; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
/* FASS social cover: three rows of posts drifting in opposite directions */
.case-cover--wall .case-cover-inner {
  display: grid; align-content: center; gap: 12px; padding-block: 12px;
  background: radial-gradient(70% 70% at 50% 50%, rgba(182,154,88,.18), transparent 70%), var(--espresso);
}
.wall-row { overflow: hidden; }
.wall-track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row:nth-child(2) .wall-track { animation-direction: reverse; animation-duration: 80s; }
.wall-row:nth-child(3) .wall-track { animation-duration: 90s; }
.wall-track img { width: clamp(150px, 15vw, 260px); height: auto; aspect-ratio: 1; border-radius: 12px; flex: none; }
.case-cover--wall { padding-inline: var(--gutter); }
.case-cover--wall .case-cover-inner { border-radius: var(--radius-lg); overflow: hidden; height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- refinements after review --- */
.about-title { font-size: clamp(2.4rem, 12vw, 6rem); }
@media (min-width: 1000px) { .about-title { font-size: min(5.4vw, 9rem); } }
.cb-big { word-break: normal; overflow-wrap: anywhere; }
.cb-mid { white-space: nowrap; }
@media (max-width: 560px) {
  .contact-bento { grid-template-columns: 1fr; }
  .cb { min-height: 120px; }
  .cb-big { font-size: 5.5vw; }
}
