/* Profile one-pager — matches the "Profile v2" design. */
:root {
  --ink: #1c1c1c;
  --paper: #fbfbf9;
  --stone: #ebeae5;
  --steel: #909395;
  --lime: #c8f03c;
  --rule: #c9c8c3;
  --hover: #f3f2ee;
  --muted: #5c5d5a; /* 5.6:1 on --hover, 6.4:1 on --paper */
  --gutter: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  font-family: Archivo, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--stone); color: var(--ink); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { min-height: 100vh; overflow-x: clip; }
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--lime); color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 50; background: var(--ink); color: var(--paper);
  border-radius: 99px; padding: 6px 16px; font-size: 18px; font-weight: 300; text-transform: uppercase;
}
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
}
.site-header .brand { display: flex; align-items: center; padding: 12px var(--gutter); border-right: 1px solid var(--ink); }
.monogram { border: 1.5px solid var(--ink); padding: 3px 6px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.role-tabs { display: flex; flex-wrap: wrap; flex: 1; min-width: 0; }
.role-tab {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-right: 1px solid var(--ink); transition: background .25s;
}
.role-tab:hover { background: var(--hover); }
.role-tab[aria-pressed="true"] { background: var(--lime); }
.role-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
/* Capsule buttons: large thin type that fills the capsule. */
.pill {
  display: inline-flex; align-items: center; gap: .3em; min-height: 32px; background: var(--ink); color: var(--paper);
  border-radius: 99px; padding: 3px 14px 4px; transition: background .2s;
  font-size: 20px; font-weight: 300; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 2px var(--paper); }
.to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 40; box-shadow: 0 0 0 1px var(--paper); }
.pill:hover { background: #000; color: var(--paper); }

main { transition: opacity .25s ease; }
main.fading { opacity: 0; }

/* ---------- Big stacked section titles ---------- */
.stack {
  font-size: clamp(52px, 9.5vw, 156px); font-weight: 600;
  letter-spacing: -.045em; line-height: .86; text-transform: uppercase;
}
.stack .row { position: relative; padding: .04em var(--gutter) 0; overflow: hidden; }
.stack .row > span:first-child { display: block; padding-right: 40px; }
.stack .row.clip { max-height: .6em; transition: max-height .55s var(--ease); }
.stack:hover .row.clip, .stack:focus-within .row.clip { max-height: 1.2em; }
.stack .row:last-child { padding-bottom: .06em; }
.bg-steel { background: var(--steel); }
.bg-lime { background: var(--lime); }
.bg-paper { background: var(--paper); }
.bg-stone { background: var(--stone); }

.section-pad { padding-bottom: clamp(48px, 6vw, 96px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }

/* ---------- 01 Intro ---------- */
.intro-body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 96px);
}
.intro-side { display: flex; flex-direction: column; gap: 20px; }
.ruled-list { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.ruled-list > span { border-bottom: 1px solid var(--ink); padding: 2px 0; }
.portrait { aspect-ratio: 405 / 720; width: 100%; max-width: 360px; margin: 0; overflow: hidden; background: var(--steel); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-copy { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.intro-copy p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; text-wrap: pretty; }

/* ---------- Image placeholder ---------- */
.slot {
  width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(28,28,28,.06) 0 1px, transparent 1px 10px), rgba(251,251,249,.35);
  border: 1px solid rgba(28,28,28,.25);
  font-size: 12px; font-weight: 600; text-transform: uppercase; text-align: center; padding: 8px;
}
.slot:has(img) { padding: 0; border: 0; background: none; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 02 Work ---------- */
/* Four samples side by side at 1920; wraps on narrower screens. */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: clamp(24px, 3vw, 48px); border-top: 1px solid var(--ink);
}
.card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px var(--gutter) 20px; border-right: 1px solid var(--ink); }
.card .letter { font-size: 13px; font-weight: 700; }
.card .count { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; border-top: 1px solid var(--ink); padding-top: 10px; }
.card h3 {
  margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; text-transform: uppercase; line-height: 1.05;
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px;
}
.card:last-child { border-right: 0; }
/* Drawn rule, not text-decoration, so non-link text isn't mistaken for a link. */
.card h3 span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.card .media { aspect-ratio: 1; width: 100%; }
.slot.loop { position: relative; padding: 0; border: 0; background: var(--ink); }
.slot.loop video { width: 100%; height: 100%; object-fit: cover; display: block; }
.loop-btn { position: absolute; left: 10px; bottom: 10px; border: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--paper); }
.card .type { display: flex; gap: 10px; margin-top: auto; }
.center-cta { display: flex; justify-content: center; padding: 32px 16px 48px; }

