/* ================= TOKENS ================= */
:root {
  --cream: #f7f3ed;
  --sand: #d5c8b0;
  --sage: #b9bdab;
  --bronze: #986c32;
  --taupe: #9e8f7b;
  --ink: #1b1916;
  --ink-2: #555353;
  --serif: "Poppins", system-ui, sans-serif;
  --sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --bg: var(--cream);
  --fg: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .8s var(--ease-out), color .8s var(--ease-out);
  overflow-x: hidden;
}
body.theme-dark { --bg: var(--ink); --fg: var(--cream); }
body.is-loading { overflow: hidden; height: 100vh; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; font-family: var(--serif); }
.container { padding: 0 var(--gutter); max-width: 1680px; margin: 0 auto; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-bottom: 24px; }
::selection { background: var(--bronze); color: var(--cream); }

/* ================= LOADER ================= */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--cream); color: var(--ink); pointer-events: none; }
.loader__panels { position: absolute; inset: 0; display: flex; }
.loader__panels span { flex: 1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; }
.loader__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
}

/* Logo shape (masked from the PNG): faint tint, red fill rises with load progress */
.loader__logo {
  --brand-red: #c63c2e;
  position: relative; width: clamp(96px, 9vw, 140px); aspect-ratio: 585 / 787;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  background: rgba(198, 60, 46, .14);
  clip-path: inset(100% 0 0 0);
}
.loader__fill {
  position: absolute; inset: 0; transform: scaleY(0); transform-origin: bottom;
  /* shine is painted inside the fill (no moving layer), so the logo mask clips it cleanly */
  background: linear-gradient(105deg, var(--brand-red) 42%, #e0705f 50%, var(--brand-red) 58%) 120% 0 / 300% 100% no-repeat, var(--brand-red);
}
.loader.is-full .loader__fill { animation: shine 1s var(--ease-out) forwards; }
@keyframes shine { to { background-position: -20% 0, 0 0; } }

.loader__name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); opacity: 0; }
.loader__pct { font-size: 13px; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; opacity: 0; }

/* ================= CURSOR ================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--bronze); mix-blend-mode: normal;
  display: grid; place-items: center;
  opacity: 0;   /* shown on first mousemove, so it never sits in the top-left corner */
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, opacity .3s;
}
.cursor.is-active { opacity: 1; }
.cursor__label { font-size: 13px; color: var(--cream); opacity: 0; transform: scale(.4); transition: .35s var(--ease-out); }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(152,108,50,.25); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--bronze); }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ================= HEADER (bordered cells) ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 84px;
  display: flex; justify-content: space-between; align-items: stretch;
  color: var(--ink);
  background: rgba(247,243,237,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(27,25,22,.12);
}
.header__left { display: flex; align-items: stretch; }
.logo {
  display: flex; align-items: center; gap: 12px; padding: 0 clamp(20px, 2.4vw, 40px) 0 var(--gutter);
  border-right: 1px solid rgba(27,25,22,.12);
  font-size: 18px; font-weight: 500; letter-spacing: -.03em; line-height: 1;
}
.logo__mark { width: auto; height: 34px; object-fit: contain; }
.logo em { margin-left: 3px; font-weight: 300; }
/* Hover: the name rolls up and a bronze copy rolls in from below */
.logo__roll { display: grid; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }   /* room for descenders */
.logo__roll > span { grid-area: 1 / 1; white-space: nowrap; transition: transform .6s var(--ease); }
.logo__roll > span:last-child { transform: translateY(110%); color: var(--bronze); }
.logo:hover .logo__roll > span:first-child { transform: translateY(-110%); }
.logo:hover .logo__roll > span:last-child { transform: none; }
.logo:focus-visible { outline: 2px solid var(--bronze); outline-offset: -4px; }
.header__tag { display: flex; align-items: center; padding: 0 clamp(20px, 2.4vw, 40px); font-size: 13px; line-height: 1.4; color: var(--ink); }
@media (max-width: 1099px) { .header__tag { display: none; } }   /* too narrow for the tagline beside the nav */

.nav { display: flex; align-items: stretch; }
.nav__item {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  width: clamp(150px, 13vw, 210px); padding: 0 clamp(16px, 1.4vw, 24px);
  border-left: 1px solid rgba(27,25,22,.12);
  transition: background-color .4s var(--ease-out);
}
.nav__item:hover { background: rgba(27,25,22,.04); }
.nav__label { font-size: 12px; color: var(--taupe); white-space: nowrap; }
.nav__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav__title { position: relative; display: block; overflow: hidden; height: 1.3em; font-size: 17px; font-weight: 400; line-height: 1.3; }
.nav__title span { display: block; transition: transform .6s var(--ease); }
.nav__icon { position: relative; display: block; width: 18px; height: 18px; overflow: hidden; font-size: 16px; line-height: 18px; }
.nav__icon i { position: absolute; inset: 0; font-style: normal; text-align: center; transition: transform .6s var(--ease); }
.nav__icon i:last-child { transform: translateX(-120%); }
.nav__item:hover .nav__title span { transform: translateY(-100%); }
.nav__item:hover .nav__icon i:first-child { transform: translateX(120%); }
.nav__item:hover .nav__icon i:last-child { transform: translateX(0); }
.nav__item.is-current { background: rgba(152,108,50,.07); }
.nav__item.is-current .nav__label { color: var(--bronze); }
.nav__indicator { display: none; }

