:root {
  --paper:      #FAF8F0;
  --paper-2:    #EFEAD9;
  --ink:        #1C4A3A;
  --ink-soft:   #3C6455;
  --ink-faint:  #7C9A8D;
  --line:       #DCE4D6;
  --line-ink:   rgba(28, 74, 58, 0.14);

  --mint:   #93F0A8;
  --pink:   #FCB1D0;
  --sky:    #A8D5FC;
  --yellow: #FFF38A;
  --lilac:  #E6C7F4;
  --peach:  #FFB882;

  --green:  var(--mint);
  --purple: var(--lilac);
  --orange: var(--peach);
  --butter: var(--yellow);
  --blush:  var(--pink);

  --green-bright: #17854B;
  --violet: #7A5CFF;

  --doodle-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M104 14 C48 10 18 40 20 66 C22 96 74 112 118 106 C168 99 190 70 182 46 C174 22 130 8 92 14' fill='none' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");

  --doodle-loop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 277 136' preserveAspectRatio='none'%3E%3Cpath d='M74.3,21.8c0,0,19.5-4.3,53.8-0.8s69.8,11.3,88,17.5s35.8,12.3,43,21.3c5.3,6.5,7.5,8.8,7,13.3s-1.5,14.5-7.8,18.3s-56.3,16-70.5,17.8s-75.5,4.8-107.3-1.8S7,83.5,7,63.5s45.5-30,55-32.3s49-8.8,69.3-8s71.3,4.3,87.3,9.5s50.5,21,52,35.3s-14.3,20-20.8,22.8s-30,13.8-51.5,14.8s-56.5,2.8-77.3,0.3s-55.5-6-64.5-8.8S20.8,80.8,18.3,77S9.1,73,12,61s20.8-18.5,29-21.8s29.8-8.3,53-11' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");

  /* masked SVG: colour comes from --eyebrow-accent per section */
  --eyebrow-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 282 12' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M224.3,1.2c-19.1,0.5-50.4,1.2-69.5,1.7C121.5,3.5,72.4,4.9,23.4,6.6C6.9,7.1,0,7.8,0,8.8c0,2.2,18.9,2.8,54.6,1.7C72.1,10,112.7,9,144.9,8.3C199.7,7,256,4.4,260.2,2.8c2.2-0.8,2.4-3,0.4-2.7C259.6,0.2,243.3,0.7,224.3,1.2z'/%3E%3C/svg%3E");

  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--green-bright);
  --nav-h: 5.5rem;

  --serif: "Space Grotesk", system-ui, sans-serif;
  --sans:  "Space Grotesk", system-ui, sans-serif;
  --mono:  "Space Grotesk", system-ui, sans-serif;

  --fs-label: 0.75rem;
  --fs-small: clamp(0.82rem, 0.8rem + 0.2vw, 0.95rem);
  --fs-body:  clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  --fs-lead:  clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h3:    clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h2:    clamp(2rem, 1.4rem + 3vw, 4rem);
  --fs-display: clamp(2.75rem, 1rem + 9vw, 8.5rem);

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
  --sp-7: 9rem;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1560px;

  --radius: 14px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur: 0.5s;

  --z-nav: 100;
  --z-preview: 60;
  --z-cursor: 200;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(var(--sp-5), 10vw, var(--sp-7)); }
.section--tight { padding-block: clamp(var(--sp-4), 6vw, var(--sp-5)); }

.eyebrow {
  --eyebrow-accent: var(--yellow);
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  display: inline-block;
  position: relative;
  padding-bottom: 0.5em;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0.4em;
  width: 66%;
  bottom: 0;
  height: 0.55em;
  background-color: var(--eyebrow-accent);
  -webkit-mask: var(--eyebrow-underline) no-repeat center / 100% 100%;
          mask: var(--eyebrow-underline) no-repeat center / 100% 100%;
}

.work    .eyebrow { --eyebrow-accent: var(--lilac); }
.process .eyebrow { --eyebrow-accent: var(--pink); }

/* absolute so brand + CTA scroll away; only the menu below is fixed */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: clamp(0.9rem, 2vw, 1.5rem);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__avatar {
  display: block;
  width: 2.75rem; height: 2.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  flex: 0 0 auto;
  transform: rotate(-6deg);
  transition: transform 0.3s var(--ease);
}
/* counter-rotates the image inside the tilted frame */
.nav__avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 54% 18%;
  transform: rotate(6deg) scale(1.13);
}
.nav__brand:hover .nav__avatar { transform: rotate(-6deg) scale(1.05); }