/* ---------- 03 Capabilities ---------- */
.toolkit { padding: 20px var(--gutter); display: flex; flex-direction: column; font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; text-transform: uppercase; line-height: 1.15; }
.toolkit span { border-bottom: 1px solid var(--ink); padding: 2px 0; align-self: start; }
.skills { padding: 0 var(--gutter); display: flex; flex-direction: column; }
.skill {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px;
  padding: 18px 0 22px; border-bottom: 1px solid var(--rule); transition: background .25s;
}
.skill:hover { background: var(--hover); }
.skill .n, .skill .t { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; }
.skill .body { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--rule); padding-left: 16px; }
.skill .t { text-transform: uppercase; line-height: 1; }
.skill .d { font-size: 12px; line-height: 1.4; max-width: 34ch; }
.highlight { display: flex; flex-direction: column; gap: 6px; padding-top: 40px; }
.highlight .tag { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; text-transform: uppercase; background: var(--lime); align-self: start; padding: 0 4px; }
.highlight .name { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.highlight .kind { font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; align-self: start; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); margin-top: 40px; }
.stats > div { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0 12px; }
.stats > div:first-child { padding: 12px 12px 0 0; border-right: 1px solid var(--rule); }
.stats strong { font-size: clamp(22px, 2vw, 30px); font-weight: 700; text-transform: uppercase; }

/* ---------- 04 Employment ---------- */
.emp-grid { padding: 32px var(--gutter) 0; }
.refs { padding-top: clamp(48px, 5vw, 80px); }
.refs[hidden] { display: none; }
.ref-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.ref { margin: 0; padding: 16px 0 20px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.ref blockquote { margin: 0; }
.ref p { margin: 0; font-size: clamp(24px, 2.2vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; max-width: 40ch; text-wrap: pretty; }
.ref.long p { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.3; max-width: 58ch; }
.ref figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ref figcaption strong { font-weight: 700; }
.meta-row { display: flex; gap: 48px; }
.jobs { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--ink); }
.job-head {
  all: unset; cursor: pointer; box-sizing: border-box; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0;
}
.job-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.job-head .title { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.job-head .sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.job-body.open { grid-template-rows: 1fr; }
.job-body > div { overflow: hidden; min-height: 0; }
.job-body ul { margin: 0; padding: 0 0 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; max-width: 60ch; }

/* ---------- 05 Clients ---------- */
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.client {
  border-bottom: 1px solid var(--rule); padding: 2px 0;
  font-size: clamp(20px, 2vw, 28px); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: -.01em;
}

/* ---------- 06 Contact ---------- */
.contact-wrap { padding: 32px var(--gutter) 0; }
.contact-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: var(--paper); }
.contact-tab {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; text-transform: uppercase;
  background: var(--hover); color: var(--muted);
}
.contact-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.contact-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.contact-panel { background: var(--paper); padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 24px; }
.contact-panel[hidden] { display: none; }
.contact-panel p { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; max-width: 60ch; line-height: 1.4; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.footer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px;
  padding: clamp(40px, 5vw, 72px) var(--gutter) 0; background: var(--paper); margin-top: clamp(40px, 5vw, 72px);
}
.footer .monogram { align-self: start; justify-self: start; font-size: 20px; }
.footer .sign { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; text-transform: uppercase; line-height: 1.05; letter-spacing: -.01em; }
.footer .col { display: flex; flex-direction: column; gap: 32px; }
.contact-rows { display: flex; flex-direction: column; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.contact-rows a {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: -1px; padding: 9px 0; transition: padding .25s;
}
.contact-rows a:hover { padding-left: 8px; }
.footer .base { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 56px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
