/* =========================================================
   Portfolio v3
   Colours: Okta Studio   (#18201E / #F2EFE9 / #E24217)
   Sections + motion: Creatie
   Cursor: Figma multiplayer pointer
   All sizing in px.
   ========================================================= */

:root {
  --bg: #18201e;        /* Okta body background, deep green-black */
  --bg-deep: #0c0f0e;   /* Okta darker alternate */
  --paper: #f2efe9;     /* Okta parchment: text on dark, light sections */
  --orange: #e24217;    /* Okta accent */
  --ink: #18201e;       /* text on light sections */
  --line: rgba(242, 239, 233, 0.14);
  --line-ink: rgba(24, 32, 30, 0.16);
  --mute: rgba(242, 239, 233, 0.62);
  --mute-ink: rgba(24, 32, 30, 0.66);
  --card: #212b28;

  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, serif;

  --gutter: 40px;
  --shell: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--paper); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 14px; font-size: 14px;
}

/* Accent words: Okta sets them in italic serif. */
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.5px; }

/* =========================================================
   Figma cursor
   ========================================================= */

.fcursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
  color: var(--orange);
  will-change: transform;
}

html.has-fcursor .fcursor { display: block; }
html.has-fcursor,
html.has-fcursor * { cursor: none !important; }
html.has-fcursor input,
html.has-fcursor textarea,
html.has-fcursor select { cursor: text !important; }

.fcursor-arrow {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  transition: transform 200ms var(--ease);
}

.fcursor-tag {
  position: absolute;
  top: 18px; left: 16px;
  background: var(--orange);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 4px 12px 12px 12px;
  white-space: nowrap;
  transition: padding 240ms var(--ease), font-size 240ms var(--ease);
}

.fcursor.is-hover .fcursor-tag { padding: 9px 13px; font-size: 13px; }
.fcursor.is-hover .fcursor-arrow { transform: scale(1.15) rotate(-8deg); }
.fcursor.is-down .fcursor-arrow { transform: scale(0.85); }
.fcursor.is-hidden { opacity: 0; }
/* over orange surfaces the pointer turns dark so it stays visible */
.fcursor.is-dark { color: var(--ink); }
.fcursor.is-dark .fcursor-tag { background: var(--ink); }

/* =========================================================
   Splash screen (after Nudge): grid background, a greeting typed
   inside a cursor bubble, then the logo letter by letter, then a fade out.
   If the script never runs, the last animation below removes it after 8s.
   ========================================================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(242, 239, 233, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 239, 233, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--paper);
  transition: opacity 500ms ease, visibility 0s linear 500ms;
  animation: splash-failsafe 400ms ease 8s forwards;
}

.splash.is-leaving { opacity: 0; visibility: hidden; }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

.splash-hello {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-start;
  color: var(--orange);
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 0 0;
  transition: opacity 250ms ease, transform 450ms var(--ease);
}

.splash-hello > svg { flex: none; margin: -14px -4px 0 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }

.splash-bubble {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin: 0;
  padding: 12px 24px;
  border-radius: 0 16px 16px 16px;
  background: var(--orange);
  color: var(--paper);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
}

.splash-caret { width: 3px; height: 40px; margin-left: 4px; background: var(--paper); animation: splash-blink 700ms steps(1) infinite; }
@keyframes splash-blink { 50% { opacity: 0; } }


/* the logo, typed inside the bubble: icon first, then each letter (JS adds .is-on and widens the clip) */
.splash-logo-clip { display: block; width: 0; overflow: hidden; transition: width 220ms var(--ease); }
.splash-logo { display: block; width: 340px; max-width: none; height: auto; color: var(--paper); }

.splash-logo .sl-icon { opacity: 0; transform: translateX(-12px); transition: opacity 400ms ease, transform 500ms var(--ease); }
.splash-logo .sl-l { opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 260ms var(--ease); }
.splash.is-logo .sl-icon { opacity: 1; transform: none; }
.splash-logo .sl-l.is-on { opacity: 1; transform: none; }
.splash.is-hello .splash-hello { opacity: 1; transform: none; }

html.splash-lock { overflow: hidden; }
/* no pointer while the splash plays */
.splash { cursor: none; }
html.splash-lock .fcursor { opacity: 0; }
/* the toolbar waits for the splash before sliding in */
.is-home.has-splash .dock { animation-delay: 4100ms; }

/* =========================================================
   Top bar + Figma-style toolbar nav
   ========================================================= */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 30px var(--gutter);
  pointer-events: none; /* lets the hero contact card underneath be hovered */
}

.logo { display: block; color: var(--paper); pointer-events: auto; transition: color 250ms ease; }
.logo:hover { color: var(--orange); }
.logo-mark { display: block; height: 30px; width: auto; }

.avail-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

@keyframes ping {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(12, 15, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  transform: translate(-50%, 140%);
  animation: dock-in 900ms var(--ease) 700ms forwards;
}

@keyframes dock-in { to { transform: translate(-50%, 0); } }

.dock a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 11px;
  transition: background 200ms ease, color 200ms ease;
}

.dock a:hover { background: rgba(242, 239, 233, 0.09); }
/* the item for the section on screen (or the one just clicked) turns orange */
.dock a { transition: background-color 250ms ease, color 250ms ease; }
.dock a.is-active { background: var(--orange); color: #fff; }
.dock a.is-active:hover { background: #f0501f; }

/* =========================================================
   Shared type
   ========================================================= */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.kicker--ink { border-color: var(--line-ink); }
.kicker--ink::before { background: var(--ink); }

.section-title {
  font-weight: 800;
  font-size: clamp(44px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
  margin: 0 0 32px;
  max-width: 13ch;
}

.section-title em { color: var(--orange); letter-spacing: -2px; text-transform: uppercase; font-weight: inherit; }

.page-lede,
.about-lede {
  font-size: 20px;
  line-height: 1.5;
  max-width: 54ch;
  margin: 0 0 32px;
  color: var(--mute);
}

/* Word-by-word rise (split by main.js) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.word > span { display: inline-block; transform: translateY(110%); transition: transform 1000ms var(--ease); }
.is-in .word > span,
.word.is-in > span { transform: translateY(0); }

/* Section reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   Buttons (after the Nudge "Contact me" button)
   Solid sharp rectangle, 56px tall: a 40px accent square with a double chevron,
   then a small uppercase label. On hover the chevron rolls through the square
   and four square dots appear on the corners.
   ========================================================= */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 8px;
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 250ms ease, color 250ms ease;
}

/* accent square + double chevron (the image repeats, so shifting it 40px rolls a new chevron in) */
.cta::before {
  content: "";
  flex: none;
  width: 40px; height: 40px;
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M14 14l6 6-6 6M21 14l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-repeat: repeat-x;
  background-position: 0 0;
  transition: background-position 500ms var(--ease);
}

/* four 8px corner dots: white squares with a dark 1px edge, centred on the corners */
.cta::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 220ms ease, transform 300ms var(--ease);
  background:
    linear-gradient(#fff, #fff) 1px 1px / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) 1px calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 1px) calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(#222, #222) 0 0 / 8px 8px no-repeat,
    linear-gradient(#222, #222) 100% 0 / 8px 8px no-repeat,
    linear-gradient(#222, #222) 0 100% / 8px 8px no-repeat,
    linear-gradient(#222, #222) 100% 100% / 8px 8px no-repeat;
}

.cta > span { transition: transform 400ms var(--ease); }

.cta:hover::before, .cta:focus-visible::before { background-position: 40px 0; }
.cta:hover::after, .cta:focus-visible::after { opacity: 1; transform: none; }
.cta:hover > span, .cta:focus-visible > span { transform: translateX(3px); }

/* hover: no fill, just the outline */
.cta:hover, .cta:focus-visible { background: transparent; color: var(--paper); }
.cta--dark:hover, .cta--dark:focus-visible { background: transparent; color: #111212; }

/* on light backgrounds */
.cta--dark { background: #111212; border-color: #111212; color: #fff; }

/* =========================================================
   1. Hero
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding-bottom: 150px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px var(--gutter) 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(242, 239, 233, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 239, 233, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Contact card: a pill that opens into contact rows on hover, focus or tap */
.hc-slot { position: absolute; z-index: 31; top: 104px; left: var(--gutter); height: 62px; }

.hero-card {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 20px 12px 18px;
  background: rgba(33, 43, 40, 0.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: left;
  outline: none;
  transition: transform 500ms var(--ease), background 400ms var(--ease), border-color 400ms var(--ease),
    padding 500ms var(--ease), border-radius 500ms var(--ease), box-shadow 400ms var(--ease);
}

.hc-top { display: flex; align-items: center; gap: 12px; }

.hero-avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
}

.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-who { margin: 4px 0 0; white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }

.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #1fa463; flex: none; }
.ping::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #1fa463;
  animation: ping 1.8s var(--ease) infinite;
}

.hc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease); }
.hc-inner { overflow: hidden; min-height: 0; display: grid; gap: 2px; }

.hc-bio { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--mute); white-space: normal; }
.hc-tags { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; margin: 12px 0 4px; font-size: 12px; font-weight: 600; }
.hc-tags span + span::before { content: "•"; margin: 0 6px; color: var(--orange); }
/* width:0 + min-width:100% keeps the hidden text from widening the closed pill */
.hc-bio { width: 0; min-width: 100%; }
.hc-bio, .hc-tags { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }

/* Opens on hover / focus / tap. Colours stay as they are. */
.hero-card:hover, .hero-card:focus-within, .hero-card.is-open { padding: 14px 20px 12px 18px; border-radius: 22px; }
.hero-card:hover .hc-more, .hero-card:focus-within .hc-more, .hero-card.is-open .hc-more { grid-template-rows: 1fr; }
.hero-card:hover .hc-bio, .hero-card:focus-within .hc-bio, .hero-card.is-open .hc-bio,
.hero-card:hover .hc-tags, .hero-card:focus-within .hc-tags, .hero-card.is-open .hc-tags { opacity: 1; transform: none; }
.hero-card:hover .hc-tags, .hero-card:focus-within .hc-tags, .hero-card.is-open .hc-tags { transition-delay: 80ms; }

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, min(8.4vw, 12.6svh), 136px);
  line-height: 0.88;
  letter-spacing: -4px;
  text-transform: uppercase;
  max-width: 12ch;
  pointer-events: none;
}

.hero-stage { position: relative; z-index: 2; display: inline-block; }

/* Description under the headline: quiet lead-in, louder second half */
/* Description: bottom left of the hero (Creatie style), opposite the project cards */
.hero-sub {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  z-index: 2;
  max-width: 420px;
  margin: 0;
  text-align: left;
  font-size: 17px;
  line-height: 1.35;
  color: var(--mute);
}
.hero-sub strong { display: block; margin-top: 2px; color: var(--paper); font-size: 24px; font-weight: 600; letter-spacing: -0.5px; }
/* first line: same white as the rest, with one long dash before it */
.hero-sub > span { color: var(--paper); }
.hero-sub > span::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor; }
/* stepped lines: each one starts further right than the one above */
.hero-sub-2 { padding-left: 44px; }
.hero-sub-3 { padding-left: 88px; }

