:root, [data-theme="light"] {
  --bg: #fafaf9;
  --fg: #0d0d0c;
  --muted: #66655f;
  --line: #d6d5d0;       /* solid borders */
  --rail: #c9c8c2;       /* dashed margin lines */
  --soft: #f1f0ec;
  --dot: #2f9e5b;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0b0a;
  --fg: #f4f3ef;
  --muted: #96958f;
  --line: #2b2b28;
  --rail: #33332f;
  --soft: #141413;
  --dot: #4cc47f;
  color-scheme: dark;
}
:root {
  --gutter: clamp(26px, 4.5vw, 56px);
  --pad: clamp(12px, 2vw, 28px);   /* gap between content and the dashed rails */
  --max: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.tx *, html.tx *::before, html.tx *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: 14px; z-index: 100; }
.skip:focus { left: var(--gutter); }

/* ---------- Margin rails (dashed lines down both sides) ---------- */
:root { --bar-h: 53px; }
@media (max-width: 760px) { :root { --bar-h: 100px; } }
.page { position: relative; }
.rails { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rails .wrap, .rails .wrap > i { height: 100%; }
.rails .wrap > i { display: block; margin: 0 calc(var(--pad) * -1); border-left: 1px dashed var(--rail); border-right: 1px dashed var(--rail); }
header.site, main, footer.site { position: relative; z-index: 1; }

/* Horizontal dashed line, full-bleed, with + marks where it meets the rails */
.hline { position: relative; height: 0; scroll-margin-top: var(--bar-h, 53px); }
.hline::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-top: 1px dashed var(--rail); }
.hline i {
  position: absolute; top: -5px; width: 11px; height: 11px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat;
}
.hline i:first-child { left: calc(var(--pad) * -1 - 5px); }
.hline i:last-child { right: calc(var(--pad) * -1 - 5px); }


/* ---------- Hero splash ---------- */
.splash {
  position: absolute; left: 0; top: 0; width: 100%; height: 640px; overflow: hidden;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s ease;
}
.splash.on { opacity: 1; }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash .glow {
  position: absolute; inset: -10%; filter: blur(36px);
  background:
    radial-gradient(34% 52% at 80% 22%, rgba(255, 84, 158, .22), transparent 70%),
    radial-gradient(30% 48% at 92% 42%, rgba(92, 112, 255, .24), transparent 70%),
    radial-gradient(28% 42% at 66% 10%, rgba(255, 184, 56, .22), transparent 70%),
    radial-gradient(26% 38% at 76% 58%, rgba(36, 208, 168, .18), transparent 70%);
}
[data-theme="dark"] .splash .glow {
  background:
    radial-gradient(34% 52% at 80% 22%, rgba(255, 70, 150, .30), transparent 70%),
    radial-gradient(30% 48% at 92% 42%, rgba(80, 100, 255, .34), transparent 70%),
    radial-gradient(28% 42% at 66% 10%, rgba(255, 170, 40, .22), transparent 70%),
    radial-gradient(26% 38% at 76% 58%, rgba(30, 210, 170, .22), transparent 70%);
}

/* ---------- Header bar ---------- */
header.site { position: sticky; top: 0; z-index: 50; }
.bar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch;
  margin: 0 calc(var(--pad) * -1);   /* reach out to the dashed rails */
  min-height: 52px;
  border: 1px solid var(--line); border-top: 0;   /* hangs from the top edge */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  font-size: 14px; font-weight: 500;
}
.bar .side { display: flex; align-items: center; min-width: 0; }
.bar a, .bar button { color: var(--muted); transition: color .2s ease; }
.bar a:hover, .bar button:hover, .bar a[aria-current="page"] { color: var(--fg); }
.brand { color: var(--fg) !important; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; padding: 0 18px; white-space: nowrap; }
.bar nav { display: flex; }
.bar nav a, .bar .contact a { padding: 0 14px; line-height: 52px; }
.contact { display: flex; align-items: stretch; border-left: 1px solid var(--line); }
.contact a + a { border-left: 1px solid var(--line); }
.em-short { display: none; }
.toggle {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer;
}
.toggle svg { width: 17px; height: 17px; }
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { display: none; }
.progress {
  position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px;
  background: var(--fg); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hero (fits the first screen on desktop) ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: 32px clamp(32px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 7vh, 72px) 0 clamp(36px, 7vh, 72px);
}
h1 {
  margin: 0; font-weight: 650;
  font-size: clamp(2.4rem, min(5.2vw, 8.8vh), 4.9rem);
  line-height: 1; letter-spacing: -0.05em;
  max-width: 20ch; text-wrap: balance;
}
h1 .soft { color: var(--muted); font-weight: 500; }
.lede {
  margin: clamp(18px, 3.4vh, 32px) 0 0; max-width: 46ch;
  font-size: clamp(1.02rem, 1.45vw, 1.25rem); line-height: 1.5; letter-spacing: -0.015em; color: var(--muted);
}
.lede strong { color: var(--fg); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 3.8vh, 36px); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  border: 1.5px solid var(--fg);
  transition: background .2s ease, color .2s ease;
}
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.btn svg { width: 14px; height: 14px; }