.nav__menu {
  position: fixed;
  top: clamp(0.9rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-nav) + 1);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-inline: 0.4rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.nav.is-scrolled .nav__menu {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav__menu a {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a.is-active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.nav__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex: 0 0 auto;
  height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__linkedin:hover { opacity: 85%; transform: translateY(-2px); }

@media (max-width: 720px) {
  .nav__menu { display: none; }
}

.hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(5rem, 11vh, 7rem);
  position: relative;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 3.75vw, 3rem);
  width: 100%;
}

.hero__scrawl {
  position: absolute;
  right: calc(clamp(1rem, 4vw, 3rem) + 62px);
  bottom: calc(clamp(1.25rem, 5vh, 3rem) + 28px);
  z-index: 2;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35em;
  color: var(--ink);
}
.hero__scrawl-text {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(1.2rem, 0.95rem + 0.95vw, 1.8rem);
  line-height: 0.92;
  text-align: left;
  transform: rotate(-3deg);
}
.hero__scrawl-arrow {
  width: clamp(58px, 6.5vw, 88px);
  height: auto;
  margin-top: -0.28em;
  color: var(--mint);
  overflow: visible;
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero__scrawl:hover .hero__scrawl-arrow { transform: translateY(4px); }
}
@media (max-width: 640px) { .hero__scrawl { display: none; } }

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 0.8rem + 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
  margin-inline: auto;
}
.hero__title .line { display: block; padding: 0.06em 0; }
.hero__title .line > span { display: inline-block; will-change: transform, opacity; }