/* 44×44 tap area; the two lines stay 28px wide */
.burger { display: none; width: 44px; height: 44px; position: relative; align-self: center; margin-right: calc(var(--gutter) - 8px); border-radius: 8px; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { bottom: 17px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { bottom: 21px; transform: rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
/* Mobile-only header resume button (shown ≤960px, where the nav collapses into the burger) */
.hcv { display: none; position: relative; align-self: center; align-items: center; gap: 6px; height: 40px; margin-left: auto; margin-right: 4px; padding: 0 14px 0 12px; border: 1px solid rgba(27,25,22,.2); border-radius: 100px; font-size: 14px; line-height: 1; color: var(--ink); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), opacity .3s var(--ease-out); }
.hcv::after { content: ""; position: absolute; inset: -4px 0; }   /* 48px tap area */
.hcv svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hcv:hover, .hcv:active { background: var(--bronze); border-color: var(--bronze); color: var(--cream); }
.hcv:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.menu-open .hcv { opacity: 0; pointer-events: none; }
@media (max-width: 374px) { .hcv { width: 40px; padding: 0; justify-content: center; } .hcv span { display: none; } }   /* small phones: icon only */

/* ================= PAGE TRANSITION (sideways strips) ================= */
.ptrans { position: fixed; inset: 0; z-index: 190; pointer-events: none; visibility: hidden; }
.ptrans__strips { position: absolute; inset: 0; display: flex; }
.ptrans__strips span { flex: 1 1 0; margin-right: -1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.ptrans__logo {
  --brand-red: #c63c2e;
  /* centred with inset + auto margins (not transforms), so GSAP can scale it freely */
  position: absolute; inset: 0; margin: auto; width: clamp(64px, 6vw, 96px); height: auto; aspect-ratio: 585 / 787;
  opacity: 0;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  background: rgba(198, 60, 46, .22);
}
.ptrans__fill { position: absolute; inset: 0; background: var(--brand-red); transform: scaleY(0); transform-origin: bottom; }
/* Pages without the loader start covered (strips closed, logo filled), then reveal */
body:not([data-page="home"]) .ptrans { visibility: visible; }
body:not([data-page="home"]) .ptrans__strips span { transform: scaleX(1); }
body:not([data-page="home"]) .ptrans__logo { opacity: 1; }
body:not([data-page="home"]) .ptrans__fill { transform: scaleY(1); }

/* ================= MENU ================= */
.menu { position: fixed; inset: 0; z-index: 110; visibility: hidden; color: var(--cream); padding: 120px var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0% at calc(100% - 40px) 40px); }
.menu__nav, .menu__foot { position: relative; }
.menu__nav a { display: flex; align-items: baseline; gap: 20px; font-family: var(--serif); font-size: clamp(48px, 12vw, 96px); line-height: 1.05; overflow: hidden; }
.menu__nav a b { font-weight: 300; display: inline-block; }
.menu__nav a span { font-family: var(--sans); font-size: 13px; color: var(--taupe); }
.menu__foot { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--sand); }

/* ================= HERO ================= */
.hero {
  position: relative; height: 100vh; min-height: 680px; overflow: hidden;
  background: #ece5da; color: var(--ink);
}
.hero__left {
  position: relative; z-index: 2; height: 100%; width: 58%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(84px + clamp(24px, 4vh, 48px)) var(--gutter) clamp(24px, 2.2vw, 44px);
}
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.8vw, 100px); line-height: 1.04; letter-spacing: -.035em; max-width: 960px; }
.line { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.18em; } /* room for descenders (g, p, y) without changing line spacing */
.line > span { display: inline-block; }
.hero__title em { color: var(--bronze); }
/* Reference proportions: image ≈15vw wide, portrait 302:366; ≈9vw gap; text top aligned to image top, actions aligned to its bottom */
.hero__bottom { display: flex; align-items: stretch; gap: 9vw; }
.hero__thumb { flex: 0 0 auto; width: 15vw; min-width: 170px; aspect-ratio: 302 / 366; height: auto; border-radius: 12px; overflow: hidden; }
.hero__thumb img { transform: scale(1.25); }
.hero__info { flex: 0 1 auto; width: clamp(280px, 20vw, 440px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hero__lede { font-size: clamp(14px, 1.05vw, 18px); line-height: 1.55; color: var(--ink-2); }
.hero__lede p + p { margin-top: .9em; }
.hero__lede strong { font-weight: 500; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* Pill button with a fill that rises on hover (shared across the site) */
.btn { display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 16px 28px; border: 1px solid currentColor; border-radius: 100px; font-size: 14px; position: relative; overflow: hidden; isolation: isolate; transition: color .6s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover { color: var(--cream); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(6px); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.btn--light::before { background: var(--cream); }
.btn--light:hover { color: var(--ink); }
.btn.btn--sm { gap: 10px; padding: 12px 20px; min-height: 44px; font-size: 14px; } /* .btn.btn--sm so it wins over the base .btn defined later */
.btn__icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.hero__avail { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero__avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(152,108,50,.6); } 100% { box-shadow: 0 0 0 12px rgba(152,108,50,0); } }
.hero__image {
  position: absolute; top: 0; right: 0; height: 100%; width: 41.25%;
  overflow: hidden; clip-path: inset(0 0 0 100%);
}
.hero__img { transform: scale(1.3); }

/* ================= HOME STRIP (horizontal) ================= */
.hstrip { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: #ece5da; }
.hstrip__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.hstrip .hero { width: 100vw; flex-shrink: 0; }

/* Services intro panel */
/* Layout: wide panel · label sits in the heading's first-line indent · paragraph + text links on the right half */
.svc-intro {
  flex-shrink: 0; width: min(72vw, 1400px); height: 100%;
  display: flex; flex-direction: column;
  padding: calc(84px + clamp(28px, 5vh, 56px)) clamp(40px, 8.4vw, 168px) clamp(32px, 6vh, 64px) clamp(40px, 6.6vw, 132px);
}
.dot-label { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--bronze); letter-spacing: .04em; }
.dot-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); }
.svc-intro__head { position: relative; }
.svc-intro__label { position: absolute; left: 0; top: .9em; margin: 0; }
.svc-intro__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.9vw, 84px); line-height: 1.1; letter-spacing: -.035em; }
.svc-intro__title .indent { display: inline-block; width: 10.4vw; }
.svc-intro__bottom { flex: 1; display: flex; flex-direction: column; align-items: flex-start; width: clamp(300px, 34vw, 560px); margin-left: auto; padding-top: clamp(40px, 13vh, 150px); }
.svc-intro__bottom p { font-size: clamp(15px, 1.15vw, 22px); line-height: 1.55; color: var(--ink-2); }
.svc-intro__links { display: flex; flex-wrap: wrap; gap: clamp(24px, 3.6vw, 52px); margin-top: auto; padding-top: 32px; }
/* Underlined text link with arrow */
.text-link { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: clamp(18px, 1.45vw, 28px); letter-spacing: -.02em; color: var(--ink); }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.text-link i { font-style: normal; font-size: .75em; transition: transform .5s var(--ease-out); }
.text-link:hover i { transform: translateX(6px); }
.text-link:hover::after { animation: underline .9s var(--ease); }

/* Service columns */
.svc-list { display: flex; height: 100%; flex-shrink: 0; }
.svc {
  position: relative; isolation: isolate; flex-shrink: 0;
  width: clamp(300px, 27vw, 480px); height: 100%;
  display: flex; flex-direction: column;
  padding: calc(96px + 2vh) clamp(24px, 2.4vw, 40px) 6vh;
  color: var(--ink);
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(27,25,22,.12); }
.svc:last-child::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(27,25,22,.12); }
.svc__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity .4s var(--ease-out); }
.svc__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.4), rgba(20,18,16,.68)); } /* darker so titles stay readable on text-heavy covers */
.svc__bg img { transform: scale(1); transition: transform .6s var(--ease-out); }
.svc__num { font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 14vw, 250px); line-height: .85; letter-spacing: -.06em; transition: color .6s var(--ease-out); }
.svc__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 56px); line-height: 1.02; margin: auto 0; max-width: 320px; transition: color .6s var(--ease-out); }
.svc__count { display: block; margin-top: 14px; font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--bronze); transition: color .6s var(--ease-out); }
.svc:hover .svc__count, .svc.is-active .svc__count { color: var(--sand); }
.svc__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { padding: 5px 11px; border: 1px solid rgba(27,25,22,.2); border-radius: 100px; font-size: 12px; line-height: 1.2; color: var(--ink-2); transition: border-color .6s var(--ease-out), color .6s var(--ease-out), background-color .6s; }
.svc:hover .svc__tags li, .svc.is-active .svc__tags li { border-color: rgba(247,243,237,.35); color: var(--cream); background: rgba(247,243,237,.06); }
.svc__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.svc__desc { max-width: 260px; font-size: 15px; line-height: 1.6; color: var(--ink-2); transition: color .6s var(--ease-out); }