/* Experience card: layered, with a dashed timeline and a lifted "current" role */
.side-box { padding-top: 6px; --sh-a: rgba(13,13,12,.07); --sh-b: rgba(13,13,12,.16); --hi: rgba(255,255,255,.9); --lift: var(--bg); }
[data-theme="dark"] .side-box { --sh-a: rgba(0,0,0,.35); --sh-b: rgba(0,0,0,.6); --hi: rgba(255,255,255,.07); --lift: #20201e; }
.box {
  position: relative;
  margin: 0 calc(var(--pad) * -1) 0 0;             /* reaches the right rail */
  background: var(--soft); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px var(--sh-a), 0 14px 30px -14px var(--sh-b);
}
/* two sheets peeking out underneath */
.box::before, .box::after {
  content: ""; position: absolute; z-index: -1; height: 100%; border: 1px solid var(--line); background: var(--soft);
  box-shadow: 0 10px 22px -12px var(--sh-b);
}
.box::before { left: 12px; right: 12px; top: 8px; opacity: .85; }
.box::after  { left: 24px; right: 24px; top: 16px; opacity: .6; }

.box-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  background:
    radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1.3px) 0 0 / 9px 9px,
    var(--soft);
}
.box-head span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }

.tl { position: relative; list-style: none; margin: 0; padding: 0 0 12px; }
.tl::before { content: ""; position: absolute; left: 26px; top: 44px; bottom: 34px; border-left: 1px dashed var(--muted); opacity: .55; }
.r {
  position: relative; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 0 12px; align-items: start;
  padding: 13px 15px 13px 11px; margin-left: 0;
  border: 0; transition: background-color .2s ease, box-shadow .25s ease;
}
.r:not(.now):hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.node {
  position: relative; z-index: 1; justify-self: center; margin-top: 7px;
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--soft);
}
.main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c { font-weight: 650; letter-spacing: -0.025em; font-size: 17px; line-height: 1.3; }
.ro { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.y { padding-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.r.now {
  margin: 0 0 8px; padding: 16px 15px 16px 11px;          /* full width: no side gap */
  border-bottom: 1px solid var(--line);
  background: var(--lift);
  box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px var(--sh-a), 0 12px 22px -12px var(--sh-b);
}
.r.now .node { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 12%, transparent); }
.r.now .y { color: var(--fg); padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); margin-top: 1px; }

