:root {
  --bg: #ffffff;
  --tile: #f4f4f3;
  --tile-hover: #eeeeec;
  --ink: #0c0c0c;
  --muted: #86868a;
  --soft: #5c5c60;
  --accent: #ff6b3d;
  --accent-ink: #2a0f05;
  --gap: 10px;
  --radius: 12px;
  --side: 354px;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Frame ---------- */
.page {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  align-items: start;
}
.main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.tile {
  position: relative;
  overflow: hidden;
  background: var(--tile);
  border-radius: var(--radius);
  animation: rise 0.6s var(--ease) both;
}
.tile.text { padding: 20px; }
.tile.media > img, .tile.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.side .tile:nth-child(2) { animation-delay: 0.05s; }
.side .tile:nth-child(3) { animation-delay: 0.1s; }
.main > :nth-child(1) .tile, .main > .tile:nth-child(1) { animation-delay: 0.08s; }
.main > :nth-child(2) .tile, .main > .tile:nth-child(2) { animation-delay: 0.16s; }

/* ---------- Sidebar ---------- */
.side {
  position: sticky;
  top: var(--gap);
  height: calc(100vh - 2 * var(--gap));
  height: calc(100dvh - 2 * var(--gap));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.name-tile {
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.name {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.name a { text-decoration: none; }

.side .tile.text { padding: 22px; }
.bio-tile p { font-size: 15px; line-height: 1.4; }
.bio-tile p a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.bio-tile p a:hover { color: var(--ink); }
.pills { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.pills .pill { padding: 9px 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.pill:hover { background: var(--ink); color: #fff; }
.pill:active { transform: scale(0.96); }
.pill.active { background: var(--accent); color: var(--accent-ink); }
.pill.solid { background: var(--ink); color: #fff; }
.pill.solid:hover { background: var(--accent); color: var(--accent-ink); }

.stat-tile .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.live-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.stat-num {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lists-tile { font-size: 13.5px; }
.lists-tile a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  line-height: 1.3;
  text-decoration: none;
}
.lists-tile li:first-child a { padding-top: 0; }
.lists-tile li:last-child a { padding-bottom: 0; }
.lists-tile .where { flex: none; }
.lists-tile .handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.2s;
}
.lists-tile a:hover .handle { color: var(--ink); }

/* ---------- Shared content bits ---------- */
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.eyebrow, .kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  font-size: 14px;
  margin-top: 30px;
}
.strip h2 { font-size: 14px; font-weight: 500; }

/* ---------- Home: intro bento ---------- */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-areas:
    "statement statement specs"
    "portrait  role      specs";
  gap: var(--gap);
}
.statement { grid-area: statement; display: flex; flex-direction: column; min-height: 300px; }
.statement .big {
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(1.5rem, 2.25vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}
.statement .big strong { font-weight: 500; color: var(--ink); }
.statement .small { margin-top: 18px; color: var(--soft); max-width: 46em; }
.portrait { grid-area: portrait; min-height: 240px; }
.portrait > img { position: absolute; inset: 0; object-position: 50% 30%; }

.specs-stack { grid-area: specs; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.specs-shot { min-height: 220px; }
.specs-shot > img, .specs-shot > video { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.specs-shot:hover > img, .specs-shot:hover > video { transform: scale(1.04); }
/* Name tag, bottom right, shown on hover only. */
.shot-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.specs-shot:hover .shot-label, .cv-photo:hover .shot-label { opacity: 1; transform: none; }

.role { grid-area: role; }
.role, .feature { display: flex; flex-direction: column; align-items: flex-start; }
.role h2, .feature h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 28px;
}
.meta { color: var(--muted); margin: 6px 0 16px; }
.role p:not(.eyebrow):not(.meta), .feature p:not(.eyebrow):not(.meta) { color: var(--soft); margin-bottom: 10px; max-width: 36em; }
.feature strong { color: var(--ink); font-weight: 500; }
.role .pill, .feature .pill { margin-top: auto; }
.role > p:last-of-type, .feature .awards { margin-bottom: 22px; }

/* ---------- Home: featured ---------- */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  grid-template-areas:
    "video feature"
    "shots feature";
  gap: var(--gap);
}
.feature-video { grid-area: video; aspect-ratio: 16 / 9; background: #0c0c0c; }
.feature { grid-area: feature; }
.awards { font-size: 14px; color: var(--soft); width: 100%; margin-top: 6px; }
.awards li { padding: 8px 0; border-top: 1px solid rgba(12, 12, 12, 0.08); }
.shots { grid-area: shots; display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots .tile { aspect-ratio: 16 / 10; }
.shots .tile > img { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.shots .tile:hover > img { transform: scale(1.04); }

/* ---------- Work tiles ---------- */
.work { cursor: default; }
.work .m { overflow: hidden; background: #e9e9e7; }
.work .m img, .work .m video {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}
.row .work .m { aspect-ratio: 16 / 10; }
.row .work .m img, .row .work .m video { height: 100%; object-fit: cover; }

.masonry { columns: 3; column-gap: var(--gap); margin-bottom: calc(-1 * var(--gap)); }
.masonry > .tile { break-inside: avoid; margin-bottom: var(--gap); }

.label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.info { padding: 14px 16px 16px; }
.info h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin: 3px 0 6px; }
.info p:not(.kicker) { font-size: 14px; color: var(--soft); line-height: 1.38; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; }
.tags li {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.06);
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 500;
}
.more {
  display: inline-block;
  margin-top: 11px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pointer devices: image-only tiles, details slide in on hover / focus. */
@media (hover: hover) and (min-width: 1021px) {
  .info {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.25s;
  }
  .work:hover .info, .work:focus .info, .work:focus-within .info {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .work:hover .label, .work:focus .label, .work:focus-within .label { opacity: 0; }
  .work:hover .m img, .work:hover .m video { transform: scale(1.035); }
}
/* Touch / small screens: details sit under the image. */
@media (hover: none), (max-width: 1020px) {
  .label { display: none; }
}

/* ---------- Quote ---------- */
.quote { padding: 90px 24px; text-align: center; margin-top: 30px; }
.quote blockquote {
  max-width: 24em;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- CV ---------- */
.cv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.cv-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.cv-tile { padding-bottom: 8px; }
.cv-tile h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  padding-bottom: 56px;
}
.cv-group {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 0 8px;
}
.cv-tile h2 + .cv-group { padding-top: 0; }
.job, .edu, .award { padding: 12px 0 13px; border-top: 1px solid rgba(12, 12, 12, 0.08); }
.job h3, .edu h3, .award h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.job p, .edu p, .award p { color: var(--soft); font-size: 14px; margin-top: 2px; }
.job p.when, .edu p.when { color: var(--muted); }
.cv-photo { aspect-ratio: 4 / 3; }
.cv-photo > img { transition: transform 0.7s var(--ease); }
.cv-photo:hover > img { transform: scale(1.04); }

/* ---------- Inspirations ---------- */
.page-title { display: flex; flex-direction: column; min-height: 260px; }
.page-title h1 {
  margin-top: auto;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}
.insp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.insp { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: space-between; min-height: 250px; transition: background 0.25s; }
.insp:hover { background: var(--tile-hover); }
.insp h2 { font-size: 14px; font-weight: 500; }
.insp ul { width: 100%; margin-top: 44px; }
.insp li {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding: 3px 0;
  color: var(--soft);
  transition: color 0.2s;
}
.insp li:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .intro {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    grid-template-areas:
      "statement statement"
      "portrait  role"
      "specs     specs";
  }
  .specs-stack { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs-shot { min-height: 0; aspect-ratio: 16 / 9; }
  .featured {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "video" "shots" "feature";
  }
  .insp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 2; }
}
@media (max-height: 640px) and (min-width: 1021px) {
  .side { position: static; height: auto; }
}
@media (max-width: 1020px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; }
  .name-tile { flex: none; min-height: 0; padding: 40px 20px 20px; }
  .name { font-size: 2rem; }
  .side .tile.text { padding: 20px; }
  .pills { flex-direction: row; flex-wrap: wrap; }
  .pills .pill { padding: 7px 13px; }
  .lists-tile { font-size: 14px; }
  .strip { margin-top: 20px; }
  .quote { margin-top: 20px; padding: 64px 20px; }
  .cv-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cv-col:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .row, .cv-cols { grid-template-columns: minmax(0, 1fr); }
  .masonry { columns: 1; }
  .intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "statement" "role" "specs";
  }
  /* Small round portrait sits in the corner of the statement tile. */
  .portrait {
    grid-area: auto;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 84px;
    height: 84px;
    min-height: 0;
    border-radius: 50%;
    z-index: 1;
  }
  .statement { min-height: 0; }
  .statement .eyebrow { max-width: calc(100% - 100px); }
  .statement .big { padding-top: 96px; }
  .specs-stack { grid-template-columns: minmax(0, 1fr); }
  .cv-tile h2 { padding-bottom: 32px; }
  .page-title { min-height: 180px; }
  .insp { min-height: 0; }
  .insp ul { margin-top: 28px; }
}
@media (max-width: 480px) {
  .insp-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .live-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
