:root {
  --ink: #18312e;
  --ink-soft: #294b47;
  --muted: #687671;
  --paper: #f7f3ea;
  --cream: #fffaf1;
  --white: #fffdf8;
  --coral: #ec775d;
  --coral-dark: #be523f;
  --teal: #1f6f68;
  --teal-light: #e3f2ee;
  --blue: #dcecf1;
  --lilac: #e8dff0;
  --yellow: #f4cd75;
  --yellow-soft: #fcf4e0;
  --green: #b9d7b6;
  --green-dark: #276d5f;
  --line: rgba(24, 49, 46, .13);
  --line-strong: rgba(24, 49, 46, .22);
  --shadow: 0 28px 80px rgba(41, 66, 61, .11);
  --shadow-sm: 0 8px 24px rgba(41, 66, 61, .07);
  --shadow-hover: 0 34px 90px rgba(41, 66, 61, .16);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { color: var(--ink); background: var(--yellow); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-150%); padding: 10px 14px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 26px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: baseline; gap: 11px; }
.wordmark span { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.04em; }
.wordmark small { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 600; }
.site-header nav > a { transition: color .2s ease; }
.site-header nav > a:hover, .site-header nav > a:focus-visible { color: var(--coral-dark); }
.nav-cta { padding: 11px 20px; border: 1px solid var(--ink); border-radius: 999px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: white !important; background: var(--ink); transform: translateY(-1px); }
.menu-button { display: none; align-items: center; gap: 4px; padding: 8px 0; border: 0; background: none; }
.menu-button span { width: 18px; height: 1.5px; background: currentColor; }
.menu-button b { margin-left: 5px; font-size: .75rem; }

/* Sections */
.section { padding: 120px max(32px, calc((100vw - 1380px) / 2)); }
.section-label, .eyebrow, .mini-label { margin: 0; color: var(--teal); font-size: .71rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-heading { max-width: 970px; }
.section-heading.compact { max-width: 840px; }
.section-heading h2, .journey-copy h2, .shoe-feature-heading h2, .about-strip h2, .closing-section h2, .page-hero h1, .page-section h2 { margin: 15px 0 0; font-family: var(--serif); font-size: clamp(2.8rem, 5.2vw, 5.8rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.section-heading > p:last-child, .shoe-feature-heading > p:last-child, .journey-copy > p, .page-hero-copy > p, .page-section-heading > p { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* Hero */
.hero { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 38px; width: min(1380px, calc(100% - 64px)); min-height: 710px; margin: 0 auto; padding: 42px 0 68px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 25px; height: 1.5px; background: var(--coral); border-radius: 999px; }
.hero h1 { max-width: 690px; margin: 20px 0 0; font-family: var(--serif); font-size: clamp(3.65rem, 5.75vw, 6.6rem); font-weight: 500; line-height: .91; letter-spacing: -.052em; }
.hero h1 em { color: var(--coral); font-style: italic; }
.hero-lede { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.24vw, 1.17rem); line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(24, 49, 46, .16); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(24, 49, 46, .24); background: #0e201d; }
.button-light { color: var(--ink); background: var(--cream); border: 1px solid var(--line); }
.button-coral { color: white; background: var(--coral); box-shadow: 0 14px 30px rgba(236, 119, 93, .25); }
.button-coral:hover { background: var(--coral-dark); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .89rem; font-weight: 700; transition: color .2s ease; }
.text-link span { color: var(--coral); font-size: 1rem; transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.text-link:hover span { transform: translate(3px, 2px); }
.status-note { display: inline-flex; align-items: center; gap: 10px; margin: 41px 0 0; padding: 8px 16px; color: var(--muted); background: rgba(255, 250, 241, .85); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; backdrop-filter: blur(10px); }
.status-note strong { color: var(--ink); }
.status-copy { transition: opacity .2s ease, transform .2s ease; }
.status-copy.is-changing { opacity: 0; transform: translateY(4px); }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #58a96e; box-shadow: 0 0 0 5px rgba(88, 169, 110, .14); animation: statusPulse 2.8s infinite; }
@keyframes statusPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(88, 169, 110, .14); } 50% { box-shadow: 0 0 0 8px rgba(88, 169, 110, .24); } }
.hero-art { position: relative; margin: 0 -7vw 0 -4vw; }
.hero-art::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 194, 118, .28) 0%, rgba(236, 119, 93, .12) 60%, transparent 80%); filter: blur(65px); pointer-events: none; }
.hero-art img { position: relative; display: block; width: 100%; filter: saturate(.92) contrast(.98); mix-blend-mode: multiply; }
.hero-art figcaption { position: relative; width: fit-content; margin: -5% 8% 0 auto; padding: 8px 14px; color: var(--muted); background: rgba(255, 250, 241, .9); border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 500; backdrop-filter: blur(8px); }