.hero__title em {
  font-family: "Caveat", cursive;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.2em;
  line-height: 0.9;
  letter-spacing: 0.005em;
  padding: 0 0.08em;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-scribble {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.hero-em--loop .hero-scribble {
  left: 50%; top: 52%;
  width: 136%; height: 178%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.hero-em--underline .hero-scribble {
  left: 58%; bottom: -0.32em;
  width: 98%; height: 0.6em;
  transform: translateX(-58%);
}
.hero-scribble path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero-em--loop .hero-scribble path { stroke: var(--mint); }
/* left-to-right wipe keeps the stroke continuous */
.hero-scribble {
  clip-path: inset(0 100% 0 0);
  animation: scribble-wipe 0.85s var(--ease) forwards;
  animation-delay: var(--draw-delay, 0.6s);
}
@keyframes scribble-wipe { to { clip-path: inset(0 -12% 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scribble { animation: none; clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  .folder::after { transition: none; }
}

.hero__lead {
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: -0.5rem;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
  font-weight: 500;
  color: var(--ink-soft);
}
.hero__location .globe { flex: 0 0 auto; overflow: visible; }
.hero__location .globe__meridian {
  transform-origin: 12px 12px;
  animation: globe-turn 7s ease-in-out infinite;
}

@keyframes globe-turn {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.08); }
}

/* rounded bottom reveals the sticky About block beneath */
.work {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
}
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: calc(clamp(2rem, 4vw, 3.5rem) + 3rem);
}
.work__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  line-height: 1;
}

.folders {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: calc(clamp(1.5rem, 5vw, 2.75rem) + 36px);
}
.folder {
  --tab-w: clamp(84px, 11vw, 132px);
  --tab-left: clamp(1.75rem, 4vw, 3.5rem);
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
  background: var(--card, var(--pink));
  color: var(--on, var(--ink));
  border-radius: 34px;
  min-height: clamp(390px, 80vh, 580px);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 50%, 640px);
  gap: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 -10px 40px -22px rgba(33, 30, 77, 0.55);
  transition: transform 0.5s var(--ease);
}
.folder__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.folder::before {
  content: "";
  position: absolute;
  top: -30px;
  left: calc(var(--tab-left) + var(--i, 0) * var(--tab-w));
  width: var(--tab-w);
  height: 32px;
  background: var(--card, var(--pink));
  border-radius: 14px 14px 0 0;
}
.folder { text-decoration: none; }
.folder:hover { box-shadow: 0 -14px 48px -20px rgba(33, 30, 77, 0.6); }

.folder__body { max-width: 100%; }
.folder__company {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}
.folder__task {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 0.95rem + 1.5vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-top: 0.9rem;
  max-width: 30ch;
}
.folder__task mark {
  background: var(--mark, var(--yellow));
  color: var(--mark-ink, var(--ink));
  padding: 0.02em 0.28em;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-2deg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.folder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.folder__pill {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card, var(--pink));
  background: var(--on, var(--ink));
  border-radius: 10px;
  padding: 0.5em 1em;
}

.folder__foot { margin-top: 1.5rem; }
.folder__divider {
  height: 1.5px;
  background: color-mix(in srgb, var(--on, var(--ink)) 20%, transparent);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.folder__divider { display: none; }
.folder__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: color-mix(in srgb, var(--card, var(--pink)) 90%, #000);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 1.8vw, 1.15rem);
}
.folder__stat { padding: clamp(0.85rem, 1.8vw, 1.25rem); }

.folder__stat + .folder__stat { border-left: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); }
@media (max-width: 480px) {
  .folder__stats { grid-template-columns: 1fr; }
  .folder__stat + .folder__stat { border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); }
}
.folder__stat .num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 0.9rem + 2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);  /* green-bright is too low-contrast on the darkened pastels */
}
.folder__stat .lbl {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.folder .folder__preview {
  align-self: end;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 24px 46px -20px rgba(33, 30, 77, 0.45);
  transition: transform 0.5s var(--ease);
}
.folder:hover .folder__preview { transform: rotate(1deg) scale(1.03); }
.folder__preview .ph__label { font-size: 1.05rem; }
.folder__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folder--locked .folder__preview { filter: blur(10px) saturate(0.9); }
.folder--locked .ph__label { opacity: 0; }
.folder__lock {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.85em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.folder__lock svg { width: 14px; height: 14px; }
.folder--locked.is-unlocked .folder__preview { filter: none; }
.folder--locked.is-unlocked .ph__label { opacity: 0.62; }
.folder--locked.is-unlocked .folder__lock { display: none; }

.lockmodal[hidden] { display: none; }
.lockmodal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 1.5rem;
}
.lockmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 74, 58, 0.42);
  backdrop-filter: blur(3px);
}
.lockmodal__panel {
  position: relative;
  width: min(28rem, 100%);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 60px -24px rgba(28, 74, 58, 0.6);
  text-align: center;
}
.lockmodal__x {
  position: absolute; top: 0.6rem; right: 0.9rem;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.lockmodal__icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: var(--mint); color: var(--ink);
  margin-bottom: 1rem;
}
.lockmodal__title { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; margin-bottom: 0.4rem; }
.lockmodal__hint { color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: 1.25rem; }
.lockmodal__hint[hidden] { display: none; }
.lockmodal__form { display: flex; gap: 0.5rem; }
.lockmodal__input {
  flex: 1; min-width: 0;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.lockmodal__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.lockmodal__submit {
  padding: 0.8em 1.3em;
  border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  transition: background 0.25s var(--ease);
}
.lockmodal__submit:hover { background: var(--green-bright); }
.lockmodal__error { color: #B23A48; font-size: var(--fs-small); margin-top: 0.8rem; }
.lockmodal__error[hidden] { display: none; }
.lockmodal__panel.is-shake { animation: lockshake 0.4s; }
@keyframes lockshake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .lockmodal__panel.is-shake { animation: none; }
  .lockmodal__backdrop { backdrop-filter: none; }
}

@media (max-width: 820px) {
  .folder {
    position: static;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .folder::before { left: var(--tab-left); }
  .folder .folder__preview {
    align-self: stretch;
    aspect-ratio: 16 / 9;
    max-width: 560px;
    transform: rotate(-1.5deg);
  }
  .folder:hover .folder__preview { transform: rotate(-1.5deg); }
}

.phi-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 1.8vw, 1.8rem);
}
.phi-row > * { flex: 1 1 clamp(240px, 42%, 360px); }

@media (min-width: 1200px) {
  .phi-row { flex-wrap: nowrap; gap: 0; }
  .phi-row > * { flex: 1 1 0; min-width: 0; }
  .phi-row > * + * { margin-left: -8px; }
  .phi-row > *:hover { z-index: 5; }
}

