
  /* ====== COLOR TOKENS (light) ====== */
  :root {
    --bg: #f2f1ee;
    --bg-raised: #faf9f7;
    --bg-sunken: #e9e8e4;
    --ink: #101014;
    --ink-strong: #000;
    --muted: #1010149e;
    --faint: #1010146b;
    --line: #10101429;
    --line-strong: #10101466;
    --accent: #2bb59a;
    --accent-ink: #13715f;
    --invert-bg: #101014;
    --invert-fg: #f2f1ee;
    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
    --font-serif: "Instrument Serif", Georgia, serif;
    --max: 1240px;
    color-scheme: light;
  }
  /* ====== COLOR TOKENS (dark) ====== */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121316; --bg-raised: #101014; --bg-sunken: #060607;
      --ink: #f2f1ee; --ink-strong: #fff; --muted: #f2f1ee99; --faint: #f2f1ee61;
      --line: #f2f1ee26; --line-strong: #f2f1ee66;
      --accent-ink: #4fd1b5; --invert-bg: #fff; --invert-fg: #0b0b0c;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121316; --bg-raised: #101014; --bg-sunken: #060607;
    --ink: #f2f1ee; --ink-strong: #fff; --muted: #f2f1ee99; --faint: #f2f1ee61;
    --line: #f2f1ee26; --line-strong: #f2f1ee66;
    --accent-ink: #4fd1b5; --invert-bg: #fff; --invert-fg: #0b0b0c;
    color-scheme: dark;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { overflow-x: clip; }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-stopped { overflow: hidden; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    transition: background-color .3s, color .3s;
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .display { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink-strong); }
  .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-stretch: 100%; color: var(--accent-ink); }
  .hud-label { font-family: var(--font-mono); letter-spacing: .15em; text-transform: uppercase; font-size: .6875rem; font-weight: 500; color: var(--muted); }

  /* Viewfinder corner ticks */
  .tick { pointer-events: none; width: 11px; height: 11px; position: absolute; z-index: 3; }
  .tick::before, .tick::after { content: ""; background: var(--line-strong); position: absolute; }
  .tick::before { width: 1px; top: 0; bottom: 0; left: 5px; }
  .tick::after { height: 1px; top: 5px; left: 0; right: 0; }
  .tick.tl { top: -6px; left: -6px; } .tick.tr { top: -6px; right: -6px; }
  .tick.bl { bottom: -6px; left: -6px; } .tick.br { bottom: -6px; right: -6px; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-weight: 500; font-size: 15px; border: 1px solid var(--line-strong); transition: background-color .15s, color .15s, border-color .15s; }
  .btn:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: transparent; }
  .btn-primary { background: var(--accent); color: #06201a; font-weight: 600; border-color: transparent; }
  .btn-primary:hover { background: var(--invert-bg); color: var(--invert-fg); }
  .btn-sm { padding: 8px 14px; font-size: 14px; }

  /* Nav */
  #site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
  .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
  .logo-mark { position: relative; width: 28px; height: 28px; display: grid; place-items: center; padding-right: 3px; background: #121316; color: #f2f1ee; border: 1px solid rgba(242,241,238,.18); border-radius: 6px; font-size: 12px; font-weight: 900; letter-spacing: -0.04em; }
  .logo-mark::after { content: ""; position: absolute; right: 2px; top: 15px; width: 4px; height: 4px; border-radius: 50%; background: #2bb59a; }
  .nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
  .nav-links a { transition: color .15s; } .nav-links a:hover { color: var(--ink); }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
  .icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
  .icon-btn .moon { display: none; }
  :root[data-theme="dark"] .icon-btn .sun { display: none; } :root[data-theme="dark"] .icon-btn .moon { display: block; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }
  .menu-btn { display: none; }
  .mobile-menu { display: none; flex-direction: column; padding: 8px 16px 18px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .mobile-menu.open { display: flex; }

  /* Hero */
  .hero { position: relative; min-height: 100svh; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 110px 0 70px; }
  .spiral { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; }
  .spiral::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 32% at 50% 50%, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 80%),
                linear-gradient(to bottom, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%),
                linear-gradient(to right, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%); }
  .rows { position: absolute; inset: 0; will-change: transform; }
  .row { position: absolute; left: 0; right: 0; height: 190px; }
  .row-top { top: 10%; } .row-bottom { bottom: -1%; }
  .row-track { display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
  .rows .card { position: relative; flex: 0 0 auto; width: 150px; height: 190px; border-radius: 8px; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); outline-offset: -1px;
    box-shadow: 0 10px 40px rgba(0,0,0,.22); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, outline-color .4s; }
  .rows .card.wide { width: 250px; }
  .rows .card:hover { transform: translateY(-8px) scale(1.06); outline-color: var(--accent); box-shadow: 0 18px 60px color-mix(in srgb, var(--accent) 35%, transparent); z-index: 2; }
  .rows .card .ph { position: absolute; inset: -8%; background-size: cover; background-position: center; animation: kb1 18s ease-in-out infinite alternate; will-change: transform; }
  @keyframes kb1 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-3%, 2%); } }
  @keyframes kb2 { from { transform: scale(1.12) translate(2%, -2%); } to { transform: scale(1) translate(-1%, 1%); } }
  .hero-center { position: relative; z-index: 5; width: 100%; text-align: center; }
  .wordmark-wrap { position: relative; width: 100%; container-type: inline-size; }
  .wordmark-wrap::before { content: ""; position: absolute; inset: -34% -6%; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
  .wordmark { position: relative; white-space: pre; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 6.5cqw; line-height: 1; letter-spacing: -0.02em; color: var(--ink-strong); }
  @media (max-width: 700px) { .wordmark { font-size: 10.6cqw; } }
  .wm-letter { display: inline-block; will-change: transform, opacity; text-shadow: 0 0 .6vw color-mix(in srgb, var(--bg) 92%, transparent), 0 .25vw 2.4vw color-mix(in srgb, var(--bg) 78%, transparent), 0 .4vw 5vw color-mix(in srgb, var(--bg) 55%, transparent); }
  .hero-sub { position: relative; margin-top: 34px; display: grid; justify-items: center; gap: 22px; padding: 0 16px; }
  .hero-sub::before { content: ""; position: absolute; inset: -30% 10%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 88%, transparent), transparent); }
  .hero-sub p { max-width: 560px; font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); }
  .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 14px; color: var(--muted); }
  .hero-links a { padding: 2px 12px; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
  .hero-links a + a { border-left: 1px solid var(--line); }
  .hero-links a:hover { color: var(--ink); }
  @media (min-width: 761px) { .hero { min-height: max(100vh, 980px); } }
  @media (max-width: 760px) { .hero-links { font-size: 13px; gap: 4px 16px; } .hero-links a { padding: 2px 0; } .hero-links a + a { border-left: 0; } .hero-links a:last-child { display: none; } }
  .hero-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; }

  html[data-intro] .wm-letter,
  html[data-intro] .intro-fade,
  html[data-intro] #site-nav .nav-in > * { opacity: 0; }

  /* Marquee */
  .marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .marquee-track { flex-shrink: 0; min-width: 100%; display: flex; align-items: center; list-style: none; animation: 36s linear infinite marquee-scroll; }
  .marquee-track li { display: flex; align-items: center; gap: 24px; padding: 18px 24px 18px 0; white-space: nowrap; }
  .marquee-track li::after { content: "+"; font-family: var(--font-mono); color: var(--faint); }
  @keyframes marquee-scroll { to { transform: translate(-100%); } }

  /* Sections */
  section.block { position: relative; padding: 90px 0 130px; }
  .sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 64px; }
  .sec-head h2 { font-size: clamp(38px, 5.6vw, 76px); margin-top: 0; }
  .sec-head p { color: var(--muted); font-size: 17px; max-width: 480px; justify-self: end; }

  /* 01 Photographs */
  .photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 48px 22px; }
  .photo { position: relative; cursor: zoom-in; }
  .photo.tall { grid-row: span 2; } .photo.wide { grid-column: span 2; }
  .photo.big { grid-column: span 2; grid-row: span 2; }
  .photo .frame { position: absolute; inset: 0; overflow: hidden; background: var(--bg-sunken); }
  .photo .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .photo:hover .img { transform: scale(1.05); }
  .photo figcaption { position: absolute; left: 0; right: 0; bottom: -28px; display: flex; justify-content: space-between; gap: 14px; }
  .photo figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .photo figcaption span + span { flex-shrink: 0; color: var(--faint); }
  .p1 { background: linear-gradient(160deg, #2bb59a, #0a2a24); }
  .p2 { background: linear-gradient(160deg, #ff8a70, #c08fff); }
  .p3 { background: linear-gradient(160deg, #3a3a3e, #9a9aa3); }
  .p4 { background: linear-gradient(160deg, #ffc14d, #ff6259); }
  .p5 { background: linear-gradient(160deg, #0f2027, #2c5364); }
  .p6 { background: linear-gradient(160deg, #a6e04a, #1f6f5c); }
  .photos-gap { height: 30px; }
  .photo.extra { display: none; }
  .photos.show-all .photo.extra { display: block; }
  .photos-more { display: flex; justify-content: center; margin-top: 70px; }
  [data-more]:not(.show-all) > .more-extra { display: none; }
  .list-more { display: flex; justify-content: center; margin-top: 48px; }

  /* Lightbox */
  .lightbox { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg-sunken) 94%, transparent); backdrop-filter: blur(10px); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
  .lightbox.open { display: grid; }
  .lightbox .lb-img { width: min(90vw, 1100px); height: min(78vh, 760px); background-size: contain; background-repeat: no-repeat; background-position: center; position: relative; }
  .lightbox .hud-label { text-align: center; margin-top: 16px; }

  /* 02 Technical */
  .card .soon { position: absolute; top: 26px; right: 28px; color: var(--accent-ink); }
  .card:hover .soon { color: var(--invert-fg); }
  .post.is-soon { cursor: default; }
  .card.wi-card h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%; font-size: 30px; line-height: 1.1; letter-spacing: 0; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .card { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px; min-height: 270px; display: flex; flex-direction: column; transition: background-color .15s, color .15s; }
  .card:hover { background: var(--invert-bg); color: var(--invert-fg); }
  .card:hover .hud-label, .card:hover p, .card:hover .tags span { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); border-color: color-mix(in srgb, var(--invert-fg) 25%, transparent); }
  .card h3 { font-family: var(--font-display); font-stretch: 110%; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: auto 0 10px; padding-top: 50px; }
  .card p { color: var(--muted); font-size: 15px; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
  .tags span { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
  .card.cta-card { background: var(--accent); color: #06201a; }
  .card.cta-card .hud-label, .card.cta-card p { color: rgba(6,32,26,.72); }
  .card.cta-card:hover { background: var(--invert-bg); }
  .wi-grid.show-all .cta-card { grid-column: 1 / -1; }
  @media (min-width: 961px) { .mv-empty { grid-column: span 2; } }
  .mv-empty h3 { font-family: var(--font-display); }
  .card .arrow { position: absolute; top: 26px; right: 28px; font-size: 22px; transition: transform .2s; }
  .card:hover .arrow { transform: translate(4px, -4px); }

  /* 03 Stories & thoughts */
  .posts { border-top: 1px solid var(--line); }
  .post { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: baseline; padding: 34px 18px; border-bottom: 1px solid var(--line); transition: background-color .15s, color .15s; }
  .post:hover { background: var(--invert-bg); color: var(--invert-fg); }
  .post:hover .hud-label, .post:hover p { color: color-mix(in srgb, var(--invert-fg) 65%, transparent); }
  .post h3 { font-family: var(--font-display); font-stretch: 108%; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
  .post p { font-family: var(--font-serif); font-size: 20px; color: var(--muted); margin-top: 8px; max-width: 640px; line-height: 1.4; }

  /* 04 About */
  .why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .why > div { padding: 40px 32px 0 0; }
  .why > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
  .why h3 { font-family: var(--font-display); font-stretch: 110%; font-size: 28px; font-weight: 700; margin: 14px 0 12px; }
  .why p { color: var(--muted); }
  .about-intro { columns: 2; column-gap: 56px; margin: 0 0 70px; max-width: 1100px; }
  .about-intro p { font-family: var(--font-serif); font-size: 22px; line-height: 1.5; color: var(--ink); margin-bottom: 18px; break-inside: avoid; }
  .about-intro p:first-child::first-letter { font-family: var(--font-display); font-weight: 800; float: left; font-size: 3.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent-ink); }
  .interests { margin-top: 70px; display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 30px; }
  .interests ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
  .interests li { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line-strong); transition: background-color .15s, color .15s; }
  .interests li:hover { background: var(--invert-bg); color: var(--invert-fg); }

  /* Final CTA */
  .final { text-align: center; padding: 150px 0; position: relative; }
  .final h2 { font-size: clamp(60px, 12vw, 170px); font-stretch: 125%; font-weight: 800; margin: 26px 0 44px; }

  /* Footer */
  footer { border-top: 1px solid var(--line); padding: 64px 0 34px; }
  .foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .foot p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
  .foot ul { list-style: none; display: grid; gap: 10px; font-size: 15px; margin-top: 16px; }
  .foot ul a { color: var(--muted); transition: color .15s; } .foot ul a:hover { color: var(--ink); }
  .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

  /* Reveal on scroll */
  .reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s cubic-bezier(.215,.61,.355,1), transform .9s cubic-bezier(.215,.61,.355,1), filter .9s cubic-bezier(.215,.61,.355,1); }
  .reveal.in { opacity: 1; transform: none; filter: none; }
  .reveal > .tick { transform: scale(0); opacity: 0; transition: transform .35s cubic-bezier(.215,.61,.355,1), opacity .35s; }
  .reveal.in > .tick { transform: scale(1); opacity: 1; }
  .draw-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.25,.46,.45,.94); }
  .draw-rule.in { transform: scaleX(1); }
  .topic-bar { position: sticky; top: 64px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; margin: 0 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .topic-bar::before, .topic-bar::after { content: ""; position: absolute; top: -1px; bottom: -1px; width: 24px; background: inherit; border: inherit; border-left: 0; border-right: 0; }
  .topic-bar::before { right: 100%; } .topic-bar::after { left: 100%; }
  .topic-bar .tb-n, .topic-bar .tb-s, .topic-bar .tb-tag { color: var(--faint); }
  .topic-bar .tb-s { margin: 0 8px; }
  .topic-bar { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s cubic-bezier(.215,.61,.355,1) .15s, transform .9s cubic-bezier(.215,.61,.355,1) .15s, filter .9s cubic-bezier(.215,.61,.355,1) .15s; }
  .topic-bar.in { opacity: 1; transform: none; filter: none; }
  .topic-bar.in.done { transition: none; }
  @media (max-width: 760px) { .topic-bar .tb-tag { display: none; } .topic-bar { margin-bottom: 40px; } .topic-bar::before, .topic-bar::after { width: 16px; } .photo figcaption span + span { display: none; } .photo figcaption span { max-width: 100%; } }


  /* ---------- Right-edge scroll ruler ---------- */
  .rail { position: fixed; top: 0; bottom: 0; right: 0; width: 60px; z-index: 55; cursor: crosshair; overflow: hidden; opacity: 0; transition: opacity .6s; }
  .rail.on { opacity: 1; }
  .rail-frost { position: absolute; inset: 0; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); background: color-mix(in srgb, var(--bg) 55%, transparent);
    -webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.1) 85%, transparent);
            mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.1) 85%, transparent); }
  .rail-ticks { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
  .rail-ticks i { position: absolute; right: 0; height: 1px; background: var(--ink); transform-origin: right center; }
  .rail-ticks b { position: absolute; right: 24px; transform: translateY(-50%); font: 500 9px/1 var(--font-mono); letter-spacing: .08em; color: var(--ink); }
  .rail-needle { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform, opacity; }
  .rail-needle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
  .rail-read { position: absolute; left: 2px; top: 4px; font: 500 9px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent-ink); display: flex; white-space: nowrap; }
  .rail-dig { display: inline-block; height: 1em; overflow: hidden; } .rail-dig span { display: block; height: 1em; transition: transform .25s cubic-bezier(.215,.61,.355,1); }
  @media (max-width: 1100px), (hover: none) { .rail { display: none; } }
  @media (min-width: 1101px) { #site-nav .nav-in { padding-right: 70px; } }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    .reveal > .tick, .draw-rule, .topic-bar { transform: none; opacity: 1; filter: none; transition: none; }
    .rows .card .ph { animation: none; } .rows .card { transition: none; }
    .marquee-track { animation: none; }
  }

  @media (max-width: 1100px) {
    .nav-links { display: none; }
    .menu-btn { display: grid; }
  }
  @media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .photos { grid-template-columns: repeat(2, 1fr); }
    .sec-head { grid-template-columns: 1fr; }
    .sec-head p { justify-self: start; }
    .post { grid-template-columns: 1fr; }
    .post .kind { display: none; }
  }
  @media (max-width: 760px) {
    .nav-links, .nav-right .btn { display: none; }
    .menu-btn { display: grid; }
    .wrap { padding: 0 16px; }
    section.block { padding: 90px 0; }
    .grid, .why { grid-template-columns: 1fr; }
    .about-intro { columns: 1; }
    .about-intro p { font-size: 19px; }
    .photos { grid-auto-rows: 170px; gap: 44px 16px; }
    .post { grid-template-columns: 1fr; gap: 6px; padding: 26px 8px; }
    .why > div, .why > div + div { padding: 30px 0 0; border-left: none; }
    .why > div + div { border-top: 1px solid var(--line); margin-top: 30px; }
    .foot { grid-template-columns: 1fr; }
    .hero-foot { display: none; }
    .row { height: 130px; } .row-top { top: 12%; } .row-bottom { bottom: 1%; } .rows .card { width: 100px; height: 126px; } .rows .card.wide { width: 160px; }
  }
  /* Language switch + Malayalam typography */
  .lang-switch { display: inline-flex; border: 1px solid var(--line); }
  .lang-switch button { font: 600 12.5px var(--font-body, "Inter"), system-ui, sans-serif; letter-spacing: .02em; color: var(--muted); background: none; border: 0; padding: 0 10px; height: 38px; cursor: pointer; transition: background-color .15s, color .15s; }
  .lang-switch button[lang="ml"] { font-family: "Anek Malayalam", "Inter", sans-serif; font-size: 13px; letter-spacing: 0; }
  .lang-switch button + button { border-left: 1px solid var(--line); }
  .lang-switch button:hover { color: var(--ink); }
  .lang-switch button[aria-pressed="true"] { background: var(--accent); color: #06201a; }
  @media (max-width: 520px) { .lang-switch button { padding: 0 8px; } }
  .lang-switch .ls { display: none; }
  @media (max-width: 1240px) { .lang-switch .lf { display: none; } .lang-switch .ls { display: inline; } }
  html[lang="ml"] body :is(h2, h3, p, a, li, button, span, div) { font-family: "Anek Malayalam", "Noto Sans Malayalam", sans-serif; }
  html[lang="ml"] .hud-label, html[lang="ml"] .hud-label * { letter-spacing: .02em; text-transform: none; font-size: .8125rem; }
  html[lang="ml"] .display { font-stretch: normal; letter-spacing: 0; line-height: 1.2; }
  html[lang="ml"] .serif { font-style: normal; }
  html[lang="ml"] .about-intro p:first-child::first-letter { float: none; font: inherit; color: inherit; padding: 0; margin: 0; }
  html[lang="ml"] .wordmark, html[lang="ml"] .wm-letter, html[lang="ml"] .logo { font-family: var(--font-display); }
  .logo, .nav-links a, .nav-right .btn { white-space: nowrap; }
  html[data-lang] .nav-links { gap: 18px; }
  html[lang="ml"] .nav-links { gap: 14px; } html[lang="ml"] .nav-links a { font-size: 12.5px; }
  html[lang="ml"] .nav-right .btn-sm { padding-left: 14px; padding-right: 14px; }
  @media (max-width: 1320px) { html[data-lang] .nav-links { display: none; } html[data-lang] .menu-btn { display: grid; } }
  html[data-lang] .lang-switch .lf { display: none; } html[data-lang] .lang-switch .ls { display: inline; }
  html[data-lang] .nav-links a { font-size: 13.5px; }
  @media (max-width: 430px) { #site-nav .logo { font-size: 0; gap: 0; } }

/* Collection pages and homepage previews */
.collection-page main { padding-top: 80px; min-height: 65vh; }
.collection-page .block { padding-top: 32px; }
.collection-page .topic-bar { position: relative; top: auto; }
.collection-page .sec-head { grid-template-columns: 1fr; gap: 24px; }
.collection-page .sec-head p { max-width: 720px; }
.collection-page .sec-head h1 { font-size: clamp(42px, 6vw, 84px); }
.collection-page .photos .extra { display: block; }
.collection-back { display: inline-block; margin-bottom: 30px; }
.section-link { margin-top: 32px; }
a[aria-current="page"] { color: var(--accent-ink); }
.photo { cursor: zoom-in; }
.photo:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; }
@media (max-width: 760px) { .collection-page main { padding-top: 72px; } }

/* Longer personal section names need room beside the language controls. */
@media (max-width: 1700px) {
  #site-nav .nav-links { display: none; }
  #site-nav .menu-btn { display: grid; }
}
@media (min-width: 1701px) {
  #site-nav .nav-in { max-width: 1800px; }
  #site-nav .nav-links { gap: 18px; font-size: 13px; }
}

/* Left-hand menu with a reversible panel and icon transition. */
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#site-nav .menu-btn { width: 40px; height: 44px; border: 0; border-radius: 8px; background: transparent; }
#site-nav .menu-btn:hover { background: var(--line); }
#site-nav .menu-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.menu-icon { position: relative; display: block; width: 20px; height: 16px; }
.menu-icon span { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 280ms ease, opacity 180ms ease; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 7px; }
.menu-icon span:nth-child(3) { top: 14px; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Frosted floating menu with a gentle tray reveal. */
#site-nav .mobile-menu {
  position: absolute; top: 72px;
  left: max(16px, calc((100% - 1240px) / 2 + 24px));
  display: block; width: min(330px, calc(100vw - 32px));
  padding: 8px; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--bg-raised) 68%, transparent);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  box-shadow: 0 18px 55px #00000024, inset 0 1px 0 #ffffff24;
  overflow: hidden; isolation: isolate;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px) scale(.975); transform-origin: 24px top;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.22,1,.36,1), visibility 0s 300ms;
}
#site-nav .mobile-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.22,1,.36,1), visibility 0s;
}
/* Two softly defocused lights move independently behind the navigation. */
#site-nav .mobile-menu::before, #site-nav .mobile-menu::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 200px; height: 200px; border-radius: 50%; filter: blur(36px);
  animation: menu-bokeh 16s ease-in-out infinite alternate;
  animation-play-state: paused;
}
#site-nav .mobile-menu::before {
  top: -65px; right: -75px;
  background: radial-gradient(circle, #2bb59a30, #2bb59a00 70%);
}
#site-nav .mobile-menu::after {
  bottom: -75px; left: -70px;
  background: radial-gradient(circle, #b9a1dd29, #b9a1dd00 70%);
  animation-duration: 21s; animation-direction: alternate-reverse;
}
#site-nav .mobile-menu.open::before, #site-nav .mobile-menu.open::after { animation-play-state: running; }
@keyframes menu-bokeh {
  from { transform: translate3d(-15px, -10px, 0) scale(.9); }
  to { transform: translate3d(32px, 48px, 0) scale(1.18); }
}
.menu-content { position: relative; max-height: calc(100svh - 100px); overflow-y: auto; padding: 4px; }
#site-nav .mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px; border: 0; border-radius: 9px;
  font-size: 14px; line-height: 1.5; color: var(--ink);
  opacity: 0; transform: translateY(4px);
  transition: opacity 140ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}