/* Hover / active state */
.svc:hover .svc__bg, .svc.is-active .svc__bg { opacity: 1; transition: opacity 1.2s var(--ease-out); }
.svc:hover .svc__bg img, .svc.is-active .svc__bg img { transform: scale(1.1); }
.svc:hover .svc__num, .svc:hover .svc__title, .svc:hover .svc__desc,
.svc.is-active .svc__num, .svc.is-active .svc__title, .svc.is-active .svc__desc { color: var(--cream); }
.svc:hover .btn-circle, .svc.is-active .btn-circle { transform: scale(1); }

/* Circular arrow button */
.btn-circle {
  position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); color: var(--ink); overflow: hidden;
  transform: scale(0); transition: transform .5s var(--ease);
}
.btn-circle__arrow {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px;
  transform: rotate(-45deg); transition: transform .6s var(--ease);
}
.btn-circle__arrow--two { transform: rotate(-45deg) translateX(-150%); }
.svc:hover .btn-circle__arrow--one { transform: rotate(-45deg) translateX(150%); transition-delay: .15s; }
.svc:hover .btn-circle__arrow--two { transform: rotate(-45deg) translateX(0); transition-delay: .15s; }

/* ================= SHARED ================= */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 56px; border-bottom: 1px solid rgba(155,143,123,.35); padding-bottom: 16px; }
.section-head .label { margin: 0; }
.link-underline { position: relative; font-size: 14px; display: inline-block; padding-bottom: 4px; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-underline:hover::after { animation: underline .9s var(--ease); }
@keyframes underline { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ================= TOOLS & SKILLS ================= */
.toolkit { padding: clamp(72px, 8vw, 128px) 0 clamp(48px, 6vw, 96px); }
.toolkit__head { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.toolkit__head .label { grid-column: 1 / -1; }
.toolkit__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 88px); line-height: 1.04; letter-spacing: -.04em; }
.toolkit__intro { max-width: 46ch; font-size: clamp(15px, 1.1vw, 19px); line-height: 1.6; color: var(--ink-2); justify-self: end; }
/* One grid for tools + skills: label column on the left, content on the right */
.tkgrid { --line: rgba(27,25,22,.14); display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); column-gap: clamp(28px, 4vw, 80px); border-top: 1px solid var(--line); }
.tkgrid > * { padding: clamp(24px, 2.6vw, 40px) 0; border-bottom: 1px solid var(--line); }
.tkgrid > .tools, .tkgrid > .skillcols { grid-column: 1 / -1; }
.tkgrid > .tkgrid__label { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }   /* "What I bring" sits above the two areas */
.tkgrid > .skillcols { padding-top: clamp(14px, 1.6vw, 22px); }
.tkgrid__label { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tkgrid__title { font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.tkgrid__count { font-size: 13px; color: var(--bronze); font-variant-numeric: tabular-nums; }

/* Tools: an even grid — every cell the same size, logo above name, centred */
.tools { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: clamp(8px, 1vw, 16px); row-gap: clamp(18px, 2.2vw, 32px); }
.tool { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 6px; border-radius: 14px; text-align: center; cursor: default; transition: background-color .4s var(--ease-out); }
.tool__logo { width: clamp(30px, 2.6vw, 40px); height: clamp(30px, 2.6vw, 40px); display: grid; place-items: center; color: var(--brand); transition: transform .6s var(--ease-out); }
.tool__logo svg { width: 100%; height: 100%; fill: currentColor; }
.tool__logo img { width: 100%; height: 100%; object-fit: contain; }
.tool__mono { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 600; font-size: .66em; line-height: 1; }
.tool__name { font-size: clamp(14px, 1.05vw, 17px); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); white-space: nowrap; transition: color .4s var(--ease-out); }
.tool:hover { background: #ece5da; }
.tool:hover .tool__logo { transform: translateY(-3px) scale(1.08); }
.tool:hover .tool__name { color: var(--bronze); }
.tool > * { transition: opacity .4s var(--ease-out); }
.tools:hover .tool:not(:hover) > * { opacity: .45; }

/* Skills: two areas side by side, both always visible; equal-weight tags (no ranking) */
.skillcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); min-width: 0; }
.skillcol { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); min-width: 0; }
.skillcol + .skillcol { padding-left: clamp(24px, 3vw, 56px); border-left: 1px solid var(--line); }
.skillcol__title { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: clamp(20px, 1.6vw, 28px); letter-spacing: -.025em; }
.skillcol__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); flex-shrink: 0; }
.skillcol__lede { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--taupe); }
.skillcol__list { list-style: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: clamp(8px, .7vw, 10px); }
.sitem {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 18px 7px 8px;
  border: 1px solid rgba(27,25,22,.16); border-radius: 100px; background: transparent;
  font-size: clamp(14px, 1.05vw, 17px); letter-spacing: -.01em; line-height: 1.2;
  transition: border-color .45s var(--ease-out), color .45s var(--ease-out);
}
/* Hover: warm sand rises from the bottom (same gesture as the footer menu), bronze edge */
.sitem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #e6dccb; transform: translateY(101%); border-radius: 50% 50% 0 0 / 60% 60% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease); }
.sitem__icon { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(152,108,50,.1); color: var(--bronze); transition: background-color .45s var(--ease-out), color .45s var(--ease-out), transform .6s var(--ease-out); }
.sitem__icon svg { width: 15px; height: 15px; }
.sitem:hover { border-color: var(--bronze); color: #6e4c22; }
.sitem:hover::before { transform: translateY(0); border-radius: 0; }
.sitem:hover .sitem__icon { background: var(--bronze); color: var(--cream); transform: rotate(-12deg); }

/* ================= MY JOURNEY (dial) ================= */
.journey { position: relative; color: var(--cream); background: #1b1916; }
.journey__pin { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }

/* Backdrop: the chapter image, blurred and darkened */
.jbg { position: absolute; inset: 0; }
/* Sharp, darkened full-screen pictures stacked in order; each wipes up over the previous as you scroll */
.jbg__img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(var(--dim, .36)) saturate(.75) contrast(1.05); will-change: clip-path, transform; }   /* dark, natural colour: like the reference */
.journey__pin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(17,15,13,.62) 0%, rgba(17,15,13,.15) 38%, transparent 55%), radial-gradient(circle at 50% 50%, transparent 30%, rgba(17,15,13,.5) 100%); }   /* left shade keeps the intro + names readable on busy photos */