/* Work Section */
.work-section { background: var(--cream); border-top: 1px solid var(--line); }
.project-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 42px; }
.project-filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .8rem; font-weight: 700; transition: all .2s ease; }
.project-filters button:hover, .project-filters button:focus-visible, .project-filters button.is-active { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 36px; }

/* Application Cards */
.project-card { --tilt-x: 0deg; --tilt-y: 0deg; grid-column: span 2; position: relative; display: flex; flex-direction: column; min-height: 640px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, opacity .2s ease; }
.project-card:nth-child(4), .project-card:nth-child(5) { grid-column: span 3; }
.project-card:hover { transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.project-card.is-hidden { display: none; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-number { color: var(--coral); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.stage { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage-active { color: #206255; background: #e4f3eb; }
.stage-pilot { color: #915e24; background: #faebd0; }
.stage-concept { color: #624c8b; background: #eee6f7; }
.stage-focus { color: #9c3f2d; background: #fae4df; }
.stage-demo { color: #2b607a; background: #e1eff6; }

/* Interactive Scene Container */
.project-scene { position: relative; height: 195px; margin: 24px 0 26px; overflow: hidden; border-radius: var(--radius-md); background: var(--blue); box-shadow: inset 0 0 0 1px rgba(24, 49, 46, .06); }
button.project-scene { display: block; width: 100%; padding: 0; border: 0; color: inherit; cursor: pointer; text-align: inherit; }
button.project-scene:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.project-kicker { margin: 0 0 8px; color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 3vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.project-summary { min-height: 98px; margin: 16px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.64; }
.playful-note { margin: 16px 0 0; padding: 12px 14px; color: var(--ink-soft); background: rgba(244, 205, 117, .22); border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: .86rem; font-style: italic; line-height: 1.48; }

/* Application Tags / Chips */
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.tag-chip { padding: 4px 9px; font-size: .65rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); background: rgba(24, 49, 46, .05); border-radius: 6px; }

.project-card dl { display: grid; gap: 12px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.project-card dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; }
.project-card dt { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-card dd { margin: 0; font-size: .82rem; line-height: 1.45; }
.project-card details { margin-top: auto; padding-top: 22px; }
.project-card summary { cursor: pointer; color: var(--coral-dark); font-size: .8rem; font-weight: 700; list-style: none; transition: color .2s ease; }
.project-card summary:hover { color: var(--coral); }
.project-card summary::-webkit-details-marker { display: none; }
.project-card summary::after { content: "+"; float: right; font-size: 1.15rem; font-weight: 500; }
.project-card details[open] summary::after { content: "−"; }
.project-card details p { margin: 14px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.58; }

/* Scene 1: Digital City */
.scene-city { background: linear-gradient(150deg, #dcecf1, #edf4e7); }
.city-block { position: absolute; bottom: 24px; width: 23%; border-radius: 9px 9px 3px 3px; background: #fffaf1; box-shadow: 0 9px 18px rgba(24,49,46,.1); }
.city-block::before, .city-block::after { content: ""; position: absolute; width: 10px; height: 14px; background: #efb868; border-radius: 3px; }
.city-block::before { top: 18px; left: 14px; }.city-block::after { top: 18px; right: 14px; }
.city-block.one { left: 11%; height: 82px; }.city-block.two { left: 39%; height: 116px; background: #ef886e; }.city-block.three { right: 10%; height: 68px; background: #fbf4d8; }
.city-path { position: absolute; left: -8%; bottom: -38px; width: 120%; height: 86px; border: 13px solid rgba(65,134,128,.2); border-radius: 50%; }
.scene-pin { position: absolute; top: 27px; left: 50%; width: 21px; height: 21px; background: var(--coral); border: 5px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 7px 14px rgba(236,119,93,.3); transition: transform .3s ease; }
.pin-pulse { position: absolute; top: 20px; left: calc(50% - 17px); width: 34px; height: 34px; border: 2px solid rgba(236, 119, 93, .4); border-radius: 50%; animation: pinPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite; }
@keyframes pinPulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes cityPinBounce { from { transform: rotate(-45deg) translateY(0); } to { transform: rotate(-45deg) translateY(-8px); } }
.project-city:hover .scene-pin { animation: cityPinBounce .75s cubic-bezier(.34,1.56,.64,1) infinite alternate; }

/* Interactive Query Chips on City Card */
.city-query-chips { position: absolute; bottom: 8px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 5px; }
.city-chip { padding: 4px 8px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid rgba(24,49,46,.12); border-radius: 999px; font-size: .62rem; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.city-chip:hover, .city-chip.is-active { background: var(--ink); color: white; }

/* Scene 2: Tourist Design Studio */
.scene-shirt { --shirt-base: #fffaf1; --shirt-art-grad: linear-gradient(150deg, var(--coral) 0 45%, var(--yellow) 45% 70%, var(--teal) 70%); background: linear-gradient(145deg, #ffe8d5, #f7dacf); }
.shirt-body { position: absolute; top: 23px; left: 50%; width: 105px; height: 128px; background: var(--shirt-base); border-radius: 18px 18px 28px 28px; transform: translateX(-50%); box-shadow: 0 16px 28px rgba(133,70,49,.12); transition: background .3s ease; }
.shirt-body::before, .shirt-body::after { content: ""; position: absolute; top: 8px; width: 48px; height: 55px; background: var(--shirt-base); border-radius: 14px; transition: background .3s ease; }
.shirt-body::before { left: -29px; transform: rotate(30deg); }.shirt-body::after { right: -29px; transform: rotate(-30deg); }
.shirt-art { position: absolute; top: 77px; left: 50%; width: 51px; height: 39px; background: var(--shirt-art-grad); border-radius: 50% 46% 52% 44%; transform: translateX(-50%) rotate(-7deg); }
.spark { position: absolute; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }.spark-one { top: 38px; left: 20%; }.spark-two { right: 19%; bottom: 32px; background: var(--teal); }
.spark-one { animation: sparkTwinkle 2s infinite ease-in-out; }
.spark-two { animation: sparkTwinkle 2.5s .7s infinite ease-in-out; }
@keyframes sparkTwinkle { 0%, 100% { transform: rotate(45deg) scale(.8); opacity: .4; } 50% { transform: rotate(90deg) scale(1.3); opacity: 1; } }
.project-tourist:hover .shirt-body { transform: translateX(-50%) scale(1.04) rotate(-2deg); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.shirt-interactive-stamp { position: absolute; right: 12px; bottom: 11px; z-index: 5; display: grid; place-items: center; min-width: 66px; min-height: 34px; padding: 7px 11px; color: var(--ink); background: rgba(255,253,248,.94); border: 1px solid rgba(24,49,46,.12); border-radius: 999px; box-shadow: 0 8px 18px rgba(24,49,46,.12); font-size: .7rem; font-weight: 700; }
.shirt-interactive-stamp.stamp-pop { animation: stampPop .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes stampPop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }

/* Scene 3: Family Journey */
.scene-play { background: linear-gradient(145deg, #eee4f3, #e1edf6); }
.play-orbit { position: absolute; top: 25px; left: 50%; width: 168px; height: 122px; border: 2px solid rgba(111,83,150,.25); border-radius: 50%; transform: translateX(-50%) rotate(-13deg); }
.play-planet { position: absolute; top: 50%; left: 50%; width: 82px; height: 82px; background: linear-gradient(145deg, #f3c66b, #ee8d6d); border: 8px solid rgba(255,255,255,.6); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 15px 28px rgba(106,78,137,.13); }
.play-star { position: absolute; width: 14px; height: 14px; background: white; clip-path: polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%); }.play-star.one { top: 27px; right: 24%; }.play-star.two { left: 21%; bottom: 28px; width: 20px; height: 20px; }.play-star.three { right: 15%; bottom: 52px; background: var(--teal); }
@keyframes playOrbit { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes playStarPulse { from { transform: scale(1); } to { transform: scale(1.35) rotate(15deg); } }
.project-kids:hover .play-orbit { animation: playOrbit 6s linear infinite; }
.project-kids:hover .play-star { animation: playStarPulse 1s ease-in-out infinite alternate; }

/* Scene 4: Rare Shoes */
.scene-shoe { background: linear-gradient(145deg, #ebdfd1, #f4e8d4); }
.shoe-object { position: absolute; inset: 0; animation: shoeFloat 3.2s ease-in-out infinite; }
@keyframes shoeFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(-2deg); } }
.scene-shoe::after { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(236,119,93,.45), transparent); transform: skewX(-25deg); transition: left .7s ease; }
.project-shoes:hover .scene-shoe::after { left: 150%; }
.shoe-sole { position: absolute; left: 19%; bottom: 34px; width: 64%; height: 25px; background: #fffaf1; border: 3px solid var(--ink); border-radius: 50% 28% 38% 46%; transform: rotate(-5deg); }
.shoe-upper { position: absolute; left: 24%; bottom: 52px; width: 50%; height: 81px; background: var(--coral); border: 3px solid var(--ink); border-radius: 58% 22% 24% 18%; transform: skewX(-10deg) rotate(-5deg); }
.shoe-upper::after { content: ""; position: absolute; right: -26px; bottom: -3px; width: 58px; height: 47px; background: #f2c263; border: 3px solid var(--ink); border-left: 0; border-radius: 0 70% 20% 0; }
.shoe-lace { position: absolute; z-index: 2; left: 44%; width: 48px; height: 3px; background: var(--ink); transform: rotate(-14deg); }.shoe-lace.l1 { bottom: 92px; }.shoe-lace.l2 { bottom: 78px; }
.shoe-glow { position: absolute; inset: 20px 10%; border: 1px solid rgba(236,119,93,.45); border-radius: 50%; box-shadow: inset 0 0 40px rgba(236,119,93,.16); }
.shoe-verified-badge { position: absolute; top: 12px; left: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: .62rem; font-weight: 700; color: #1e5e4f; background: rgba(228, 243, 235, .92); border: 1px solid rgba(32, 98, 85, .2); border-radius: 999px; }

/* Scene 5: Robot Moments */
.scene-robot { background: linear-gradient(145deg, #dcecf1, #d9e7d4); }
.robot-head { position: absolute; top: 33px; left: 50%; z-index: 2; width: 98px; height: 72px; padding: 0; cursor: pointer; background: #fffdf8; border: 3px solid var(--ink); border-radius: 43% 43% 35% 35%; transform: translateX(-50%); box-shadow: 0 13px 25px rgba(24,49,46,.12); transition: transform .3s ease; }
.robot-head:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.robot-head i, .robot-head b { position: absolute; top: 29px; width: 11px; height: 13px; background: var(--teal); border-radius: 50%; transition: all .2s ease; }
.robot-head i { left: 27px; }.robot-head b { right: 27px; }
@keyframes robotBlink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.robot-head i, .robot-head b { animation: robotBlink 4s infinite; transform-origin: center; }
.robot-head.is-wink i { border-radius: 0; height: 3px; transform: translateY(5px); }
.robot-neck { position: absolute; top: 102px; left: 50%; width: 25px; height: 17px; background: var(--coral); transform: translateX(-50%); }
.robot-base { position: absolute; top: 116px; left: 50%; width: 126px; height: 47px; background: #fffdf8; border: 3px solid var(--ink); border-radius: 50% 50% 25% 25%; transform: translateX(-50%); }
.robot-wave { position: absolute; top: 44px; right: 16%; width: 34px; height: 34px; border: 2px solid var(--coral); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(25deg); }
@keyframes robotWave { 0%, 100% { transform: rotate(25deg); } 50% { transform: rotate(45deg) translateY(-4px); } }
.project-robot:hover .robot-wave { animation: robotWave .6s ease-in-out infinite; }
.project-robot:hover .robot-head { transform: translateX(-50%) rotate(4deg); }
.robot-secret-message { position: absolute; top: 14px; right: 10px; z-index: 6; max-width: 140px; padding: 8px 12px; visibility: hidden; opacity: 0; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px 12px 2px 12px; box-shadow: 0 10px 24px rgba(24,49,46,.16); font-size: .69rem; font-weight: 700; line-height: 1.35; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.robot-secret-message.is-visible { visibility: visible; opacity: 1; transform: none; }
.robot-confetti { --confetti-x: 0px; --confetti-y: 80px; position: absolute; top: 72px; left: 50%; z-index: 7; width: 8px; height: 12px; pointer-events: none; background: var(--coral); border-radius: 2px; animation: robotConfetti .8s cubic-bezier(.18,.72,.35,1) forwards; }
.robot-confetti:nth-of-type(3n) { background: var(--yellow); }
.robot-confetti:nth-of-type(3n + 1) { background: var(--teal); }
@keyframes robotConfetti { 0% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--confetti-x), var(--confetti-y)) rotate(380deg); opacity: 0; } }

/* Journey Section */
.journey-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8vw; color: white; background: var(--ink); border-radius: 0; }
.journey-copy h2 { max-width: 650px; color: var(--cream); }
.journey-copy > p { color: rgba(255,255,255,.68); }
.journey-copy .text-link { margin-top: 28px; color: var(--yellow); }
.journey-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.journey-steps li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.16); transition: background .2s ease; }
.journey-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.journey-steps li > span { color: var(--coral); font-family: var(--serif); font-size: 1.6rem; font-style: italic; }
.journey-steps strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 2.1rem; font-weight: 600; }
.journey-steps p { margin: 10px 0 0; color: rgba(255,255,255,.64); font-size: .92rem; line-height: 1.65; }

/* Shoe Feature Section */
.shoe-feature { background: #efe7dc; }
.shoe-feature-heading { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 8vw; align-items: end; }
.shoe-feature-heading .section-label { grid-column: 1 / -1; }
.shoe-feature-heading h2 { max-width: 780px; }
.shoe-feature-heading > p:last-child { margin-bottom: 8px; }
.shoe-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 17px; margin-top: 68px; }
.shoe-flow article { min-height: 310px; padding: 32px; background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.shoe-flow article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shoe-flow article > span { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--coral); border-radius: 50%; font-size: .8rem; font-weight: 700; box-shadow: 0 4px 12px rgba(236,119,93,.3); }
.shoe-flow .mini-label { margin-top: 48px; }
.shoe-flow h3 { margin: 10px 0 0; font-family: var(--serif); font-size: 2.25rem; font-weight: 600; }
.shoe-flow article > p:last-child { color: var(--muted); font-size: .88rem; line-height: 1.62; }
.shoe-flow > i { color: var(--coral); font-family: var(--serif); font-size: 1.8rem; font-style: normal; }
.plain-note { max-width: 860px; margin: 38px auto 0; padding: 18px 24px; color: var(--muted); background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: 16px; font-size: .86rem; line-height: 1.64; text-align: center; }
.plain-note strong { color: var(--ink); }

/* About Strip */
.about-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; color: white; background: var(--teal); }
.about-strip h2 { max-width: 760px; color: var(--cream); font-size: clamp(2.6rem, 4.4vw, 5rem); }
.about-strip .section-label { color: #d4eacd; }
.about-strip-copy { align-self: end; }
.about-strip-copy p { margin: 0 0 28px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.75; }

/* Closing Section */
.closing-section { text-align: center; background: var(--paper); }
.closing-section h2 { max-width: 980px; margin-right: auto; margin-left: auto; }
.closing-section > p:not(.section-label) { margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }
.closing-section .button { margin-top: 32px; }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 80px; padding: 60px max(32px, calc((100vw - 1380px) / 2)); color: rgba(255,255,255,.78); background: #102522; }
.site-footer .wordmark span { color: white; }
.site-footer .wordmark small { color: rgba(255,255,255,.48); }
.footer-brand p, .footer-meta p { margin: 11px 0 0; color: rgba(255,255,255,.44); font-size: .75rem; line-height: 1.6; }
.footer-links, .footer-meta { display: grid; gap: 10px; font-size: .8rem; }
.footer-meta { text-align: right; }
.site-footer a:hover { color: white; }

/* Reveal Animations */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(0.16, 1, 0.3, 1), transform .65s cubic-bezier(0.16, 1, 0.3, 1); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .project-card, .project-card:hover { --tilt-x: 0deg; --tilt-y: 0deg; transform: none; transition: none; }
  .spark-one, .spark-two, .shoe-object, .robot-head i, .robot-head b,
  .project-city:hover .scene-pin, .project-kids:hover .play-orbit,
  .project-kids:hover .play-star, .project-robot:hover .robot-wave,
  .robot-confetti, .pin-pulse, .status-dot { animation: none; }
  .scene-shoe::after { display: none; }
}

/* Shared Inner Pages */
.page-main { min-height: 70vh; }
.page-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6vw; align-items: end; width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 105px 0 110px; }
.page-hero h1 { max-width: 900px; font-size: clamp(3.7rem, 7vw, 8rem); }
.page-hero h1 em { color: var(--coral); font-style: italic; }
.page-hero-aside { padding: 32px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.page-hero-aside span { color: var(--coral); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-hero-aside p { margin: 18px 0 0; color: var(--muted); line-height: 1.7; font-size: .95rem; }
.page-section { padding: 105px max(32px, calc((100vw - 1180px) / 2)); background: var(--cream); border-top: 1px solid var(--line); }
.page-section.alt { background: #efe7dc; }
.page-section h2 { max-width: 850px; font-size: clamp(2.6rem, 4.5vw, 5rem); }
.story-grid, .note-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.story-card, .note-card, .contact-card { padding: 30px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover, .note-card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-card span, .note-card span, .contact-card span { color: var(--coral); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.story-card h3, .note-card h3, .contact-card h3 { margin: 28px 0 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.story-card p, .note-card p, .contact-card p { color: var(--muted); line-height: 1.68; font-size: .92rem; }
.note-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--coral-dark); font-size: .84rem; font-weight: 700; transition: color .2s ease; }
.note-card a:hover { color: var(--coral); }
.contact-grid { grid-template-columns: .8fr 1.2fr; }
.contact-card { min-height: 270px; }
.contact-card a { display: inline-flex; margin-top: 24px; font-weight: 700; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,104,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-form .button { justify-self: start; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .76rem; }

/* Legal Pages */
.legal-page > header { border-bottom: 1px solid var(--line); }
.legal-page > header .container { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0; }
.legal-wordmark { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.04em; }
.legal-content { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 90px; }
.legal-content h1 { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -.04em; }
.legal-content h2 { margin: 42px 0 12px; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.7; }
.legal-content a { color: var(--coral-dark); font-weight: 600; }
.legal-page > footer { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; text-align: center; }

/* Responsive */
@media (max-width: 1120px) {
  .site-header nav { gap: 19px; }
  .hero { grid-template-columns: 1fr 1.15fr; }
  .project-card { grid-column: span 3; }
  .project-card:nth-child(4), .project-card:nth-child(5) { grid-column: span 3; }
  .project-card:last-child { grid-column: 2 / span 4; }
  .shoe-feature-heading { grid-template-columns: 1fr; }
  .shoe-feature-heading > p:last-child { margin-top: 22px; }
}

@media (max-width: 900px) {
  .site-header { width: min(100% - 32px, 1380px); }
  .wordmark small { display: none; }
  .menu-button { display: flex; }
  .menu-button span { display: none; }
  .site-header nav { position: fixed; inset: 74px 16px auto; display: grid; gap: 0; padding: 12px; visibility: hidden; opacity: 0; transform: translateY(-10px); background: var(--cream); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: .2s ease; }
  .site-header nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-header nav > a { padding: 14px; }
  .site-header .nav-cta { margin-top: 8px; text-align: center; }
  .hero { grid-template-columns: 1fr; width: min(100% - 32px, 740px); min-height: 0; padding: 58px 0 80px; }
  .hero-art { order: -1; margin: 0 -10vw -24px; }
  .hero-art figcaption { display: none; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5.5rem); }
  .journey-section, .about-strip, .page-hero { grid-template-columns: 1fr; }
  .journey-steps { margin-top: 32px; }
  .shoe-flow { grid-template-columns: 1fr; }
  .shoe-flow > i { transform: rotate(90deg); justify-self: center; }
  .story-grid, .note-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
  .page-hero { width: min(100% - 32px, 740px); padding: 80px 0; }
}

@media (max-width: 680px) {
  .section { padding: 82px 20px; }
  .section-heading h2, .journey-copy h2, .shoe-feature-heading h2, .about-strip h2, .closing-section h2 { font-size: clamp(2.55rem, 12vw, 4.1rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(4), .project-card:nth-child(5), .project-card:last-child { grid-column: auto; min-height: 0; }
  .project-summary { min-height: 0; }
  .story-grid, .note-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-note { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; padding: 48px 20px; }
  .footer-meta { grid-column: auto; }
  .page-section { padding: 80px 20px; }
}
