/* Shared styles for project case-study pages. One typeface (Hanken Grotesk), white pages with black
   text, charcoal feature sections; each page sets its own --brand colours on <body>. */
:root {
  --ink: #1b1a17;
  --ink-2: #57544c;
  --paper: #ffffff;
  --char: #1d1d1c;
  --char-text: #f3ebe4;
  --line: rgba(27, 26, 23, 0.14);
  --f: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --brand: #ff5a36;
  --brand-2: #1b1a17;
  --slide: #f5f5f5;
}

* { 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; }
img { display: block; max-width: 100%; height: auto; } /* width/height attributes reserve space; CSS keeps the ratio */
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 */

.eyebrow { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.p-dark .eyebrow { color: rgba(243, 235, 228, 0.6); }

/* ---------------- Header ---------------- */
.p-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  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);
}
.p-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-line:hover { background: var(--brand); }

/* ---------------- Hero ---------------- */
.p-hero { padding: 17vh var(--gutter) 0; }
.p-title {
  font-weight: 500; font-size: clamp(64px, 14.5vw, 250px); line-height: 0.86; letter-spacing: -0.06em;
  margin: 0 0 0 -0.04em;
}
.p-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.p-line > span { display: inline-block; }
.p-line:first-child > span { color: var(--brand); }
.p-line:first-child { margin-bottom: -0.16em; } /* "IREP" has no descenders: pull "workspaces" up under it */
.p-meta .p-collab { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.p-collab a { text-decoration: none; border-bottom: 1px solid currentColor; }
.p-collab a:hover { color: var(--brand); }
.p-intro {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px);
  margin: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
}
.p-lede { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.42; letter-spacing: -0.01em; max-width: 34rem; }
.p-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; align-content: start; }
.p-meta dt { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.p-meta dd { font-size: 16px; line-height: 1.4; }
.p-cover { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; background: var(--slide); transform-origin: 50% 0; will-change: transform; }
.p-cover img { width: 100%; }

/* ---------------- Text split: label left, copy right ---------------- */
.p-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 5vw, 80px);
  padding: clamp(90px, 12vw, 170px) var(--gutter) 0;
}
.p-label { font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.7em; }
.p-big { font-weight: 500; font-size: clamp(26px, 3vw, 46px); line-height: 1.15; letter-spacing: -0.03em; max-width: 24ch; }
.p-copy { display: flex; flex-direction: column; gap: 22px; }
.p-copy p:not(.p-big) { max-width: 38rem; color: #3a3833; }
.p-dark .p-copy p:not(.p-big) { color: rgba(243, 235, 228, 0.78); }
.p-copy em { color: var(--brand); font-style: normal; font-weight: 600; }
.p-h2 { font-weight: 500; font-size: clamp(40px, 5vw, 78px); line-height: 0.95; letter-spacing: -0.045em; }

/* ---------------- Dark feature sections ---------------- */
.p-dark { background: var(--char); color: var(--char-text); margin-top: clamp(90px, 12vw, 170px); }
.p-dark .p-label { color: rgba(243, 235, 228, 0.55); }

/* identity board */
.p-identity { padding-bottom: clamp(80px, 10vw, 140px); }
.p-identity .p-split { padding-top: clamp(80px, 10vw, 140px); }
.id-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.id-tile { border-radius: 14px; overflow: hidden; position: relative; }
.id-tile figcaption, .id-swatch span, .id-tagline span {
  position: absolute; left: 16px; bottom: 14px; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.id-logo { grid-column: span 6; grid-row: span 2; background: var(--slide); display: grid; place-items: center; padding: 12% 10%; }
.id-logo img { width: 100%; max-width: 440px; }
.id-logo figcaption, .id-type figcaption { color: #6b675f; }
.id-type { grid-column: span 6; grid-row: span 2; background: #f5f5f5; display: grid; place-items: center; padding: 8% 10% 56px; }
.id-type img { width: 100%; max-width: 400px; height: auto; }
.id-swatch { grid-column: span 3; background: var(--c); color: #fff; display: flex; align-items: flex-start; padding: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.id-swatch code { font-family: var(--f); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; }
.id-swatch.light { color: var(--ink); }
.id-tagline { grid-column: span 12; background: #ffffff; color: var(--brand-2); padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) 56px; }
.id-tagline p { font-weight: 800; font-size: clamp(30px, 5vw, 80px); line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.id-tagline b { color: var(--brand); }
.id-tagline span { color: #6b675f; }

/* ---------------- Company profile gallery (sideways on desktop) ---------------- */
.p-gallery { overflow: hidden; height: 100vh; height: 100svh; display: flex; align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.g-track { display: flex; gap: 22px; align-items: center; padding: 0 var(--gutter); width: max-content; }
.g-intro { width: min(30rem, 80vw); display: flex; flex-direction: column; gap: 18px; padding-right: 3vw; }
.g-intro p:last-child { color: #3a3833; }
.g-slide { width: min(60vw, calc((100svh - 190px) * 16 / 9)); flex: none; }
.g-slide img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, 0.08); background: var(--slide); }
.g-slide figcaption { margin-top: 14px; font-size: 15px; color: #3a3833; }
.g-slide figcaption b { color: var(--brand); font-weight: 700; margin-right: 8px; }

/* ---------------- Location template: pile spreads into a grid ---------------- */
.t-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.t-grid img { width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.1); background: var(--slide); will-change: transform; }
.t-grid img:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------------- Pitch deck viewer ---------------- */
.pv-pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: 90px var(--gutter) 60px; overflow: hidden;
}
.pv-text { display: flex; flex-direction: column; gap: 18px; }
.pv-text p:not(.eyebrow) { color: rgba(243, 235, 228, 0.78); max-width: 26rem; }
.pv-count { font-weight: 500; font-size: clamp(44px, 5vw, 80px) !important; letter-spacing: -0.05em; line-height: 1; color: var(--char-text) !important; margin-top: 12px; }
.pv-count span:first-child { color: var(--brand); }
.pv-cap { min-height: 3em; font-size: 16px; }
.pv-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.pv-stage figure { position: absolute; inset: 0; overflow: hidden; background: var(--slide); }
.pv-text .p-h2 { font-size: clamp(36px, 3.6vw, 60px); }
.pv-stage img { width: 100%; height: 100%; object-fit: cover; }


/* ---------------- Sub-heading rows inside a section ---------------- */
.p-sub { padding-top: clamp(70px, 9vw, 120px); }
.p-sub p { max-width: 38rem; color: #3a3833; font-size: 18px; }
.p-dark .p-sub p { color: rgba(243, 235, 228, 0.78); }

/* brand guidelines pages */
.bg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: clamp(32px, 4vw, 56px) var(--gutter) 0; }
.bg-grid img { width: 100%; border-radius: 8px; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bg-grid figure:hover img { transform: translateY(-6px); }
.bg-grid figcaption { margin-top: 10px; font-size: 14px; color: rgba(243, 235, 228, 0.7); }

/* ---------------- Brand kit bento ---------------- */
.kit-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 270px); gap: 14px;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.kit-grid figure { border-radius: 12px; overflow: hidden; background: #eee; }
.kit-grid img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.k-a { grid-column: span 2; grid-row: span 2; }
.k-b { grid-column: span 2; }
.k-g { grid-column: span 2; grid-row: span 2; }
.k-h { grid-column: span 2; }

/* ---------------- Website: live frame (desktop / phone) + launch archive ---------------- */
.p-web { padding-bottom: clamp(90px, 12vw, 160px); }
.web-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: clamp(40px, 5vw, 64px) var(--gutter) 22px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(243, 235, 228, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 235, 228, 0.12); }
.seg button {
  font: 600 13px/1 var(--f); letter-spacing: 0.01em; color: rgba(243, 235, 228, 0.72);
  background: none; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.25s ease, color 0.25s ease;
}
.seg button:hover { color: var(--char-text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--char-text); color: var(--char); }
.seg button:focus-visible, .web-open:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.web-open { margin-left: auto; font-weight: 600; font-size: 14px; color: var(--char-text); text-decoration: none; padding: 10px 4px; border-bottom: 1px solid rgba(243, 235, 228, 0.35); }
.web-open:hover { border-color: var(--brand); color: #fff; }
.p-web[data-mode="screens"] .seg-device { visibility: hidden; }

.web-panel { padding: 0 var(--gutter); }
.web-frame { margin: 0 auto; border-radius: 12px; overflow: hidden; background: #2a2a29; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.web-frame[data-device="desktop"] { width: min(100%, calc((100svh - 150px) * 1.6)); }
.web-frame[data-device="mobile"] { width: min(360px, 100%); border-radius: 38px; padding: 10px; background: #111; box-shadow: 0 0 0 2px #2c2c2b, 0 30px 70px rgba(0, 0, 0, 0.5); }
.web-frame[data-device="mobile"] .browser-bar { display: none; }
.web-frame[data-device="mobile"] .web-viewport { border-radius: 28px; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #2f2f2e; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #55534f; }
.browser-bar span { margin: 0 auto; font-size: 12px; color: rgba(243, 235, 228, 0.6); background: #232322; padding: 3px 40px; border-radius: 6px; }
.web-viewport { position: relative; overflow: hidden; background: #fff; height: calc(var(--vh-px, 900px) * var(--s, 1)); }
.web-viewport iframe { position: absolute; left: 0; top: 0; border: 0; width: var(--vw-px, 1440px); height: var(--vh-px, 900px); transform: scale(var(--s, 1)); transform-origin: 0 0; background: #fff; }
.web-status {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: #f5f5f5; color: var(--ink); font-weight: 500; font-size: 15px; transition: opacity 0.4s ease;
}
.web-status a { color: var(--brand); font-weight: 600; }
.web-status.is-done { opacity: 0; pointer-events: none; }

.web-note { font-size: 14px; color: rgba(243, 235, 228, 0.6); margin-bottom: 18px; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.shot { flex: none; width: min(62vw, 880px); scroll-snap-align: start; }
.shot-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: rgba(243, 235, 228, 0.7); }
.phones { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); padding-top: clamp(40px, 6vw, 80px); }
/* phone frame: dark bezel + status bar with a notch, so the screen starts below the rounded corners;
   the screenshot keeps its true proportions (nothing cropped) */
.phone {
  position: relative; width: min(13.5vw, 210px); flex: none; align-self: flex-start;
  padding: 18px 6px 6px; border-radius: 30px; background: #121212;
  box-shadow: inset 0 0 0 1.5px #3a3a38, 0 26px 60px rgba(0, 0, 0, 0.5);
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30%; height: 7px; border-radius: 99px; background: #2c2c2b; transform: translateX(-50%); }
.phone img { width: 100%; height: auto; border-radius: 3px 3px 24px 24px; }
.phone:nth-child(even) { margin-top: 50px; }

/* ---------------- LinkedIn: drifting rows + one full carousel ---------------- */
.li-rows { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.li-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.li-row[data-dir="1"] { margin-left: -40vw; }
.li-card { position: relative; width: clamp(170px, 17vw, 270px); flex: none; }
.li-card img { width: 100%; height: auto; aspect-ratio: 1080 / 1350; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, 0.08); }
.li-pages {
  position: absolute; right: 10px; bottom: 10px; font-weight: 600; font-size: 11px; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink);
}
.tale { overflow: hidden; padding-top: clamp(32px, 4vw, 56px); }
.tale-track { display: flex; gap: 12px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.tale-track img { width: clamp(200px, 21vw, 320px); height: auto; aspect-ratio: 1080 / 1350; object-fit: cover; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }


/* ---------------- Deck pages: grid with the cover large ---------------- */
.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.deck-grid figure { display: flex; flex-direction: column; gap: 10px; }
.deck-grid img { width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(0, 0, 0, 0.08); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.deck-grid figure:hover img { transform: translateY(-6px); }
.deck-grid figcaption { font-size: 14px; color: var(--ink-2); }
.deck-grid .k-big { grid-column: span 2; grid-row: span 2; }


/* ---------------- Identity extras: photo tiles, wide type tile ---------------- */
.id-photo { background: #111; }
.id-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-photo figcaption { color: rgba(255, 255, 255, 0.8); }
.id-tile figcaption.on-light { color: rgba(0, 0, 0, 0.62); }
.id-type-wide { grid-column: span 12; background: #fff; display: grid; place-items: center; padding: 3% 4% 48px; }
.id-type-wide img { width: 100%; max-width: 1100px; }
.issc-tagline { background: var(--brand) !important; color: #fff !important; }
.issc-tagline b { color: #FFD301 !important; }
.issc-tagline span { color: rgba(255, 255, 255, 0.7) !important; }

/* single full-width mockup */
.kit-grid.issc-kit { grid-auto-rows: auto; }
.k-full { grid-column: 1 / -1; }
.k-full img { height: auto; }

/* ---------------- Magazine ad: two pages as an open spread ---------------- */
.ad-spread { display: flex; justify-content: center; gap: 0; padding: clamp(50px, 7vw, 100px) var(--gutter) 0; perspective: 1800px; }
.ad-page { width: min(36vw, 460px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18); }
.ad-page img { width: 100%; }
.ad-left { transform: rotateY(8deg); transform-origin: right center; border-radius: 6px 0 0 6px; overflow: hidden; }
.ad-right { transform: rotateY(-8deg); transform-origin: left center; border-radius: 0 6px 6px 0; overflow: hidden; }

/* ---------------- Website in progress ---------------- */
.p-soon { padding-bottom: clamp(90px, 12vw, 160px); }
.soon-card { margin: clamp(40px, 6vw, 80px) var(--gutter) 0; border-radius: 12px; overflow: hidden; background: #2a2a29; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.soon-body { position: relative; min-height: clamp(260px, 38vw, 520px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--brand); text-align: center; padding: 40px 24px 90px; overflow: hidden; }
.soon-tag { font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #FFD301; border: 1px solid rgba(255, 211, 1, 0.6); padding: 7px 14px; border-radius: 999px; }
.soon-line { font-weight: 800; font-size: clamp(28px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; color: #fff; max-width: 14ch; }
.soon-line b { color: #FFD301; }
.soon-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: repeating-linear-gradient(-45deg, #FFD301 0 22px, #1b1b1b 22px 44px); }


/* ---------------- Light slide viewer inside a browser frame (Quattro walkthrough) ---------------- */
.browser { border-radius: 12px; overflow: hidden; background: #2a2a29; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.browser .pv-stage { border-radius: 0; box-shadow: none; }
.p-walk { margin-top: clamp(40px, 6vw, 80px); }
.p-walk .pv-text p:not(.eyebrow) { color: #3a3833; }
.p-walk .pv-count { color: var(--ink) !important; }
.p-walk .pv-count span:first-child { color: var(--brand); }
.light-phones .phone { box-shadow: inset 0 0 0 1.5px #3a3a38, 0 26px 50px rgba(0, 0, 0, 0.22); }
.p-mobile .phones { padding-bottom: 0; }


/* ---------------- Studio page: services, studio work cards, inline links ---------------- */
.p-inline-link { text-decoration: none; border-bottom: 1px solid currentColor; }
.p-inline-link:hover { color: var(--brand); }
.p-services { padding-bottom: clamp(90px, 12vw, 160px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.svc { background: #232322; border-radius: 16px; padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1px rgba(243, 235, 228, 0.08); }
.svc-num { width: 30px; height: 30px; border-radius: 9px; background: #FF5700; color: #111; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.svc h3 { font-weight: 600; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; color: #fff; }
.svc p { color: rgba(243, 235, 228, 0.75); }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.svc li { font-size: 13px; font-weight: 500; color: rgba(243, 235, 228, 0.85); background: rgba(243, 235, 228, 0.08); padding: 7px 12px; border-radius: 999px; }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.sw-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.sw-media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eee; box-shadow: 0 0 0 1px var(--line); }
.sw-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-card:hover .sw-media img { transform: scale(1.04); }
.sw-meta { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.sw-card h3 { font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.03em; color: var(--c, var(--ink)); }
.sw-card h3 span { display: inline-block; transition: transform 0.3s ease; }
.sw-card:hover h3 span { transform: translateX(6px); }
.sw-card:focus-visible { outline: 2px solid var(--c, var(--brand)); outline-offset: 6px; border-radius: 12px; }

/* ---------------- What I did ---------------- */
.p-role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 5vw, 80px); padding: clamp(90px, 12vw, 170px) var(--gutter) 0; }
.r-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.r-cols > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.r-cols h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.r-cols p { color: #3a3833; font-size: 16px; }

/* ---------------- Next ---------------- */
.p-next { padding: clamp(110px, 14vw, 200px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 60px; }
.next-link { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.next-title { font-weight: 500; font-size: clamp(56px, 10vw, 170px); line-height: 0.9; letter-spacing: -0.055em; color: var(--nb2, var(--ink)); }
/* next-project links wear the destination's brand, not the current page's */
.nt-a { color: var(--nb, var(--brand)); }
.nt-arrow { display: inline-block; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.35s ease; }
.next-link:hover .nt-arrow, .next-link:focus-visible .nt-arrow { transform: translateX(0.18em); color: var(--nh, var(--nb, var(--brand))); }
.next-link:focus-visible { outline: 2px solid var(--nb, var(--brand)); outline-offset: 8px; border-radius: 4px; }
.credit { font-size: 13px; color: var(--ink-2); }

/* ---------------- 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%); } }

/* ---------------- Phones ---------------- */
@media (max-width: 820px) {
  .p-crumb { display: none; }
  .p-intro, .p-split, .p-role { grid-template-columns: 1fr; }
  .p-meta { grid-template-columns: 1fr 1fr; }
  .id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(120px, auto); }
  .id-logo, .id-type, .id-tagline { grid-column: span 2; grid-row: auto; min-height: 220px; }
  /* gallery: swipe sideways instead of the pinned scroll */
  .p-gallery { height: auto; display: block; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 90px 0 0; }
  .g-slide { width: 84vw; scroll-snap-align: center; }
  .g-intro { width: 84vw; scroll-snap-align: start; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .pv-pin { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: 80px; }
  .pv-text p:not(.eyebrow):not(.pv-count):not(.pv-cap) { display: none; }
  .pv-count { font-size: 40px !important; margin-top: 0; }
  .r-cols { grid-template-columns: 1fr; }
  .deck-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid, .sw-grid { grid-template-columns: 1fr; }
  .ad-page { width: 46vw; }
  .id-photo { grid-column: span 2 !important; }
  .id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-swatch, .id-swatch.light { grid-column: span 1; }
  .bg-grid { grid-template-columns: 1fr 1fr; }
  .kit-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .k-a, .k-g { grid-row: span 1; }
  .phones { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; }
  .web-open { margin-left: 0; }
  .shot { width: 84vw; }
  .phone, .light-phones .phone { width: 58vw; scroll-snap-align: center; }
  .phone:nth-child(even) { margin-top: 0; }
  .li-card { width: 38vw; }
  .tale { overflow-x: auto; }
  .tale-track img { width: 60vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .pv-stage { aspect-ratio: auto; display: flex; flex-direction: column; gap: 16px; }
  .pv-stage { overflow: visible; background: none; box-shadow: none; }
  .pv-stage figure { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
  .pv-count { display: none; }
}