/* Intro, top-left under the header */
.jintro { position: absolute; z-index: 3; left: var(--gutter); top: calc(84px + clamp(24px, 4vh, 48px)); max-width: 380px; }
.jintro__title { font-weight: 400; font-size: clamp(22px, 1.7vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.jintro__text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: rgba(247,243,237,.6); }

/* Dial */
.jdial { --size: min(62vh, 640px); position: absolute; z-index: 3; left: 50%; top: 54%; width: var(--size); height: var(--size); transform: translate(-50%, -50%); }
.jdial__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jdial__ring circle { fill: none; }
.jdial__track { stroke: rgba(247,243,237,.22); stroke-width: 1.2; }
/* Progress arc: starts at 12 o'clock and traces the ring as you scroll */
.jdial__arc { stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1873; stroke-dashoffset: 1873;   /* 2π × 298 ≈ 1872.4 */ transform: rotate(-90deg); transform-origin: 300px 300px; }
.jdial__ring line { stroke: rgba(247,243,237,.7); stroke-width: 2; stroke-linecap: round; }
.jdial__label { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.2vw, 20px); white-space: nowrap; }
.jdial__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); }
.jdial__num { position: absolute; top: 50%; transform: translateY(-50%); font-size: clamp(16px, 1.3vw, 22px); font-variant-numeric: tabular-nums; }
.jdial__num--cur { left: 8%; } .jdial__num--tot { right: 8%; }
.jdial__num b { font-weight: 400; display: inline-block; }
.jdial__scroll { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); font-size: clamp(15px, 1.2vw, 20px); color: rgba(247,243,237,.85); }

/* The circular picture in the middle */
/* Centre disc: plain cream, the logo alone in the middle */
.jdisc { position: absolute; left: 50%; top: 50%; width: 55%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.jdisc__logo { position: absolute; left: 20%; top: 26%; width: 60%; height: 48%; object-fit: contain; will-change: transform, opacity; }

/* Name on the left: each one rolls up through a mask */
.jnames { position: absolute; z-index: 3; left: var(--gutter); top: 54%; transform: translateY(-50%); width: calc(50% - min(62vh, 640px) / 2 - var(--gutter) - 32px); height: clamp(240px, 40vh, 380px); overflow: hidden; }
.jname { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }   /* vertically centred without transforms, so GSAP owns y */
.jname__years { font-size: 14px; color: rgba(247,243,237,.6); font-variant-numeric: tabular-nums; }
.jname__place { margin-top: 10px; font-weight: 400; font-size: clamp(30px, 2.9vw, 58px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.jname__place em { display: block; font-style: normal; font-weight: 300; font-size: .55em; margin-top: 6px; color: rgba(247,243,237,.7); letter-spacing: -.02em; }
.jname__role { margin-top: 12px; font-size: clamp(15px, 1.15vw, 19px); color: rgba(247,243,237,.75); }
.jname__note { margin-top: 14px; font-size: clamp(14px, .98vw, 16px); line-height: 1.55; color: rgba(247,243,237,.62); }
.jcv { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 4vh, 44px); color: var(--cream); }

/* ================= CURIOUS (off the clock) ================= */
.curious { padding: clamp(96px, 12vw, 200px) 0 clamp(40px, 4.5vw, 72px); overflow: hidden; }
.curious__head { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.curious__head .label { grid-column: 1 / -1; }
.curious__title { font-weight: 400; font-size: clamp(40px, 4.8vw, 92px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.curious__sub { grid-column: 1; margin-top: 10px; font-size: clamp(20px, 1.8vw, 32px); color: var(--bronze); letter-spacing: -.02em; }
.curious__sub em { font-style: italic; }
.curious__text { grid-column: 2; grid-row: 2 / span 2; align-self: end; max-width: 46ch; font-size: clamp(15px, 1.15vw, 20px); line-height: 1.6; color: var(--ink-2); }

/* Reel: two rows of equal photos drifting in opposite directions */
.reel { display: grid; gap: clamp(12px, 1.4vw, 22px); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.reel.is-dragging { cursor: grabbing; }
.reel__row { overflow: hidden; }
.reel__track { display: flex; gap: clamp(12px, 1.4vw, 22px); width: max-content; will-change: transform; }
.rcard {
  position: relative; flex: 0 0 auto; width: clamp(200px, 19vw, 320px); aspect-ratio: 4 / 5;
  padding: 0; border-radius: 14px; overflow: hidden; background: #e9e3da; cursor: inherit;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.rcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease-out); -webkit-user-drag: none; }
.rcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,15,13,.62)); opacity: 0; transition: opacity .5s; }
.rcard__cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 10px; align-items: baseline; text-align: left; color: var(--cream); font-size: 14px; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out); }
.rcard__cap b { font-weight: 400; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.rcard:hover, .rcard:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(27,25,22,.6); }
.rcard:hover img { transform: scale(1.06); }
.rcard:hover::after, .rcard:hover .rcard__cap, .rcard:focus-visible::after, .rcard:focus-visible .rcard__cap { opacity: 1; transform: none; }
.rcard:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.curious__hint { margin-top: clamp(24px, 3vw, 40px); text-align: center; font-size: 13px; color: var(--taupe); }
.curious__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(20px, 2.4vw, 32px); }
.curious__more .btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.curious__more-note { font-size: 13px; color: var(--taupe); }

/* Full-screen viewer */
.lbox { position: fixed; inset: 0; z-index: 180; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(8px, 2vw, 32px); padding: clamp(56px, 7vh, 88px) clamp(12px, 3vw, 48px); background: rgba(17,15,13,.94); color: var(--cream); }
.lbox[hidden] { display: none; }
.lbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
.lbox__img { max-width: 100%; max-height: calc(100dvh - 2 * clamp(56px, 7vh, 88px) - 48px); width: auto; height: auto; object-fit: contain; border-radius: 10px; }   /* always leaves room for the caption */
.lbox figcaption { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.lbox__count { font-size: 13px; opacity: .6; font-variant-numeric: tabular-nums; }
.lbox__nav, .lbox__close { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247,243,237,.3); color: var(--cream); font-size: 18px; transition: background-color .3s, border-color .3s; }
.lbox__nav:hover, .lbox__close:hover { background: rgba(247,243,237,.12); border-color: rgba(247,243,237,.6); }
.lbox__close { position: absolute; top: clamp(12px, 2vh, 24px); right: clamp(12px, 2vw, 32px); }
.lbox button:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }




/* ================= CTA ================= */
.cta { padding: clamp(72px, 8vw, 128px) 0 clamp(80px, 10vw, 140px); color: var(--cream); text-align: center; }
.cta__small { color: var(--sand); max-width: 420px; margin: 0 auto 40px; line-height: 1.6; }
.cta__big { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 9vw, 170px); line-height: 1; letter-spacing: -.045em; margin-bottom: 56px; }
.cta__row { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.19em; transition: transform .8s var(--ease); }
.cta__row > span { display: inline-block; } /* animated by GSAP: no CSS transform transition here */
.cta__big em { color: var(--sand); }
.cta__big:hover .cta__row:first-child { transform: translateX(-3%); }
.cta__big:hover .cta__row:last-child { transform: translateX(3%); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ================= FOOTER (bordered grid) ================= */
.footer { --line: rgba(27,25,22,.14); background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); }
/* One 12-column grid for the whole footer so every divider lines up top to bottom */
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.footer__info { grid-column: span 8; }
.fnav { grid-column: span 4; }
/* Let's talk: intro on the left, a calm form on the right */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ftalk { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 3vw, 52px) clamp(24px, 2.4vw, 44px); }
.ftalk__intro { display: flex; flex-direction: column; gap: 14px; }
.ftalk__title { margin-top: 6px; font-weight: 400; font-size: clamp(24px, 2.2vw, 38px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.ftalk__lede { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 32ch; }
.ftalk__form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ftalk__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Floating-label fields: label rests inside, slides up when focused or filled */
.ffloat { position: relative; min-width: 0; }
.ffloat input, .ffloat textarea {
  width: 100%; min-height: 58px; padding: 24px 16px 8px; border: 1px solid transparent; border-radius: 14px;
  background: #ece5da; font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.ffloat textarea { min-height: 132px; padding-top: 28px; line-height: 1.55; }
.ffloat label { position: absolute; left: 17px; top: 19px; font-size: 16px; color: var(--taupe); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease-out), color .3s; }
.ffloat input:focus + label, .ffloat input:not(:placeholder-shown) + label,
.ffloat textarea:focus + label, .ffloat textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--bronze); }
.ffloat input:hover, .ffloat textarea:hover { background: #e6dccb; }
.ffloat input:focus, .ffloat textarea:focus { background: var(--cream); border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(152,108,50,.12); }
.ffloat.is-invalid input, .ffloat.is-invalid textarea { border-color: #c63c2e; background: #f6e7e2; }
.ffloat.is-invalid label { color: #b3372a; }
.ffloat__err { margin-top: 6px; padding-left: 4px; font-size: 13px; color: #b3372a; }
.ffloat__err:empty { display: none; }

/* Topic chips */
.ftopics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 4px 0; margin: 0; }
.ftopics legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--taupe); }   /* own line, chips sit together below */
.ftopic { position: relative; cursor: pointer; }
.ftopic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ftopic span {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid rgba(27,25,22,.18); border-radius: 100px; font-size: 14px; line-height: 1.2; transition: border-color .4s, color .4s;
}
.ftopic span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #e6dccb; transform: translateY(101%); border-radius: 50% 50% 0 0 / 60% 60% 0 0; transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.ftopic:hover span { border-color: var(--bronze); color: #6e4c22; }
.ftopic:hover span::before { transform: translateY(0); border-radius: 0; }
.ftopic input:checked + span { background: var(--bronze); border-color: var(--bronze); color: var(--cream); }
.ftopic input:checked + span::before { display: none; }
.ftopic input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Send */
.ftalk__send {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 56px; margin-top: 4px;
  border-radius: 14px; background: var(--bronze); color: var(--cream); font-size: 15px; cursor: pointer; transition: transform .4s var(--ease-out);
}
.ftalk__send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); }
.ftalk__send:hover::before { transform: translateY(0); }
.ftalk__send i { font-style: normal; transition: transform .5s var(--ease); }
.ftalk__send:hover i { transform: translateX(6px); }
.ftalk__send:active { transform: scale(.985); }
.ftalk__send:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.ftalk__note { font-size: 13px; color: var(--taupe); text-align: center; }

/* Sent state replaces the form, intro stays */
.ftalk.is-sent .ftalk__form { display: none; }
.ftalk__done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.ftalk__done[hidden] { display: none; }
.ftalk__done-title { font-weight: 300; font-size: clamp(22px, 2vw, 32px); line-height: 1.3; letter-spacing: -.025em; }
.ftalk__done-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ftalk__done-text a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
.ftalk__again { min-height: 44px; padding: 0; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* Left panel: certifications + expertise */
.footer__info { display: flex; border-right: 1px solid var(--line); }
.fnav { display: grid; grid-template-rows: repeat(5, 1fr); }
.fnav__item {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 0 clamp(20px, 2.4vw, 44px);
  min-height: 72px; border-bottom: 1px solid var(--line); isolation: isolate;
  font-size: clamp(20px, 1.6vw, 30px); letter-spacing: -.02em;
}
.fnav__item:last-child { border-bottom: 0; }
.fnav__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #d5c8b0; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.fnav__item:hover::before, .fnav__item:focus-visible::before { transform: scaleY(1); }
.fnav__num { font-size: .6em; color: var(--taupe); font-variant-numeric: tabular-nums; }
.fnav__item i { margin-left: auto; font-style: normal; font-size: .8em; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease-out); }
.fnav__item:hover i { opacity: 1; transform: translateX(0); }

