/* About page: same type and palette as the contact page and case studies (Hanken Grotesk, white page, charcoal ink, red accent) */
:root {
  --ink: #1b1a17;
  --ink-2: #57544c;
  --paper: #ffffff;
  --soft: #f4f3ef;
  --line: rgba(27, 26, 23, 0.14);
  --accent: #D92D20;
  --f: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
em { font-style: italic; }
h1 em, h2 em, h3 em, h4 em { font-style: normal; }   /* headings stay upright; colour does the contrast */
img { display: block; max-width: 100%; height: auto; }

/* header */
.a-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); pointer-events: none; }
.pill {
  pointer-events: auto; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line);
}
.a-crumb { font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.pill-line { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }   /* the faint edge keeps it visible over dark sections */
.pill:hover { background: var(--ink); color: #fff; }
.pill:focus-visible, main a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* shared bits */
.a-label { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.a-h2 { font-weight: 500; font-size: clamp(38px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.045em; margin-top: 14px; }
.a-sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.a-sec-note { margin-top: 16px; color: var(--ink-2); max-width: 22rem; }
section { padding: clamp(80px, 11vw, 150px) var(--gutter); }

/* scroll reveal (about.js adds .is-in); content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.a-hero {
  min-height: min(100svh, 1000px); padding-top: clamp(110px, 14vh, 150px); padding-bottom: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.a-title { font-weight: 500; font-size: clamp(60px, 8.6vw, 164px); line-height: 0.88; letter-spacing: -0.045em; margin-left: -0.04em; }
.a-title em { color: #6b675f; }
.a-lede { margin-top: clamp(24px, 3vw, 40px); max-width: 32rem; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: #3a3833; text-wrap: pretty; }
.a-portrait { position: relative; border-radius: 22px; overflow: hidden; background: var(--soft); aspect-ratio: 1091 / 1364; justify-self: end; width: min(100%, 520px, calc((100svh - 190px) * 1091 / 1364)); }   /* sized by height too, so it never crops */
.a-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.05); transform: scale(1.04); transition: filter 1.6s ease 0.2s, transform 1.8s var(--ease) 0.2s; }
.a-portrait.is-in img { filter: none; transform: none; }   /* pencil grey warms into the final photo */
.a-portrait figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 13px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.a-clock { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- bio ---------- */
.a-bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.a-bio .a-label { padding-top: 10px; }
.a-bio-text { display: flex; flex-direction: column; gap: 0.9em; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.28; letter-spacing: -0.02em; text-wrap: pretty; max-width: 34em; }
.a-bio-text a { text-decoration: underline 2px var(--accent); text-underline-offset: 0.18em; transition: color 0.2s ease; }
.a-bio-text a:hover { color: var(--accent); }
.a-bio-text p:last-child { color: #6b675f; }
.a-facts { grid-column: 2; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(30px, 4vw, 56px); border-top: 1px solid var(--ink); }
.a-facts li { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.a-facts b { font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.04em; }
.a-facts span { font-size: 14px; color: var(--ink-2); }

/* ---------- services ---------- */
.a-services { background: var(--soft); }
.a-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.a-svc {
  display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 26px 24px 24px; border-radius: 18px; background: #fff;
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.a-svc-no { font-weight: 600; font-size: 13px; color: var(--accent); }
.a-svc h3 { font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.03em; margin-top: auto; }
.a-svc p:not(.a-svc-no) { font-size: 15px; color: var(--ink-2); transition: color 0.3s ease; }
.a-svc a { margin-top: 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
.a-svc a span { display: inline-block; transition: transform 0.3s ease; }
.a-svc:hover { background: var(--ink); color: #fff; }
.a-svc:hover p:not(.a-svc-no) { color: rgba(255, 255, 255, 0.7); }
.a-svc:hover a span { transform: translateX(4px); }

/* ---------- process ---------- */
.a-process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.a-sticky { position: sticky; top: 110px; }
.a-steps { list-style: none; border-top: 1px solid var(--ink); }
.a-step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); }
.a-step-no { font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.a-step h3 { font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.035em; }
.a-step p { margin-top: 10px; color: var(--ink-2); max-width: 34rem; }

/* ---------- experience ---------- */
.a-exp { border-top: 1px solid var(--line); }
.a-jobs { list-style: none; border-top: 1px solid var(--ink); }
.a-job {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: background 0.35s ease;
}
.a-job > * { transition: transform 0.35s var(--ease); }
.a-job:hover { background: var(--soft); }
.a-job:hover .a-when, .a-job:hover .a-role { transform: translateX(12px); }
.a-job:hover .a-org { transform: translateX(-12px); }
.a-when { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-role { font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em; }
.a-org { font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em; text-align: right; }
.a-edu-tools { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(56px, 7vw, 96px); }
.a-edu { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.a-edu li { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.a-edu b { font-weight: 600; font-size: 19px; }
.a-edu span { color: var(--ink-2); font-size: 15px; }
.a-tools { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.a-tools li { font-weight: 500; font-size: 15px; padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- CTA ---------- */
.a-cta { background: #141412; color: #fff; padding-bottom: 28px; min-height: 80svh; display: flex; flex-direction: column; }
.a-cta-title { font-weight: 500; font-size: clamp(56px, 9vw, 150px); line-height: 0.92; letter-spacing: -0.045em; }
.a-cta-title em { color: rgba(255, 255, 255, 0.5); }
.a-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.a-btn { font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; padding: 16px 24px; border-radius: 999px; background: var(--accent); color: #fff; transition: background 0.2s ease, color 0.2s ease; }
.a-btn span { display: inline-block; transition: transform 0.3s ease; }
.a-btn:hover { background: #B8231A; }
.a-btn:hover span { transform: translateX(3px); }
.a-btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.a-btn-line:hover { background: #fff; color: #141412; }
.a-cta a:focus-visible { outline-color: #fff; }
.a-footer { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 14px; color: rgba(255, 255, 255, 0.58); }
.a-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.a-cta-actions { margin-bottom: clamp(80px, 12vw, 160px); }

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

@media (max-width: 1080px) {
  .a-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-svc { min-height: 260px; }
}
@media (max-width: 820px) {
  .a-crumb { display: none; }
  .a-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; }
  .a-portrait { justify-self: stretch; width: min(100%, calc(70svh * 1091 / 1364)); }
  .a-bio { grid-template-columns: 1fr; }
  .a-facts { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .a-svc-grid { grid-template-columns: 1fr; }
  .a-svc { min-height: 0; }
  .a-svc h3 { margin-top: 18px; }
  .a-process { grid-template-columns: 1fr; }
  .a-sticky { position: static; }
  .a-step { grid-template-columns: 3.2rem 1fr; }
  .a-job { grid-template-columns: 1fr; gap: 4px; }
  .a-org { text-align: left; order: -1; }
  .a-edu-tools { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .js .reveal, .a-portrait img { transition: none; opacity: 1; transform: none; filter: none; }
  .a-svc, .a-job, .a-job > *, .a-btn span, .a-svc a span { transition: none; }
}