.me { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.me strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.avatar {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.status { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.status::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* ---------- Sections ---------- */
section.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 14px; align-items: baseline; }
.label .no { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; }

/* ---------- Work cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 0 calc(var(--pad) * -1);   /* reach out to the dashed rails */
  background: var(--line); border: 1px solid var(--line);
}
.card { position: relative; display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--soft); border-bottom: 1px solid var(--line);
  color: color-mix(in srgb, var(--fg) 34%, transparent);
}
.thumb::before {
  content: ""; position: absolute; inset: -8%;
  background: var(--pat); background-size: var(--sz, auto);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 88%);
          mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 88%);
  transition: transform .8s var(--ease);
}
.card:hover .thumb::before { transform: scale(1.07); }
.thumb .idx { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.thumb .go {
  position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--fg);
  opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s ease, transform .25s ease;
}
.thumb .go svg { width: 12px; height: 12px; }
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.info { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.info h3 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.info .desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: 2px; border: 1px solid var(--fg); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
a.card:hover .info h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card.soon { cursor: default; }

/* Project images from the original site */
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: 1; transition: transform .8s var(--ease); }
.thumb.has-img::before { display: none; }
.card:hover .thumb.has-img img { transform: scale(1.04); }
.thumb img.logo { inset: auto; left: 50%; top: 50%; width: 152px; height: auto; object-fit: contain; transform: translate(-50%, -50%); }
.card:hover .thumb img.logo { transform: translate(-50%, -50%); }
.thumb .idx, .thumb .go { z-index: 2; }
.thumb.has-img .idx { left: 12px; bottom: 10px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--fg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Original thumbnail patterns */
.p1 { --pat: radial-gradient(currentColor 1.2px, transparent 1.7px); --sz: 14px 14px; }
.p2 { --pat: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 10px); }
.p3 { --pat: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); --sz: 26px 26px; }
.p4 { --pat: repeating-radial-gradient(circle at 50% 130%, currentColor 0 1px, transparent 1px 15px); }
.p5 { --pat: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px); }
.p6 { --pat: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0); --sz: 22px 22px; color: color-mix(in srgb, var(--fg) 14%, transparent); }
.p7 { --pat: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 9px); }
.p8 { --pat: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 14px); }
.p9 { --pat: radial-gradient(currentColor 3px, transparent 3.6px); --sz: 24px 24px; }

/* ---------- Introduction + capabilities ---------- */
.intro { max-width: 820px; }
.intro p { margin: 0 0 22px; }
.intro .big { font-size: clamp(1.7rem, 3.3vw, 2.65rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 600; }
.intro .small { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 60ch; }
.intro a.mail { color: var(--fg); font-weight: 500; border-bottom: 1.5px solid var(--fg); }
.intro a.mail:hover { opacity: .65; }

.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.caps h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.caps ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--bg); }
.caps li { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; }
.caps li:first-child { border-top: 0; }

/* ---------- Footer (inverted) ---------- */
footer.site { margin-top: clamp(24px, 5vw, 64px); background: var(--fg); color: var(--bg); padding: clamp(56px, 8vw, 104px) 0 36px; }
footer.site ::selection { background: var(--bg); color: var(--fg); }
footer.site :focus-visible { outline-color: var(--bg); }
.cta-foot { display: flex; flex-direction: column; gap: 20px; }
.cta-foot p { margin: 0; color: color-mix(in srgb, var(--bg) 60%, transparent); font-size: 15px; font-weight: 500; }
.cta-foot a.mailbig {
  width: fit-content; word-break: break-word; padding-bottom: 6px;
  font-size: clamp(1.6rem, 6vw, 5rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.05;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .45s var(--ease);
}
.cta-foot a.mailbig:hover { background-size: 100% 3px; }
.foot-bar {
  margin-top: clamp(56px, 8vw, 96px); padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--bg) 62%, transparent);
}
.foot-bar nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-bar a:hover { color: var(--bg); }

/* ---------- Motion pre-state (only while the motion library is pending) ---------- */
.pre [data-m]:not(.is-in), .pre .card:not(.is-in) { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .em-full { display: none; }
  .em-short { display: inline; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .box { margin-left: calc(var(--pad) * -1); }   /* stacked: touch both rails */
  h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); }
  .split { grid-template-columns: 1fr; gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "s t" "c c"; }
  .bar .side { grid-area: s; }
  .bar .toggle { grid-area: t; }
  .bar .contact { grid-area: c; border-left: 0; border-top: 1px solid var(--line); }
  .bar .contact a { flex: 1; text-align: center; padding: 0 8px; line-height: 46px; }
  .bar nav { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status::before { animation: none; }
  .thumb::before, .go { transition: none; }
}

/* ======================================================================
   Inner pages: About + case studies
   ====================================================================== */
.more { margin: 8px 0 0 !important; }
.more a, .textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); border-bottom: 1.5px solid var(--fg); padding-bottom: 2px; }
.more a:hover, .textlink:hover { opacity: .65; }
.more svg, .textlink svg { width: 14px; height: 14px; }

/* page header */
.ph { padding: clamp(24px, 5vh, 56px) 0 0; }
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 4.5vh, 44px); font-size: 13px; font-weight: 500; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease; }
.crumb a:hover { color: var(--fg); }
.crumb svg { width: 14px; height: 14px; }
.pill { display: inline-block; padding: 3px 11px; border: 1px solid var(--fg); border-radius: 999px; color: var(--fg); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.ph h1 { font-size: clamp(2.6rem, 8.4vw, 7rem); line-height: .96; max-width: 16ch; }
.ph .sub { margin: clamp(16px, 2.6vw, 28px) 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--muted); }

