/* Özgür — second version ("Through the lens"). Dark, cinematic, scroll-driven.
   Two switches on <html>, both set by app.js:
     .motion  JavaScript is running and the visitor has not asked for reduced motion: pinned, scroll-linked scenes.
     .pin     additionally a wide screen with a mouse: the photo reels move sideways as you scroll down.
   Without them every section is a plain, static block, so the page also works with no script. */
/* Cormorant Garamond, for the name only. The files are in assets/fonts with their licence (SIL Open Font License). */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-garamond-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #060a0b; --bg-2: #0b1214; --line: #1c2a2d; --text: #eef3f2; --muted: #8fa0a2;
  --teal: #18b7b5; --teal-deep: #087f80; --coral: #f47f6b;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  /* The name OZGUR KOSE (plain spelling, the owner's choice on 15 Nov 2026), in the header, the opening and the footer. */
  --name: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* Speed (18 Nov 2026): values the scripts change while scrolling, each used only by the element it is set on. Marked
   as not inherited, a change restyles that element alone instead of everything inside it. Browsers that do not know
   @property simply inherit them, as before. */
@property --depth { syntax: '*'; inherits: false; }
@property --clip { syntax: '*'; inherits: false; }
@property --turn { syntax: '*'; inherits: false; }
@property --lean-x { syntax: '*'; inherits: false; }
@property --lean-y { syntax: '*'; inherits: false; }
@property --vel { syntax: '*'; inherits: false; }
@property --page { syntax: '*'; inherits: false; }
@property --intro { syntax: '*'; inherits: false; }
@property --intro-scale { syntax: '*'; inherits: false; }
@property --cap { syntax: '*'; inherits: false; }
* { box-sizing: border-box; }
/* overflow-x: clip on the root as well as on body: entrances that slide in from the side (the dental pair) must never
   make the page a few pixels wider than the screen, which lets a phone pan sideways. */
html { background: var(--bg); scroll-padding-top: 72px; overflow-x: clip; }
html.motion { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Text cannot be selected or copied by dragging (owner's wish, 18 Nov 2026), except in the form's own fields, where
   visitors type. It only stops casual copying; the words are still in the page's source. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
/* The mouse pointer (owner's wish, 18 Nov 2026): a slim dark arrow with a teal edge, and over anything clickable a
   camera's focus frame (four teal corners and a dot). Plain CSS cursors: they move exactly like the system pointer, no
   trailing ring (that was removed on 16 Nov). gl.js gives the hall's photographs --cursor-link too. */
:root {
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 32 32'%3E%3Cpath d='M4 3v20l5.2-4.8 3.4 7.8 3-1.3-3.3-7.7h7.2z' fill='%230b1517' stroke='%236fd8d5' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  --cursor-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 32 32'%3E%3Cpath d='M6 12V6h6M20 6h6v6M26 20v6h-6M12 26H6v-6' fill='none' stroke='%23060a0b' stroke-opacity='.6' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6 12V6h6M20 6h6v6M26 20v6h-6M12 26H6v-6' fill='none' stroke='%2318d0cd' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='16' r='2.6' fill='%23060a0b' fill-opacity='.6'/%3E%3Ccircle cx='16' cy='16' r='1.6' fill='%23eef3f2'/%3E%3C/svg%3E") 11 11, pointer;
}
html { cursor: var(--cursor); }
a, button, [role="button"], label, summary, select, .frame { cursor: var(--cursor-link); }
input, textarea { cursor: text; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--teal); color: var(--bg); }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
/* Film grain over everything. */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.display { font: 400 clamp(40px, 7vw, 112px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 30px; border-radius: 50px; border: 1px solid var(--text);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.button.primary { background: var(--text); color: var(--bg); }
.button:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); transform: translateY(-2px); }
.link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--teal); color: var(--text); font-size: 15px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--teal); border-color: var(--coral); }