.phi {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 335px;
  padding: calc(clamp(1.35rem, 2vw, 1.85rem));
  border-radius: 20px;
  background: var(--phi-color, var(--peach));
  color: var(--ink);
  box-shadow: 0 16px 32px -20px rgba(28, 74, 58, 0.45);
  transform: rotate(var(--phi-rot, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .phi:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 24px 44px -22px rgba(28, 74, 58, 0.55);
  }
}
.phi__top { display: flex; flex-direction: column; gap: 0.6rem; }
.phi__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.32rem, 1.04rem + 0.8vw, 1.73rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.phi__desc {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: inherit;
  margin-top: 1rem;
}
.phi__icon { margin-top: auto; padding-top: 1.5rem; }
.phi__icon img { width: 2.6rem; height: 2.6rem; object-fit: contain; }

@media (max-width: 560px) {
  .phi-row > * { flex-basis: 100%; }
}

/* bounds the About section's sticky containing block so it can't ride over the hero */
.stack { position: relative; }

/* pins the section's bottom edge: top = viewport height - own height (--about-h, set by JS) */
.profile {
  position: sticky;
  top: calc(100dvh - var(--about-h, 999vh));
  z-index: 1;
  padding-block: calc(clamp(var(--sp-5), 10vw, var(--sp-7)) + 5rem);
  background-color: var(--paper);
  overflow: clip;
  --expand: 0;  /* 0 = inset card, 1 = full-bleed; set by JS on scroll */
}

.profile__bg {
  position: absolute;
  z-index: 0;
  inset: calc((1 - var(--expand)) * clamp(16px, 3vw, 40px));
  background: var(--sky);
  border: calc((1 - var(--expand)) * 3px) solid var(--paper);
  border-radius: calc((1 - var(--expand)) * clamp(32px, 5vw, 70px));
  will-change: inset;
}
@media (prefers-reduced-motion: reduce) {
  .profile__bg { inset: 0; border-width: 0; border-radius: 0; }
}
.profile > .wrap { position: relative; z-index: 1; }
.profile__panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: 0 24px 50px -30px rgba(28, 74, 58, 0.45);
}

.profile .eyebrow { --eyebrow-accent: var(--sky); }
.profile__intro .eyebrow { margin-bottom: 0.9rem; }
.profile__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  max-width: 75%;
}
.profile__title em {
  font-style: normal;
  color: var(--ink);
  background: var(--sky);
  padding: 0.02em 0.24em;
  border-radius: 16px;
  line-height: 1;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.profile__lead {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: calc(var(--fs-lead) * 0.75);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 75%;
}

.profile__photo {
  position: relative;
  min-height: clamp(240px, 30vh, 320px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 16px 32px -20px rgba(28, 74, 58, 0.45);
  transform: rotate(var(--phi-rot, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile__photo--arrow { overflow: visible; }
.profile__photo--arrow img { border-radius: 20px; }
.profile__photo--arrow::after {
  content: "";
  position: absolute;
  top: clamp(-78px, -7vw, -36px);
  right: clamp(-20px, -4.5vw, -22px);
  width: clamp(74px, 13vw, 136px);
  height: clamp(58px, 7.8vw, 90px);
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none' stroke='%23FFB882' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 60 C46 34 96 30 122 42 C138 49 134 63 120 60 C108 57 114 42 128 46 C152 53 166 74 168 92'/%3E%3Cpath d='M156 82 L168 96 L180 82'/%3E%3C/svg%3E");
  transform: scaleX(-1) rotate(-4deg);
  transform-origin: center;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .profile__photo:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 24px 44px -22px rgba(28, 74, 58, 0.55);
  }
}

/* negative margin overlaps the About block so the rounded corners never show the page */
.process {
  position: relative;
  z-index: 2;
  min-height: 110vh;
  min-height: 110dvh;
  margin-top: calc(-1 * clamp(28px, 4vw, 52px));
  background-color: var(--paper-2);
  border-radius: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 0 0;
}
.process__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.process__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  max-width: 18ch;
}

.process__nav { display: inline-flex; gap: 0.6rem; flex: 0 0 auto; }
.process__btn {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .process__btn:hover:not(:disabled) {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 3px 3px 0 var(--ink);
    transform: translateY(-1px);
  }
}
.process__btn:active:not(:disabled) { transform: translateY(1px) scale(0.93); }
.process__btn:disabled { opacity: 0.3; cursor: default; }

/* card positions are set by JS (processCarousel); cards never resize */
.process__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.process__viewport::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .process__viewport { scroll-behavior: auto; } }
.process__track {
  position: relative;
  height: calc(var(--pch) + 3rem);
  --pcw: clamp(380px, 30vw, 490px);
  --pch: clamp(240px, 26vw, 300px);
}
.pcard {
  position: absolute;
  top: 1.5rem; left: 0;
  width: var(--pcw);
  height: var(--pch);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: 24px;
  background: color-mix(in srgb, var(--card, var(--mint)) 42%, var(--paper));
  border: 1.5px solid color-mix(in srgb, var(--card, var(--mint)) 55%, transparent);
  overflow: hidden;
  cursor: pointer;
  transform: translateX(0);
  transition: transform 0.55s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.pcard.is-active {
  cursor: default;
  box-shadow: 0 10px 22px -18px rgba(28, 74, 58, 0.4);
}
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }

.pcard__num {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--ink);
}
.pcard__num::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background-color: var(--ink);
  -webkit-mask: var(--doodle-loop) center / 100% 100% no-repeat;
          mask: var(--doodle-loop) center / 100% 100% no-repeat;
}
.pcard__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pcard__desc {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 54ch;
  padding-right: 3rem;
}
.pcard__icon {
  position: absolute;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.pcard.is-active .pcard__icon { opacity: 1; }
.pcard__icon img { width: 2.3rem; height: 2.3rem; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .pcard.is-active:hover .pcard__icon { transform: rotate(-6deg) scale(1.08); }
}

/* overlaps the process block; same rounded-corner overlap as .process */
.contact {
  background-color: var(--ink);
  color: var(--paper);
  border-radius: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px) 0 0;
  padding-block: clamp(var(--sp-5), 10vw, var(--sp-7));
  padding-bottom: calc(clamp(var(--sp-5), 10vw, var(--sp-7)) * 0.75);
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * clamp(28px, 4vw, 52px));
  overflow: hidden;
}
.contact ::selection { background: var(--paper); color: var(--ink); }
.contact__eyebrow {
  color: var(--paper);
  --eyebrow-accent: var(--butter);
}
.contact__big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}
.contact__big a {
  position: relative;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.contact__big em { font-style: normal; color: var(--yellow); }
.contact__link-underline {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s var(--ease);
}
.contact__link-underline:hover { background-size: 100% 100%; color: var(--ink); border-radius: 4px; padding-inline: 0.1em; }

.contact__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
  padding-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 700px) { .contact__cols { grid-template-columns: repeat(3, 1fr); } }