/* hero image + facts, both reaching the rails */
.bleed { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.hero-shot { margin-top: clamp(28px, 5vh, 56px); border: 1px solid var(--line); background: var(--soft); overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: auto; }
.facts2 { display: flex; flex-wrap: wrap; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: clamp(28px, 5vh, 56px); }
.hero-shot + .facts2 { margin-top: 0; border-top: 0; }
.fc { flex: 1 1 220px; min-width: 0; padding: 18px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.fc.wide { flex-basis: 360px; flex-grow: 2; }
.fk { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.fv { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; overflow-wrap: anywhere; }
.fv a { border-bottom: 1.5px solid var(--fg); }
.fv a:hover { opacity: .65; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.tools li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; }
.tools .ic { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid rgba(0,0,0,.08); }
.tools .ic img { width: 16px; height: 16px; object-fit: contain; display: block; }

/* sections */
.csec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; padding: clamp(48px, 7vw, 96px) 0; }
.csec.has-gal { padding-bottom: clamp(28px, 4vw, 48px); }
.gal-wrap { padding-bottom: clamp(48px, 7vw, 96px); }
.prose { max-width: 780px; }
.prose > * { margin: 0; }
.prose > * + *:not(.subh) { margin-top: 22px; }
.prose p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.65; max-width: 64ch; }
.prose p.lead { color: var(--fg); font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 600; max-width: 28em; }
.prose p.lead.md { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; max-width: 38em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose .subh { margin-top: 44px; font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; color: var(--fg); }
.prose .subh:first-child { margin-top: 0; }

/* bordered lists */
.rows2 { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--bg); counter-reset: r; max-width: 780px; }
.rows2 li { position: relative; padding: 16px 18px 16px 56px; border-top: 1px solid var(--line); counter-increment: r; color: var(--muted); font-size: 16px; line-height: 1.55; }
.rows2 li:first-child { border-top: 0; }
.rows2 li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows2 li strong { color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.rows2.plain li { padding-left: 18px; }
.rows2.plain li::before { display: none; }

/* callouts */
.stat { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border: 1px solid var(--line); background: var(--soft); max-width: 780px; }
.stat .n { font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 650; letter-spacing: -0.06em; line-height: .9; }
.stat p { margin: 0; flex: 1 1 220px; color: var(--fg); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.quote { border: 1px solid var(--line); background: var(--bg); max-width: 780px; box-shadow: 0 14px 30px -18px rgba(13,13,12,.25); }
[data-theme="dark"] .quote { box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
.quote .qh { padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  background: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1.3px) 0 0 / 9px 9px, var(--soft); }
.quote .qb { padding: 18px 20px 20px; }
.quote .qb p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.quote .who { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--rail); }
.quote .who b { display: block; color: var(--fg); font-weight: 600; font-size: 15px; }
.quote .who span { color: var(--muted); font-size: 13.5px; }
.prose p.callout { color: var(--fg); }
.callout { padding: 6px 0 6px 22px; border-left: 2px solid var(--fg); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -0.025em; font-weight: 500; max-width: 780px; }
.callout strong { font-weight: 650; }

/* card grids (needs, ideas) */
.cgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cgrid.c4 { grid-template-columns: repeat(4, 1fr); }
.cgrid.c2 { grid-template-columns: repeat(2, 1fr); }
.cg { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cg .num { font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.cg h3 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.cg p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.cg .ico { width: 64px; height: auto; display: block; }
.cg .ico-wrap { height: 72px; display: flex; align-items: flex-start; }
.cg p.q { color: var(--fg); font-weight: 500; letter-spacing: -0.015em; }

/* galleries */
.gal { border: 1px solid var(--line); background: var(--line); display: grid; gap: 1px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.gal figure { margin: 0; background: var(--soft); }
.gal img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.gal.phones { grid-template-columns: repeat(5, 1fr); }
.gal.phones.c4 { grid-template-columns: repeat(4, 1fr); }
.gal.phones figure { padding: clamp(14px, 2vw, 26px); display: flex; align-items: center; justify-content: center; }
.gal.phones img { border-radius: 0; }
.gal.two { grid-template-columns: repeat(2, 1fr); }

/* carousel */
.car { border: 1px solid var(--line); background: var(--bg); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.car .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; background: var(--soft); }
.car .track::-webkit-scrollbar { display: none; }
.car .slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.car .slide img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.car .ctl { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.car .cnt { padding: 0 18px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.car .btns { display: flex; }
.car button { width: 56px; height: 52px; display: grid; place-items: center; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.car button:hover:not(:disabled) { color: var(--bg); background: var(--fg); }
.car button:disabled { opacity: .35; cursor: default; }
.car button svg { width: 16px; height: 16px; }

/* previous / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.pn a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(22px, 3vw, 36px); background: var(--bg); transition: background-color .25s ease; min-width: 0; }
.pn a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pn a:hover { background: var(--soft); }
.pn .pk { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pn .pt { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.pn .pd { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.pn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.pn a:hover .pt { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.after-pn { padding-bottom: clamp(24px, 4vw, 48px); }

/* about */
.ab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.portrait2 { margin: 0; border: 1px solid var(--line); background: var(--soft); box-shadow: 0 14px 30px -18px rgba(13,13,12,.3); }
[data-theme="dark"] .portrait2 { box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
.portrait2 img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; filter: grayscale(.15); }
.portrait2 figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.links { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); max-width: 780px; }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: 110px minmax(0, 1fr) 18px; gap: 16px; align-items: center; padding: 18px 20px; transition: background-color .2s ease, padding .25s ease; }
.links a:hover { background: var(--soft); padding-left: 26px; }
.links .lk { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.links .lv { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.links svg { width: 16px; height: 16px; color: var(--muted); }

/* lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb .in { width: 100%; height: 100%; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--line); background: var(--soft); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.lb .x { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--fg); cursor: pointer; }
.lb .x svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .csec { grid-template-columns: 1fr; gap: 18px; }
  .ab { grid-template-columns: 1fr; }
  .portrait2 { max-width: 520px; width: 100%; order: -1; }
  .cgrid.c4 { grid-template-columns: repeat(2, 1fr); }
  .gal.phones, .gal.phones.c4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gal.phones, .gal.phones.c4 { grid-template-columns: repeat(2, 1fr); }
  .gal.two { grid-template-columns: 1fr; }
  .cgrid.c2 { grid-template-columns: 1fr; }
  .pn { grid-template-columns: 1fr; }
  .pn a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; align-items: flex-start; }
  .links a { grid-template-columns: 78px minmax(0, 1fr) 16px; gap: 12px; padding: 16px; }
  .rows2 li { padding: 14px 14px 14px 48px; }
  .rows2 li::before { left: 14px; top: 15px; }
  .fc { flex-basis: 100%; }
  .car button { width: 48px; }
}
@media (max-width: 460px) {
  .cgrid.c4 { grid-template-columns: 1fr; }
}

.label small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.label > span:last-child { line-height: 1.35; }
.csec.label-only { grid-template-columns: 1fr; padding-bottom: clamp(24px, 3.5vw, 40px); }
.csec.label-only.has-gal { padding-bottom: clamp(24px, 3.5vw, 40px); }

/* Images: square corners everywhere */
img, picture, canvas.thumb, .thumb, .thumb img, .hero-shot, .hero-shot img, .gal img, .car img, .slide img, .portrait, .portrait img, .lb img, .headshot, .headshot img, .avatar, .avatar img, .portrait2, .portrait2 img, .tools .ic, .tools .ic img { border-radius: 0 !important; }

/* Framer exports bake rounded, transparent corners into hero/card images: overscan so the clipped frame shows only square edges */
.hero-shot { overflow: hidden; }
.hero-shot img { width: 104%; max-width: none; margin: -2% 0 -2% -2%; }
.thumb.has-img img:not(.logo) { transform: scale(1.06); }
.card:hover .thumb.has-img img:not(.logo) { transform: scale(1.1); }

.splash .glow { display: none; }

/* ---------- Interests ---------- */
.tabs {
  position: sticky; top: var(--bar-h, 52px); z-index: 20;
  display: flex; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 16px clamp(14px, 2vw, 24px);
  font: inherit; font-size: 14px; font-weight: 550; letter-spacing: -0.01em; color: var(--muted);
  background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.tab:hover { color: var(--fg); }
.tab .cnt { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .6; }
.tab[aria-selected="true"] { color: var(--bg); background: var(--fg); }
.tab[aria-selected="true"] .cnt { opacity: .7; }

.ipanels { margin: 0 calc(var(--pad) * -1); padding-bottom: clamp(48px, 7vw, 96px); }
.ipanel:not([hidden]) { animation: ifade .45s var(--ease, ease) both; }
@keyframes ifade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.igrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.igrid.poster { grid-template-columns: repeat(3, 1fr); }
.igrid.wide { grid-template-columns: repeat(3, 1fr); }
.icard { background: var(--bg); display: flex; flex-direction: column; }
.ithumb {
  position: relative; overflow: hidden; display: grid; place-items: center; color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.38), transparent 46%),
    linear-gradient(150deg, hsl(var(--h1) 78% 60%), hsl(var(--h2) 72% 48%));
}
.ithumb.poster { aspect-ratio: 2 / 3; }
.ithumb.wide { aspect-ratio: 16 / 10; }
.ithumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.2px); background-size: 14px 14px; opacity: .5; }
.ithumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ithumb .mono { position: relative; z-index: 1; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 650; letter-spacing: -0.06em; text-shadow: 0 2px 24px rgba(0,0,0,.18); }
[data-theme="dark"] .ithumb:not(.has-img) { filter: saturate(.92) brightness(.88); }
.ibody { padding: 18px clamp(16px, 2vw, 24px) 24px; }
.imeta { margin: 0 0 8px; font-size: 12px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ibody h3 { margin: 0 0 8px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.itext { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) { .igrid.poster, .igrid.wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .igrid.poster, .igrid.wide { grid-template-columns: 1fr; } .ithumb.poster { aspect-ratio: 4 / 3; } }
.ithumb.has-img { background: var(--soft); }
.ithumb.has-img::after { display: none; }
.ithumb img { object-position: 50% 0; }

/* about page: tighter label column */
.csec[aria-label="About"], .csec[aria-label="Contact"] { grid-template-columns: 110px minmax(0, 1fr); column-gap: 28px; }
@media (max-width: 960px) { .csec[aria-label="About"], .csec[aria-label="Contact"] { grid-template-columns: 1fr; } }

/* about page: label sits above its content */
.csec[aria-label="About"], .csec[aria-label="Contact"] { grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* about portrait slider */
.portrait2 .pslider { position: relative; }
.ptrack { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.ptrack::-webkit-scrollbar { display: none; }
.pslide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 10 / 11; background: var(--soft); }
.portrait2 .pslide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 35%; }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.pnav.prev { left: 10px; } .pnav.next { right: 10px; }
.pnav svg { width: 16px; height: 16px; }
.pslider:hover .pnav, .pnav:focus-visible { opacity: 1; }
@media (hover: none) { .pnav { opacity: 1; } }
.pnav[disabled] { display: none; }
.portrait2 figcaption { display: flex; justify-content: space-between; align-items: center; }
.pdots { display: flex; gap: 8px; }
.pdots button { width: 22px; height: 4px; padding: 0; border: 0; background: var(--line); cursor: pointer; }
.pdots button[aria-selected="true"] { background: var(--fg); }
@media (prefers-reduced-motion: reduce) { .ptrack { scroll-behavior: auto; } }

/* tool chips keep their circular icon badge (exempt from the sharp-image rule) */
.tools .ic { border-radius: 50% !important; }

/* interests: featured "most anticipated" block */
.ifeature { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--soft); }
.ifeature .ithumb { aspect-ratio: auto; }
.ifeatures { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.ifeatures .ifeature { border-bottom: 0; }
.ifeatures.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ifeatures.n2 .ifeature + .ifeature { border-left: 1px solid var(--line); grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.ifeatures.n2 .ifeature { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.ifeatures.n2 .ifeature h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (max-width: 960px) { .ifeatures.n2 { grid-template-columns: 1fr; } .ifeatures.n2 .ifeature + .ifeature { border-left: 0; border-top: 1px solid var(--line); } }
.ifeature .ibody { padding: 0; }
.ifeature h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 6px; }
.ifeature .itext { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; color: var(--fg); margin-top: 14px; }
.ikick { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .ifeature { grid-template-columns: 1fr; } .ifeature .ithumb { max-width: 240px; } }

/* team milestones: a plain list, not cards */
.mlist { padding: clamp(8px, 2vw, 24px) 0 clamp(24px, 4vw, 48px); }
.mgroup + .mgroup { margin-top: clamp(24px, 4vw, 44px); }
.mteam { margin: 0; padding: 18px clamp(16px, 3vw, 28px) 14px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.03em; border-bottom: 1px solid var(--fg); }
.mgroup ol { list-style: none; margin: 0; padding: 0; }
.mgroup li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; padding: 20px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.mdate { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.mgroup h4 { margin: 0 0 6px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 650; letter-spacing: -0.02em; }
.mgroup li p { margin: 0; max-width: 68ch; color: var(--muted); line-height: 1.55; }
@media (max-width: 640px) { .mgroup li { grid-template-columns: 1fr; } }

/* tabs stretch to fill the full width (scroll on narrow screens) */
.tab { flex: 1 0 auto; justify-content: center; }
.tab:last-child { border-right: 0; }

/* ---------- Interests: tablet + mobile ---------- */
@media (max-width: 960px) {
  .tabs { position: static; flex-wrap: wrap; overflow: visible; }
  .tab { flex: 1 1 33.333%; border-bottom: 1px solid var(--line); padding: 14px 10px; font-size: 13.5px; }
  .tabs { border-bottom: 0; }
  .tab:nth-child(3n) { border-right: 0; }
  .ifeature { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tab { flex: 1 1 50%; }
  .tab:nth-child(3n) { border-right: 1px solid var(--line); }
  .tab:nth-child(2n) { border-right: 0; }
  .igrid.poster { grid-template-columns: repeat(2, 1fr); }
  .igrid.wide { grid-template-columns: 1fr; }
  .ithumb.poster { aspect-ratio: 2 / 3; }
  .igrid.poster .ibody { padding: 12px 12px 16px; }
  .igrid.poster .imeta { font-size: 10.5px; margin-bottom: 6px; }
  .igrid.poster .ibody h3 { font-size: 1rem; }
  .igrid.poster .itext { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .ifeature, .ifeatures.n2 .ifeature, .ifeatures.n2 .ifeature + .ifeature { grid-template-columns: 1fr; padding: 20px 16px 24px; gap: 18px; }
  .ifeature .ithumb { max-width: 200px; }
  .mteam { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 561px) and (max-width: 960px) { .igrid.poster { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tab { white-space: normal; text-align: center; }
  .tab:nth-child(n) { border-right: 1px solid var(--line); }
  .tab:nth-child(2n) { border-right: 0; }
}

/* hero profile picture is circular (exempt from the sharp-image rule) */
.avatar, .avatar img { border-radius: 50% !important; }
.pslider.single .pnav, .pslider.single ~ figcaption .pdots { display: none; }

/* phones & small tablets: the primary nav gets its own row (contact links live in the footer) */
@media (max-width: 760px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "b t" "n n"; }
  .bar .side { display: contents; }
  .bar .brand { grid-area: b; align-self: center; line-height: 52px; }
  .bar .toggle { grid-area: t; }
  .bar nav { display: flex; grid-area: n; border-top: 1px solid var(--line); }
  .bar nav a { flex: 1; text-align: center; padding: 0 4px; line-height: 44px; font-size: 13.5px; }
  .bar nav a + a { border-left: 1px solid var(--line); }
  .bar .contact { display: none; }
}

@media (max-width: 560px) {
  .links a { grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 12px; padding: 16px; }
  .links a:hover { padding-left: 16px; }
  .links .lk { grid-column: 1 / -1; }
  .links .lv { grid-column: 1; }
}

/* comfortable touch targets */
@media (max-width: 760px), (pointer: coarse) {
  .foot-bar nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; }
  .foot-bar nav { gap: 0; margin-right: -8px; }
  .crumb a { min-height: 44px; margin: -12px 0; }
  .more a, .textlink { min-height: 40px; }
  .pdots { gap: 0; }
  .pdots button { position: relative; width: 36px; height: 4px; background: none; }
  .pdots button::before { content: ""; position: absolute; left: 7px; right: 7px; top: 0; height: 4px; background: var(--line); }
  .pdots button::after { content: ""; position: absolute; inset: -20px 0; }
  .pdots button[aria-selected="true"]::before { background: var(--fg); }
}
.mailbig { padding-block: 6px; }