/* Stickers that sit on the headline (Creatie style): light pill, icon circle, paperclip */
.tag-sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 14px;
  background: #ffffff;
  color: #212121;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  rotate: var(--r, 0deg);
  animation: tag-bob 5s ease-in-out infinite;
  outline: 2px solid transparent;
  outline-offset: 5px;
  transition: outline-color 150ms ease, box-shadow 200ms ease;
}

.tag-sticker.is-dragging { outline-color: var(--orange); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45); z-index: 6; }

.tag-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.tag-icon svg { width: 16px; height: 16px; }

.tag-clip {
  position: absolute;
  top: -14px; right: 18px;
  width: 11px; height: 28px;
  border: 2.5px solid #9aa3a0;
  border-radius: 7px;
  rotate: 14deg;
}

.tag-sticker--1 { --r: 8deg; top: -2%; right: 92%; background: #e6f5d4; }
.tag-sticker--1 .tag-icon { background: #3fa34d; }
.tag-sticker--2 { --r: 3deg; top: 21%; left: 92%; background: #f7dcec; animation-delay: -1.6s; }
.tag-sticker--2 .tag-icon { background: #d9479b; }
.tag-sticker--3 { --r: -5deg; top: 66%; right: 90%; animation-delay: -3.2s; }
.tag-sticker--3 .tag-icon { background: #7a4dff; }

@keyframes tag-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Top three projects, stacked bottom right; they fan out on hover */
.hero-projects {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 4;
  width: 320px;
  height: 98px;
}

.mini {
  position: absolute;
  inset: 0;
  z-index: calc(3 - var(--n));
  display: flex;
  gap: 12px;
  padding: 8px;
  text-align: left;
  text-decoration: none;
  border-radius: 16px;
  background: #2a3532;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(calc(var(--n) * -12px)) scale(calc(1 - var(--n) * 0.05));
  transform-origin: 50% 100%;
  transition: transform 600ms var(--ease), background 300ms ease;
}

.hero-projects:hover .mini,
.hero-projects:focus-within .mini { transform: translateY(calc(var(--n) * -108px)) scale(1); }
.hero-projects .mini:hover { transform: translateY(calc(var(--n) * -108px)) scale(1.04); background: #34413d; }

.mini-thumb { flex: none; width: 110px; border-radius: 10px; overflow: hidden; background: var(--orange); }
.mini-thumb--2 { background: #2b3a36; }
.mini-thumb--3 { background: #e4dfd5; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 4px 2px 0; }
.mini-tags { display: flex; gap: 6px; justify-content: flex-end; }
.mini-tags i { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(242, 239, 233, 0.12); }
.mini-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-link { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 12px; color: var(--mute); transition: color 200ms ease; }
.mini:hover .mini-link { color: var(--orange); }

/* Two scrolling bars under the hero, tilted a little, opposite directions */
.bars { position: relative; z-index: 3; padding: 64px 0 64px; overflow: hidden; background: var(--bg); }

.bars-tilt { width: 108%; margin-left: -4%; rotate: -2.5deg; }
.bar { overflow: hidden; padding: 16px 0; }
.bar--one { background: var(--orange); color: var(--ink); }
.bar--two { background: var(--paper); color: var(--ink); }

.bar-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.bar--two .bar-track { animation-direction: reverse; animation-duration: 46s; }

.bar-track span { display: inline-flex; align-items: center; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.3px; white-space: nowrap; }
.bar-track span::after { content: "✱"; margin: 0 26px; font-size: 18px; }

@keyframes ticker { to { transform: translateX(-50%); } }

.hero-stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Draggable stickers */
.sticker {
  position: absolute;
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  animation: bob 5s ease-in-out infinite;
  transition: box-shadow 200ms ease, outline-color 150ms ease;
  outline: 2px solid transparent;
  outline-offset: 6px;
}

.sticker.is-dragging {
  outline-color: var(--orange);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.sticker--1 { background: var(--orange); color: var(--paper); top: 24%; left: 7%; --r: -9deg; }
.sticker--2 { background: var(--paper); color: var(--ink); top: 31%; right: 8%; --r: 7deg; animation-delay: -1.5s; }
.sticker--3 { background: var(--card); color: var(--paper); border: 1px solid var(--line); bottom: 24%; left: 14%; --r: 5deg; animation-delay: -3s; }
.sticker--4 { background: var(--paper); color: var(--orange); bottom: 28%; right: 16%; --r: -6deg; animation-delay: -2s; }
.sticker--5 { background: var(--orange); color: var(--ink); top: 16%; right: 30%; --r: 10deg; animation-delay: -4s; }

/* Drag offset is applied with the separate `translate` property (set in main.js),
   so it composes with this idle bob instead of fighting it. */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) * -0.4)); }
}

/* =========================================================
   2. About — light section
   ========================================================= */

.faq {
  background: var(--paper);
  color: var(--ink);
}

/* About: same dark ground as the hero */
.about {
  position: relative;
  background: var(--bg);
  color: var(--paper);
  padding: 120px var(--gutter) 120px;
}

.about > *,
.work > *,
.services > *,
.reviews > *,
.faq > *,
.proto > *,
.page-head > *,
.prose-wrap > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }

.faq .kicker { border-color: var(--line-ink); }

/* Section name and title start on the same left edge in every section */
.about .kicker,
.work > .kicker, .services > .kicker, .reviews > .kicker, .reviews-pin > .kicker,
.work > .section-title, .services > .section-title, .reviews > .section-title, .reviews-pin > .section-title { margin-left: max(0px, calc((100% - var(--shell)) / 2)); margin-right: auto; }
.work > .about-head, .services > .about-head { margin-bottom: 56px; }
.services > .work-more { margin-top: 48px !important; }

/* Headline left, description right */
.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}

.about-head .section-title { margin: 0; max-width: none; font-size: clamp(24px, 3.7vw, 60px); letter-spacing: -1.5px; white-space: nowrap; }
.about-head .about-lede { margin: 0 0 10px; max-width: 46ch; justify-self: end; color: var(--mute); }
.about-cta { margin-top: 48px; }

/* Eyes that follow the cursor */
.eyes {
  position: absolute;
  top: 56px;
  right: max(var(--gutter), calc((100% - var(--shell)) / 2));
  display: flex;
  gap: 10px;
  margin: 0;
}

.eye {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg-deep);
  display: grid;
  place-items: center;
  animation: blink 6s infinite;
}

.pupil {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 8px -8px 0 -4px rgba(255, 255, 255, 0.35);
  transition: transform 120ms linear;
}

@keyframes blink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(0.08); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px !important;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 28px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 500ms var(--ease), background 300ms ease;
}