.contact__col h4 {
  font-family: var(--mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: 1rem;
  font-weight: 400;
}
.contact__col a, .contact__col p { display: block; margin-bottom: 0.5rem; color: color-mix(in srgb, var(--paper) 88%, transparent); }
.contact__col a { width: fit-content; position: relative; }
.contact__col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.contact__col a:hover::after { transform: scaleX(1); }

.colophon {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--mono);
  font-size: var(--fs-label);
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  letter-spacing: 0.04em;
}
.to-top {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--paper);
  transition: gap 0.3s var(--ease);
}
.to-top:hover { gap: 0.9em; }

.ph {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper-2);
  isolation: isolate;
}
.ph::after {
  content: "REPLACE";
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}
.ph--mint   { background: linear-gradient(135deg, var(--mint), #C7EFD6); }
.ph--butter { background: linear-gradient(135deg, var(--butter), #F7EFC2); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.cs-hero { padding-top: clamp(8rem, 16vh, 12rem); }
.cs-back {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  display: flex; width: max-content; align-items: center; gap: 0.5em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  transition: gap 0.3s var(--ease);
}
.cs-back:hover { gap: 0.9em; }
.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.cs-title em { font-style: normal; color: var(--green-bright); }

.cs-title.is-statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.6rem);
  line-height: 1.07;
  max-width: 24ch;
}
.cs-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 760px) { .cs-specs { grid-template-columns: repeat(4, 1fr); } }
.cs-spec h4 {
  font-family: var(--mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.cs-spec p { font-size: var(--fs-small); color: var(--ink); }
.cs-spec .cs-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cs-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  background: #FFFEF9;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}

.cs-impact {
  background: #FFFEF9;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.cs-impact__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.cs-impact__title svg { color: var(--green-bright); flex: none; }
.cs-impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2vw, 1.5rem);
}
@media (min-width: 760px) { .cs-impact__grid { grid-template-columns: repeat(3, 1fr); } }
.cs-impact__card {
  border: 2px solid var(--green-bright);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
}
/* doubled class for specificity inside .cs-block */
.cs-impact .cs-impact__card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.cs-impact .cs-impact__card p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.cs-block .cs-impact { margin-block: 1.4rem; }

@media (min-width: 760px) { .cs-block .cs-impact__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.cs-impact__card strong { color: var(--ink); font-weight: 700; }

.cs-impact .cs-impact__card.is-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(11.5rem, 17vw, 14rem);
  border: 0;
  background: var(--c, var(--mint));
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
}
.cs-impact__icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}
.cs-impact__icon svg { width: 1.3rem; height: 1.3rem; }
.cs-impact__from {
  position: absolute;
  top: clamp(1.15rem, 2.4vw, 1.6rem);
  right: clamp(1.15rem, 2.4vw, 1.6rem);
  max-width: 60%;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink);
  text-align: right;
}
.cs-impact .cs-impact__card.is-tile h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cs-impact .cs-impact__card.is-tile p {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
}

