/* =========================================================
   King Naguimbing · portfolio
   "Campaign Garden" refresh: cream paper, halftone green isles,
   dashed map trails, chunky orange type + sticker doodles.
   ========================================================= */

:root {
  --cream: #FFF8D6;
  --cream-2: #FFF1B8;
  --paper: #FFFDF3;
  --green: #2F8A3B;
  --green-dk: #1E5E2A;
  --green-lt: #6DBE4F;
  --orange: #F07A2A;
  --red: #E5482B;
  --yellow: #F6C343;
  --pond: #3BA4D8;
  --ink: #1C2A1E;
  --ink-2: #3D4A3F;
  --trail: #E3AE35;

  --f-display: "Fredoka", "Jost", system-ui, sans-serif;
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Jost", system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-soft: 0 2px 0 rgba(28, 42, 30, .04), 0 22px 40px -24px rgba(60, 50, 10, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(47, 138, 59, .07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- icons & doodles ---------- */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }
.doodle { position: absolute; animation: boil .5s steps(1, end) infinite; }
@keyframes boil {
  0%   { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  33%  { transform: translate(.7px, -.6px) rotate(calc(var(--r, 0deg) + 2deg)); }
  66%  { transform: translate(-.6px, .5px) rotate(calc(var(--r, 0deg) - 1.5deg)); }
}

/* ---------- shared type ---------- */
.kicker { display: block; width: max-content; max-width: 100%; font: 700 26px/1 var(--f-hand); color: var(--orange); transform: rotate(-2deg); margin-bottom: 6px; }
.kicker.light { color: var(--yellow); }
.sec-title {
  position: relative; display: inline-block; padding-bottom: 12px;
  font: 900 clamp(30px, 4.6vw, 52px)/1 var(--f-head); color: var(--green); letter-spacing: -.01em;
}
.underline { position: absolute; left: 0; bottom: -8px; width: min(320px, 80%); height: 20px; stroke-width: 4; }
.u-orange { color: var(--orange); } .u-green { color: var(--green-lt); } .u-yellow { color: var(--yellow); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 44px); position: relative; }
.sec-note { max-width: 38ch; color: var(--ink-2); font-size: 16.5px; }
.hand { font: 700 23px/1.15 var(--f-hand); color: var(--green); }

/* Orange 3D display type, the old portfolio's signature */
.pop, .hero-title .t-b, .hero-title .t-c, .cta-title {
  font-family: var(--f-display); font-weight: 700;
  background: linear-gradient(180deg, #FBA545 8%, #F07A2A 45%, #E2482B 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #B8401F) drop-shadow(0 2px 0 #B8401F) drop-shadow(0 12px 14px rgba(150, 60, 10, .18));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 13px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 0 rgba(28, 42, 30, .22); transition: transform .18s, box-shadow .18s, background .18s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(28, 42, 30, .22); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(28, 42, 30, .22); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-dk); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none;
  font: 800 13px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--green-dk);
  border-bottom: 2.5px dashed currentColor; transition: gap .2s;
}
.btn-link .ico { width: 18px; height: 18px; }
.btn-link:hover { gap: 14px; }
.btn-link.light { color: var(--cream); }

/* ---------- stickers & tags ---------- */
.tag {
  display: inline-block; padding: 7px 16px 8px; font: 700 15px/1 var(--f-display); letter-spacing: .04em;
  clip-path: polygon(0 10%, 5% 0, 30% 6%, 60% 0, 96% 5%, 100% 0, 98% 50%, 100% 96%, 70% 100%, 40% 94%, 4% 100%, 0 90%, 3% 50%);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .1);
}
.tag-red { background: var(--red); color: #fff; }
.tag-pond { background: var(--pond); color: #fff; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-green { background: var(--green-lt); color: var(--ink); }
.tag-orange { background: var(--orange); color: #fff; }
.oval {
  display: inline-block; padding: 11px 24px 10px; border-radius: 50%; border: 3px solid;
  font: 700 17px/1 var(--f-display); letter-spacing: .06em; transform: rotate(-3deg); margin-bottom: 20px;
  box-shadow: 0 5px 0 rgba(28, 42, 30, .14);
}
.oval-orange { background: var(--orange); color: var(--cream); border-color: var(--yellow); }
.oval-green { background: var(--yellow); color: var(--green-dk); border-color: var(--green); }
.oval-pond { background: var(--pond); color: var(--cream); border-color: var(--green-dk); }

/* Halftone green "isle" used everywhere */
.blob, .isle, .isle-dot {
  background: radial-gradient(circle at 34% 30%, #8BD266 0%, #48A64B 42%, #2A7A35 100%);
  box-shadow: inset -14px -18px 34px rgba(10, 50, 20, .32), 0 0 34px 6px rgba(62, 158, 69, .22);
  position: relative;
}
.blob::after, .isle::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .26) 1.1px, transparent 1.7px); background-size: 7px 7px;
}
.isle { position: absolute; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; filter: blur(.6px); animation: morph 16s ease-in-out infinite alternate; pointer-events: none; }
@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
  50%  { border-radius: 42% 58% 45% 55% / 60% 44% 56% 40%; }
  100% { border-radius: 52% 48% 38% 62% / 44% 52% 48% 56%; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 214, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed rgba(47, 138, 59, .28);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 21px/1 var(--f-display); color: var(--green-dk); white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; color: var(--orange); transition: transform .6s; }
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo.light { color: var(--cream); }
.logo.light .logo-mark { color: var(--yellow); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 800 12.5px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; border-bottom: 2.5px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--green); border-color: var(--yellow); }
.nav-cta { padding: 12px 18px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--green); color: var(--cream); cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 48px); }
/* Peek out of the left page margin only, so they never sit behind the text */
.isle-a { width: 260px; height: 210px; top: 40px; left: calc(max(0px, (100vw - 1200px) / 2) + 26px - 260px); }
.isle-b { width: 170px; height: 140px; bottom: 120px; left: calc(max(0px, (100vw - 1200px) / 2) + 22px - 170px); animation-delay: -6s; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 24px; align-items: end; }
.hero-copy { position: relative; padding-bottom: clamp(56px, 7vw, 96px); z-index: 2; }
.hi { display: inline-flex; align-items: center; gap: 10px; font: 900 clamp(18px, 2vw, 24px)/1 var(--f-head); color: var(--green); letter-spacing: .02em; }
.crown { width: 54px; height: 36px; color: var(--green-lt); stroke-width: 2.2; transform: rotate(10deg) translateY(-8px); }
.hero-title { --tc: clamp(66px, 9.4vw, 122px); position: relative; display: flex; flex-direction: column; margin: 12px 0 22px; line-height: .86; }
.hero-title > span { display: block; }
.t-a { font: 900 clamp(30px, 4.2vw, 54px)/1 var(--f-head); color: var(--green); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 6px; }
.hero-title .t-b { font-size: clamp(104px, 14.5vw, 188px); letter-spacing: -.01em; padding-right: .05em; }
.hero-title .t-c { font-size: var(--tc); margin-top: -.04em; padding-bottom: .1em; }
.o-compass { position: relative; display: inline-block; }
.o-compass svg { position: absolute; left: 50%; top: 53%; width: .3em; height: .3em; margin: -.15em 0 0 -.15em; color: var(--green-dk); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title .t-note { position: absolute; left: calc(var(--tc) * 3.75); bottom: calc(var(--tc) * .32); display: flex; align-items: flex-end; gap: 4px; font: 700 24px/1.05 var(--f-hand); color: var(--green-dk); transform: rotate(-6deg); white-space: nowrap; }
.t-note .ico { width: 54px; height: 40px; color: var(--orange); stroke-width: 2.4; transform: scaleX(-1) rotate(30deg); margin-bottom: -6px; }
.hero-lead { max-width: 52ch; color: var(--ink-2); font-size: clamp(16.5px, 1.4vw, 18.5px); }
.hero-lead b { color: var(--ink); font-weight: 600; }
.hero-lead em { font-style: normal; font-weight: 600; color: var(--green-dk); background: linear-gradient(transparent 58%, rgba(246, 195, 67, .7) 58% 92%, transparent 92%); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin: 26px 0 30px; }
.wins { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.win {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px;
  background: var(--paper); box-shadow: 0 0 0 3px #fff, 0 10px 20px -10px rgba(60, 50, 10, .45);
  transform: rotate(-1.5deg);
}
.win:nth-child(2) { transform: rotate(1.2deg); }
.win:nth-child(3) { transform: rotate(-.6deg); }
.win > .ico { width: 36px; height: 36px; padding: 7px; border-radius: 50%; }
.w-orange > .ico { background: var(--orange); color: #fff; }
.w-yellow > .ico { background: var(--yellow); color: var(--ink); }
.w-green > .ico { background: var(--green); color: var(--cream); }
.win span { font-size: 13.5px; line-height: 1.25; color: var(--ink-2); }
.win b { display: block; font: 800 12.5px/1.2 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

.hero-stage { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1.02; justify-self: end; }
.blob-main { position: absolute; inset: 12% 4% 6% 8%; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; animation: morph 14s ease-in-out infinite alternate; }
.blob-mini { position: absolute; width: 18%; aspect-ratio: 1.2; left: -2%; top: 8%; border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%; animation: morph 11s ease-in-out infinite alternate-reverse; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.trail path { stroke: var(--trail); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.trail .boat-g { color: var(--orange); }
.trail .boat-g use { fill: var(--yellow); stroke: var(--green-dk); stroke-width: 1.6; }
.collage { position: absolute; left: 3%; bottom: 0; width: 94%; height: auto; z-index: 3; filter: drop-shadow(0 18px 22px rgba(30, 60, 30, .22)); }
.ring { position: absolute; top: -1%; right: -4%; width: 27%; z-index: 4; animation: spin 24s linear infinite; }
.ring-bg { fill: var(--yellow); stroke: #fff; stroke-width: 5; }
.ring text { font: 800 15.5px var(--f-head); letter-spacing: 3.2px; fill: var(--green-dk); }
.ring-star use { fill: var(--orange); }
.rec {
  position: absolute; top: 16%; left: 6%; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: rgba(20, 24, 20, .82); color: #fff;
  font: 600 11px/1 var(--f-mono); letter-spacing: .06em; transform: rotate(-8deg);
}
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; animation: blink 1s steps(1) infinite; }
.rec b { font-weight: 600; color: #FFE08A; }
@keyframes blink { 50% { opacity: 0; } }
.bubble {
  position: absolute; left: -4%; top: 50%; z-index: 5; padding: 16px 20px; border-radius: 50% 50% 50% 14% / 56% 56% 44% 44%;
  background: var(--ink); color: var(--yellow); text-align: center; font: 700 17px/1 var(--f-display);
  box-shadow: 0 0 0 4px #fff, 0 14px 22px -10px rgba(0, 0, 0, .5); transform: rotate(-8deg);
}
.bubble b { font-size: 30px; letter-spacing: .02em; }
.hero-stage .tag { position: absolute; z-index: 5; }
.t1 { top: 2%; left: 42%; transform: rotate(6deg); }
.t2 { right: -2%; top: 74%; transform: rotate(-7deg); }
.t3 { left: 2%; bottom: 12%; transform: rotate(5deg); }
.t4 { right: 10%; bottom: 7%; transform: rotate(-4deg); }
.d-star1 { width: 38px; height: 38px; top: 30%; left: 1%; color: var(--yellow); z-index: 4; }
.d-star2 { width: 34px; height: 34px; top: 6%; right: 30%; color: var(--orange); z-index: 4; --r: 12deg; }
.d-spark { width: 30px; height: 30px; bottom: 30%; right: -1%; color: var(--orange); z-index: 4; }
.d-burst { width: 40px; height: 40px; top: 44%; left: -9%; color: var(--green); z-index: 4; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 6; margin: -30px -12px 0; transform: rotate(-1.6deg);
  background: var(--green); border-block: 4px solid var(--green-dk); overflow: hidden;
  box-shadow: 0 14px 24px -14px rgba(20, 60, 25, .6);
}
.ticker::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.6px); background-size: 7px 7px; }
.ticker-track { position: relative; display: flex; align-items: center; gap: 26px; width: max-content; padding: 14px 0; animation: marquee 32s linear infinite; }
.ticker-track span { font: 700 clamp(22px, 2.6vw, 30px)/1 var(--f-display); color: var(--cream); letter-spacing: .03em; white-space: nowrap; }
.ticker-track .ico { width: 26px; height: 26px; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- featured ---------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .75fr); gap: clamp(22px, 3vw, 40px); align-items: center; }
.player {
  display: block; width: 100%; padding: 10px; border: 0; border-radius: 20px; cursor: pointer; text-align: left;
  background: var(--ink); box-shadow: 0 30px 50px -24px rgba(28, 42, 30, .6); transform: rotate(-.6deg); transition: transform .3s;
}
.player:hover { transform: rotate(0) translateY(-4px); }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 4px 8px 11px; color: #C9D6C8; font: 500 12px/1 var(--f-mono); }
.player-bar .file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.player-bar .res { opacity: .6; white-space: nowrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.screen { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #2b2b2b; }
.screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.player:hover .screen img { transform: scale(1.04); }
.play-big {
  position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink);
  box-shadow: 0 0 0 5px #fff, 0 14px 30px rgba(0, 0, 0, .35); transition: transform .25s;
}
.play-big .ico { width: 42%; height: 42%; margin-left: 6%; }
.player:hover .play-big { transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); }
.screen-sticker {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  border-radius: 12px; background: var(--orange); color: #fff; font: 700 18px/1 var(--f-display);
  box-shadow: 0 0 0 4px #fff, 0 10px 18px -8px rgba(0, 0, 0, .5); transform: rotate(-6deg);
}
.screen-sticker .ico { width: 22px; height: 22px; }
.player-ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 8px 4px; color: var(--cream); }
.player-ctrl > .ico { width: 18px; height: 18px; }
.tc { font: 500 12px/1 var(--f-mono); color: #9DE27A; white-space: nowrap; }
.scrub { flex: 1; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #333; }
.scrub i { width: var(--w); background: var(--c); opacity: .9; }
.scrub i + i { border-left: 2px solid var(--ink); }
.credits {
  position: relative; padding: 32px 26px 26px; border-radius: 10px; background: var(--paper);
  box-shadow: var(--shadow-soft); transform: rotate(1.6deg);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(59, 164, 216, .16) 33px 34px);
}
.credits h3 { font: 900 20px/1 var(--f-head); color: var(--green); text-transform: uppercase; margin-bottom: 16px; }
.credits dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: baseline; }
.credits dt { font: 700 22px/1 var(--f-hand); color: var(--orange); }
.credits dd { margin: 0; font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.tape { position: absolute; top: -14px; left: 50%; width: 112px; height: 30px; transform: translateX(-50%) rotate(-4deg); background: rgba(246, 195, 67, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 236px; padding: 26px 24px 70px;
  border-radius: var(--radius); text-decoration: none; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 18px 30px -22px rgba(28, 42, 30, .55);
}
.svc:hover { transform: translateY(-6px) rotate(-1deg); }
.svc:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.svc-ico { width: 64px; height: 64px; padding: 13px; margin-bottom: 8px; border-radius: 50%; background: var(--cream); color: var(--ink); stroke-width: 1.8; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.svc h3 { font: 700 25px/1.1 var(--f-display); }
.svc p { font-size: 15.5px; line-height: 1.45; opacity: .93; }
.svc-arrow { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--cream); color: var(--ink); transition: transform .25s; }
.svc:hover .svc-arrow { transform: rotate(-45deg); }
.svc-green { background: var(--green); color: var(--cream); }
.svc-yellow { background: var(--yellow); color: var(--ink); }
.svc-orange { background: var(--orange); color: #fff; }
.svc-pond { background: var(--pond); color: #fff; }
.svc-red { background: var(--red); color: #fff; }
.svc-open { background: transparent; color: var(--ink); border: 3px dashed var(--green); box-shadow: none; }
.svc-open .svc-ico { background: var(--green); color: var(--cream); }
.svc-open .svc-arrow { background: var(--green); color: var(--cream); }
.head-crown { position: relative; width: 70px; height: 46px; color: var(--yellow); stroke-width: 2.5; --r: -10deg; }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: 999px; border: 2.5px solid var(--green); background: transparent; cursor: pointer;
  font: 800 12px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--green-dk); transition: background .2s, color .2s;
}
.chip:hover { background: rgba(47, 138, 59, .1); }
.chip.is-on { background: var(--green); color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 22px; }
.card { position: relative; grid-column: span 2; }
.card.big { grid-column: span 3; }
.card[hidden] { display: none; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--green);
  box-shadow: 0 0 0 4px #fff, 0 20px 30px -20px rgba(28, 42, 30, .6); transition: transform .3s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb { transform: rotate(-1.2deg) translateY(-4px); }
.card:nth-child(even):hover .thumb { transform: rotate(1.2deg) translateY(-4px); }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .cat { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; background: var(--cream); font: 800 10.5px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--green-dk); }
.thumb .play {
  position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 3px #fff; transition: transform .25s;
}
.thumb .play .ico { width: 20px; height: 20px; margin-left: 3px; }
.card.big .thumb .play { width: 60px; height: 60px; }
.card:hover .thumb .play { transform: scale(1.12) rotate(-8deg); }
.meta { padding: 16px 4px 0; }
.meta h3 { font: 600 19px/1.2 var(--f-display); color: var(--ink); }
.card.big .meta h3 { font-size: 23px; }
.meta p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.card-btn { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: 16px; }
.more-work { margin-top: 40px; text-align: center; font: 700 24px/1.3 var(--f-hand); color: var(--green-dk); }
.more-work a { color: var(--orange); text-decoration-style: wavy; text-underline-offset: 5px; }

/* ---------- about ---------- */
.board {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 64px); align-items: center;
  padding: clamp(30px, 5vw, 60px); border-radius: 30px; background: var(--green); color: var(--cream);
  box-shadow: inset -20px -26px 60px rgba(10, 50, 20, .3), 0 30px 50px -30px rgba(20, 60, 25, .7);
}
.board-dots { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .13) 1.1px, transparent 1.7px); background-size: 8px 8px; }
.board-copy { position: relative; }
.board-title { font: 700 clamp(30px, 4vw, 46px)/1.04 var(--f-display); color: var(--yellow); margin-bottom: 18px; }
.board-copy p { max-width: 56ch; margin-bottom: 14px; opacity: .95; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.sticky {
  position: relative; padding: 34px 26px 28px; border-radius: 4px; background: #FFE680; color: var(--ink);
  transform: rotate(2.5deg); box-shadow: 0 22px 34px -16px rgba(0, 0, 0, .45);
}
.sticky .tape { background: rgba(255, 255, 255, .6); }
.sticky h3 { font: 700 31px/1 var(--f-hand); color: var(--green-dk); margin-bottom: 14px; }
.sticky ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sticky li { display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: 16px; line-height: 1.3; }
.sticky li .ico { width: 22px; height: 22px; color: var(--green-dk); }
.sticky-heart { position: absolute; right: 16px; bottom: 12px; width: 26px; height: 26px; color: var(--red); }

/* ---------- résumé ---------- */
.route { position: relative; list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.route::before { content: ""; position: absolute; top: 17px; left: 20px; right: 8%; border-top: 3.5px dashed var(--trail); }
.stop { position: relative; }
.isle-dot { display: grid; place-items: center; width: 40px; height: 34px; margin-bottom: 16px; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.stop-now .isle-dot { width: 46px; height: 40px; animation: bob 2.4s ease-in-out infinite; }
.stop-now .isle-dot .ico { width: 22px; height: 22px; color: var(--yellow); position: relative; z-index: 1; animation: spin 10s linear infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.when { display: block; font: 700 22px/1 var(--f-hand); color: var(--orange); margin-bottom: 6px; }
.stop h3 { font: 800 16.5px/1.25 var(--f-head); color: var(--green-dk); margin-bottom: 6px; }
.stop p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.paper {
  position: relative; padding: 30px 26px 28px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-soft);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(59, 164, 216, .14) 31px 32px);
}
.paper:nth-child(2) { transform: rotate(.6deg); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.facts b { display: block; font: 800 15.5px/1.3 var(--f-head); color: var(--green-dk); }
.facts span { display: block; font: 700 20px/1.1 var(--f-hand); color: var(--orange); margin: 2px 0 4px; }
.facts em { font-style: normal; font-weight: 600; color: var(--green-dk); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--green-dk); color: var(--yellow);
  font: 700 21px/1 var(--f-display); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.tool:nth-child(-n+2) { background: var(--orange); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 0 0 3px var(--yellow); }
.tools-note { margin: 10px 0 16px; color: var(--orange); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills .tag:nth-child(odd) { transform: rotate(-2deg); }
.skills .tag:nth-child(even) { transform: rotate(2deg); }

/* ---------- process timeline ---------- */
.tc-badge { padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #9DE27A; font: 600 clamp(15px, 1.8vw, 20px)/1 var(--f-mono); letter-spacing: .06em; box-shadow: 0 0 0 4px #fff; }
.timeline { position: relative; padding: 16px 18px 20px; border-radius: 22px; background: var(--ink); color: var(--cream); overflow: hidden; box-shadow: 0 30px 50px -28px rgba(28, 42, 30, .7); }
.ruler {
  height: 24px; border-bottom: 1px solid rgba(255, 255, 255, .15);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1.5px, transparent 1.5px 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 100%);
  background-size: 20% 100%, 4% 40%; background-repeat: repeat-x; background-position: 0 0, 0 100%;
}
.clips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1.1fr 1.25fr 1.2fr 1fr .95fr; gap: 6px; }
.clip { position: relative; min-height: 200px; padding: 14px 14px 50px; border-radius: 10px; transition: transform .3s, box-shadow .3s; }
.clip-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--ink); font: 700 15px/1 var(--f-display); }
.clip h3 { font: 700 19px/1.15 var(--f-display); margin: 10px 0 6px; }
.clip p { font-size: 14px; line-height: 1.42; }
.wave { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; display: flex; align-items: center; gap: 2px; opacity: .55; }
.wave i { flex: 1; background: currentColor; border-radius: 2px; }
.clip.is-active { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--cream); }
.c-green { background: #3E9E45; color: var(--cream); }
.c-pond { background: var(--pond); color: var(--ink); }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-orange { background: var(--orange); color: var(--ink); }
.c-red { background: var(--red); color: var(--cream); }
.playhead { position: absolute; top: 10px; bottom: 10px; left: calc(18px + (100% - 36px) * var(--p, 0)); width: 2px; background: #FF5A3C; pointer-events: none; }
.playhead i { position: absolute; top: 0; left: -8px; width: 18px; height: 20px; background: #FF5A3C; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }

/* ---------- contact ---------- */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 60px); align-items: center;
  padding: clamp(34px, 6vw, 72px); border-radius: 30px; background: var(--cream-2);
  box-shadow: inset 0 0 0 3px rgba(227, 174, 53, .4), var(--shadow-soft);
}
.isle-c { width: 230px; height: 190px; top: -90px; right: 24%; }
.isle-d { width: 200px; height: 170px; bottom: -100px; left: -60px; animation-delay: -8s; }
.cta-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-trail path { stroke: var(--trail); stroke-width: 3; stroke-dasharray: 2 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cta-copy { position: relative; }
.cta-title { font-size: clamp(40px, 5.8vw, 74px); line-height: .98; margin: 4px 0 18px; padding-bottom: .06em; }
.cta-title span {
  background: linear-gradient(180deg, #7DCB57 10%, #2F8A3B 90%); -webkit-background-clip: text; background-clip: text;
}
.cta-copy > p { max-width: 46ch; color: var(--ink-2); margin-bottom: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { text-transform: none; letter-spacing: .01em; font-size: 15px; }
.socials { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 12.5px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--green-dk); }
.socials .ico { width: 22px; height: 22px; color: var(--orange); }
.socials a:hover { color: var(--orange); }
.postcard {
  position: relative; aspect-ratio: 3 / 2.1; padding: 26px 24px; border-radius: 8px; background: var(--paper); transform: rotate(3deg);
  box-shadow: 0 26px 40px -22px rgba(60, 50, 10, .55);
  background-image: linear-gradient(90deg, transparent calc(55% - 1px), rgba(28, 42, 30, .15) calc(55% - 1px) calc(55% + 1px), transparent calc(55% + 1px));
}
.stamp {
  position: absolute; top: 18px; right: 18px; width: 58px; height: 68px; display: grid; place-items: center; border-radius: 3px;
  background: var(--orange); color: var(--yellow); outline: 3px dashed var(--paper); outline-offset: -6px; transform: rotate(4deg);
  box-shadow: 0 0 0 3px var(--orange), 0 4px 8px rgba(0, 0, 0, .15);
}
.stamp .ico { width: 32px; height: 32px; }
.pc-hi { max-width: 52%; font: 700 clamp(24px, 2.6vw, 32px)/1.05 var(--f-hand); color: var(--green-dk); }
.pc-sign { margin-top: 10px; font: 700 26px/1 var(--f-hand); color: var(--orange); }
.pc-lines { position: absolute; right: 24px; bottom: 24px; width: 36%; height: 52px; background: repeating-linear-gradient(transparent 0 16px, rgba(28, 42, 30, .25) 16px 17.5px); }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 56px 0 26px; background: var(--green-dk); color: var(--cream); }
.footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.1px, transparent 1.7px); background-size: 8px 8px; pointer-events: none; }
.foot-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.foot-brand p { margin-top: 12px; max-width: 40ch; opacity: .8; font-size: 15.5px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.foot-nav a { text-decoration: none; font: 800 12.5px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.foot-nav a:hover { color: var(--yellow); }
.thanks {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: var(--yellow); color: var(--ink);
  font: 700 20px/1 var(--f-display); transform: rotate(-6deg); box-shadow: 0 0 0 4px #fff;
}
.thanks .ico { width: 32px; height: 32px; }
.foot-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13.5px; opacity: .78; }

/* ---------- lightbox ---------- */
.lightbox { width: min(1040px, 94vw); padding: 0; border: 0; background: transparent; overflow: visible; }
/* Solid backdrop, no blur: re-blurring the page every frame made videos stutter */
.lightbox::backdrop { background: rgba(16, 32, 18, .92); }
/* While a video plays, everything behind it holds still */
html.watching *, html.watching *::before, html.watching *::after { animation-play-state: paused !important; }
.lb-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 4px var(--cream); }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; }
.lb-close .ico { width: 22px; height: 22px; }
.lb-title { margin-top: 14px; font: 600 18px/1.3 var(--f-display); color: var(--cream); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper:last-child { grid-column: span 2; }
  .hero-title .t-note { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 74px; left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 4px; padding: 14px;
    border-radius: 18px; background: var(--paper); box-shadow: 0 24px 40px -18px rgba(28, 42, 30, .5); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 10px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-stage { justify-self: center; max-width: 500px; margin-top: 10px; }
  .feat-grid, .board, .cta { grid-template-columns: 1fr; }
  .credits { max-width: 460px; }
  .sticky { max-width: 380px; }
  .postcard { max-width: 380px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.big { grid-column: span 1; }
  .card.big:first-child { grid-column: span 2; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .route::before { display: none; }
  .foot-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ruler, .playhead { display: none; }
  .clips { grid-template-columns: 1fr; gap: 8px; }
  .clip { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services, .paper-grid, .work-grid { grid-template-columns: 1fr; }
  .paper:last-child, .card.big:first-child { grid-column: span 1; }
  .route { grid-template-columns: 1fr; padding-left: 58px; row-gap: 28px; }
  .route::before { display: block; top: 8px; bottom: 8px; left: 19px; right: auto; border-top: 0; border-left: 3.5px dashed var(--trail); }
  .isle-dot { position: absolute; left: -58px; top: -2px; }
  .isle-a { display: none; }
  .isle-c { right: -100px; top: -84px; width: 170px; height: 140px; }
  .wins { flex-direction: column; align-items: flex-start; }
  .bubble { padding: 12px 15px; font-size: 14px; }
  .bubble b { font-size: 24px; }
  .hero-stage .tag { font-size: 13px; padding: 6px 12px 7px; }
  .rec { font-size: 10px; }
  .ticker { margin-top: -22px; }
  .sec-head { margin-bottom: 26px; }
  .player { padding: 7px; }
  .player-bar .res { display: none; }
  .postcard { aspect-ratio: auto; min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
}