.stat:nth-child(2) { background: var(--orange); color: var(--paper); border-color: transparent; }
.stat:nth-child(3) { background: var(--paper); color: var(--ink); border-color: transparent; }
.stat:nth-child(4) { background: var(--bg-deep); }

.stat:hover { transform: translateY(-8px) rotate(-1.2deg); }

.stat-num {
  margin: 0 0 auto;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
}

.stat-label { margin: 24px 0 6px; font-size: 20px; font-weight: 700; }
.stat-desc { margin: 0; font-size: 15px; opacity: 0.72; }

/* =========================================================
   3. Work — sticky stacking browser windows
   ========================================================= */

.work {
  background: var(--bg-deep);
  padding: 140px var(--gutter) 120px;
}

.stack { position: relative; }

.stack-card {
  position: sticky;
  top: calc(90px + var(--i, 1) * 22px);
  margin-bottom: 80px;
  transform-origin: 50% 0;
  will-change: transform;
}

.window {
  display: block;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-ink);
}

.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-ink); }
.window-bar i:first-child { background: var(--orange); }

.window-bar span {
  margin: 0 auto;
  font-size: 13px;
  color: var(--mute-ink);
  background: rgba(24, 32, 30, 0.06);
  padding: 5px 18px;
  border-radius: 8px;
  transform: translateX(-24px);
}

.window-body {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #e4dfd5;
}

.window-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

.window:hover .window-body img { transform: scale(1.05); }

.window-body--embed { aspect-ratio: 16 / 9; }
.window-body--embed iframe { width: 100%; height: 100%; border: 0; }

/* Placeholder art when a project has no cover yet */
.window-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 48px 56px;
}

.window-placeholder--1 { background: var(--orange); }
.window-placeholder--2 { background: #2b3a36; }
.window-placeholder--3 { background: #e4dfd5; }
.window-placeholder--4 { background: var(--ink); }
.window-placeholder--5 { background: #c8d1c9; }

.ph-bar { grid-column: 1 / -1; height: 26px; width: 58%; border-radius: 8px; background: rgba(242, 239, 233, 0.9); }
.ph-bar--short { width: 34%; height: 14px; opacity: 0.6; }
.ph-block { border-radius: 16px; background: rgba(242, 239, 233, 0.22); }
.window-placeholder--3 .ph-bar, .window-placeholder--5 .ph-bar { background: var(--ink); }
.window-placeholder--3 .ph-block, .window-placeholder--5 .ph-block { background: rgba(24, 32, 30, 0.12); }

.window-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 24px;
}

.window-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
}

.window-sub { margin: 6px 0 0; font-size: 15px; color: var(--mute-ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.chip {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-ink);
}

.chip--accent { background: var(--orange); color: var(--paper); border-color: transparent; }

/* Homepage project card: left half text, right half image */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}

.split--dark { background: var(--bg); color: var(--paper); }
.split--beige { background: var(--paper); color: var(--ink); border-color: transparent; }

.split-text { display: flex; flex-direction: column; align-items: flex-start; padding: 48px; }

.split-date { display: flex; align-items: center; gap: 12px; margin: 0 0 auto; font-size: 15px; font-weight: 600; }
.split-date span { font-weight: 500; opacity: 0.6; }
.split-date span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 12px; vertical-align: middle; }

.split-title {
  margin: 40px 0 16px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.split-desc { margin: 0 0 36px; max-width: 42ch; font-size: 18px; line-height: 1.5; opacity: 0.7; }

.split--beige .split-cta { background: #111212; border-color: #111212; color: #fff; }
.split:hover .split-cta::before { background-position: 40px 0; }
.split:hover .split-cta::after { opacity: 1; transform: none; }
.split:hover .split-cta > span { transform: translateX(3px); }
.split--dark:hover .split-cta { background: transparent; color: var(--paper); }
.split--beige:hover .split-cta { background: transparent; color: #111212; }

.split-media { position: relative; overflow: hidden; margin: 14px; border-radius: 18px; background: #e4dfd5; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.split:hover .split-media img { transform: scale(1.05); }

/* The paperclip sticker on each window */
.clip {
  position: absolute;
  top: -22px;
  right: 64px;
  width: 26px; height: 74px;
  border: 5px solid var(--orange);
  border-radius: 14px;
  transform: rotate(18deg);
  pointer-events: none;
}

.clip::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 10px; bottom: 16px;
  border: 4px solid var(--orange);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.work-more { text-align: center; margin-top: 20px !important; }

.proto { background: var(--bg-deep); padding: 0 var(--gutter) 120px; }

/* Grid version for /work/ and "next project" */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
}

.card-grid .stack-card { position: relative; top: auto; margin: 0; }
.card-grid .window-body { aspect-ratio: 16 / 10; }

.work--grid { padding-top: 40px; }

/* =========================================================
   Works page: two cards per row. Each card is a browser-window image
   with the title and date under it. Clicking opens the project popup.
   ========================================================= */

.works { padding: 30px var(--gutter) 90px; scroll-margin-top: 40px; }

/* Works page: one section per project type, with jump links on top */
.works-nav { display: flex; flex-wrap: wrap; gap: 10px; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) 10px; box-sizing: content-box; }
.works-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.works-nav a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.works-nav sup { font-size: 11px; opacity: 0.7; }
.works-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; max-width: var(--shell); margin: 0 auto 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.works-group-title { margin: 0; font-size: clamp(28px, 3.4vw, 52px); font-weight: 800; letter-spacing: -1.5px; text-transform: uppercase; }
.works-group-count { font-size: 15px; font-weight: 600; color: var(--orange); }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; max-width: var(--shell); margin: 0 auto; }

.wcard { position: relative; }
.wcard .window { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); transition: transform 600ms var(--ease), box-shadow 400ms ease; }
.wcard .window-body { aspect-ratio: 4 / 3; }
.wcard:hover .window { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5); }
.wcard .clip { top: -20px; right: 46px; }

.wcard-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 6px 0; }
.wcard-title { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; line-height: 1; letter-spacing: -0.8px; text-transform: uppercase; }
.wcard-date { margin: 0; flex: none; font-size: 15px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- Project popup (after the Creatie overlay) ---------- */

.pmodal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: #111212;
  overflow: hidden;
}

.pmodal[open] { display: grid; place-items: center; }
.pmodal::backdrop { background: rgba(12, 15, 14, 0.55); -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); animation: pm-fade 300ms ease both; }