.cs-table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.cs-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.cs-table th, .cs-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cs-table th {
  font-family: var(--mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 600;
}
.cs-table td { color: var(--ink-soft); line-height: 1.5; }
.cs-table td:first-child { color: var(--ink); font-weight: 500; }

.cs-block { max-width: 72ch; margin-inline: auto; }
.cs-block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.cs-block .eyebrow { margin-bottom: 1rem; }
.cs-block p { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; margin-bottom: 1.2rem; }
.cs-block p.body { font-size: var(--fs-body); line-height: 1.65; max-width: 68ch; }

.cs-block h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.cs-block ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.4rem;
  display: grid;
  gap: 0.7rem;
}
.cs-block ul li {
  position: relative;
  padding-left: 1.5em;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.55;
  max-width: 68ch;
}
.cs-block ul li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.55em;
  width: 0.5em; height: 0.5em;
  border-radius: 2px;
  background: var(--green-bright);
}
.cs-block ul li strong { color: var(--ink); font-weight: 700; }

.cs-fig { margin: clamp(1.75rem, 4vw, 2.5rem) 0; }
.cs-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ep-fig > img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.cs-fig--bare img { border: 0; }

.cs-fig__step { display: grid; gap: 0.6rem; }
.cs-fig__step + .cs-fig__step { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.cs-fig--compare { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) {
  .cs-fig--compare { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .cs-fig--compare figcaption { grid-column: 1 / -1; }
}
.cs-fig--compare .cs-fig__step + .cs-fig__step,
.cs-fig--compare figcaption { margin-top: 0; }

.cs-fig__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
@media (min-width: 700px) { .cs-fig__pair { grid-template-columns: 1fr 1fr; } }

.cs-fig figcaption,
.ep-fig figcaption {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  max-width: 60ch;
  margin: 1rem auto 0;
}
.cs-cover-fig { margin-block: clamp(2.5rem, 6vw, 5rem); }

.cs-next {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.cs-next a { display: block; }
.cs-next .lbl { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.8rem; }
.cs-next .title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 0.4em;
  transition: gap 0.4s var(--ease), color 0.3s var(--ease);
}
.cs-next a:hover .title { gap: 0.8em; color: var(--green-bright); }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.is-hover { width: 44px; height: 44px; background: color-mix(in srgb, var(--green-bright) 25%, transparent); }

.cursor-dot__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  color: var(--paper);
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.cursor-dot.is-label { width: 116px; height: 116px; background: var(--ink); }
.cursor-dot.is-label .cursor-dot__label { opacity: 1; transition-delay: 0.1s; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .folder, .folder * { cursor: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none !important; opacity: 1 !important; }
  .cursor-dot { display: none !important; }
}

.hero__title,
.work__head h2,
.contact__big,
.cs-title,
.cs-block h2,
.cs-next .title { font-weight: 700; }

.hl {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.02em 0.24em;
  border-radius: 14px;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

.dot-grid {
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}
.dot-grid--dark {
  background-image: radial-gradient(color-mix(in srgb, var(--paper) 16%, transparent) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  background-position: -13px -13px;
}

.hero__inner { position: relative; z-index: 1; }
.contact .wrap { position: relative; z-index: 1; }
.work__head { position: relative; z-index: 1; }

.ep-fig { margin: clamp(1.75rem, 4vw, 2.75rem) 0; }
.ep-panel {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink);
}
.ep-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-faint);
}
.ep-note {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--ink);
}

