:root {
  color-scheme: dark;
  --dark: #07110e;
  --dark-2: #10251c;
  --paper: #eff2e7;
  --ink: #14231b;
  --white: #f7f8f1;
  --muted: #a8b7aa;
  --acid: #d8fb75;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--dark); color: var(--white); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
/* On the light work section the acid ring would vanish, so it is ink there */
.work-section a:focus-visible { outline-color: var(--ink); }
::selection { background: var(--acid); color: var(--dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 24px; z-index: 30; padding: 12px 18px; background: var(--acid); color: var(--dark); }
.skip-link:focus { top: 20px; }
.wrap { width: min(100% - 96px, 1400px); margin-inline: auto; }

/* The opening chapter stays in place while the visitor moves through it. */
.experience { height: 340svh; position: relative; content-visibility: auto; contain-intrinsic-size: auto 340svh; }
.stage { position: sticky; top: 0; height: 100svh; min-height: 580px; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 75% 52%, #1e3c29 0, #0d2118 29%, var(--dark) 72%); }
#motion-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .42; background: linear-gradient(90deg, rgba(7,17,14,.4), transparent 65%), radial-gradient(circle at 50% 50%, transparent 45%, rgba(1,8,6,.72) 100%); }
.stage-grid { position: absolute; inset: 0; z-index: 1; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(216,251,117,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(216,251,117,.12) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.site-header { position: absolute; top: 0; left: 50%; z-index: 8; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; height: 100px; border-bottom: 1px solid rgba(236,247,230,.16); }
.logo { font-size: 1.55rem; font-weight: 850; letter-spacing: -.1em; text-decoration: none; line-height: 1; }
.logo span { color: var(--acid); }
.site-nav { display: flex; align-items: center; gap: clamp(24px,3.8vw,56px); }
.site-nav a { font-size: .75rem; font-weight: 750; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: color .25s ease; }
.site-nav a:hover { color: var(--acid); }
.site-nav .nav-contact { color: var(--acid); }

.scene { position: absolute; inset: 100px 0 60px; z-index: 3; display: flex; align-items: center; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.scene--intro { opacity: 1; }
.scene-inner { width: min(100% - 96px,1400px); margin-inline: auto; }
.scene-copy { max-width: 840px; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 31px; color: var(--acid); font-size: .74rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.scene h1, .scene h2 { margin: 0; font-size: clamp(4.5rem,8.5vw,9rem); font-weight: 780; letter-spacing: .005em; line-height: .91; }
.scene h1 span, .scene h2 span { display: block; }
.scene em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; letter-spacing: .005em; }
.scene-description { max-width: 460px; margin: 32px 0 0; color: #c4d2c5; font-size: clamp(1.05rem,1.4vw,1.24rem); line-height: 1.65; }
.scene--middle .scene-copy { margin-left: 7%; }
.scene--middle h2 { max-width: 950px; }
.scene--final .scene-copy { margin-left: 1%; }
.scene--final h2 { max-width: 900px; }
.stage-cta { display: inline-flex; align-items: center; gap: 28px; margin-top: 32px; padding: 17px 22px; border-radius: 100px; background: var(--acid); color: var(--dark); font-size: .9rem; font-weight: 800; text-decoration: none; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: transform .3s ease, box-shadow .3s ease; }
.stage-cta:active { transform: scale(.97); transition-duration: .1s; }
.stage-cta span { font-size: 1.3rem; line-height: 0; }
.section-nav { position: fixed; right: max(28px,calc((100% - 1400px)/2)); bottom: 28px; z-index: 25; display: flex; align-items: stretch; overflow: hidden; border: 1px solid rgba(216,251,117,.28); border-radius: 100px; background: rgba(7,22,15,.88); color: var(--white); box-shadow: 0 16px 45px rgba(3,17,10,.28); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.section-nav-info { display: flex; flex-direction: column; justify-content: center; min-width: 112px; padding: 10px 20px; }
.section-nav-name { color: var(--acid); font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-nav-count { margin-top: 3px; color: #b8cbb9; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; }
.section-nav-button { display: grid; place-items: center; width: 52px; min-height: 56px; padding: 0; border: 0; border-left: 1px solid rgba(216,251,117,.16); background: transparent; color: var(--white); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .25s ease,color .25s ease; }
.section-nav-button svg { width: 20px; height: 20px; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
/* Pressing answers at once: the button fills and its arrow nudges the way the page is about to go */
.section-nav-button:active:not([aria-disabled="true"]) { background: var(--acid); color: var(--dark); transition-duration: 0s; }
.section-nav-up:active:not([aria-disabled="true"]) svg { transform: translateY(-2px); transition-duration: .08s; }
.section-nav-down:active:not([aria-disabled="true"]) svg { transform: translateY(2px); transition-duration: .08s; }
.section-nav-button[aria-disabled="true"] { color: #66806e; cursor: default; }
/* Keyboard focus: an acid ring around the arrow, so the pill's rounded clip cannot cut it */
.section-nav-button:focus-visible { outline: none; }
.section-nav-button:focus-visible svg { outline: 2px solid var(--acid); outline-offset: 6px; border-radius: 50%; }

/* The next chapter brings the moving signal into a concrete project. */
.work-section { position: relative; z-index: 2; min-height: 100svh; padding: clamp(90px,10vw,150px) 0 clamp(100px,12vw,170px); background: var(--paper); color: var(--ink); }
.section-topline { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(20,35,27,.32); color: #506457; font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.work-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin: 70px 0 56px; }
.work-intro h2 { max-width: 900px; margin: 0; font-size: clamp(3.8rem,8.5vw,8.8rem); letter-spacing: -.095em; line-height: .92; }
.work-intro h2 em { color: #70913b; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.work-intro p { max-width: 270px; margin: 0 0 8px; color: #55685b; font-size: 1rem; line-height: 1.55; }
.project-link { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: min(650px,70vw); border-radius: 28px; color: var(--white); text-decoration: none; -webkit-tap-highlight-color: rgba(216,251,117,.15); }
/* The card lifts with `translate`, which the reveal never touches. The strip below keeps the pointer on the card while it rises, so the hover cannot flicker at the bottom edge. */
.project-link::after { content: ""; position: absolute; inset: 0 0 -10px; z-index: -1; }
.project-link:focus-visible { translate: 0 -9px; }
/* The dark fill sits on the text half only, so no dark edge shows through the art panel's rounded corners. */
.project-info { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(34px,5vw,74px); border-radius: 28px 0 0 28px; background: #122f24; }
/* Two ready-made shadows cross-fade on hover: opacity runs on the compositor, while an animated box-shadow repaints the whole card every frame. */
.project-info::before,.project-info::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px; box-shadow: 0 24px 70px rgba(12,39,24,.18); pointer-events: none; transition: opacity .45s ease; }
.project-info::after { box-shadow: 0 36px 80px rgba(12,39,24,.24); opacity: 0; }
.project-link:is(:hover,:focus-visible) .project-info::before { opacity: 0; }
.project-link:is(:hover,:focus-visible) .project-info::after { opacity: 1; }
.project-number { color: var(--acid); font-size: .76rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.project-info h3 { max-width: 570px; margin: auto 0 28px; font-size: clamp(2.5rem,5vw,5.8rem); letter-spacing: -.075em; line-height: .99; }
.project-intent { display: inline-flex; align-items: baseline; gap: 5px; margin-bottom: 18px; padding: 9px 13px; border: 1px solid rgba(216,251,117,.45); border-radius: 100px; color: var(--acid); font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-intent em { font-family: Georgia, serif; font-size: 1.45em; font-weight: 400; letter-spacing: -.04em; line-height: .8; text-transform: none; }
.project-info p { max-width: 390px; margin: 0; color: #c1d0c3; font-size: 1.05rem; line-height: 1.6; }
.project-action { display: inline-flex; align-items: center; gap: 22px; margin-top: 45px; color: var(--acid); font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.project-action b { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(216,251,117,.5); border-radius: 50%; font-size: 1.35rem; font-weight: 400; transition: transform .3s ease; }
/* A filled copy of the arrow fades in: opacity stays on the compositor, background/color would repaint every frame. */
.project-action b::before { content: "\2197"; position: absolute; inset: -1px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--dark); opacity: 0; transition: opacity .3s ease; }
.project-link:is(:hover,:focus-visible) .project-action b { transform: translate(4px,-4px); }
.project-link:is(:hover,:focus-visible) .project-action b::before { opacity: 1; }
.project-art { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 0 28px 28px 0; background: radial-gradient(circle at 45% 44%,#a8d681 0%,#537f5d 37%,#1c4b3b 74%,#123629 100%); }
.project-art::before,.project-art::after { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid rgba(230,255,213,.34); border-radius: 50%; }
.project-art::after { width: 108%; }
.signal-arc { position: absolute; width: 130%; aspect-ratio: 1; border: 1px dashed rgba(228,255,206,.24); border-radius: 50%; transform: scale(1,.5) rotate(-20deg); }
.esim-card { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: min(58%,330px); aspect-ratio: 1.55; padding: 26px; border: 1px solid rgba(239,255,226,.35); border-radius: 22px; background: linear-gradient(135deg,#194134,#09251d 76%); color: #f6f8ec; box-shadow: 25px 32px 70px rgba(3,24,14,.46); transform: perspective(900px) rotateY(-17deg) rotateZ(-10deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-link:is(:hover,:focus-visible) .esim-card { transform: perspective(900px) rotateY(-7deg) rotateZ(-5deg) translateY(-10px); }
.esim-top { display: flex; justify-content: space-between; align-items: start; font-size: .86rem; font-weight: 850; letter-spacing: .1em; }
.esim-top i { display: block; width: 30px; height: 30px; border: 1px solid rgba(216,251,117,.9); border-radius: 50%; }
.esim-chip { width: 42px; height: 31px; border: 1px solid #d7edaa; border-radius: 7px; background: linear-gradient(140deg,#daf4af,#85a967); }
.esim-bottom { display: flex; justify-content: space-between; align-items: end; font-size: .7rem; letter-spacing: .14em; }
.esim-bottom strong { font-size: 1.65rem; letter-spacing: -.06em; }

/* The projects alternate sides. A mirrored one has its art on the left, like the restaurant demo here, in the restaurant's own colours. */
.project-link + .project-link { margin-top: clamp(28px,4vw,48px); }
.project-link--reverse { grid-template-columns: 1.1fr .9fr; }
.project-link--reverse .project-art { order: -1; border-radius: 28px 0 0 28px; }
.project-link--reverse .project-info { border-radius: 0 28px 28px 0; }
.project-art--kitchen { background: radial-gradient(circle at 55% 44%,#f8d98a 0%,#e5a73a 36%,#b8582c 74%,#8a2f2c 100%); }
.project-art--kitchen::before,.project-art--kitchen::after { border-color: rgba(255,244,214,.4); }
.plate-arc { position: absolute; width: 130%; aspect-ratio: 1; border: 1px dashed rgba(255,240,205,.3); border-radius: 50%; transform: scale(1,.5) rotate(20deg); }
.menu-card { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: min(44%,270px); aspect-ratio: .78; padding: 24px; border: 1px solid rgba(255,248,232,.6); border-radius: 22px; background: linear-gradient(160deg,#fbf6ec,#f1e6d1 80%); color: #2b1b17; box-shadow: -25px 32px 70px rgba(74,24,14,.42); container-type: inline-size; transform: perspective(900px) rotateY(17deg) rotateZ(9deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-link:is(:hover,:focus-visible) .menu-card { transform: perspective(900px) rotateY(7deg) rotateZ(4deg) translateY(-10px); }
.menu-card-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; color: #8a1f4f; font-size: 6.2cqw; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.menu-card-top i { display: block; flex: none; width: 11.5cqw; height: 11.5cqw; border: 1px solid #8a1f4f; border-radius: 50%; background: radial-gradient(circle,#e9a92b 0 38%,transparent 40%); }
.menu-card-tiles { display: block; height: 22px; border-block: 1px solid rgba(15,106,110,.55); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 3.5 18.5 11 11 18.5 3.5 11Z' fill='none' stroke='%230F6A6E' stroke-width='1.4'/%3E%3Cpath d='M11 7 15 11 11 15 7 11Z' fill='%230F6A6E' fill-opacity='.18'/%3E%3Ccircle cx='11' cy='11' r='2.2' fill='%23E9A92B'/%3E%3Cpath d='M0 0h22v22H0z' fill='none' stroke='%230F6A6E' stroke-opacity='.35'/%3E%3C/svg%3E") space no-repeat center / 22px 22px; }
.menu-card-dishes { display: grid; gap: 4cqw; font-size: 5.4cqw; font-weight: 650; }
.menu-card-dishes span { display: flex; align-items: baseline; gap: 2.2cqw; white-space: nowrap; }
.menu-card-dishes span::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(43,27,23,.4); }
.menu-card-dishes b { order: 2; color: #8a1f4f; font-weight: 800; }
.menu-card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 8px; color: #5a463c; font-size: 4.5cqw; letter-spacing: .14em; white-space: nowrap; }
.menu-card-bottom strong { color: #0f6a6e; font-family: Georgia, serif; font-size: 12cqw; letter-spacing: -.02em; }

/* The coffee project has its art on the right: the coffee page's monsoon blue, with rain, and its kraft bag. */
.project-art--coffee { background: repeating-linear-gradient(104deg,transparent 0 26px,rgba(234,245,249,.07) 26px 27px),radial-gradient(circle at 45% 44%,#cfdcdc 0%,#86a2ad 34%,#3e5c6e 72%,#263d4c 100%); }
.project-art--coffee::before,.project-art--coffee::after { border-color: rgba(238,247,250,.38); }
.rain-arc { position: absolute; width: 130%; aspect-ratio: 1; border: 1px dashed rgba(236,246,250,.28); border-radius: 50%; transform: scale(1,.5) rotate(-12deg); }
.coffee-bag { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: min(44%,250px); aspect-ratio: .74; border-radius: 7px 7px 18px 18px; background: linear-gradient(100deg,transparent 32%,rgba(255,246,226,.16) 46%,transparent 60%),linear-gradient(90deg,#b8976a 0 7%,#c9a878 7% 93%,#b5946a 93%); color: #1e120d; box-shadow: 25px 32px 70px rgba(10,30,40,.5); container-type: inline-size; transform: perspective(900px) rotateY(-17deg) rotateZ(-9deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-link:is(:hover,:focus-visible) .coffee-bag { transform: perspective(900px) rotateY(-7deg) rotateZ(-4deg) translateY(-10px); }
.coffee-bag::before { content: ""; position: absolute; inset: 0 0 auto; height: 10cqw; border-radius: 7px 7px 0 0; background: repeating-linear-gradient(90deg,#ad8c5f 0 2cqw,#c2a175 2cqw 4cqw); }
.coffee-bag::after { content: ""; position: absolute; inset: 13cqw 5cqw auto; border-top: 1px dashed rgba(94,72,56,.55); }
.coffee-bag-valve { position: absolute; top: 19cqw; right: 13cqw; width: 9cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,#7e6440 0 32%,#a3845a 36%); }
.coffee-bag-label { display: flex; flex-direction: column; align-items: center; width: 74cqw; margin: 0 auto 13cqw; padding: 0 5cqw 6cqw; overflow: hidden; border-radius: 4cqw; background: #f3e6d3; text-align: center; transform: rotate(-3deg); }
.coffee-bag-label::before { content: ""; align-self: stretch; height: 9cqw; margin: 0 -5cqw 7cqw; background: #6b3f22; }
.coffee-bag-label strong { font-family: Georgia, serif; font-size: 15cqw; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.coffee-bag-lot { margin-top: 3cqw; color: #b3261e; font-size: 5.2cqw; font-weight: 800; letter-spacing: .22em; white-space: nowrap; }
.coffee-bag-origin { margin-top: 4cqw; padding-top: 4cqw; border-top: 1px solid #cdb9a2; color: #5e4838; font-size: 4.8cqw; font-weight: 600; line-height: 1.3; }
.coffee-bag-spec { margin-top: 3cqw; font-size: 4.8cqw; font-weight: 800; white-space: nowrap; }

/* The dentist project mirrors the coffee one: art on the left, the clinic's limewash wall and doorway arches, with its appointment card. */
.project-art--clinic { --clinic-card: min(46cqw,260px); --clinic-rise: .94; container-type: inline-size; background: radial-gradient(circle at 55% 44%,#fdfbf5 0%,#f5efe2 36%,#e1e8dd 74%,#c7d5c5 100%); }
.project-art--clinic::before,.project-art--clinic::after { border-color: rgba(31,74,58,.2); }
.clinic-arc { position: absolute; width: 130%; aspect-ratio: 1; border: 1px dashed rgba(31,74,58,.26); border-radius: 50%; transform: scale(1,.5) rotate(20deg); }
.clinic-arches { position: absolute; bottom: 0; left: 50%; width: calc(var(--clinic-card) * 1.5); height: calc(50% + var(--clinic-card) * var(--clinic-rise)); transform: translateX(-50%); }
.clinic-arches::before,.clinic-arches::after { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 0 0; background: #f8e3e9; }
.clinic-arches::before { inset: -8% -18% 0 18%; background: #1f4a3a; }
.clinic-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: var(--clinic-card); aspect-ratio: .76; border-radius: 6px; background: linear-gradient(115deg,rgba(255,255,255,.9),transparent 45%),linear-gradient(165deg,#fffdf9,#f7f0e4 88%); color: #1f4a3a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7),-25px 32px 70px rgba(12,38,28,.34); container-type: inline-size; transform: perspective(900px) rotateY(17deg) rotateZ(9deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-link:is(:hover,:focus-visible) .clinic-card { transform: perspective(900px) rotateY(7deg) rotateZ(4deg) translateY(-10px); }
.clinic-card-mark { position: relative; flex: none; width: 15cqw; aspect-ratio: 40 / 44; margin-top: 10cqw; border: 2.625cqw solid #1f4a3a; border-bottom: 0; border-radius: 999px 999px 0 0; }
.clinic-card-mark::after { content: ""; position: absolute; inset: auto 2.25cqw 0; height: 9cqw; border-radius: 999px 999px 0 0; background: #be2a6a; }
.clinic-card strong { margin-top: 4cqw; font-family: Georgia, serif; font-size: 12.5cqw; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.clinic-card-place { margin-top: 2.6cqw; font-size: 4.8cqw; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.clinic-card-rows { display: grid; gap: 3.2cqw; align-self: stretch; margin: 8cqw 9cqw 0; }
.clinic-card-rows > span { display: flex; align-items: baseline; }
.clinic-card-rows i { flex: none; width: 17cqw; color: #5e615c; font-size: 5cqw; font-style: normal; font-weight: 600; }
.clinic-card-rows b { flex: 1; padding-bottom: 1cqw; border-bottom: 1px solid rgba(28,36,33,.2); color: #1c2421; font-family: Georgia, serif; font-size: 7cqw; font-weight: 400; line-height: 1.15; white-space: nowrap; }
.clinic-card-rows em { color: #be2a6a; }
.clinic-card-foot { position: relative; align-self: stretch; margin: auto 3.5cqw 3.5cqw; padding: 6.6cqw 0 3.6cqw; border-radius: 3px; background: #1f4a3a; color: #f7f0e4; font-size: 5cqw; font-weight: 600; text-align: center; white-space: nowrap; }
.clinic-card-foot::before { content: ""; position: absolute; top: 2cqw; inset-inline: 6cqw; height: 2.9cqw; background: #c7cbbf; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M2.75 18V10.75a9.25 9.25 0 0 1 18.5 0V18' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 3.87cqw 2.9cqw space no-repeat; }

/* The first project on the page is a live client site, so its art is the site itself: a browser window in Star Light's own colours, over the River Sal at night. Its art is on the left. */
.project-art--starlight { background: radial-gradient(circle at 13% 17%,#fae2aa 0 1.5px,transparent 2.5px),radial-gradient(circle at 37% 8%,#fae2aa 0 1px,transparent 2px),radial-gradient(circle at 83% 13%,#fae2aa 0 2px,transparent 3px),radial-gradient(circle at 92% 55%,#fae2aa 0 1px,transparent 2px),radial-gradient(circle at 78% 89%,#fae2aa 0 1.5px,transparent 2.5px),radial-gradient(circle at 22% 87%,#fae2aa 0 1px,transparent 2px),radial-gradient(circle at 7% 60%,#fae2aa 0 2px,transparent 3px),radial-gradient(circle at 55% 44%,#6f9c98 0%,#2f6a6c 36%,#0f474a 74%,#06343a 100%); }
.project-art--starlight::before,.project-art--starlight::after { border-color: rgba(250,226,170,.3); }
.river-arc { position: absolute; width: 130%; aspect-ratio: 1; border: 1px dashed rgba(250,226,170,.28); border-radius: 50%; transform: scale(1,.5) rotate(16deg); }
.site-window { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(48%,300px); aspect-ratio: .74; overflow: hidden; border-radius: 14px; background: #fbf4e6; color: #2a140c; box-shadow: -25px 32px 70px rgba(2,24,28,.55); container-type: inline-size; transform: perspective(900px) rotateY(17deg) rotateZ(9deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project-link:is(:hover,:focus-visible) .site-window { transform: perspective(900px) rotateY(7deg) rotateZ(4deg) translateY(-10px); }
.site-window-bar { display: flex; flex: none; align-items: center; height: 12cqw; padding: 0 5cqw; border-bottom: 1px solid #dbcbb9; background: #ede3d2; }
.site-window-bar i { flex: none; width: 2.6cqw; aspect-ratio: 1; margin-right: 12.4cqw; border-radius: 50%; background: #bf4306; box-shadow: 4.2cqw 0 #f5ae39,8.4cqw 0 #003c3f; }
.site-window-bar span { flex: 1; padding: 1.5cqw 0; border-radius: 100px; background: #fffbf3; color: #684f41; font-size: 4.3cqw; font-weight: 600; text-align: center; white-space: nowrap; }
.site-window-page { display: flex; flex: 1; flex-direction: column; align-items: center; min-height: 0; padding: 5cqw 6cqw 6cqw; text-align: center; }
.site-window-page strong { display: flex; align-items: center; gap: 2.4cqw; font-family: Georgia, serif; font-size: 9.5cqw; font-weight: 400; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.site-window-page strong::before { content: ""; flex: none; width: 8.5cqw; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23d5261c'/%3E%3Cpath d='M7 18 13.5 11.5M13.5 11.5 15 6M13.5 11.5 17.2 7.4M13.5 11.5 18.6 9.6' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-window-nav { margin-top: 3.4cqw; color: #bf4306; font-size: 3.6cqw; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; word-spacing: 2cqw; }
/* The hero photo on the real site is a fish thali, drawn here as a steel plate with rice and two bowls. */
.site-window-photo { flex: 1; align-self: stretch; min-height: 0; margin-top: 4cqw; background: radial-gradient(circle at calc(50% - 7.5cqw) calc(50% - 6cqw),#f5ae39 0 4.6cqw,#c4861c 4.8cqw 5.6cqw,transparent 5.8cqw),radial-gradient(circle at calc(50% + 7.5cqw) calc(50% - 6cqw),#bf4306 0 4.6cqw,#8c3204 4.8cqw 5.6cqw,transparent 5.8cqw),radial-gradient(circle at 50% calc(50% + 7cqw),#fffbf3 0 6.6cqw,transparent 6.8cqw),radial-gradient(circle at 50% 50%,#e7e2d7 0 17cqw,#c8c1b2 17.2cqw 18.4cqw,transparent 18.6cqw),#003c3f; }
.site-window-kicker { margin-top: 4cqw; color: #bf4306; font-size: 3.5cqw; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.site-window-headline { margin-top: 2.6cqw; font-family: Georgia, serif; font-size: 7.2cqw; letter-spacing: -.01em; line-height: 1.16; }
.site-window-buttons { display: flex; gap: 2.4cqw; margin-top: 4.4cqw; font-size: 3.3cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.site-window-buttons > * { padding: 2.6cqw 3.6cqw; border: 1px solid #2a140c; }
.site-window-buttons b { border-color: #bf4306; background: #bf4306; color: #fffbf3; font-weight: 700; }

.about-section { position: relative; padding: clamp(110px,13vw,190px) 0 100px; background: radial-gradient(circle at 78% 20%,#1b3b28,transparent 48%),var(--dark); }
.about-section .section-topline { border-color: rgba(233,246,229,.22); color: #9db69f; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin-top: 85px; }
.about-grid h2 { margin: 0; font-size: clamp(3.8rem,7.5vw,8rem); letter-spacing: -.085em; line-height: .96; }
.about-grid h2 em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.about-copy { align-self: end; }
.about-copy p { max-width: 600px; margin: 0; color: #c9d7ca; font-size: clamp(1.2rem,2vw,1.7rem); line-height: 1.65; }
.about-copy strong { color: var(--white); }
.contact-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 35px; padding-bottom: 8px; border-bottom: 1px solid var(--acid); color: var(--acid); font-size: .9rem; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: gap .25s ease; }
.contact-link:hover { gap: 28px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 140px; padding-top: 32px; border-top: 1px solid rgba(233,246,229,.2); color: #95aa99; font-size: .82rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--acid); }
/* The small text links get a 44px-tall touch area without moving them or changing their focus ring */
.logo,.site-nav a,.site-footer a { position: relative; }
.logo::after,.site-nav a::after,.site-footer a::after { content: ""; position: absolute; inset: -14px -8px; }
.reveal-on-scroll { opacity: 0; transform: translateY(45px); transition: opacity .8s ease,transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
/* The reveal rules above share the card's specificity and come later, so the card's own transitions are listed here. */
.project-link.reveal-on-scroll { transition: opacity .8s ease,transform .8s cubic-bezier(.16,1,.3,1),translate .45s cubic-bezier(.2,.8,.2,1),scale .15s cubic-bezier(.2,.8,.2,1); }
.logo:active,.site-nav a:active,.contact-link:active,.site-footer a:active { opacity: .62; }
.logo,.site-nav a,.contact-link,.site-footer a { -webkit-tap-highlight-color: transparent; }

/* Hover belongs to precise pointers; on touch it would stay lit after the finger lifts. */
@media (hover: hover) and (pointer: fine) {
  .project-link:hover { translate: 0 -9px; }
  .stage-cta:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(216,251,117,.22); }
  .stage-cta:hover:active { transform: translateY(-1px) scale(.97); }
  .section-nav-button:hover:not([aria-disabled="true"]) { background: var(--acid); color: var(--dark); }
  .project-link:active { scale: .985; }
}

@media (max-width: 900px) {
  .wrap,.scene-inner { width: min(100% - 48px,1400px); }
  .site-header { height: 82px; }
  .scene { inset: 82px 0 70px; }
  .scene h1,.scene h2 { font-size: clamp(4.5rem,10vw,7.5rem); }
  .scene--middle .scene-copy,.scene--final .scene-copy { margin-left: 0; }
  .project-link { min-height: 560px; }
  .work-intro { align-items: start; flex-direction: column; }
  .about-grid { gap: 5vw; }
  .section-nav { right: 24px; }
}

@media (max-width: 600px) {
  .wrap,.scene-inner { width: min(100% - 36px,1400px); }
  .experience { height: 300svh; }
  .stage { min-height: 0; }
  .site-header { height: 76px; }
  .site-nav { gap: 0; }
  .site-nav a:not(.nav-contact) { display: none; }
  .site-nav .nav-contact { font-size: .68rem; }
  .scene { inset: 76px 0 90px; align-items: flex-start; padding-top: min(19svh,170px); }
  .scene h1,.scene h2 { font-size: min(clamp(3rem,11.8vw,5.5rem),15vw); letter-spacing: .015em; }
  .scene em { letter-spacing: .015em; }
  .scene-copy { max-width: 100%; }
  .kicker { margin-bottom: 24px; font-size: .66rem; }
  .scene-description { max-width: 320px; margin-top: 24px; font-size: 1rem; }
  .scene--middle,.scene--final { padding-top: min(22svh,190px); }
  .section-nav { right: 18px; bottom: 18px; }
  .section-nav-info { min-width: 88px; padding: 8px 12px; }
  .section-nav-name { font-size: .6875rem; }
  .section-nav-count { font-size: .6875rem; }
  .section-nav-button { width: 44px; min-height: 46px; }
  .section-nav-button svg { width: 18px; height: 18px; }
  .work-section { padding-block: 86px 100px; }
  .section-topline { font-size: .65rem; }
  .work-intro { margin: 60px 0 36px; }
  .work-intro h2 { font-size: min(clamp(3.6rem,13vw,5.3rem),24vw); }
  .project-link { grid-template-columns: 1fr; min-height: 0; }
  .project-link--reverse .project-art { order: 0; border-radius: 0 0 28px 28px; }
  .project-info,.project-link--reverse .project-info { min-height: 390px; padding: 34px; border-radius: 28px 28px 0 0; }
  .project-info h3 { margin-top: 65px; font-size: min(clamp(2.7rem,10vw,4rem),14vw); }
  .project-action { margin-top: 28px; }
  .project-art { min-height: 360px; border-radius: 0 0 28px 28px; }
  .esim-card { width: min(58%,275px); }
  .menu-card { width: min(62%,240px); padding: 18px; }
  .coffee-bag { width: min(50%,210px); }
  .site-window { width: min(50%,200px); }
  .project-art--clinic { --clinic-card: min(54cqw,210px); --clinic-rise: .72; }
  .clinic-arches::before { inset: -8% -10% 0 10%; }
  .about-section { padding-top: 100px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 68px; }
  .about-grid h2 { font-size: min(clamp(3.9rem,13vw,5.5rem),20vw); }
  .about-copy p { font-size: 1.22rem; }
  .site-footer { flex-direction: column; margin-top: 100px; }
}

@media (max-width: 350px) {
  .scene--intro h1 { font-size: 2.625rem; }
}

/* Between phone and tablet the info column is only ~250-300px, so the pill, number and action wrap. Stack the card as on a phone. */
@media (min-width: 601px) and (max-width: 740px) {
  .project-link,.project-link--reverse { grid-template-columns: 1fr; min-height: 0; }
  .project-link--reverse .project-art { order: 0; border-radius: 0 0 28px 28px; }
  .project-info,.project-link--reverse .project-info { border-radius: 28px 28px 0 0; }
  .project-info h3 { margin-top: 65px; }
  .project-art { min-height: 440px; border-radius: 0 0 28px 28px; }
  .project-art--clinic { --clinic-card: min(46cqw,230px); --clinic-rise: .72; }
  .site-window { width: min(44%,250px); }
}

/* Short screens (landscape phones, a laptop at 200% zoom): the pinned opening has to fit, or its copy and button sit below the fold. */
@media (max-height: 600px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  .stage { min-height: 0; }
  .site-header { height: 64px; }
  .scene,.scene--middle,.scene--final { inset: 64px 0 12px; align-items: center; padding-top: 0; }
  .scene h1,.scene h2 { font-size: clamp(2.4rem,15svh,7rem); }
  .kicker { margin-bottom: 14px; }
  .scene-description { margin-top: 12px; line-height: 1.5; }
  .stage-cta { margin-top: 16px; padding-block: 12px; }
}

/* Reduce Transparency: the floating pill becomes a solid material. */
@media (prefers-reduced-transparency: reduce) {
  .section-nav { background: #07160f; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Increase Contrast: a solid nav with a defined edge, quiet greys raised, hairline pills made solid. */
@media (prefers-contrast: more) {
  .section-nav { background: #07160f; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--acid); }
  .section-nav-button { border-left-color: rgba(216,251,117,.6); }
  .section-nav-count { color: var(--white); }
  .section-nav-button[aria-disabled="true"] { color: #8ea596; }
  .project-intent,.project-action b { border-color: var(--acid); }
  .section-topline,.work-intro p { color: var(--ink); }
  .section-topline { border-top-color: rgba(20,35,27,.7); }
  .about-section .section-topline,.site-footer { color: #c9d7ca; }
  .scene-description,.project-info p,.about-copy p { color: var(--white); }
}

/* High contrast drops background colours, so the coffee bag keeps an outline */
@media (forced-colors: active) {
  .coffee-bag,.coffee-bag-label { border: 1px solid CanvasText; }
  /* The cards, the main button, the appointment card and the browser window are shaped only by fills, so they get outlines too */
  .project-link,.stage-cta,.clinic-card,.clinic-card-foot,.site-window { border: 1px solid CanvasText; }
  /* aria-disabled does not get the system grey that disabled did */
  .section-nav-button[aria-disabled="true"] { color: GrayText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .experience { height: auto; content-visibility: visible; }
  .stage { position: relative; height: auto; min-height: 0; padding: 110px 0 40px; }
  #motion-canvas { display: none; }
  .site-header { top: 0; }
  .scene { position: relative; inset: auto; display: block; min-height: 55vh; padding: 80px 0; opacity: 1 !important; transform: none !important; }
  .scene--intro { padding-top: 120px; }
  .scene h1,.scene h2 { font-size: clamp(3.2rem,9vw,7rem); }
  .reveal-on-scroll { opacity: 1; transform: none; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* A gentle equivalent, not nothing: hover feedback fades over 200ms, the art settles over 200ms, and nothing rises or shrinks. */
  .project-info::before,.project-info::after,.project-action b::before,.stage-cta,.section-nav-button,.site-nav a,.project-art > * { transition-duration: .2s !important; }
  .project-link:hover,.project-link:focus-visible,.project-link:active { translate: none; scale: none; }
  .stage-cta:hover,.stage-cta:active,.stage-cta:hover:active,.project-link:is(:hover,:focus-visible) .project-action b { transform: none; }
}

/* Reduce Motion on wider screens: the orb stays, as a still picture beside the copy. */
@media (prefers-reduced-motion: reduce) and (min-width: 651px) {
  #motion-canvas { display: block; height: 100vh; bottom: auto; }
}
