/* ==========================================================================
   Portfolio — dark / technical
   Colors and type are defined once here as variables.
   ========================================================================== */

:root {
  --bg: #0c0d0f;
  --surface: #141518;
  --surface-2: #1b1d21;
  --line: #26282d;
  --line-strong: #383b42;
  --text: #ecebe8;
  --muted: #9a9ea6;
  --faint: #6b6f77;
  --accent: #ff6a2b;          /* single signal color — used sparingly */

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); margin: 0 0 20px; }
.label { color: var(--muted); margin: 0; }
.idx { color: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; box-shadow: 0 0 0 4px rgba(255, 106, 43, .15); }

.display { font-size: clamp(38px, 6.4vw, 92px); letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; }
.display-sm { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.08; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 15, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.nav-open { background: rgba(12, 13, 15, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-role { color: var(--muted); font-size: 11px; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { position: relative; font-size: 15px; color: var(--muted); transition: color .2s; padding: 6px 0; }
.site-nav a .idx { font-size: 10px; margin-right: 6px; vertical-align: 1px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: rgba(12, 13, 15, .96); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .site-nav a.is-active::after { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(64px, 12vw, 160px) 0 clamp(56px, 8vw, 104px); }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 80px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta dt { color: var(--faint); margin-bottom: 6px; }
.hero-meta dd { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 760px) { .hero-meta { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Work grid ---------- */
.work { padding-bottom: clamp(80px, 10vw, 140px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-head h2 .mono { color: var(--faint); margin-left: 8px; vertical-align: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 2.4vw, 32px); }
.card { display: block; min-width: 0; }
.card[hidden] { display: none; }
.card-featured { grid-column: 1 / -1; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.card-featured .card-media { aspect-ratio: 16 / 8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .4s; }
.card:hover .card-media img { transform: scale(1.035); }
.card-view { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: rgba(12, 13, 15, .82); border: 1px solid var(--line-strong); border-radius: 100px; opacity: 0; transform: translateY(6px); transition: all .35s var(--ease); }
.card:hover .card-view, .card:focus-visible .card-view { opacity: 1; transform: none; }
.card-info { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding-top: 16px; }
.card-info h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; }
.card-featured .card-info h3 { font-size: clamp(22px, 2.4vw, 32px); }
.card-info .meta { color: var(--muted); text-align: right; }
.card-summary { color: var(--muted); max-width: 60ch; margin: 8px 0 0; padding-left: calc(2ch + 14px); }
.card-placeholder .card-media { border: 1px dashed var(--line-strong); }
.card-placeholder h3 { color: var(--faint); }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .card-featured .card-media { aspect-ratio: 4 / 3; }
  .card-summary { padding-left: 0; }
  .card-view { opacity: 1; transform: none; }
}

/* Missing-image placeholder */
.ph {
  display: grid; place-items: center; text-align: center; width: 100%; height: 100%; min-height: 220px;
  color: var(--faint);
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}
.ph span { background: var(--surface); padding: 8px 12px; font-size: 11px; word-break: break-all; }

/* ---------- Case study ---------- */
.cs-head { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px); }
.back { display: inline-block; color: var(--muted); margin-bottom: clamp(32px, 5vw, 64px); transition: color .2s; }
.back:hover { color: var(--text); }
.cs-head .display { max-width: 18ch; }
.lede { font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); max-width: 44ch; margin: 24px 0 0; line-height: 1.45; }
.cs-hero img, .cs-hero .ph { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: clamp(32px, 4vw, 56px) 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.specs > div { padding: 18px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { color: var(--faint); margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 15px; line-height: 1.45; }

.cs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: clamp(56px, 8vw, 112px); }
.cs-row > .label { grid-column: 1 / span 3; padding-top: 6px; }
.cs-row > .cs-text, .cs-row > .resume-list, .cs-row > div { grid-column: 4 / span 8; }
.cs-text h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 24px; max-width: 22ch; }
.cs-text p { color: #c9c9c6; max-width: 62ch; }
.cs-text .big { font-size: clamp(20px, 2vw, 27px); line-height: 1.45; color: var(--text); letter-spacing: -0.01em; max-width: 40ch; }
@media (max-width: 860px) {
  .cs-row { grid-template-columns: 1fr; gap: 16px; }
  .cs-row > .label, .cs-row > .cs-text, .cs-row > .resume-list, .cs-row > div { grid-column: 1; }
}

.insights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.insights li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.insights p { margin: 0; }
.insights .finding { color: var(--muted); }
.insights .response { color: var(--text); }
.insights .arrow { color: var(--accent); }
@media (max-width: 640px) {
  .insights li { grid-template-columns: 3ch minmax(0, 1fr); row-gap: 6px; }
  .insights .arrow { display: none; }
  .insights .response { grid-column: 2; }
}

.media-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.fig { margin: 0; min-width: 0; }
.fig-full { grid-column: 1 / -1; }
.fig-half { grid-column: span 6; }
.fig-center { grid-column: 4 / span 6; }
@media (max-width: 760px) { .fig-half, .fig-center { grid-column: 1 / -1; } }
.fig img, .fig video, .fig .ph { width: 100%; border-radius: var(--radius); background: var(--surface); }
.fig-center img { width: 100%; height: auto; }
.zoom { display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.zoom img { transition: transform .8s var(--ease); }
.zoom:hover img { transform: scale(1.015); }
figcaption { display: flex; gap: 12px; color: var(--muted); padding-top: 12px; font-size: 11px; }
.fig-no { color: var(--faint); }

.next { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(40px, 5vw, 64px); }
.next-link { display: block; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-link .eyebrow { margin-bottom: 12px; }
.next-title { font-size: clamp(30px, 5vw, 68px); letter-spacing: -0.03em; line-height: 1.05; display: block; transition: color .25s; }
.next-title span { display: inline-block; transition: transform .35s var(--ease); color: var(--accent); }
.next-link:hover .next-title span { transform: translateX(10px); }

.lightbox { max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; padding: 56px var(--gutter) 40px; border: 0; background: rgba(8, 8, 9, .96); color: var(--text); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; cursor: zoom-out; border-radius: var(--radius); }
.lb-cap { color: var(--muted); margin: 16px 0 0; }
.lb-close { position: absolute; top: 18px; right: var(--gutter); color: var(--muted); }
.lb-close:hover { color: var(--text); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(80px, 10vw, 140px); align-items: start; }
.about-photo { position: sticky; top: 104px; }
.about-photo img, .about-photo .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-copy h1 { margin-bottom: 32px; max-width: 20ch; }
.about-copy p { color: #c9c9c6; max-width: 58ch; }
.about-lists { display: grid; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-lists .label { margin-bottom: 12px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 420px; } }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 14px; color: #d6d6d3; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 100px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; border: 1px solid var(--text); white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--text); border-color: var(--text); }

/* ---------- Resume ---------- */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: clamp(40px, 7vw, 96px) 0 32px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .muted { margin: 10px 0 0; }
#resume { padding-bottom: clamp(80px, 10vw, 140px); }
.resume-block { padding-top: clamp(40px, 5vw, 64px); }
.resume-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.resume-list li { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.resume-list h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 4px; }
.resume-list p { margin: 0; color: var(--muted); }
.resume-list .mono { color: var(--muted); white-space: nowrap; padding-top: 4px; }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(56px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact .display { max-width: 16ch; }
.status { margin: 28px 0 0; }
.contact-email { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: clamp(40px, 6vw, 72px) 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-email a { font-size: clamp(22px, 3.6vw, 48px); letter-spacing: -0.025em; word-break: break-all; transition: color .2s; }
.contact-email a:hover { color: var(--accent); }
.contact-email .btn { padding: 9px 16px; }
.contact-links { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.contact-links a { display: grid; grid-template-columns: 4ch 1fr auto; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 20px; transition: padding .3s var(--ease), color .2s; }
.contact-links a:hover { padding-left: 8px; }
.contact-links .arrow { color: var(--muted); transition: color .2s; }
.contact-links a:hover .arrow { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0 32px; }
.footer-cta .eyebrow { margin-bottom: 12px; }
.footer-email { font-size: clamp(24px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: 1.1; word-break: break-all; transition: color .2s; }
.footer-email:hover { color: var(--accent); }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 96px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ---------- "More work" link (every page) ---------- */
.site-nav a.nav-ext { color: var(--text); padding: 6px 14px; margin: -0 0 0 4px; border: 1px solid var(--line-strong); border-radius: 100px; transition: border-color .2s, color .2s; }
.site-nav a.nav-ext:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .site-nav a.nav-ext { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 14px 0; color: var(--accent); } }
.footer-ow { margin: 18px 0 0; font-size: 17px; }
.footer-ow a { color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.footer-ow a:hover { color: var(--accent); border-color: var(--accent); }
.card-ow .ow-media { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .3s, background .3s; }
.card-ow .ow-media .mono { color: var(--muted); }
.ow-title { font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.05; max-width: 12ch; }
.ow-arrow { position: absolute; top: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); font-size: 28px; color: var(--accent); transition: transform .35s var(--ease); }
.card-ow:hover .ow-media { border-color: var(--accent); background: var(--surface-2); }
.card-ow:hover .ow-arrow { transform: translate(4px, -4px); }
.next + .next-ow { padding-top: 0; }
.next-ow .next-link { border-top: 0; }


/* ==========================================================================
   Gallery layout (home) — tall image cards, hover to reveal
   ========================================================================== */
.wrap-wide { max-width: 1840px; }

/* Header: menu left, name centered */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 68px; }
.site-nav { gap: clamp(18px, 2vw, 30px); align-items: center; }
.site-nav a { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav a.is-active { color: var(--text); font-weight: 600; }
.site-nav a.is-active::after { display: none; }
.site-nav a.nav-ext { padding: 6px 12px; margin-left: 2px; font-size: 12px; }
.brand { font-size: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; display: block; }
.header-end { display: flex; justify-content: flex-end; align-items: center; }
.header-end .brand-role { color: var(--faint); font-size: 11px; }
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-end { grid-column: 2; grid-row: 1; }
  .header-end .brand-role { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(12, 13, 15, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 20px; letter-spacing: .04em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .site-nav a.nav-ext { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 14px 0; font-size: 20px; color: var(--accent); }
}

.work { padding-top: 4px; }
.home-intro:empty { display: none; }
.home-intro { padding: clamp(24px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.home-tagline { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.03em; line-height: 1.1; max-width: 26ch; margin: 0; text-wrap: balance; }
.filters:not(:empty) { margin: 8px 0 16px; }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

.pcard { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--surface); isolation: isolate; }
.pcard[hidden] { display: none; }
.pcard > img, .pcard > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard > img { filter: grayscale(1) brightness(.72) contrast(1.05); transform: scale(1.001); transition: filter .7s var(--ease), transform 1.4s var(--ease); z-index: -2; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,6,7,.9) 0%, rgba(6,6,7,.55) 28%, rgba(6,6,7,0) 58%); transition: opacity .6s var(--ease); }
.pcard-info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.4vw, 40px); display: grid; justify-items: start; }
.pcard-no { font-size: clamp(46px, 4.2vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: .95; color: rgba(236, 235, 232, .7); font-variant-numeric: tabular-nums; transition: color .5s; }
.pcard-client { margin-top: 12px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; }
.pcard-title { margin-top: 8px; font-size: clamp(16px, 1.25vw, 20px); color: #d9d8d4; }
.pcard-more { display: grid; gap: 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .6s var(--ease), opacity .45s var(--ease), transform .6s var(--ease); }
.pcard-summary { margin-top: 14px; color: #c3c2be; font-size: 15px; line-height: 1.5; max-width: 38ch; }
.pcard-view { color: var(--text); padding-bottom: 2px; border-bottom: 1px solid var(--accent); justify-self: start; }

.pcard:hover > img, .pcard:focus-visible > img { filter: none; transform: scale(1.05); }
.pcard:hover .pcard-no, .pcard:focus-visible .pcard-no { color: var(--accent); }
.pcard:hover .pcard-more, .pcard:focus-visible .pcard-more { max-height: 180px; opacity: 1; transform: none; }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (hover: none) {
  .pcard > img { filter: brightness(.85); }
  .pcard-more { max-height: 180px; opacity: 1; transform: none; }
  .pcard-summary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard > img, .pcard-more, .pcard::after { transition: none; }
  .pcard:hover > img { transform: none; }
}

.pcard.is-empty { background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; background-position: center; border: 1px solid var(--line); }
.pcard.is-empty::after { display: none; }
.pcard.is-empty .pcard-no { color: var(--line-strong); }
.pcard.is-empty .pcard-client { color: var(--faint); }
.pcard.is-empty .pcard-title { color: var(--faint); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.ow-bar { margin-top: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; padding: clamp(22px, 2.6vw, 36px) clamp(22px, 2.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; transition: border-color .3s, background .3s; }
.ow-bar-title { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.ow-bar-arrow { font-size: clamp(24px, 2.4vw, 34px); color: var(--accent); transition: transform .35s var(--ease); }
.ow-bar:hover { border-color: var(--accent); background: var(--surface-2); }
.ow-bar:hover .ow-bar-arrow { transform: translate(4px, -4px); }
@media (max-width: 620px) { .ow-bar { grid-template-columns: 1fr auto; } .ow-bar > .mono { grid-column: 1 / -1; } }
@media (hover: none) { .pcard-more { margin-top: 14px; } }

/* About page */
.about-copy .about-intro { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 28px; max-width: 40ch; text-wrap: pretty; }
.about-block { margin-top: 40px; }
.about-block .label { margin-bottom: 12px; }
.contact-links a { grid-template-columns: 1fr auto; }
.cs-text p:only-child { margin-bottom: 0; }
@media (max-width: 620px) { .resume-list li { flex-direction: column; gap: 6px; } .resume-list .mono { padding-top: 0; } }

/* Home intro line + contact note */
.home-intro { padding: clamp(12px, 2vw, 24px) 0 clamp(16px, 2vw, 24px); }
.home-tagline { font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.005em; line-height: 1.4; color: var(--muted); max-width: none; }
.contact-note { font-size: clamp(18px, 1.6vw, 22px); color: #c9c9c6; max-width: 46ch; margin: 24px 0 0; }
.contact .status { margin-top: 16px; }

/* ---------- Contact page (centered form) ---------- */
.contact-page { max-width: 680px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 120px); text-align: center; }
.contact-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-sub { color: var(--muted); margin: 14px auto 0; max-width: 46ch; }
.contact-icons { list-style: none; margin: 32px 0 40px; padding: 0; display: flex; justify-content: center; gap: 12px; }
.contact-icons a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.contact-icons a:hover { color: var(--text); background: var(--surface-2); }
.contact-icons svg { width: 30px; height: 30px; fill: currentColor; }
.contact-form { text-align: left; display: grid; gap: 22px; }
.contact-form .field { display: grid; gap: 8px; }
.contact-form label { font-size: 14px; font-weight: 600; color: #d6d6d3; }
.contact-form label span { color: var(--accent); margin-left: 2px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 16px; color: #111214; background: #f1f0ed; border: 2px solid transparent; border-radius: 4px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7a7d83; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,43,.25); }
.contact-form [aria-invalid="true"] { border-color: #ff5a5a; }
.field-error { margin: 0; color: #ff8a8a; font-size: 14px; }
.btn-submit { justify-self: start; min-height: 48px; padding: 12px 28px; border: 1px solid var(--text); border-radius: 6px; color: var(--text); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.btn-submit:hover { background: var(--text); color: var(--bg); }
.btn-submit:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; font-size: 15px; }
.form-status.is-ok { color: #7fd6a0; }
.form-status.is-error { color: #ff8a8a; }
.form-status a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 620px) { .btn-submit { justify-self: stretch; } }

/* Footer: "Get in touch" only on the home page, smaller */
.site-footer { padding: clamp(32px, 4vw, 48px) 0 28px; }
.footer-cta .eyebrow { margin-bottom: 8px; }
.footer-email { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em; }
.footer-meta { margin-top: clamp(28px, 3vw, 40px); }
.footer-meta:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