.ep-share {
  display: grid; gap: clamp(1.25rem, 4vw, 2.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 620px) { .ep-share { grid-template-columns: minmax(180px, 250px) 1fr; } }
.ep-waffle {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 4px; width: 100%; max-width: 250px;
}
.ep-waffle span {
  aspect-ratio: 1; border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.ep-waffle span.is-on { background: var(--ink); }
.ep-share__num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.9; letter-spacing: -0.04em;
  color: var(--green-bright);
}
.ep-share__lbl { font-size: var(--fs-body); line-height: 1.45; color: var(--ink); margin: 0.6rem 0 0.8rem; max-width: 34ch; }

.ep-pool__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.6rem;
}
.ep-pool__head strong { font-size: var(--fs-body); font-weight: 700; white-space: nowrap; }
.ep-bar em { font-style: normal; }
@media (max-width: 560px) { .ep-hide-sm { display: none; } .ep-bar span { padding-inline: 0.5rem; } }
.ep-bar {
  display: flex; height: 46px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--ink);
}
.ep-bar span {
  flex: var(--w) 0 0; background: var(--c);
  display: flex; align-items: center; padding-inline: 0.7rem;
  font-size: var(--fs-small); font-weight: 600; white-space: nowrap; overflow: hidden;
}
.ep-bar span + span { border-left: 1.5px solid var(--ink); }
.ep-pool__approve {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.7rem 0 1.4rem; font-size: 1.3rem;
}
.ep-pool__approve svg { flex: none; }
.ep-pool__cols {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ep-pool__cols { grid-template-columns: 40fr 25fr 35fr; } }
.ep-pool__col {
  background: var(--paper);
  border-radius: 10px;
  border-top: 6px solid var(--c);
  padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.ep-pool__t { font-weight: 700; font-size: var(--fs-small); }
.ep-spots { display: grid; grid-template-columns: repeat(10, 13px); gap: 3px; }
.ep-spots i {
  aspect-ratio: 1; border-radius: 2px;
  border: 1.5px solid var(--ink);
  background: transparent;
}
.ep-spots i.is-on { background: var(--ink); }
.ep-spots--public i { border-color: color-mix(in srgb, var(--ink) 45%, transparent); background: var(--yellow); }
.ep-pool__meta { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); margin-top: auto; }
.ep-pool__meta b { color: var(--ink); display: inline-block; margin-top: 0.2rem; }
.ep-pool__sink {
  margin-top: 1.25rem;
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 0.85rem 1rem;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.35;
}
.ep-pool__sink strong { font-weight: 700; }
.ep-pool__sink svg { flex: none; }
.ep-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-top: 1rem; font-size: var(--fs-small); color: var(--ink-soft);
}
.ep-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.ep-legend i { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--ink); }
.ep-legend i.is-on { background: var(--ink); }
.ep-legend i.is-pub { background: var(--yellow); border-color: color-mix(in srgb, var(--ink) 45%, transparent); }