#site-nav .mobile-menu.open a {
  opacity: 1; transform: translateY(0);
  transition: opacity 250ms ease var(--menu-delay, 0ms), transform 300ms ease var(--menu-delay, 0ms), background 180ms ease, color 180ms ease;
}
#site-nav .mobile-menu a::after { content: "↗"; opacity: 0; transform: translate(-3px, 3px); transition: opacity 180ms ease, transform 180ms ease; }
#site-nav .mobile-menu a:hover, #site-nav .mobile-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent-ink); }
#site-nav .mobile-menu a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
#site-nav .mobile-menu a:hover::after, #site-nav .mobile-menu a:focus-visible::after { opacity: .8; transform: translate(0, 0); }
@media (max-width: 760px) { .nav-brand { gap: 6px; } .nav-in { gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
  #site-nav .mobile-menu, #site-nav .mobile-menu a, #site-nav .mobile-menu a::after, .menu-icon span { transition: none; }
  #site-nav .mobile-menu::before, #site-nav .mobile-menu::after { animation: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #site-nav .mobile-menu { background: var(--bg-raised); }
}

/* Browsing, feature story, and mobile finishing touches. */
[hidden] { display: none !important; }
.photo img.img { width: 100%; height: 100%; object-fit: cover; }
.photo-rights { margin: -20px 0 36px; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.photo-rights a { margin-left: .5em; text-underline-offset: .2em; text-decoration: underline; }
.featured-story { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 40px; }
.feature-copy h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); letter-spacing: -.035em; line-height: 1.08; margin: 20px 0; }
.feature-copy > p:not(.hud-label) { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.feature-image { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.feature-image:hover img { transform: scale(1.025); }
.collection-tools { margin: -24px 0 40px; }
.collection-search { display: grid; gap: 10px; color: var(--muted); font-size: 13px; max-width: 460px; }
.collection-search input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); color: var(--ink); padding: 12px 14px; font: inherit; font-size: 16px; }
.collection-search input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.collection-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-chip { padding: 10px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; transition: background 180ms ease, color 180ms ease; }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: #06201a; }
.filter-chip:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.filter-status { font-size: 14px; color: var(--muted); margin-top: 16px; }
.filter-status:empty { display: none; }
.lb-close { position: absolute; right: 20px; top: 16px; width: 44px; height: 44px; font-size: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.lightbox .lb-img { touch-action: pan-y; }
.lightbox .lb-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
@media (max-width: 760px) {
  .featured-story { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 8px; }
  .feature-image { order: -1; aspect-ratio: 16/10; }
  .collection-tools { margin-top: -20px; }
  .collection-page .sec-head { margin-bottom: 44px; }
  .topic-bar { gap: 12px; } .topic-bar .tb-tag { display: none; }
  .hero-sub .hud-label { line-height: 1.7; }
  .lang-switch button { min-width: 36px; min-height: 44px; }
  .lightbox { padding: 12px; }
  .lightbox .lb-img { width: 94vw; height: 74svh; }
  .lightbox .hud-label { max-width: 90vw; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .feature-image img, .filter-chip { transition: none; } }
.lb-prev, .lb-next { position: absolute; bottom: 12px; width: 48px; height: 44px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); font-size: 22px; }
.lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
.movie-art { margin: 0 0 22px; border-radius: 8px; overflow: hidden; background: var(--bg-sunken); }
.movie-art img { display: block; width: 100%; height: 280px; object-fit: contain; }
@media (max-width: 760px) { .movie-art img { height: 240px; } }

/* Beyond the Stack: keep the longer title within the mobile viewport. */
.wordmark { font-size: min(6cqw, 112px); }
@media (max-width: 700px) { .wordmark { font-size: 7cqw; } }
.hero-sub .hero-author { font-size: 13px; letter-spacing: .06em; color: var(--accent-ink); margin: 0; }