.pmodal-box {
  width: min(650px, 100%);
  max-height: min(760px, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 29px rgba(0, 0, 0, 0.16), 0 40px 90px rgba(0, 0, 0, 0.35);
  animation: pm-pop 420ms var(--ease) both;
  scrollbar-width: thin;
}

@keyframes pm-pop { from { opacity: 0; transform: scale(0.9) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }

.pmodal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(17, 18, 18, 0.08);
}

.pmodal-dot { all: unset; flex: none; width: 13px; height: 13px; border-radius: 50%; background: #febc2e; }
.pmodal-dot--g { background: #28c840; }
.pmodal-dot--close { position: relative; background: #ff5f57; }
/* bigger hit area for the close dot */
.pmodal-dot--close::after { content: ""; position: absolute; inset: -10px; }
.pmodal-dot--close:focus-visible { outline: 2px solid #111212; outline-offset: 3px; }

.pmodal-url { margin: 0 auto; transform: translateX(-28px); padding: 6px 22px; border-radius: 9px; background: #f1f1f1; font-size: 13px; font-weight: 500; color: #767777; }

.pmodal-body { display: grid; gap: 18px; padding: 16px 16px 20px; }

.pmodal-media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e4dfd5; }
.pmodal-media img { width: 100%; height: 100%; object-fit: cover; }

.pmodal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
.pmodal-title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.8px; }
.pmodal-preview { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #111212; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.pmodal-preview:hover { color: var(--orange); }

.pmodal-desc { margin: 0; padding: 0 4px; font-size: 16px; line-height: 1.5; color: #555857; }

.pmodal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; padding: 0 4px; }
.pmodal-grid > div { padding: 14px 0; border-top: 1px solid rgba(17, 18, 18, 0.1); }
.pmodal-grid dt { font-size: 13px; font-weight: 500; color: #767777; margin-bottom: 4px; }
.pmodal-grid dd { margin: 0; font-size: 16px; font-weight: 600; }

.pmodal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 4px 0; }
.pmodal-note { padding: 0 4px; }
.pmodal-note h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.pmodal-note p { margin: 0; font-size: 16px; line-height: 1.55; color: #3c3f3e; }
/* case study blocks inside the popup */
.pmodal-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 0 4px; }
.pmodal-metrics > div { padding: 14px; border-radius: 8px; background: #f1efe9; }
.pmodal-metrics b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--orange); }
.pmodal-metrics span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: #555857; }
.pmodal-body { counter-reset: pstep; }
.pmodal-step > span::before { counter-increment: pstep; content: counter(pstep, decimal-leading-zero); }
.pmodal-step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 0 4px; }
.pmodal-step > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #111212; color: #fff; font-size: 12px; font-weight: 700; }
.pmodal-step h4 { margin: 4px 0 4px; font-size: 17px; font-weight: 700; }
.pmodal-step p { margin: 0; font-size: 15px; line-height: 1.5; color: #3c3f3e; }
.pmodal-quote { margin: 0 4px; padding: 6px 0 6px 18px; border-left: 3px solid var(--orange); }
.pmodal-quote p { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.pmodal-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: #767777; }
.pmodal-figure { margin: 0; }
.pmodal-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pmodal-figure figcaption { margin-top: 8px; padding: 0 4px; font-size: 14px; color: #555857; }
.pmodal-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 8px; background: #f1efe9; }
.pmodal-embed--tall iframe { aspect-ratio: 3 / 4; }
/* second button on light backgrounds: outline first, fills on hover */
.cta--outline { background: transparent; border-color: #111212; color: #111212; }
.cta--outline:hover, .cta--outline:focus-visible { background: #111212; color: #fff; }

html.pmodal-lock { overflow: hidden; }

/* =========================================================
   4. Services — orange section, hover preview follows cursor
   ========================================================= */

.services {
  position: relative;
  background: var(--bg);
  color: var(--paper);
  padding: 140px var(--gutter) 140px;
  overflow: hidden;
}

.svc-list { list-style: none; padding: 0; margin-top: 40px !important; border-bottom: 1px solid var(--line); }

.svc {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding 500ms var(--ease), background 300ms ease;
}

.svc-num { font-size: 15px; font-weight: 600; }

.svc-name {
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  transition: transform 500ms var(--ease), color 300ms ease;
}

.svc-desc { font-size: 16px; max-width: 36ch; justify-self: start; text-align: left; opacity: 0.8; }

.svc:hover { padding-left: 20px; }
.svc:hover .svc-name { color: var(--orange); transform: translateX(10px); }

.svc-float {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  width: 300px; height: 210px;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(-6deg);
  transition: opacity 250ms ease, transform 450ms var(--ease);
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.svc-float.is-on { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; display: none; }
.svc-float.has-img img { display: block; }
.svc-float.has-img .svc-float-fallback { display: none; }

.svc-float-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  background:
    radial-gradient(circle at 80% 20%, var(--orange) 0 60px, transparent 61px),
    var(--paper);
}

/* =========================================================
   How I work — pinned section, cards slide sideways (after Nudge)
   Without .is-pinned (phones, reduced motion, no JS) it is a normal swipeable row.
   ========================================================= */

.hwork {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 40px 40px 0 0;
  padding: 110px 0 90px;
}

.hwork-track {
  display: flex;
  gap: 22px;
  padding: 0 var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hwork-track::-webkit-scrollbar { display: none; }

.hwork-intro {
  flex: 0 0 min(680px, 86vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  scroll-snap-align: start;
  padding-right: 20px;
}

.hwork-intro .section-title { font-size: clamp(32px, 3.4vw, 56px); margin-bottom: 18px; max-width: none; white-space: nowrap; letter-spacing: -1.5px; }
.hwork-desc { margin: 0 0 24px; max-width: 44ch; font-size: 17px; line-height: 1.5; color: var(--mute-ink); }
.hwork-hint { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; color: var(--orange); }
.hwork-hint svg { animation: nudge-x 1.6s ease-in-out infinite; }
@keyframes nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

.hcard {
  position: relative;
  flex: 0 0 420px;
  height: min(68vh, 660px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 0;
  border-radius: 48px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg);
  color: var(--paper);
  transition: transform 500ms var(--ease);
}

.hcard:hover { transform: translateY(-10px); }

.hcard:nth-of-type(5n + 2) { background: var(--orange); color: var(--ink); }
.hcard:nth-of-type(5n + 3) { background: #cfe0d2; color: var(--ink); }
.hcard:nth-of-type(5n + 4) { background: var(--bg-deep); }
.hcard:nth-of-type(5n + 5) { background: #fff; color: var(--ink); border: 1px solid var(--line-ink); }

.hcard-step { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.7; }
.hcard-title { margin: 0 0 14px; font-size: 42px; font-weight: 800; line-height: 0.96; letter-spacing: -1.5px; text-transform: uppercase; }
.hcard-body { margin: 0 0 16px; font-size: 17px; line-height: 1.45; opacity: 0.82; }
.hcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.hcard-chips span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.75; }

.phone--card { width: 236px; flex: none; margin: auto auto -150px; border-radius: 40px; border-width: 8px; }
.phone--card .phone-screen { border-radius: 32px; }
.phone--card .ps { padding: 44px 14px 16px; gap: 9px; }
.phone--card .ps-head { font-size: 16px; }
.phone--card .ps-wire--hero, .phone--card .ps-card { height: 104px; }
.phone--card .ps-wire-row i { height: 64px; }

.hwork-bar { display: none; }

/* Pinned mode (set by main.js on wide screens) */
.hwork.is-pinned { padding: 0; height: calc(100vh + var(--travel, 0px)); }
.hwork.is-pinned .hwork-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding-bottom: 90px; border-radius: 40px 40px 0 0; }
.hwork.is-pinned .hwork-track { width: max-content; overflow: visible; padding-bottom: 0; will-change: transform; }
.hwork.is-pinned .hwork-bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 104px; height: 3px; background: var(--line-ink); }
.hwork-bar span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* Phone mockup */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  background: var(--bg-deep);
  border: 10px solid var(--bg-deep);
  box-shadow: 0 0 0 2px #2b3532, 0 40px 80px rgba(24, 32, 30, 0.35);
  overflow: hidden;
}

.phone-notch { position: absolute; z-index: 3; top: 10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: var(--bg-deep); }

.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Drawn placeholder screens */
.ps { height: 100%; padding: 54px 18px 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); background: #fff; }
.ps-head { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }

.ps-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-notes i { aspect-ratio: 1; border-radius: 6px; background: #ffe27a; rotate: -2deg; }
.ps-notes i:nth-child(2) { background: #ffb59e; rotate: 3deg; }
.ps-notes i:nth-child(3) { background: #c9e8b5; rotate: 2deg; }
.ps-notes i:nth-child(4) { background: #cfd8ff; rotate: -3deg; }
.ps-quote { display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; align-items: center; padding: 10px; border-radius: 12px; background: #f2efe9; }
.ps-quote b { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); }
.ps-quote span { height: 7px; border-radius: 4px; background: rgba(24, 32, 30, 0.22); }
.ps-quote span:last-child { width: 60%; }

.ps--2 { background: #f6f6f4; }
.ps-wire { border: 2px dashed rgba(24, 32, 30, 0.35); border-radius: 12px; }
.ps-wire--hero { height: 150px; background: linear-gradient(to top right, transparent 49.4%, rgba(24, 32, 30, 0.3) 49.6%, rgba(24, 32, 30, 0.3) 50.4%, transparent 50.6%); }
.ps-wire--btn { height: 44px; margin-top: auto; border-style: solid; }
.ps-line { height: 10px; border-radius: 5px; background: rgba(24, 32, 30, 0.28); }
.ps-line--s { width: 55%; }
.ps-wire-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-wire-row i { height: 96px; border: 2px dashed rgba(24, 32, 30, 0.35); border-radius: 12px; }

.ps--3 { background: var(--bg); color: var(--paper); }
.ps--4 { background: var(--bg); color: var(--paper); }
.ps-card { height: 150px; border-radius: 18px; background: var(--orange); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.ps-card--sm { height: 110px; }
.ps-card span { width: 45%; height: 8px; border-radius: 4px; background: rgba(242, 239, 233, 0.6); }
.ps-card b { width: 70%; height: 16px; border-radius: 6px; background: var(--paper); }
.ps-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(242, 239, 233, 0.08); }
.ps-row i { width: 38px; height: 38px; border-radius: 10px; background: rgba(242, 239, 233, 0.2); }
.ps-row span { height: 9px; width: 70%; border-radius: 5px; background: rgba(242, 239, 233, 0.5); }
.ps-btn { position: relative; height: 48px; margin-top: auto; border-radius: 999px; background: var(--paper); }
.ps-btn--tap { margin-top: 4px; }
.ps-btn--tap em { position: absolute; right: 26%; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: rgba(226, 66, 23, 0.35); box-shadow: 0 0 0 0 rgba(226, 66, 23, 0.5); animation: tap 1.8s ease-out infinite; }
@keyframes tap { 0% { transform: scale(0.6); box-shadow: 0 0 0 0 rgba(226, 66, 23, 0.5); } 100% { transform: scale(1); box-shadow: 0 0 0 22px rgba(226, 66, 23, 0); } }
.ps-score { margin-top: auto; padding: 14px; border-radius: 16px; background: rgba(242, 239, 233, 0.08); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; }
.ps-score b { font-size: 26px; font-weight: 800; }
.ps-score u { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(242, 239, 233, 0.16); text-decoration: none; overflow: hidden; }
.ps-score u i { display: block; width: 92%; height: 100%; background: var(--orange); }

.ps--5 { background: #f2efe9; }
.ps-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ps-swatches i { aspect-ratio: 1; border-radius: 12px; background: var(--bg); }
.ps-swatches i:nth-child(2) { background: var(--orange); }
.ps-swatches i:nth-child(3) { background: #fff; border: 1px solid var(--line-ink); }
.ps-swatches i:nth-child(4) { background: var(--bg-deep); }
.ps-spec { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: #fff; border: 1px dashed var(--orange); }
.ps-spec span { height: 9px; border-radius: 5px; background: rgba(24, 32, 30, 0.22); }
.ps-spec b { font-size: 13px; color: var(--orange); font-variant-numeric: tabular-nums; }
.ps-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; }
.ps-check i { width: 22px; height: 22px; border-radius: 50%; background: #3fa34d; }
.ps-check span { height: 9px; width: 65%; border-radius: 5px; background: rgba(24, 32, 30, 0.22); }

/* =========================================================
   5. Reviews
   ========================================================= */

.reviews { padding: 140px var(--gutter); overflow: hidden; }

.review-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 30px 0;
  max-width: none !important;
  margin-left: max(0px, calc((100% - var(--shell)) / 2)) !important;
  margin-right: calc(var(--gutter) * -1) !important;
  scrollbar-width: none;
}

.review-row::-webkit-scrollbar { display: none; }
.review-row.is-grabbing { scroll-snap-type: none; }

.review {
  flex: 0 0 440px;
  scroll-snap-align: start;
  margin: 0;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: transform 500ms var(--ease), border-color 300ms ease;
}

.review:hover { transform: translateY(-6px); border-color: rgba(226, 66, 23, 0.6); }

.review-who { display: flex; align-items: center; gap: 14px; }
.review-who img,
.review-initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review-initials { display: grid; place-items: center; background: var(--orange); font-weight: 800; }
.review-who figcaption { display: grid; font-size: 14px; }
.review-who figcaption span { color: var(--mute); }

.review blockquote { margin: 0; }
.review-head { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.review-body { margin: 0; color: var(--mute); }

/* =========================================================
   6. FAQ — pastel question pills scattered round the heading (after Creatie).
   Drag them; click one and the answer opens under the question (after Nudge).
   ========================================================= */

.faq {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
  padding: 120px var(--gutter);
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(24, 32, 30, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 32, 30, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
}

.faq-center { position: relative; z-index: 1; text-align: center; pointer-events: none; }
.faq-center .section-title { margin: 0 auto; max-width: none; font-size: clamp(30px, 5vw, 84px); white-space: nowrap; }
.faq-lede { max-width: 46ch; margin: 22px auto 0; font-size: 17px; line-height: 1.5; color: var(--mute-ink); }

.faq-tag {
  position: relative;
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #bbdafe;
  color: #121212;
  font-size: 15px;
  font-weight: 700;
  rotate: -4deg;
  box-shadow: 0 6px 14px rgba(24, 32, 30, 0.14);
}
.faq-tag .tag-clip { top: -15px; right: 10px; border-color: #7d8683; }

.faq-pill {
  position: absolute;
  z-index: 2;
  width: 370px;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px;
  border-radius: 12px;
  background: #fedcdd;
  color: #121212;
  rotate: var(--r, 0deg);
  box-shadow: 0 10px 26px rgba(24, 32, 30, 0.14);
  user-select: none;
  touch-action: none;
  transition: box-shadow 250ms ease, rotate 400ms var(--ease);
}

.faq-pill.is-open, .faq-pill.is-dragging { z-index: 5; box-shadow: 0 22px 50px rgba(24, 32, 30, 0.24); }
.faq-pill.is-open { rotate: 0deg; }

.faq-pill--1 { top: 22%; left: 4.3%; --r: -3deg; background: #F2D5C4; }
.faq-pill--2 { top: 16.5%; right: 8.8%; --r: 4deg; background: #C1D1C1; }
.faq-pill--3 { top: 71%; right: 6%; --r: -2deg; background: #EADCA6; }
.faq-pill--4 { top: 72%; left: 2.7%; --r: 3deg; background: #BDD0DE; }
.faq-pill--5 { top: 80%; left: 36.4%; --r: -2deg; background: #F2D5C4; }
.faq-pill--6 { top: 32%; left: 3%; --r: 2deg; background: #C1D1C1; }
.faq-pill--7 { top: 66%; right: 4%; --r: -3deg; background: #EADCA6; }

.faq-q {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}
.faq-q:focus-visible { outline: 2px solid #121212; outline-offset: 6px; }

.faq-ico { position: relative; flex: none; width: 18px; height: 18px; transition: rotate 450ms var(--ease); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; }
.faq-ico::after { rotate: 90deg; }
.faq-pill.is-open .faq-ico { rotate: 45deg; }

/* Answer opens inside the same card (after the Nudge reply row):
   48px round avatar, top aligned, with the answer in a bubble beside it */
.faq-ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease); }
.faq-ans > div { overflow: hidden; min-height: 0; }
.faq-pill.is-open .faq-ans { grid-template-rows: 1fr; }

.faq-reply {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 100ms, transform 450ms var(--ease) 100ms;
}
.faq-pill.is-open .faq-reply { opacity: 1; transform: none; }

.faq-avatar {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
  font-weight: 800;
}
.faq-avatar img { width: 100%; height: 100%; object-fit: cover; }

.faq-bubble {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #111212;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================================
   Footer (after Creatie): a rounded card with a landscape behind it.
   Socials top left, "Have an idea?" top right, big left headline with stickers,
   button bottom right, cream bar with logo and links along the bottom.
   ========================================================= */

/* bottom space keeps the copyright line clear of the floating toolbar */
.footer { background: var(--orange); padding: 14px 14px 96px; }

.footer-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
  min-height: min(86vh, 800px);
  padding: 34px;
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-deep);
  color: #fff;
}

.footer-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }

.footer-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 250ms ease, color 250ms ease, transform 400ms var(--ease);
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover, .footer-social a:focus-visible { background: #fff; color: var(--ink); transform: translateY(-3px); }

/* Stepped lines like the hero description: dash + small first line, then two bolder lines, each further right */
.footer-idea { margin: 6px 0 0; font-size: 17px; line-height: 1.35; text-align: left; }
.footer-idea > span::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.footer-idea strong { display: block; margin-top: 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.5px; white-space: nowrap; }
.footer-idea-2 { padding-left: 44px; }
.footer-idea-3 { padding-left: 88px; }

.footer-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-stage { position: relative; display: inline-block; }

.mega {
  margin: 0;
  max-width: 11.5ch;
  font-weight: 900;
  font-size: clamp(46px, min(8vw, 14vh), 128px);
  line-height: 0.9;
  letter-spacing: -3px;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  pointer-events: none;
}

.footer-tag--1 { --r: -5deg; top: 17%; left: -5.5%; right: auto; background: #f4eaf5; }
.footer-tag--1 .tag-icon { background: #d9479b; }
.footer-tag--2 { --r: 5deg; top: -12%; left: 57%; right: auto; background: #f4f8e8; }
.footer-tag--2 .tag-icon { background: #3fa34d; }
.footer-tag--3 { --r: -3deg; top: 92%; left: 66.5%; right: auto; background: #f1eefc; }
.footer-tag--3 .tag-icon { background: #7a4dff; }

.footer-cta { flex: none; margin-bottom: 6px; }

/* Logo left, copyright right */
.footer-copy { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 20px 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.footer-copy p { margin: 0; }
.footer-copy a { color: var(--ink); }
.footer-copy p a { margin-left: 12px; }
.footer-logo { display: block; }
.footer-logo .logo-full { display: block; height: 38px; width: auto; }

/* =========================================================
   Inner pages: work, about, contact, case study
   ========================================================= */

.page-head,
.case-head {
  padding: 180px var(--gutter) 40px;
}

.case-head > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }

.prose-wrap { padding: 40px var(--gutter) 80px; }

.prose-wrap--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
}

.prose-wrap--split > * { margin: 0; }
.prose { max-width: 66ch; font-size: 18px; }
.prose p { margin: 0 0 20px; }
.prose .cta { margin-top: 16px; }

.strip { padding: 32px var(--gutter); }
.strip > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }

.sub { font-size: 30px; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; margin: 0 0 14px; }

.frame { margin: 0; }
.frame-label { font-size: 13px; font-weight: 600; color: var(--mute); margin: 0 0 10px; }
.frame-body {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 16 / 9;
}
.frame-body > img,
.frame-body > iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.frame--portrait .frame-body { aspect-ratio: 4 / 5; }
.caption { font-size: 14px; color: var(--mute); margin-top: 10px; }

.credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 32px;
  margin-top: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credits dt { font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.credits dd { margin: 0; font-size: 17px; font-weight: 600; }

.pull {
  margin: 0;
  max-width: 26ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1.15;
  border-left: 3px solid var(--orange);
  padding-left: 28px;
}
.pull p { margin: 0 0 14px; }
.pull cite { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--mute); }

.footer-say { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-line { font-size: 34px; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; margin: 0; }

/* Contact form */
.enquiry { display: grid; gap: 26px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--mute); }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.3);
  padding: 12px 0;
  width: 100%;
  transition: border-color 200ms ease;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 239, 233, 0.3); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--orange); }
.field--error input,
.field--error textarea { border-bottom-color: var(--orange); }
.field-error { margin: 0; font-size: 13px; color: var(--orange); }
.enquiry .cta { justify-self: start; margin-top: 8px; }

.notice {
  background: var(--orange);
  color: var(--paper);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 28px;
  max-width: 640px;
}

/* =========================================================
   Case study page
   ========================================================= */

.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.case-inner,
.case-results > *,
.case-media > *,
.case-next > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }

.case-hero {
  position: relative;
  padding: 150px var(--gutter) 120px;
  overflow: hidden;
}

.case-inner { position: relative; z-index: 1; }

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  text-decoration: none;
  transition: color 200ms ease;
  width: fit-content;
}

.case-back::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  transition: width 300ms var(--ease);
}

.case-back:hover { color: var(--paper); }
.case-back:hover::before { width: 30px; }

.case-hero .kicker { display: flex; width: fit-content; }

.case-title {
  position: relative;
  font-weight: 900;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.88;
  letter-spacing: -5px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 36px;
}

.case-lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--mute);
  max-width: 44ch;
  margin-top: 0;
  margin-bottom: 64px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 0;
  margin-bottom: 72px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta dt { font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-size: 17px; font-weight: 700; }

.case-cover { position: relative; transform-origin: 50% 0; will-change: transform; }
.case-cover .window { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.window-body--cover { aspect-ratio: 16 / 9; }
.window-body--cover iframe { width: 100%; height: 100%; border: 0; }
.window-body--cover img { width: 100%; height: 100%; object-fit: cover; }
.window-body--auto { aspect-ratio: auto; }
.window-body--auto img { height: auto; }
.window-body--tall { aspect-ratio: 4 / 3; }

.case-sticker { z-index: 4; }
.case-cover .case-sticker { top: -26px; left: -18px; bottom: auto; right: auto; }
.case-cover .case-sticker--r { top: auto; bottom: 46px; left: auto; right: -22px; }

.window-bar .chip { margin-left: 0; font-weight: 600; font-size: 12px; padding: 5px 12px; }

/* Results */
.case-results {
  background: var(--bg-deep);
  padding: 120px var(--gutter);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.result {
  padding: 34px 32px 36px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 500ms var(--ease);
}

.result:first-child { background: var(--orange); border-color: transparent; }
.result:hover { transform: translateY(-6px); }

.result-num {
  margin: 0 0 18px;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
}

.result-label { margin: 0; font-size: 18px; font-weight: 600; }
.result:not(:first-child) .result-label { color: var(--mute); }

/* Overview — light section */
.case-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding: 130px max(var(--gutter), calc((100% - var(--shell)) / 2));
  background: var(--paper);
  color: var(--ink);
  border-radius: 40px 40px 0 0;
}

.overview-text {
  margin: 0;
  font-size: 26px;
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.4px;
}

/* Process — numbered steps, heading sticks while they scroll */
.case-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  padding: 130px max(var(--gutter), calc((100% - var(--shell)) / 2));
  background: var(--paper);
  color: var(--ink);
}

.case-overview + .case-process { padding-top: 20px; }

.process-head { position: sticky; top: 110px; align-self: start; }
.case-process .kicker { border-color: var(--line-ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 30px 32px;
  background: #fff;
  border: 1px solid var(--line-ink);
  border-radius: 24px;
  transition: background 400ms ease, color 400ms ease, transform 500ms var(--ease);
}

.step:hover { background: var(--ink); color: var(--paper); transform: translateX(-8px); }
.step:hover .step-body { color: var(--mute); }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-title { margin: 8px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.6px; text-transform: uppercase; }
.step-body { margin: 0; font-size: 17px; color: var(--mute-ink); transition: color 400ms ease; }

/* Text sections — heading on the left, story on the right */
.case-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  padding: 110px max(var(--gutter), calc((100% - var(--shell)) / 2));
  border-top: 1px solid var(--line);
}

.case-h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -2px;
  text-transform: uppercase;
  position: sticky;
  top: 110px;
  align-self: start;
}

.case-prose { font-size: 20px; line-height: 1.6; color: var(--mute); max-width: 60ch; }
.case-prose p { margin: 0 0 22px; }
.case-prose p:first-child::first-line { color: var(--paper); }

/* Pull quote — orange band */
.case-quote {
  background: var(--orange);
  padding: 140px var(--gutter);
  text-align: center;
}

.case-quote blockquote { margin: 0 auto; max-width: 1100px; }

.quote-text {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.case-quote cite {
  display: inline-block;
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid rgba(242, 239, 233, 0.5);
  border-radius: 999px;
}

/* Images and embeds */
.case-media { padding: 90px var(--gutter); }
.case-media .window { margin: 0 auto; }
.case-media .caption { margin-top: 16px; text-align: center; }

/* Next project */
.case-next {
  background: var(--bg-deep);
  padding: 120px var(--gutter) 80px;
}

.case-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 80px;
  margin-bottom: 80px !important;
  border-bottom: 1px solid var(--line);
}

.case-live p { margin: 0; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.8px; }

.next-link {
  position: relative;
  display: grid;
  gap: 8px;
  text-decoration: none;
  padding: 20px 0 40px;
}

.next-link .kicker { width: fit-content; }

.next-title {
  display: block;
  font-weight: 900;
  font-size: clamp(50px, 9vw, 150px);
  line-height: 0.88;
  letter-spacing: -5px;
  text-transform: uppercase;
  transition: color 400ms ease, transform 600ms var(--ease);
  padding-right: 130px;
}

.next-sub { font-size: 18px; color: var(--mute); }

.next-arrow {
  position: absolute;
  right: 0;
  bottom: 50px;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 400ms ease, border-color 400ms ease, transform 600ms var(--ease);
}

.next-link:hover .next-title { color: var(--orange); transform: translateX(14px); }
.next-link:hover .next-arrow { background: var(--orange); border-color: var(--orange); transform: rotate(-45deg); }

/* =========================================================
   Blog: homepage section (big card left, three small cards right),
   the /blog/ list and the article page
   ========================================================= */

.blog { padding: 140px var(--gutter) 40px; }
.blog > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }
.blog > .kicker { margin-left: max(0px, calc((100% - var(--shell)) / 2)); }
.blog > .about-head { margin-bottom: 56px; }
.blog > .work-more { margin-top: 48px !important; }

.blog-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }

.blog-date { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--mute); --clock-hand: var(--bg); }
.blog-date svg { flex: none; color: var(--mute); }

/* Big card: photo fills the card, text sits on a dark fade at the bottom */
.blog-lead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  background: var(--card);
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}
.blog-lead img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.blog-lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 15, 14, 0) 30%, rgba(12, 15, 14, 0.92) 100%); }
.blog-lead:hover img { transform: scale(1.05); }
.blog-lead-text { display: flex; flex-direction: column; gap: 14px; padding: 36px; }
.blog-lead-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -0.8px; }
.blog-lead .blog-date, .blog-lead .blog-date svg { color: rgba(242, 239, 233, 0.8); }
.blog-lead-excerpt { max-width: 56ch; font-size: 16px; line-height: 1.55; color: rgba(242, 239, 233, 0.76); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Small cards: image left, text right */
.blog-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blog-row,
.blog-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  transition: transform 500ms var(--ease), border-color 300ms ease;
}
.blog-row:hover, .blog-card:hover { transform: translateY(-6px); border-color: rgba(226, 66, 23, 0.6); }
.blog-row-media, .blog-card-media { position: relative; overflow: hidden; min-height: 150px; background: #2c3834; }
.blog-row-media img, .blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.blog-row:hover img, .blog-card:hover img { transform: scale(1.06); }
.blog-row-text { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.blog-row-title { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; font-weight: 700; }
.blog-more svg { transition: transform 300ms var(--ease); }
.blog-row:hover .blog-more, .blog-card:hover .blog-more { color: var(--orange); }
.blog-row:hover .blog-more svg, .blog-card:hover .blog-more svg { transform: translateX(4px); }

/* /blog/ list and "Keep reading": image on top, text under it, three per row */
.blog--page { padding-top: 20px; padding-bottom: 120px; }
.blog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { grid-template-columns: 1fr; }
.blog-card-media { aspect-ratio: 16 / 10; min-height: 0; }
.blog-card .blog-row-text { min-height: 150px; padding: 22px 24px 24px; }

/* Article page */
.post { padding: 150px var(--gutter) 80px; }
.post > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.post-head { display: flex; flex-direction: column; }
.post-head .case-back { margin-bottom: 32px; }
.post-title { margin: 18px 0 20px; font-size: clamp(34px, 5vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -2px; }
.post-lede { margin: 0 0 48px; font-size: 21px; line-height: 1.5; color: var(--mute); }
.post-cover { max-width: var(--shell); margin-bottom: 56px; overflow: hidden; border-radius: 8px; }
.post-cover img { display: block; width: 100%; height: auto; }
.post-body { font-size: 19px; line-height: 1.75; color: rgba(242, 239, 233, 0.86); }
.post-body p { margin: 0 0 24px; }
.blog--more { padding: 40px var(--gutter) 120px; }
.blog--more .works-group-title { margin-bottom: 32px; font-size: clamp(24px, 2.6vw, 38px); }

/* =========================================================
   Works page: "Web + App" projects in one row that scrolls sideways.
   Same card as the homepage, with the image on the left.
   ========================================================= */

.split--rev .split-media { order: -1; }
.combo-ctrl { display: flex; align-items: center; gap: 10px; }
.combo-ctrl .works-group-count { margin-right: 8px; }
.combo-arrow {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.combo-arrow:hover { background: var(--orange); border-color: var(--orange); }
.combo-arrow:disabled { opacity: 0.3; pointer-events: none; }

.combo-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100% - var(--shell)) / 2));
  max-width: none !important;
  margin: 0 calc(var(--gutter) * -1) !important;
  padding: 10px max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter))) 40px;
  scrollbar-width: none;
  cursor: grab;
}
.combo-row::-webkit-scrollbar { display: none; }
.combo-row.is-grabbing { scroll-snap-type: none; cursor: grabbing; }
/* Every card is the full section width and the same height; long text is cut to fit */
.combo-item { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.combo-item .stack-card { position: relative; top: auto; height: 100%; margin: 0; }
.combo-item .split { height: 560px; min-height: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); user-select: none; }
.combo-item .split-text { min-height: 0; overflow: hidden; }
.combo-item .split-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 4px; }
.combo-item .split-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.combo-item .split-cta { flex: none; }

/* E-commerce filter: All / UI design / Shopify */
.store-filter { display: flex; flex-wrap: wrap; gap: 10px; max-width: var(--shell); margin: -8px auto 36px; }
.store-filter button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.store-filter button sup { font-size: 11px; opacity: 0.7; }
.store-filter button:hover { border-color: var(--orange); }
.store-filter button.is-on { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.wcard.is-hidden { display: none; }
.combo-item .split img { -webkit-user-drag: none; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {
  .hero-projects { bottom: 92px; }
  .hero-sub { bottom: 92px; }
  .faq-pill { width: 300px; padding: 20px; }
  .faq-q { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eyes { top: 40px; }
  .about-head { gap: 40px; }
  .eye { width: 60px; height: 60px; }
  .pupil { width: 24px; height: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .topbar { padding: 22px var(--gutter); }
  .logo-mark { height: 24px; }
  .hc-slot { top: 70px; }
  .hero-who { font-size: 13px; }
  .hero-card { padding: 10px 16px 10px 14px; }
  .hero { padding-top: 150px; padding-bottom: 200px !important; min-height: 560px; }
  .tag-sticker { font-size: 13px; padding: 6px 12px 6px 6px; gap: 7px; border-radius: 11px; }
  .tag-icon { width: 22px; height: 22px; }
  .tag-icon svg { width: 12px; height: 12px; }
  .tag-clip { height: 20px; width: 9px; top: -10px; right: 12px; }
  .tag-sticker--1 { right: -2%; top: -12%; }
  .tag-sticker--2 { left: auto; right: 2%; top: 41%; }
  .tag-sticker--3 { right: auto; left: -2%; top: 66%; }
  /* phones: the project cards take the bottom, so the description goes back under the headline */
  .hero-sub { position: relative; left: auto; bottom: auto; max-width: none; margin-top: 18px; text-align: center; font-size: 15px; }
  .hero-sub strong { display: inline; padding-left: 0; font-size: 18px; margin: 0; }
  .hero-sub > span { display: block; }
  .hero-projects { right: var(--gutter); left: var(--gutter); bottom: 80px; width: auto; max-width: 340px; margin: 0 auto; }
  .bars { padding: 20px 0 56px; }
  .bar { padding: 12px 0; }
  .bar-track span { font-size: 16px; }
  .bar-track span::after { margin: 0 16px; font-size: 14px; }
  .hero-title { letter-spacing: -2px; font-size: clamp(34px, min(11.5vw, 9svh), 64px); }
  .sticker { font-size: 14px; padding: 10px 16px; }
  .hero .sticker--1 { top: auto; bottom: 150px; left: 5%; }
  .hero .sticker--2 { top: auto; bottom: 205px; right: 5%; }
  .hero .sticker--3 { top: auto; bottom: 96px; left: auto; right: 12%; }
  .sticker--4, .sticker--5 { display: none; }
  .section-title { letter-spacing: -1.5px; }
  .about, .work, .services, .reviews, .faq { padding-top: 100px; padding-bottom: 100px; }
  .about-head { grid-template-columns: 1fr; gap: 24px; }
  .about-head .about-lede { justify-self: start; }
  .about-head .section-title { font-size: 7.4vw; letter-spacing: -1px; }
  .eyes { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .stat-num { font-size: 64px; }
  .stack-card { top: calc(70px + var(--i, 1) * 12px); margin-bottom: 40px; }
  .split { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .split-media { order: -1; aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: 14px; }
  .split-text { padding: 26px 22px 28px; }
  .split-title { margin-top: 20px; letter-spacing: -1px; }
  .split-desc { font-size: 16px; margin-bottom: 24px; }
  .hwork { padding: 90px 0 70px; border-radius: 28px 28px 0 0; }
  .hwork-intro { flex-basis: 78vw; }
  .hcard { flex-basis: 82vw; height: 560px; min-height: 0; border-radius: 36px; padding: 30px 26px 0; }
  .hcard-title { font-size: 34px; }
  .faq { display: block; place-items: stretch; min-height: 0; padding: 90px var(--gutter); border-radius: 28px 28px 0 0; }
  .faq-center { margin-bottom: 36px; }
  .faq-pill { position: relative; top: auto !important; left: auto !important; right: auto !important; width: auto; rotate: 0deg; margin-top: 12px !important; touch-action: auto; }
  .splash-bubble { font-size: 28px; min-height: 56px; padding: 10px 18px; }
  .splash-caret { height: 28px; }
  .splash-logo { width: 230px; }
  .footer { padding: 10px 10px 100px; }
  .footer-card { min-height: 0; padding: 22px 20px 26px; border-radius: 28px; gap: 34px; }
  .footer-copy { flex-direction: column; justify-content: center; gap: 10px; padding: 18px 8px 0; text-align: center; }
  .footer-logo .logo-full { height: 28px; }
  .footer-top { flex-direction: column; gap: 18px; }
  .footer-mid { flex-direction: column; align-items: flex-start; gap: 44px; }
  .footer-idea { display: none; }
  .footer-mid { align-items: center; }
  .mega { max-width: none; margin: 0 auto; text-align: center; }
  .mega { letter-spacing: -2px; font-size: clamp(38px, 11vw, 64px); }
  .footer-stage { align-self: stretch; }
  .footer-tag--1 { left: auto; right: -14px; top: -22%; }
  .footer-tag--2 { left: -14px; top: 92%; }
  .footer-tag--3 { display: none; }
  .footer-social { align-self: center; justify-content: center; }
  .works { padding: 10px var(--gutter) 90px; }
  .works-grid { grid-template-columns: 1fr; gap: 44px; }
  .pmodal { padding: 10px; }
  .pmodal-box { border-radius: 20px; }
  .pmodal-title { font-size: 24px; }
  .pmodal-grid { grid-template-columns: 1fr; }
  .window-body { aspect-ratio: 4 / 3; }
  .window-meta { flex-direction: column; align-items: flex-start; }
  .chips { justify-content: flex-start; }
  .window-title { font-size: 24px; }
  .clip { right: 30px; height: 60px; }
  .card-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 44px minmax(0, 1fr); }
  .svc-desc { grid-column: 2; justify-self: start; text-align: left; }
  .svc-float { display: none; }
  .review { flex-basis: 84vw; }
  .review-head { font-size: 22px; }
  .dock { bottom: 14px; max-width: calc(100vw - 24px); overflow-x: auto; }
  .dock a { padding: 9px 11px; font-size: 13px; }
  .page-head, .case-head { padding-top: 130px; }
  .pull { font-size: 28px; }
  .case-hero { padding-top: 110px; padding-bottom: 80px; }
  .case-title, .next-title { letter-spacing: -2px; }
  .case-lede { font-size: 18px; margin-bottom: 40px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
  .window-body--cover { aspect-ratio: 4 / 3; }
  .case-cover .case-sticker { left: -6px; }
  .case-cover .case-sticker--r { right: -6px; }
  .case-results, .case-quote { padding-top: 90px; padding-bottom: 90px; }
  .case-overview, .case-process, .case-text { grid-template-columns: 1fr; gap: 32px; padding-top: 90px; padding-bottom: 90px; }
  .case-overview { border-radius: 28px 28px 0 0; }
  .overview-text { font-size: 21px; }
  .process-head, .case-h2 { position: static; }
  .step { grid-template-columns: 1fr; padding: 24px; }
  .step:hover { transform: none; }
  .step-title { font-size: 22px; }
  .case-prose { font-size: 18px; }
  .case-media { padding: 50px var(--gutter); }
  .case-live p { font-size: 22px; }
  .next-title { padding-right: 0; }
  .next-arrow { position: static; width: 64px; height: 64px; margin-top: 16px; }
}

/* Short, wide screens (small laptops): tighten the hero so it still fits one screen */
@media (max-height: 760px) and (min-width: 721px) {
  .hero { padding-top: 150px; padding-bottom: 110px !important; }
  .hc-slot { top: 84px; }
  .hero-sub { bottom: 22px; }
  .hero-projects { bottom: 22px; }
}

/* =========================================================
   Phones: availability card centred and static, two stickers only,
   no project cards in the hero
   ========================================================= */
@media (max-width: 720px) {
  .hc-slot { left: 0; right: 0; display: flex; justify-content: center; }
  .hero-card { position: relative; pointer-events: none; }
  .hero-card .hc-more { display: none; }
  .hero-card, .hero-card .hc-top { text-align: center; justify-content: center; }
  .hero-status { justify-content: center; }
  .hero-sub { margin-top: 56px; }
  .hero-projects { display: none; }
  .tag-sticker--3 { display: none; }
  .tag-sticker--1 { top: -21%; right: -4%; left: auto; }
  .tag-sticker--2 { top: 89%; left: -9%; right: auto; }
  .hero { padding-bottom: 90px !important; }
}

/* =========================================================
   How I work on phones and tablets: the section pins. The heading sits centred above
   the cards. Scrolling hides it while the cards grow to fill the section (.is-running),
   then the cards move sideways as you keep scrolling.
   ========================================================= */
.hwork.is-stacked .hwork-pin { height: 100svh; align-items: flex-end; padding-bottom: 112px; border-radius: 28px 28px 0 0; }
.hwork.is-stacked.is-pinned { height: calc(100svh + var(--travel, 0px)); }
.hwork.is-stacked .hwork-track { will-change: auto; }
.hwork.is-stacked .hwork-intro {
  position: absolute;
  top: 34px; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  transition: opacity 350ms ease, translate 600ms var(--ease), scale 600ms var(--ease);
}
.hwork.is-stacked .hwork-intro .kicker { margin-bottom: 12px; }
.hwork.is-stacked .hwork-intro .section-title { max-width: none; margin: 0 auto 10px; font-size: clamp(24px, 6.6vw, 48px); }
.hwork.is-stacked .hwork-desc { margin: 0 auto 12px; font-size: 14px; }
/* cards sit under the heading at first, then grow to fill the section */
.hwork.is-stacked .hcard,
.hwork.is-stacked .hcard:hover {
  height: calc(100svh - 420px);
  min-height: 300px;
  transform: translate3d(var(--hx, 0px), 0, 0);
  transition: height 650ms var(--ease);
}
.hwork.is-stacked .hwork-bar { bottom: 92px; }

.hwork.is-stacked.is-running .hwork-intro { opacity: 0; translate: 0 -40px; scale: 0.94; pointer-events: none; }
.hwork.is-stacked.is-running .hcard { height: calc(100svh - 170px); }

/* motion while the cards take over: each card pops and settles, one after the other,
   and the phone inside it rises with a small bounce */
.hwork.is-stacked.is-running .hcard { animation: hcard-pop 800ms var(--ease) both; }
.hwork.is-stacked.is-running .hcard:nth-of-type(2) { animation-delay: 80ms; }
.hwork.is-stacked.is-running .hcard:nth-of-type(3) { animation-delay: 160ms; }
.hwork.is-stacked.is-running .hcard .phone--card { animation: hphone-rise 900ms cubic-bezier(0.34, 1.4, 0.64, 1) 120ms both; }
.hwork.is-stacked.is-running .hcard-step,
.hwork.is-stacked.is-running .hcard-title,
.hwork.is-stacked.is-running .hcard-body,
.hwork.is-stacked.is-running .hcard-chips { animation: htext-in 600ms var(--ease) both; }
.hwork.is-stacked.is-running .hcard-title { animation-delay: 70ms; }
.hwork.is-stacked.is-running .hcard-body { animation-delay: 140ms; }
.hwork.is-stacked.is-running .hcard-chips { animation-delay: 210ms; }

@keyframes hcard-pop {
  0% { scale: 1; rotate: 0deg; }
  35% { scale: 0.95; rotate: -1.5deg; }
  70% { scale: 1.02; rotate: 0.6deg; }
  100% { scale: 1; rotate: 0deg; }
}
@keyframes hphone-rise { from { translate: 0 70px; } to { translate: 0 0; } }
@keyframes htext-in { from { opacity: 0.2; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* =========================================================
   Reviews on phones: pinned, cards move sideways as you scroll down (JS adds .is-pinned-x)
   ========================================================= */
.reviews.is-pinned-x { height: calc(100svh + var(--rtravel, 0px) + 90px); padding-top: 0; padding-bottom: 90px; overflow: visible; box-sizing: border-box; }
.reviews.is-pinned-x .reviews-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; max-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 70px; }
.reviews.is-pinned-x .review-row { align-items: stretch; overflow: visible; scroll-snap-type: none; margin: 0 !important; padding-right: 0; will-change: transform; }

/* =========================================================
   Every card uses the same 8px corner, at every screen size
   ========================================================= */
.hero-card, .hero-card:hover, .hero-card:focus-within, .hero-card.is-open,
.mini, .stat, .window, .split, .pmodal-box, .hcard, .review, .faq-pill,
.footer-card, .result, .step, .wcard, .svc-float,
.blog-lead, .blog-row, .blog-card { border-radius: 8px; }
.split-media, .pmodal-media { border-radius: 6px; }
.mini-thumb { border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
  .dock { transform: translate(-50%, 0); }
  .word > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Blog + Web & App row on tablets and phones */
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-lead { min-height: 440px; }
  .blog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .blog { padding: 100px var(--gutter) 20px; }
  .blog > .about-head { margin-bottom: 36px; }
  .blog-lead { min-height: 380px; }
  .blog-lead-text { padding: 22px; }
  .blog-row { grid-template-columns: 120px minmax(0, 1fr); }
  .blog-row-media { min-height: 120px; }
  .blog-row-text { padding: 14px 16px; gap: 8px; }
  .blog-row-title { font-size: 15px; }
  .blog-cards { grid-template-columns: 1fr; }
  .blog--page, .blog--more { padding-bottom: 90px; }
  .post { padding-top: 120px; }
  .post-title { letter-spacing: -1px; }
  .post-lede { font-size: 18px; margin-bottom: 32px; }
  .post-cover { margin-bottom: 36px; }
  .post-body { font-size: 17px; }
  .combo-arrow { display: none; }
  .combo-row { gap: 14px; padding-bottom: 30px; }
  .combo-item .split { height: 600px; grid-template-rows: auto minmax(0, 1fr); }
  .combo-item .split-media { aspect-ratio: auto; height: 250px; }
}