.cs-block .ep-flow {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  counter-reset: flow;
}
@media (min-width: 760px) { .cs-block .ep-flow { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; } }
.ep-flow li {
  counter-increment: flow;
  position: relative;
  background: var(--c); color: var(--ink);
  border-radius: 10px; padding: 0.85rem 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ep-flow li.is-key { outline: 2px dashed var(--ink); outline-offset: 3px; }
.ep-flow__who {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.64rem; font-weight: 600; color: var(--ink-soft);
}
.ep-flow__who::before { content: counter(flow) " · "; }
.ep-flow__what { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.ep-flow li:not(:last-child)::after {
  content: "↓"; position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%);
  color: var(--ink);
}
@media (min-width: 760px) {
  .ep-flow li:not(:last-child)::after {
    content: "→"; left: auto; right: -1.15rem; bottom: auto; top: 50%; transform: translateY(-50%);
  }
}
.ep-flow__note { margin-top: 1.1rem; text-align: center; }

.cs-block .pr-roots {
  list-style: none; padding: 0; margin: 0.6rem 0 0;
  display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) { .cs-block .pr-roots { grid-template-columns: repeat(4, 1fr); } }
.cs-block .pr-roots li {
  max-width: none; padding: 0.85rem 0.9rem 0.95rem;
  background: var(--c); border-radius: 10px; color: var(--ink);
  display: grid; gap: 0.3rem; align-content: start;
  font-size: var(--fs-small); line-height: 1.35;
}
.cs-block .pr-roots li::before { display: none; }
.pr-roots strong { font-weight: 700; }
.pr-roots li { position: relative; }
.pr-roots li::after {
  content: "↓"; position: absolute; left: 50%; bottom: -1.55rem;
  transform: translateX(-50%); color: var(--ink); font-size: 1.1rem;
}
@media (max-width: 719px) { .pr-roots li:nth-child(-n+2)::after { display: none; } }
.pr-root {
  margin-top: 1.9rem;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; padding: 0.95rem 1.1rem;
  display: grid; gap: 0.3rem; text-align: center;
}
.pr-root .ep-label { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pr-root strong { font-size: var(--fs-body); font-weight: 700; }
.pr-root__note { text-align: center; margin-top: 0.9rem; }

@property --color-bg-brand { syntax: "<color>"; inherits: true; initial-value: #4EAC88; }
.ds-retheme { --color-bg-brand: #4EAC88; }
.ds-retheme .ds-apps { animation: ds-retheme 6s ease-in-out infinite; }
@keyframes ds-retheme {
  0%, 38%   { --color-bg-brand: #4EAC88; }
  50%, 88%  { --color-bg-brand: #3F8FCB; }
  100%      { --color-bg-brand: #4EAC88; }
}
.ds-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  background: var(--ink); color: var(--paper); border-radius: 10px;
  padding: 0.7rem 0.9rem; margin-top: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem;
}
.ds-code__swap { display: inline-grid; }
.ds-code__swap b { grid-area: 1 / 1; font-weight: 600; animation: ds-swap-a 6s ease-in-out infinite; }
.ds-code__swap b + b { animation-name: ds-swap-b; }
.ds-code__swap b::before {
  content: ""; display: inline-block; width: 0.75em; height: 0.75em; border-radius: 3px;
  background: var(--s); margin-right: 0.4em; vertical-align: -0.05em;
}
@keyframes ds-swap-a { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ds-swap-b { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.ds-apps {
  --color-text-primary: #242626; --color-text-title: #555757; --color-text-secondary: #8F9191;
  --color-border-primary: #E3E3E3; --color-bg-surface: #FFFFFF;
  display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-top: 1rem;
  font-family: "Manrope", var(--sans);
}
@media (min-width: 520px) { .ds-apps { grid-template-columns: 1fr 1fr; } }
.ds-app {
  background: var(--color-bg-surface); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.ds-app__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; font-size: 1.05rem; font-weight: 700; color: var(--color-text-title);
  box-shadow: 0 2px 6px rgba(0,0,0,.06); position: relative;
}
.ds-app__body { padding: 1.1rem 1.1rem 0.9rem; display: grid; gap: 0.9rem; flex: 1; align-content: start; }
.ds-app__sec { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--color-text-secondary); }
.ds-app__tabs { display: flex; gap: 1.1rem; box-shadow: inset 0 -2px 0 var(--color-border-primary); font-size: 0.8rem; font-weight: 500; color: var(--color-text-secondary); }
.ds-app__tabs span { padding: 0 0.1rem 0.5rem; }
.ds-app__tabs .is-on { color: var(--color-text-primary); box-shadow: inset 0 -3px 0 var(--color-bg-brand); }
.ds-app__row { display: grid; place-items: center; min-height: 28px; }
.ds-app__load { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 500; color: var(--color-text-secondary); }
.ds-app__load i {
  width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 3px solid var(--color-border-primary); border-top-color: var(--color-bg-brand);
  animation: ds-spin 0.8s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-app__foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  padding: 0.8rem 1.1rem; box-shadow: 0 -2px 6px rgba(0,0,0,.05);
}
.ds-app__cancel { font-size: 0.8rem; font-weight: 500; color: var(--color-text-title); }
.ds-app__save { background: var(--color-bg-brand); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .ds-retheme .ds-apps, .ds-code__swap b, .ds-app__load i { animation: none; }
  .ds-code__swap b + b { display: none; }
}

.gc-score {
  background: var(--paper); border-radius: 12px; padding: clamp(1rem, 2.5vw, 1.25rem);
  display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  color: var(--ink);
}
.gc-card { background: var(--c); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; }
.gc-card__label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.gc-card__big { font-size: 2.5rem; font-weight: 500; line-height: 1.1; margin: 0.5rem 0 0.9rem; white-space: nowrap; }
.gc-card__big span { font-size: 1.5rem; }
.gc-card__bar { margin-bottom: 0.5rem; }
.gc-card__bar small { display: block; font-size: 0.7rem; margin-bottom: 3px; }
.gc-card__bar i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / var(--w) 100%, var(--paper);
}
.gc-card__bar i.is-before { background: linear-gradient(color-mix(in srgb, var(--ink) 35%, var(--paper)), color-mix(in srgb, var(--ink) 35%, var(--paper))) no-repeat 0 0 / var(--w) 100%, var(--paper); }
.gc-card__note { font-size: 0.75rem; margin-top: auto; padding-top: 0.9rem; }

/* gated case study stays hidden until the passcode is entered */
html.is-locked main { visibility: hidden; }

.ds-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ds-pair img { width: 100%; height: auto; display: block; }
@media (min-width: 800px) {
  .ds-pair { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
}