.footer__bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.fcell:nth-child(1) { grid-column: span 4; } .fcell:nth-child(2), .fcell:nth-child(3) { grid-column: span 2; } .fcell:nth-child(4) { grid-column: span 4; }
.fcell { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: clamp(200px, 26vh, 300px); padding: clamp(24px, 2.4vw, 40px); border-right: 1px solid var(--line); }
.fcell:last-child { border-right: 0; }
.fcell__label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--taupe); }
.fcell__label i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* Email + copy button */
.fcopy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fcopy__btn {
  position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(27,25,22,.18); color: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s, color .35s, transform .4s var(--ease-out);
}
.fcell .fcopy__btn { width: 44px; min-width: 44px; padding: 0; }   /* beats the footer's fit-content rule so it stays round */
.fcopy__btn:hover { background: #e6dccb; border-color: var(--bronze); color: #6e4c22; }
.fcopy__btn:active { transform: scale(.94); }
.fcopy__btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.fcopy__icon { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s var(--ease-out); }
.fcopy__icon--done { opacity: 0; transform: scale(.5); }
.fcopy__btn.is-copied { background: var(--bronze); border-color: var(--bronze); color: var(--cream); }
.fcopy__btn.is-copied .fcopy__icon--copy { opacity: 0; transform: scale(.5); }
.fcopy__btn.is-copied .fcopy__icon--done { opacity: 1; transform: none; }
.fcopy__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 4px 10px; border-radius: 100px; background: var(--ink); color: var(--cream); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .35s var(--ease-out); }
.fcopy__tip:empty { display: none; }
.fcopy__btn.is-copied .fcopy__tip { opacity: 1; transform: none; }
.fcell__big { font-size: clamp(17px, 1.35vw, 26px); letter-spacing: -.02em; white-space: nowrap; }
.fcell__links { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
/* Footer links with icons */
.fsocial { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
/* All footer badges share the brand look: soft bronze at rest, solid bronze on hover */
.fsocial__icon { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(152,108,50,.12); color: var(--bronze); transition: transform .5s var(--ease-out), background-color .35s, color .35s; }
.fsocial__icon svg { width: 16px; height: 16px; fill: currentColor; }
.fsocial__icon--line svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fsocial:hover .fsocial__icon { transform: rotate(-10deg) scale(1.08); }
.fsocial:hover .fsocial__icon { background: var(--bronze); color: var(--cream); }
.fcell__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 15px; }
.fcell a, .fcell button { width: fit-content; transition: color .3s; }
.fcell a:hover, .fcell button:hover { color: var(--bronze); }
.to-top { color: inherit; padding: 0; }
.footer .fcell .to-top { padding-left: 0; padding-right: 0; }   /* keeps its text on the cell's left edge on touch screens too */

/* ================= REVEALS ================= */
.reveal-up { opacity: 0; transform: translateY(40px); }
.split-line { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.2em; }
.split-line > span { display: inline-block; transform: translateY(140%); }

/* ================= WORK PAGE ================= */
.whead { position: relative; padding: calc(84px + clamp(32px, 4vw, 64px)) 0 clamp(32px, 4vw, 64px); }
.whead__eyebrow { margin-bottom: clamp(16px, 2vw, 28px); }
.whead__row { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: clamp(8px, 1vw, 16px); }
.whead__title { font-weight: 400; font-size: clamp(72px, 13.5vw, 270px); line-height: .9; letter-spacing: -.055em; color: #2e2c2a; }
.whead__mask { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; } /* room for descenders like the g in "Design" */
.whead__mask > span { display: inline-block; }
.whead__count { font-size: clamp(48px, 6.4vw, 124px); font-weight: 300; line-height: .9; letter-spacing: -.04em; color: #2e2c2a; padding-top: .1em; }

/* Round white toggle with a chevron (rotates when the filter is open) */
.wtoggle {
  position: relative; z-index: 3; flex-shrink: 0; margin-top: clamp(4px, 1vw, 20px);
  width: clamp(64px, 7.2vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(27,25,22,.04);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.wtoggle__chev { width: 28%; height: 28%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.wtoggle:hover .wtoggle__chev { transform: translateY(12%); }
.wtoggle.is-open { background: var(--ink); color: var(--cream); }
.wtoggle.is-open .wtoggle__chev { transform: rotate(180deg); }

/* Filter panel */
.wfilter {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
  background: #ece5da; padding: clamp(24px, 3vw, 48px) 0 clamp(40px, 5vw, 80px);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  box-shadow: 0 40px 80px -40px rgba(27,25,22,.25);
}
.wfilter__list { display: flex; flex-direction: column; align-items: flex-start; }
.wfilter__item {
  display: inline-flex; align-items: flex-start; gap: 10px; padding: 6px 0;
  font-weight: 500; font-size: clamp(36px, 5.4vw, 104px); line-height: 1; letter-spacing: -.05em;
  color: rgba(27,25,22,.28); transition: color .5s var(--ease-out), transform .6s var(--ease-out);
}
.wfilter__count { font-size: max(.28em, 12px); font-weight: 300; letter-spacing: 0; margin-top: .3em; }
.wfilter__item:hover { color: var(--ink); transform: translateX(16px); }
.wfilter__item.is-active { color: var(--ink); }
.wfilter__item.is-active .wfilter__name::after { content: " /"; color: var(--bronze); }

/* Grid */
.wgrid-sec { padding-bottom: clamp(100px, 12vw, 200px); }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(12px, 1.2vw, 20px); row-gap: clamp(40px, 5vw, 80px); }
.wcard { display: block; }
.wcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: #e9e3da; clip-path: inset(100% 0 0 0 round 12px); }
.wcard__media img { transition: filter .6s var(--ease-out); }
.wcard__tag {
  position: absolute; left: 16px; top: 16px; padding: 8px 14px; border-radius: 100px;
  background: rgba(247,243,237,.9); backdrop-filter: blur(8px); color: var(--ink);
  font-size: 12px; font-weight: 400;
}
.wcard__btn { position: absolute; right: 20px; bottom: 20px; }
.wcard__tag--team { left: auto; right: 16px; background: rgba(27,25,22,.75); color: var(--cream); }
.wmore__logo { width: 32px; height: 32px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; background: rgba(152,108,50,.12); color: var(--bronze); transition: background-color .4s, color .4s; }
.wmore__logo svg { width: 16px; height: 16px; fill: currentColor; }
.wmore__btn:hover .wmore__logo { background: rgba(247,243,237,.16); color: var(--cream); }
.wmore { display: flex; justify-content: center; margin-top: clamp(64px, 8vw, 120px); }

/* Floating Grid / List switch */
.wview {
  position: fixed; left: 50%; bottom: 28px; z-index: 110; display: flex; gap: 4px; padding: 4px;
  border-radius: 10px; background: rgba(27,25,22,.55); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.wview.is-visible { transform: translate(-50%, 0); opacity: 1; }
.wview__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 7px; font-size: 15px; color: rgba(247,243,237,.7); transition: background-color .35s, color .35s; }
.wview__btn svg { width: 15px; height: 15px; fill: currentColor; }
.wview__btn:hover { color: var(--cream); }
.wview__btn.is-active { background: rgba(247,243,237,.16); color: var(--cream); }

/* List mode: one row per project, small thumbnail on the right */
.wgrid.is-list { grid-template-columns: 1fr; row-gap: 0; }
.wgrid.is-list .wcard { display: grid; grid-template-columns: 1fr clamp(140px, 16vw, 260px); align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid rgba(27,25,22,.12); }
.wgrid.is-list .wcard:last-child { border-bottom: 1px solid rgba(27,25,22,.12); }
.wgrid.is-list .wcard__media { order: 2; aspect-ratio: 3/2; border-radius: 8px; }
.wgrid.is-list .wcard__tag, .wgrid.is-list .wcard__btn { display: none; }
.wgrid.is-list .wcard__meta { order: 1; margin-top: 0; }
.wgrid.is-list .wcard__title { font-size: clamp(32px, 4.4vw, 76px); font-weight: 400; transition: transform .6s var(--ease-out), color .4s; }
.wgrid.is-list .wcard:hover .wcard__title { transform: translateX(14px); color: var(--bronze); }
.wcard:hover .wcard__media img { filter: brightness(.8); }
.wcard:hover .wcard__btn { transform: scale(1); }
.wcard:hover .btn-circle__arrow--one { transform: rotate(-45deg) translateX(150%); transition-delay: .15s; }
.wcard:hover .btn-circle__arrow--two { transform: rotate(-45deg) translateX(0); transition-delay: .15s; }
.wcard__meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; margin-top: 20px; }
.wcard__sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.wgrid:not(.is-list) .wcard__year { display: none; }   /* year already shown in "Client · Year" */
.wcard__crux { margin-top: 12px; max-width: 56ch; font-size: clamp(14px, 1vw, 16px); line-height: 1.55; color: var(--ink-2); }
.wgrid.is-list .wcard__crux { display: none; }
.wcard__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wcard__tags li { padding: 5px 11px; border: 1px solid rgba(27,25,22,.18); border-radius: 100px; font-size: 12px; line-height: 1.2; color: var(--ink-2); }
.wgrid.is-list .wcard__tags { display: none; }
.wcard__stat { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 100px; background: rgba(152,108,50,.1); color: var(--bronze); font-size: 12px; font-weight: 400; }
.wcard__num { font-size: 13px; color: var(--bronze); }
.wcard__title { font-weight: 500; font-size: clamp(22px, 2.2vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.wcard__year { font-size: 13px; color: var(--taupe); }
.wempty { display: none; padding-top: 40px; color: var(--taupe); }
.wempty.is-visible { display: block; }

/* ================= CASE STUDY PAGE ================= */
.cs-head { padding: calc(84px + clamp(28px, 3.5vw, 56px)) 0 clamp(40px, 5vw, 72px); }
.cs-back { display: flex; width: max-content; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin-bottom: clamp(28px, 3.5vw, 48px); transition: color .3s; }
.cs-back span { display: inline-block; transition: transform .5s var(--ease-out); }
.cs-back:hover { color: var(--ink); }
.cs-back:hover span { transform: translateX(-6px); }
.cs-head__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.cs-head__eyebrow { margin-bottom: 18px; }
.cs-head__title { font-weight: 400; font-size: clamp(36px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -.04em; color: #2e2c2a; text-wrap: balance; }
.cs-head__sub { max-width: 580px; margin-top: clamp(16px, 1.8vw, 24px); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: var(--ink-2); }
.cs-head__cta { margin-top: clamp(24px, 2.6vw, 36px); }
/* Details panel: label / value rows, the result highlighted */
.cs-meta { display: flex; flex-direction: column; margin: 0; border-top: 1px solid rgba(27,25,22,.15); }
.cs-meta div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(27,25,22,.15); }
.cs-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.cs-meta dd { font-size: 15px; line-height: 1.45; }
.cs-meta__result dd { color: var(--bronze); font-weight: 500; }

/* Project content: stacked edge to edge, in the same order as Behance */
.cs { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.cs__frame { max-width: 1400px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #e9e3da; }
.cs__block { display: block; margin: 0; }
.cs__block img, .cs__block video { display: block; width: 100%; height: auto; object-fit: initial; }
.cs__block--video { position: relative; aspect-ratio: 16 / 9; background: #191919; }
.cs__block--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs__videolink { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: rgba(247,243,237,.7); background: rgba(0,0,0,.4); padding: 6px 12px; border-radius: 100px; }
.cs__videolink:hover { color: var(--cream); }
.cs__linkrow { display: flex; justify-content: center; padding: clamp(28px, 4vw, 56px) var(--gutter); background: var(--cream); }
.cs__text { padding: clamp(40px, 6vw, 96px) var(--gutter); background: var(--cream); }
.cs__text p { max-width: 760px; margin: 0 auto; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.7; white-space: pre-line; }

/* Next project */
/* Explore more: the next two projects, with their covers */
/* Password gate (projects with a password in build.py) */
.cs-lock { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; gap: clamp(56px, 7vw, 96px); padding: calc(84px + clamp(28px, 3.5vw, 56px)) var(--gutter) clamp(48px, 6vw, 96px); background: var(--cream); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.cs-unlocked .cs-lock { display: none; }
.cs-lock__box { width: 100%; max-width: 520px; margin-top: auto; }   /* auto margins centre it when it fits, without clipping the top when it doesn't */
.cs-lock__title { margin-top: 18px; font-weight: 400; font-size: clamp(32px, 4vw, 60px); line-height: 1.04; letter-spacing: -.04em; color: #2e2c2a; text-wrap: balance; }
.cs-lock__text { margin-top: 16px; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: var(--ink-2); }
.cs-lock__form { margin-top: clamp(28px, 3vw, 40px); }
.cs-lock__label { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.cs-lock__row { display: flex; gap: 12px; }
.cs-lock__input { flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border: 1px solid rgba(27,25,22,.3); border-radius: 100px; background: transparent; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s; }
.cs-lock__input:focus { outline: none; border-color: var(--ink); }
.cs-lock__input[aria-invalid="true"] { border-color: #c63c2e; }
.cs-lock__btn { flex-shrink: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.cs-lock__error { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: #c63c2e; }
.cs-lock__ask { margin-top: clamp(20px, 2.4vw, 32px); padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid rgba(27,25,22,.15); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cs-lock__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cs-lock__more { width: 100%; max-width: 1400px; margin-bottom: auto; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(27,25,22,.15); }
/* Wide screens: password on the left, other projects beside it, all on one screen.
   One grid row so both columns share a top edge: the two labels sit on one line and the images line up with the title. */
@media (min-width: 961px) {
  .cs-lock { --lock-row: 40px; --lock-gap: clamp(40px, 5vw, 96px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 640px); justify-content: center; align-content: safe center; align-items: stretch; column-gap: var(--lock-gap); padding: calc(84px + 24px) var(--gutter) 40px; }
  .cs-lock__box, .cs-lock__more { max-width: none; margin: 0; }
  .cs-lock__box > .dot-label { display: flex; min-height: var(--lock-row); }
  .cs-lock__title { margin-top: 16px; font-size: clamp(32px, 3.4vw, 52px); }
  .cs-lock__form { margin-top: 24px; }
  .cs-lock__ask { margin-top: 16px; padding-top: 20px; }
  .cs-lock__more { padding: 0 0 0 var(--lock-gap); border-top: 0; border-left: 1px solid rgba(27,25,22,.15); }
  .cs-lock__more .cs-more__head { min-height: var(--lock-row); margin-bottom: 16px; flex-wrap: nowrap; }
  .cs-lock__more .cs-more__head .text-link { font-size: 16px; }
  .cs-lock__more .cs-more__grid { gap: 20px; }
  .cs-lock__more .cs-more__title { font-size: clamp(17px, 1.5vw, 24px); }
}
@media (max-width: 480px) {
  .cs-lock__row { flex-direction: column; }
  .cs-lock__btn { justify-content: center; }
}

.cs-more { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }
.cs-more__inner { max-width: 1400px; margin: 0 auto; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(27,25,22,.15); }
.cs-more__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.6vw, 40px); }
.cs-more__head .text-link { font-size: clamp(16px, 1.2vw, 20px); }
.cs-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); }
.cs-more__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cs-more__media { width: 100%; aspect-ratio: 4 / 3; margin-bottom: clamp(10px, 1.2vw, 18px); overflow: hidden; border-radius: 12px; background: #e9e3da; }
.cs-more__media img { transition: transform .9s var(--ease-out), filter .6s var(--ease-out); }
.cs-more__dir { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); transition: transform .5s var(--ease-out); }
.cs-more__title { font-weight: 400; font-size: clamp(17px, 2.2vw, 36px); line-height: 1.1; letter-spacing: -.03em; transition: color .4s; }
.cs-more__sub { font-size: clamp(13px, 1vw, 15px); color: var(--ink-2); }
.cs-more__card:hover .cs-more__media img { transform: scale(1.05); filter: brightness(.88); }
.cs-more__card:hover .cs-more__title { color: var(--bronze); }
.cs-more__card:hover .cs-more__dir { transform: translateX(6px); }
.cs-more__card:focus-visible { outline: 2px solid var(--bronze); outline-offset: 6px; border-radius: 12px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .nav, .nav__indicator, .header__tag { display: none; }
  .header { height: 68px; }
  .whead__row { grid-template-columns: auto 1fr; }
  .whead__count { display: none; }
  .wgrid.is-list .wcard { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; }
  .wgrid.is-list .wcard__meta { min-width: 0; }
  .wgrid.is-list .wcard__title { font-size: clamp(26px, 7vw, 44px); overflow-wrap: anywhere; }
  .burger { display: block; }
  .hcv { display: inline-flex; }
  .logo { border-right: 0; padding-right: 12px; }   /* no divider on mobile: it crowded the resume button */
  /* Tablets & phones: same dial, stacked: intro, name, dial, details */
  .jintro { top: calc(68px + 20px); right: var(--gutter); max-width: none; }
  .jintro__text { display: none; }
  .jdial { --size: min(64vw, 34vh); top: calc(68px + 84px + 236px + var(--size) / 2); }   /* sits just below the name + note */
  .jnames { top: calc(68px + 84px); transform: none; left: var(--gutter); right: var(--gutter); width: auto; height: 110px; }
  .jname { justify-content: flex-start; }
  .jname__place { font-size: clamp(24px, 6.4vw, 36px); line-height: 1.08; }
  .jname__place em { display: block; font-size: .58em; margin-top: 4px; }
  .jnames { height: 228px; overflow: hidden; }
  .jname__note { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  .jname__role { margin-top: 6px; }
  .jcv { left: var(--gutter); right: auto; }
      .wgrid { grid-template-columns: 1fr; }
  .curious__head { grid-template-columns: 1fr; row-gap: 16px; }
  .curious__text { grid-column: 1; grid-row: auto; }
  .rcard { width: clamp(150px, 42vw, 240px); border-radius: 12px; }
  .rcard__cap { opacity: 1; transform: none; font-size: 12px; left: 12px; right: 12px; bottom: 10px; }
  .rcard::after { opacity: 1; }
  .lbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 64px 16px 24px; }
  .lbox__img { max-height: calc(100dvh - 64px - 24px - 52px - 32px - 48px); }
  .lbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lbox__nav--prev { grid-row: 2; justify-self: end; } .lbox__nav--next { grid-row: 2; justify-self: start; }
  .footer__top, .footer__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* minmax(0): nowrap links can no longer widen the page */
  .footer__info, .fnav { grid-column: 1 / -1; }
  .footer__info { grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
    .fcell { min-height: 0; gap: 28px; border-bottom: 1px solid var(--line); }
  .fcell:nth-child(2n) { border-right: 0; }
  .fcell:nth-child(1), .fcell:nth-child(4) { grid-column: 1 / -1; border-right: 0; }
  .fcell:nth-child(2), .fcell:nth-child(3) { grid-column: span 1; }
  .fcell:nth-child(3) { border-right: 0; }
  .toolkit__head { grid-template-columns: 1fr; row-gap: 20px; }
  .toolkit__intro { justify-self: start; }
  .tkgrid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftalk { grid-template-columns: 1fr; gap: 24px; }
  .tkgrid__label { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; border-bottom: 0; padding-bottom: 12px; }
  .tkgrid__label + * { padding-top: 0; }
  .tkgrid > .tools { padding-top: clamp(24px, 2.6vw, 40px); }
  .skillcols { grid-template-columns: 1fr; gap: 32px; }
  .skillcol + .skillcol { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .sitem { min-height: 44px; font-size: 15px; }
  .cs-head__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 960px) {
  .hstrip { height: auto; min-height: 0; }
  .hstrip__track { flex-direction: column; width: 100%; }
    .svc-intro { width: 100%; height: auto; gap: 40px; padding: 96px var(--gutter) 64px; }
  .svc-intro__label { position: static; margin-bottom: 20px; }
  .svc-intro__title .indent { display: none; }
  .svc-intro__bottom { margin-left: 0; width: 100%; padding-top: 0; }
  .svc-intro__links { margin-top: 0; }
  .svc-list { flex-direction: column; height: auto; }
  .svc { width: 100%; height: 72vh; min-height: 480px; padding: 32px var(--gutter) 40px; border-top: 1px solid rgba(27,25,22,.12); }
  .svc::before, .svc:last-child::after { display: none; }
  .svc__title { max-width: none; }
  .hero { height: auto; min-height: 0; }
  .hero__left { width: 100%; height: auto; gap: 48px; padding-bottom: 48px; }
  .hero__bottom { gap: 32px; }
  .hero__thumb { width: 34%; min-width: 0; }
  .hero__info { flex: 1 1 auto; width: auto; }
  .hero__image { position: relative; width: 100%; aspect-ratio: 4/5; height: auto; }
}
@media (max-width: 600px) {
  .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2px; row-gap: 10px; }   /* 16 tools = 4 even rows */
  .tool { padding: 10px 2px; gap: 8px; }
  .tool__name { font-size: 13px; white-space: normal; }
  /* Skills: keep both areas side by side; chips become full-width rows so long labels wrap instead of overflowing */
  .skillcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .skillcol { gap: 14px; }
  .skillcol + .skillcol { padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--line); }
  .skillcol:first-child { padding-right: 14px; }
  .skillcol__title { font-size: 18px; gap: 8px; }
  .skillcol__lede { font-size: 13px; line-height: 1.45; }
  .skillcol__list { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .sitem { width: 100%; min-height: 44px; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; font-size: 13px; line-height: 1.25; }
  .sitem__icon { width: 24px; height: 24px; }
  .sitem__icon svg { width: 13px; height: 13px; }
  .ftalk__row { grid-template-columns: 1fr; }
  .fcell__big { white-space: normal; overflow-wrap: anywhere; }
  .fsocial { white-space: normal; line-height: 1.25; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__thumb { display: none; }
}
/* Mid-size screens: bottom footer row as 2 × 2 so long links never overflow their cell */
@media (min-width: 961px) and (max-width: 1399px) {
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .fcell:nth-child(1), .fcell:nth-child(2), .fcell:nth-child(3), .fcell:nth-child(4) { grid-column: span 1; min-height: 0; gap: 32px; }
  .fcell:nth-child(1), .fcell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .fcell:nth-child(2), .fcell:nth-child(4) { border-right: 0; }
}
/* ================= MOBILE & TOUCH ================= */
@media (max-width: 960px) {

  /* Comfortable tap targets (≥44px) */
  .to-top, .cs__videolink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .cs-back { display: inline-flex; min-height: 44px; }   /* taller tap area, still aligned with the title */
  .menu__nav a { padding: 4px 0; }

  /* Grid / List switch: one line, clear of the iPhone home bar */
  .wview { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wview__btn { white-space: nowrap; padding: 10px 14px; font-size: 14px; min-height: 44px; }

  .cs { padding-left: 0; padding-right: 0; }
  .cs__frame { border-radius: 0; }
}
@media (max-width: 600px) {
  .wview__btn { gap: 8px; padding: 10px 12px; }
}
/* Any touch screen (incl. landscape tablets): tap targets ≥ 44px */
@media (pointer: coarse) {
  .fcell__links a, .fcell__big, .to-top { display: inline-flex; align-items: center; min-height: 44px; }
  .to-top, .cs__videolink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
  .cs-back { display: inline-flex; min-height: 44px; }   /* taller tap area, still aligned with the title */
}
/* Touch screens can't hover: show what hover normally reveals */
@media (hover: none) {
  .wcard__btn { transform: scale(1); }
  .btn:hover::before { transform: translateY(101%); }   /* no stuck "hover" fill after a tap */
  .btn:hover { color: inherit; }
  .btn:active::before { transform: translateY(0); border-radius: 0; transition-duration: .2s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