/* Header */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: var(--teal); transform: scaleX(var(--page, 0)); transform-origin: left; }
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); transition: background .3s; }
.site-head.scrolled { background: linear-gradient(#060a0be6, #060a0b00); }
.brand { display: inline-block; --ls: .28em; font: 500 19px/1 var(--name); letter-spacing: var(--ls); white-space: nowrap; }
/* The logo (19 Nov 2026, the owner chose lettering over a symbol) is the name itself: a star of light inside the first
   O, as if seen through the lens, with a thin streak of lens flare through it. index.html uses it in the header, the
   footer and the loader; legal.html, 404.html and the link preview carry their own copy. The star twinkles now and
   then; pointing at the name draws the flare out. --ls is the letter spacing, kept after the O. */
.lit { position: relative; isolation: isolate; font-style: normal; letter-spacing: 0; margin-right: var(--ls, 0); }
.lit::before, .lit::after { content: ''; position: absolute; left: 50%; top: 51%; translate: -50% -50%; pointer-events: none; }
.lit::before { width: .26em; height: .26em; border-radius: 50%; background: radial-gradient(#fff 0 16%, #d4fcf9 26%, #18b7b588 46%, transparent 72%); }
.lit::after { z-index: -1; width: 2em; height: max(1px, .03em); background: linear-gradient(90deg, transparent 8%, #18b7b588 34%, #e9fffd 50%, #18b7b588 66%, transparent 92%); transition: width .6s var(--ease); }
.brand:hover .lit::after { width: 3.6em; }
html.motion .site-head .lit::before { animation: twinkle 8s ease-in-out infinite; }
@keyframes twinkle { 0%, 70%, 100% { opacity: 1; } 78% { opacity: .35; } 84% { opacity: 1; } 89% { opacity: .65; } }
.head-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.language-switch { display: flex; gap: 2px; }
.language-switch[hidden] { display: none; }
.language-switch button { min-width: 32px; min-height: 32px; font: 500 11px var(--mono); letter-spacing: .08em; color: var(--muted); border-radius: 3px; transition: color .2s, background .2s; }
.language-switch button:hover { color: var(--text); }
.language-switch button[aria-pressed="true"] { color: var(--bg); background: var(--teal); }
.pill { font-size: 13px; font-weight: 600; padding: 9px 18px; border: 1px solid #ffffff55; border-radius: 40px; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
/* Sound switch: four bars that move while sound is on and lie flat when it is off. sound.js adds the button. */
.sound-btn { display: inline-flex; align-items: center; gap: 3px; height: 40px; padding: 0 6px; color: var(--muted); transition: color .2s; }
.sound-btn:hover, .sound-btn.on { color: var(--text); }
.sound-btn i { width: 2px; height: 14px; background: currentColor; border-radius: 1px; transform: scaleY(.18); transform-origin: center; }
.sound-btn.on i { animation: bars 1s ease-in-out infinite; animation-delay: calc(var(--n) * -.23s); }
.sound-btn i:nth-child(1) { --n: 0; } .sound-btn i:nth-child(2) { --n: 2; } .sound-btn i:nth-child(3) { --n: 1; } .sound-btn i:nth-child(4) { --n: 3; }
@keyframes bars { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.menu-btn i { width: 22px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: height .25s; }
.menu-btn:hover i { height: 3px; }
@media (max-width: 700px) { .pill { display: none; } .brand { font-size: 16px; --ls: .22em; } }
/* Narrow phones (360 px): the Menu button keeps only its icon (the word stays for screen readers) so the name, the
   language buttons, the sound switch and the menu fit on one line. */
@media (max-width: 420px) {
  .brand { --ls: .16em; }
  .head-right { gap: 6px; }
  .language-switch button { min-width: 30px; }
  .menu-btn { min-width: 40px; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* The smallest phones (320 px): the name a size smaller and tighter, so the menu button is not cut off at the edge. */
@media (max-width: 340px) { .brand { font-size: 14px; --ls: .1em; } .language-switch button { min-width: 26px; } }
/* Full-screen menu */
dialog.menu { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 88px var(--pad) 32px; border: 0; background: #060a0bf7; color: var(--text); }
dialog.menu[open] { display: flex; flex-direction: column; justify-content: space-between; animation: fade .35s ease both; }
dialog.menu::backdrop { background: var(--bg); }
.menu-close { position: absolute; top: 14px; right: var(--pad); width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.menu nav { display: grid; gap: clamp(2px, 1vh, 10px); }
.menu nav a { display: flex; align-items: baseline; gap: 20px; font: 400 clamp(36px, 8vh, 84px)/1.1 var(--serif); letter-spacing: -.02em; transition: color .2s, transform .4s var(--ease); }
.menu nav a small { font: 500 11px var(--mono); letter-spacing: .2em; color: var(--teal); }
.menu nav a:hover { color: var(--teal); transform: translateX(14px); }
.menu[open] nav a { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 13px var(--mono); color: var(--muted); }
.menu-foot a { display: inline-flex; align-items: center; gap: 9px; transition: color .2s; }
.menu-foot a:hover { color: var(--teal); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; } }

/* Hero: the lens */
.hero { position: relative; }
.hero-pin { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--bg); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%;
  transform: scale(var(--photo-scale, 1)); filter: brightness(var(--photo-light, .55)); }
.lens { display: none; }
.hero-copy { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; gap: 14px; padding: 96px var(--pad) 40px; }
.hero h1 { font: 400 clamp(60px, min(15.5vw, 27vh), 250px)/1 var(--name); letter-spacing: .03em; margin-left: -.03em; }
.hero h1 span { display: block; }
/* The surname is solid like the first name, a step quieter. (An outlined version looked clumsy: the outline of a
   serif typeface crosses itself wherever strokes meet.) */
.hero h1 span + span { color: #eef3f28f; }
.hero .specialty { font: 500 12px var(--mono); letter-spacing: .3em; color: var(--muted); }
.hero .specialty b { font-weight: 500; color: var(--teal); padding: 0 .6em; }
.hero-end { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 120px var(--pad) clamp(32px, 6vh, 64px);
  background: linear-gradient(#060a0b00, #060a0bd9 62%); }
.hero-lede { font: 400 clamp(22px, 3vw, 42px)/1.22 var(--serif); max-width: 24em; text-wrap: balance; margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { display: none; }

html.motion .hero { height: 300vh; }
html.motion .hero-pin { position: sticky; top: 0; }
html.motion .hero .lens { display: block; position: absolute; z-index: 2; left: 50%; top: 50%; width: min(82vw, 82vh); aspect-ratio: 1; translate: -50% -50%;
  transform: perspective(1400px) rotateX(calc(var(--tilt-x, 0deg) * var(--tilt-k, 1))) rotateY(calc(var(--tilt-y, 0deg) * var(--tilt-k, 1))) scale(var(--lens-scale, 1)); pointer-events: none; }
/* The lens is a stack of layers at different depths (--z, set by app.js), so tilting it shows the inside of the barrel. */
.lens svg { display: block; width: 100%; height: 100%; overflow: visible; }
html.motion .hero .lens { transform-style: preserve-3d; }
.lens-layer { position: absolute; inset: 0; }
html.motion .hero .lens-layer { transform: translateZ(var(--z, 0px)); }
.lens .edge { fill: none; stroke: #3a4f53; stroke-width: 1.4; }
.lens .edge.dim { stroke: #1b282a; }
.lens .edge.bright { stroke: #a9bfc2; stroke-width: 1; opacity: .7; }
.lens .ridges path { stroke: #060a0b; stroke-width: 5; opacity: .75; }
.lens .mark { font: 600 11px var(--mono); fill: #9fb4b6; }
.lens .engrave { font: 500 12px var(--mono); letter-spacing: 5px; fill: #c9d6d7; }
.lens .engrave.dim { fill: #5f7f83; }
.lens .index { fill: var(--coral); }
.lens .index-line { stroke: var(--coral); stroke-width: 3; }
.lens .blade { stroke: #06090a; stroke-width: 1.5; }
.lens-glass { opacity: var(--glass, 1); }
/* Viewfinder marks around the lens: corner brackets, a focus reticle and exposure read-outs. */
.finder { display: none; }
html.motion .finder { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--finder, 1); }
.finder i { position: absolute; width: 22px; height: 22px; border: 0 solid #ffffff66; }
.finder .tl { left: 16px; top: 76px; border-width: 1px 0 0 1px; } .finder .tr { right: 16px; top: 76px; border-width: 1px 1px 0 0; }
.finder .bl { left: 16px; bottom: 16px; border-width: 0 0 1px 1px; } .finder .br { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; }
.finder .reticle { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%;
  background: linear-gradient(#fff, #fff) 50% 0 / 1px 9px no-repeat, linear-gradient(#fff, #fff) 50% 100% / 1px 9px no-repeat, linear-gradient(#fff, #fff) 0 50% / 9px 1px no-repeat, linear-gradient(#fff, #fff) 100% 50% / 9px 1px no-repeat;
  opacity: .55; animation: focus 3.2s var(--ease) 1.6s both; }
@keyframes focus { 0% { scale: 2.4; opacity: 0; } 55% { scale: .9; opacity: .9; } 70% { scale: 1.06; } 100% { scale: 1; opacity: .55; } }
.readout { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; display: grid; gap: 14px; margin: 0; text-align: right; font: 500 11px var(--mono); letter-spacing: .2em; color: var(--muted); }
.readout .f-stop { color: var(--text); font-size: 15px; letter-spacing: .1em; }
.readout .af { justify-self: end; padding: 3px 7px; border: 1px solid var(--teal); border-radius: 2px; color: var(--teal); animation: blink 1.1s steps(2) 1.6s 3; }
@keyframes blink { 50% { opacity: .15; } }
@media (max-width: 700px) { .readout { top: 84px; left: var(--pad); right: var(--pad); translate: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .12em; } .readout .f-stop { font-size: 12px; } .finder .tl, .finder .tr { top: 66px; } }
html.motion .hero-copy { align-content: end; opacity: var(--copy, 1); translate: 0 calc((1 - var(--copy, 1)) * -40px); }
html.motion .hero-copy > * { opacity: 0; }
html.motion.ready .hero-copy > *:not(h1) { animation: rise 1s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * .14s); }
html.motion.ready .hero h1 { opacity: 1; letter-spacing: calc(.03em + (1 - var(--copy, 1)) * .3em); }
.hero h1 i { font-style: normal; display: inline-block; }
html.motion .hero h1 i { opacity: 0; }
html.motion.ready .hero h1 i { animation: letter 1.2s var(--ease) both; animation-delay: calc(.15s + var(--c, 0) * 70ms); }
@keyframes letter { from { opacity: 0; transform: translateY(60%) rotateX(-80deg); } to { opacity: 1; transform: none; } }
html.motion .hero-end { opacity: var(--end, 0); translate: 0 calc((1 - var(--end, 0)) * 30px); visibility: var(--end-vis, hidden); }
html.motion .scroll-cue { display: flex; align-items: center; gap: 12px; position: absolute; z-index: 5; right: var(--pad); bottom: 44px; font: 500 11px var(--mono); letter-spacing: .22em; color: var(--muted);
  opacity: var(--copy, 1); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--teal), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { html.motion .scroll-cue { right: auto; left: var(--pad); bottom: 22px; } html.motion .scroll-cue i { height: 26px; } html.motion .hero-copy { padding-bottom: 74px; } }

/* Loader. If the script never runs, the last animation takes it away after six seconds; siteFlat() in index.html
   removes it as well. While app.js is loading everything (html.loading, at most 30 s) that timer is off. */
html.loading .loader { animation: none; }
.loader { display: none; }
html.motion .loader { display: grid; place-content: center; justify-items: center; gap: 18px; position: fixed; inset: 0; z-index: 95; background: var(--bg);
  transition: clip-path 1s var(--ease); clip-path: inset(0); animation: loader-out .01s 6s forwards; }
.loader span { --ls: .5em; font: 500 clamp(18px, 2.4vw, 26px)/1 var(--name); letter-spacing: var(--ls); margin-right: -.5em; }
/* The logo's light grows with the count (app.js sets --load from 0 to 1): the star brightens and the flare draws out. */
.loader .lit::before { opacity: var(--load, 0); scale: calc(.3 + .7 * var(--load, 0)); }
.loader .lit::after { width: calc(var(--load, 0) * 3.6em); transition: none; }
/* Sliding bar under the name (19 Nov 2026): a hairline track that fills from the left with the same count, led by a
   small bright head. */
.loader .bar { position: relative; width: min(340px, 64vw); height: 1px; margin-top: 6px; background: #ffffff1c; }
.loader .bar::before { content: ''; position: absolute; inset: 0; transform-origin: left; scale: var(--load, 0) 1;
  background: linear-gradient(90deg, #18b7b500, #18b7b5 60%, #e9fffd); box-shadow: 0 0 8px #18b7b580; }
.loader .bar::after { content: ''; position: absolute; top: 50%; left: calc(var(--load, 0) * 100%); width: 6px; height: 6px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(#fff 0 30%, #7ff0ea99 55%, transparent 75%); opacity: calc(var(--load, 0) * 4); }
.loader b { font: 500 11px var(--mono); letter-spacing: .3em; color: var(--teal); }
.loader.done { clip-path: inset(0 0 100% 0); }
@keyframes loader-out { to { visibility: hidden; } }

/* The 3D world drawn by gl.js sits behind the whole page. */
canvas.world { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
html.gl body { background: transparent; }
/* 392.6vh: it was 480vh, with a stretch where the scene stood still (it held the removed pitch line). That stretch is
   cut out (17 Nov 2026, the owner wants no stops); gl.js and app.js skip it with openingStage / the same .77 + .23. */
html.gl .hero { height: 392.6vh; }
html.gl .hero-pin { background: transparent; }
/* With the 3D world the lens and the opening photograph are drawn by gl.js; the page's own copies stay hidden. */
html.gl .hero-photo img { opacity: 0; }
html.gl .hero #hero-lens { display: none; }
/* The line of text and the two buttons that used to appear with the photograph after the lens are not shown in the
   3D opening (owner's request, 16 Nov 2026); the photograph stands alone. They remain in the flat fallback. */
html.gl .hero-end { display: none; }
/* On wide screens the full, vertical photograph takes the height of the screen and the text stands in the column to
   its left. gl.js sets --photo-left, the photograph's left edge. */
@media (min-aspect-ratio: 5/4) {
  html.gl .hero-end { right: auto; width: var(--photo-left, 40vw); padding-right: clamp(16px, 2.4vw, 40px); }
  html.gl .hero-lede { font-size: clamp(18px, 1.9vw, 30px); }
}
html.gl .reel { border-top: 0; }
html.gl .reel-pin { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
html.gl .reel-track { position: absolute; inset: 0; display: block; width: auto; padding: 0; }
html.gl .reel .frame { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* Series headline: fixed in the middle of the screen; gl.js sizes it by its distance in the hall (--intro-scale) so the
   camera flies through it. */
html.gl .reel-intro { position: fixed; left: 50%; top: 50%; z-index: 1; translate: -50% -50%; width: min(86vw, 600px); justify-items: center; text-align: center; padding: 0;
  opacity: var(--intro, 0); scale: var(--intro-scale, 1); visibility: hidden; pointer-events: none; text-shadow: 0 2px 30px var(--bg); will-change: scale, opacity; }
.hall-caption { position: absolute; left: 0; right: 0; bottom: clamp(44px, 9vh, 90px); display: grid; justify-items: center; gap: 8px; margin: 0; text-align: center;
  opacity: var(--cap, 0); pointer-events: none; text-shadow: 0 2px 24px var(--bg); }
.hall-caption strong { font: 400 clamp(22px, 2.6vw, 38px)/1.15 var(--serif); }
/* Empty scroll after the last series, added by gl.js: the flight into the black hole, through it and out. */
.hole-pass { height: 300vh; pointer-events: none; }
/* After the hall the content keeps flying in 3D: depth.js sets --depth on each block (see the comment there). */
html.gl .depth { transform: var(--depth, none); }
html.gl .film-screen { transform: var(--depth, translate3d(0px, 0px, 0)) perspective(1600px) rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg)); transition: none; }
/* No photo names in the hall: the owner removed them on 16 Nov 2026 (both the pinned titles and this caption). */
html.gl .hall-caption { display: none; }
.hall-caption small { font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }

/* (The trailing ring behind the mouse pointer was removed on 16 Nov 2026; the pointer bends the 3D scene instead.) */

/* Words of the large headings rise from behind a mask. */
html.motion .display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
html.motion .display .w > span { display: inline-block; translate: 0 115%; rotate: 5deg; transform-origin: left bottom; transition: translate 1.1s var(--ease), rotate 1.1s var(--ease); transition-delay: calc(var(--w, 0) * 70ms); }
html.motion .display.in .w > span, html.motion .blog-hero .display .w > span { translate: 0 0; rotate: 0deg; }
/* Fast scrolling leans the large type. --vel runs from -1 to 1 with the scroll speed. */
html.motion .rows h3, html.motion .display { transform: skewX(calc(var(--vel, 0) * -7deg)); }

/* Section basics */
.section { padding: clamp(80px, 13vw, 180px) var(--pad); position: relative; }
/* Centre-focused (owner's request, 17 Nov 2026): section headings sit in the middle, and the content of the wide
   sections is kept to about 1400px in the middle of the screen, so a large screen has no empty half. */
.section-head { display: grid; gap: 18px; margin: 0 auto clamp(36px, 6vw, 80px); max-width: 1100px; justify-items: center; text-align: center; }
.reveal { opacity: 0; translate: 0 34px; transition: opacity .9s ease, translate 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in, html:not(.motion) .reveal { opacity: 1; translate: 0 0; }

/* Services */
.rows { list-style: none; margin: 0 auto; padding: 0; border-bottom: 1px solid var(--line); max-width: 1400px; }
.rows a { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  padding: clamp(20px, 2.6vw, 36px) 0; border-top: 1px solid var(--line); }
.rows a::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.rows a:hover::before, .rows a:focus-visible::before { transform: scaleX(1); }
.rows small { font: 500 11px var(--mono); letter-spacing: .2em; color: var(--teal); }
.rows h3 { font: 400 clamp(26px, 3.9vw, 58px)/1.08 var(--serif); letter-spacing: -.015em; transition: translate .5s var(--ease), color .25s; }
.rows a:hover h3 { translate: 14px 0; color: var(--teal); }
.rows p { color: var(--muted); font-size: 15px; max-width: 30em; }
.rows .go { display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
.rows .go::after { content: '→'; font-size: 16px; transition: translate .4s var(--ease); }
.rows a:hover .go { color: var(--text); }
.rows a:hover .go::after { translate: 6px 0; }
.rows.compact h3 { font-size: clamp(24px, 3vw, 42px); }
@media (max-width: 800px) {
  .rows a { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .rows p, .rows .go { grid-column: 2; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 230px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; pointer-events: none; opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) scale(.86) rotate(-3deg); transition: opacity .25s, transform .45s var(--ease); box-shadow: 0 30px 80px #000a; }
.peek.on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) scale(1) rotate(2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 800px) { .peek { display: none; } }

/* Work */
.gallery-count { color: var(--muted); font: 13px var(--mono); letter-spacing: .06em; }
.reel { position: relative; border-top: 1px solid var(--line); }
.reel-pin { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: 56px 0 44px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.reel-track { display: flex; align-items: center; gap: clamp(18px, 3vw, 52px); width: max-content; padding: 0 var(--pad); position: relative; }
.reel-intro { flex: 0 0 min(78vw, 460px); display: grid; gap: 14px; scroll-snap-align: start; padding-right: 12px; }
.reel-no { font: 400 clamp(80px, 12vw, 190px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px #3d5559; }
.reel-intro h2 { font: 400 clamp(40px, 5.4vw, 84px)/1 var(--serif); letter-spacing: -.02em; }
.reel-intro p:not(.eyebrow) { color: var(--muted); max-width: 26em; }
.series-size { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.frame { flex: 0 0 auto; width: min(72vw, 400px); text-align: left; scroll-snap-align: center; transform-style: preserve-3d; }
.frame-img { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
.frame-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; }
.frame:hover .frame-img img, .frame:focus-visible .frame-img img { transform: scale(1.05); }
.project-info { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 14px; }
.project-info strong { font: 400 clamp(18px, 1.5vw, 23px)/1.2 var(--serif); }
.project-info small { order: 2; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* clip, not hidden: a hidden box can still be scrolled sideways by the browser when a photograph in it gets keyboard
   focus, which would knock the strip out of step with the page; app.js brings a focused photograph to the middle. */
html.pin .reel-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: clip; padding: 0; perspective: 1500px; }
html.pin .reel-track { will-change: transform; transform-style: preserve-3d; }
html.pin .frame { width: auto; }
html.pin .frame-img { height: 62vh; width: auto; }
html.pin .reel-intro { flex-basis: min(40vw, 520px); }

/* Dental */
.dental-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 36px); max-width: 980px; margin: 0 auto; }
.dental-pair .frame { width: auto; }
.dental-pair .frame-img { position: relative; height: auto; }
html.pin .dental-pair .frame-img { height: auto; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 14px; border-radius: 30px; background: #060a0bcc; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; backdrop-filter: blur(6px); }
#dental-after .badge { background: var(--teal); color: var(--bg); }
html.motion .dental-pair .frame { transition: translate 1.3s var(--ease), opacity 1s; }
html.motion .dental-pair:not(.in) .frame { opacity: 0; }
html.motion .dental-pair:not(.in) .frame:first-child { translate: -12% 0; }
html.motion .dental-pair:not(.in) .frame:last-child { translate: 12% 0; }

/* Film */
.film { padding-left: 0; padding-right: 0; }
.film-head { display: grid; justify-items: center; text-align: center; gap: 12px 24px; padding: 0 var(--pad); margin-bottom: clamp(28px, 4vw, 56px); }
.film-head .display { font-style: italic; }
.film-head > div { display: grid; justify-items: center; gap: 16px; }
.film-head p:not(.eyebrow) { color: var(--muted); }
.film-duration { font: 500 12px var(--mono); letter-spacing: .2em; color: var(--teal); padding-bottom: 6px; }
.film-screen { position: relative; background: #000; aspect-ratio: 1920 / 804; clip-path: inset(calc(var(--clip, 0) * 1%) calc(var(--clip, 0) * 1.5%) round 4px);
  transform: perspective(1600px) rotateX(var(--lean-x, 0deg)) rotateY(var(--lean-y, 0deg)); transition: transform .6s var(--ease); }   /* app.js leans it towards the pointer */
.film-screen video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font: 500 11px var(--mono); letter-spacing: .24em; text-transform: uppercase;
  background: radial-gradient(#060a0b55, #060a0b00 60%); transition: opacity .4s; }
.film-play i { display: grid; place-items: center; width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border: 1px solid #fff; border-radius: 50%; backdrop-filter: blur(4px); transition: background .3s, scale .5s var(--ease); }
.film-play i::after { content: ''; margin-left: 5px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.film-play:hover i { background: var(--teal); border-color: var(--teal); scale: 1.08; }
.film-screen.playing .film-play { opacity: 0; pointer-events: none; }
.film-play[hidden], .film-error[hidden] { display: none; }
/* Shown instead of the player when the film cannot be loaded (app.js). */
.film-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; color: var(--muted); background: #060a0bcc; }
.film-error .link { font-size: 14px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 100px); align-items: start; max-width: calc(1400px + 2 * var(--pad)); margin-inline: auto; }
.about-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; max-height: 78vh; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; scale: 1.12; translate: 0 calc(var(--drift, 0) * 1%); }
.about-copy { display: grid; gap: 28px; justify-items: start; padding-top: 2vw; }
.about-copy h2 { font: italic 400 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--muted); }
.words { font: 400 clamp(26px, 3.5vw, 54px)/1.16 var(--serif); letter-spacing: -.012em; }
.words.small { font-size: clamp(20px, 2.1vw, 30px); }
html.motion .words span { opacity: .16; transition: opacity .35s; }
html.motion .words span.on { opacity: 1; }
/* Detailed About: four facts in large figures, four short pieces of the story, and the tools. */
.about-facts, .about-story, .about-tools { grid-column: 1 / -1; margin: 0; }
.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 60px); border-block: 1px solid var(--line); }
.about-facts > div { display: grid; align-content: start; gap: 12px; padding: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 30px) clamp(22px, 3vw, 40px) 0; }
.about-facts > div + div { padding-left: clamp(14px, 2vw, 30px); border-left: 1px solid var(--line); }
.about-facts dt { font: 400 clamp(40px, 5.6vw, 92px)/.95 var(--serif); letter-spacing: -.02em; }
.about-facts dd { margin: 0; font: 500 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 4vw, 64px) clamp(28px, 6vw, 100px); margin-top: clamp(10px, 2vw, 30px); }
.about-story article { display: grid; align-content: start; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-story p { color: #b9c6c7; font-size: 17px; line-height: 1.75; max-width: 34em; }
.about-tools { display: grid; gap: 18px; margin-top: clamp(10px, 2vw, 30px); padding-top: 22px; border-top: 1px solid var(--line); }
.about-tools dl { display: grid; gap: 12px; margin: 0; }
.about-tools dl > div { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.about-tools dt { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.about-tools dd { margin: 0; font: 400 clamp(18px, 1.7vw, 24px)/1.45 var(--serif); }
.about-tools p { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) {
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .about-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-story { grid-template-columns: 1fr; }
  .about-tools dl > div { grid-template-columns: 1fr; gap: 4px; }
}
.marquee { grid-column: 1 / -1; overflow: hidden; position: relative; left: 50%; width: 100vw; margin: clamp(30px, 6vw, 90px) 0 0 -50vw; /* edge to edge, though About is narrower */ border-block: 1px solid var(--line); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font: 400 clamp(34px, 5.4vw, 86px)/1 var(--serif); padding: 0 .5em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #50696d; }
.marquee span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
/* With motion on, app.js moves the band itself so that scrolling can push it; the plain animation is the fallback. */
html.motion .marquee-track { animation: none; will-change: transform; }
html:not(.motion) .marquee-track { animation: none; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-photo { position: relative; top: 0; max-height: none; width: min(100%, 420px); } }

/* Contact */
/* Text and form beside the lens as one group in the middle, instead of at the two edges of the screen. */
.contact { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 460px); justify-content: center; gap: clamp(28px, 4vw, 72px); align-items: center; border-top: 1px solid var(--line); overflow: hidden; }
.contact-copy { display: grid; gap: 26px; justify-items: start; }
.contact .display { font-size: clamp(38px, 5.6vw, 88px); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
/* Message form: Send opens the visitor's email app with the message filled in (app.js). */
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; width: 100%; max-width: 640px; }
.enquiry label { display: grid; gap: 4px; }
.enquiry label > span { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
/* Field edges at 3.25:1 against the background and the placeholder at 4.5:1, so both can be seen (WCAG 1.4.11, 1.4.3). */
.enquiry input, .enquiry textarea { width: 100%; padding: 6px 0; font: 400 15px/1.4 var(--sans); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #4f6669;
  border-radius: 0; outline: none; transition: border-color .25s, box-shadow .25s; }
.enquiry textarea { resize: vertical; min-height: 78px; padding: 8px 10px; border: 1px solid #4f6669; border-radius: 4px; background: #060a0b8c; }
.enquiry input:focus { border-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.enquiry textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.enquiry textarea::placeholder { color: #8fa0a2bf; }
.enquiry-status .link { margin-left: 4px; font-size: 14px; }
.enquiry .invalid { border-color: var(--coral); }
.enquiry .wide { grid-column: 1 / -1; }
.enquiry-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 2px; }
.enquiry-send .button { min-height: 42px; padding: 8px 22px; font-size: 14px; }
.enquiry-send small { color: var(--muted); font-size: 12px; }
.enquiry-send .privacy-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.enquiry-send .privacy-link:hover { color: var(--teal); }
.enquiry-status { margin: -4px 0 0; color: var(--coral); font-size: 14px; }
.enquiry-status.sent { color: var(--teal); }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .enquiry { grid-template-columns: 1fr; } }
.contact-links { display: grid; gap: 10px; font: 15px var(--mono); }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color .2s; }
.contact-links a:hover { color: var(--teal); }
/* Small copy icons beside the email address, the phone number and the Instagram name, here and in the menu (app.js
   fills and shows them where the browser can copy). Two sheets; a tick for a moment once copied. The icon is 14 px,
   the button around it 28 px, so it is easy to hit; the negative margin keeps the lines as close as before. */
.contact-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; border-radius: 6px; color: var(--muted); opacity: .7; transition: color .2s, opacity .2s; }
.copy svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, scale .35s var(--ease); }
.copy .tick { opacity: 0; scale: .4; stroke-width: 2; }
.copy:hover, .copy.done { color: var(--teal); opacity: 1; }
.copy.done .sheets { opacity: 0; scale: .4; }
.copy.done .tick { opacity: 1; scale: 1; }
.copy[hidden] { display: none; }
/* Read by screen readers, not shown ("Copied"). */
.unseen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lens-wrap { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.lens-wrap img { position: absolute; inset: 20.4%; width: 59.2%; height: 59.2%; object-fit: cover; object-position: center 30%; border-radius: 50%; }
.lens-wrap .lens { display: block; position: absolute; inset: 0; rotate: calc(var(--turn, 0) * 1deg); }
html:not(.motion) .lens-wrap .lens { display: none; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } .lens-wrap { max-width: 340px; order: -1; } }

/* The name once more, very large, as the last thing on the page; its letters rise one after another. */
.outro { display: flex; justify-content: center; overflow: hidden; padding: clamp(30px, 6vw, 90px) var(--pad) 0; font: 400 clamp(44px, 13.4vw, 250px)/.9 var(--name); letter-spacing: .02em; color: #eef3f224; white-space: nowrap; }
.outro i { font-style: normal; display: inline-block; }
html.motion .outro i { translate: 0 105%; transition: translate 1.2s var(--ease); transition-delay: calc(var(--c, 0) * 55ms); }
html.motion .outro.in i { translate: 0 8%; }
/* In the 3D world gl.js writes the name in stardust here instead (it adds html.signature once that works). */
html.gl.signature .outro { color: transparent; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px var(--pad) 64px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer .brand { color: var(--text); font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
footer a:hover { color: var(--teal); }

/* Bottom read-out: chapter and a timecode that runs with the scroll. */
.hud { position: fixed; z-index: 50; left: var(--pad); right: var(--pad); bottom: 16px; display: flex; justify-content: space-between; pointer-events: none;
  font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #a9bbbd; mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
html.motion .hud.on { opacity: 1; }
.hud b { font-weight: 500; color: var(--teal); }
@media (max-width: 800px) { .hud { display: none; } }

/* Photo viewer */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #030506f5; color: var(--text); overflow: hidden; }
dialog.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: fade .3s ease both; }
dialog.viewer::backdrop { background: #030506; }
.photo-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 64px clamp(12px, 6vw, 90px) 8px; touch-action: pan-y; }
.photo-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 2px; }
dialog.viewer[open] .photo-stage img { animation: zoom .5s var(--ease) both; }
@keyframes zoom { from { opacity: 0; scale: .96; } }
.photo-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px var(--pad) 22px; }
.photo-caption h2 { font: 400 clamp(20px, 2.4vw, 30px)/1.2 var(--serif); }
.photo-caption p { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.close-dialog { position: absolute; z-index: 2; top: 14px; right: var(--pad); width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.photo-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ffffff44; border-radius: 50%; background: #060a0b99; transition: background .2s, border-color .2s; }
.photo-nav:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.photo-nav[data-step="-1"] { left: clamp(8px, 2vw, 28px); }
.photo-nav[data-step="1"] { right: clamp(8px, 2vw, 28px); }

/* Journal page */
.blog-hero { padding-top: clamp(130px, 16vw, 220px); padding-bottom: clamp(30px, 5vw, 70px); display: grid; gap: 20px; }
.blog-lead { color: var(--muted); font-size: 18px; max-width: 36em; }
.blog-feed { padding: 0 var(--pad); }
.blog-post { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 100px); align-items: start; padding: clamp(48px, 7vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.blog-post-image { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; position: sticky; top: 96px; max-height: 78vh; }
.blog-post-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.blog-post-copy { display: grid; gap: 20px; max-width: 660px; }
.blog-post-copy h2 { font: 400 clamp(36px, 5vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; }
.blog-post-copy p:not(.eyebrow) { color: #b9c6c7; font-size: 17px; line-height: 1.8; }
.blog-post-copy .blog-dek { font: italic 400 clamp(20px, 2vw, 26px)/1.35 var(--serif); color: var(--text) !important; }
.blog-post-copy .blog-takeaway { padding: 16px 20px; border-left: 2px solid var(--coral); background: var(--bg-2); color: var(--text) !important; }
.blog-return { padding: 20px var(--pad) 80px; }
@media (max-width: 800px) { .blog-post { grid-template-columns: 1fr; } .blog-post-image { position: relative; top: 0; max-height: none; width: min(100%, 420px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
