/* ==========================================================================
   Helena Starowieyska · Lighting Designer
   ========================================================================== */

/* Fonts (self-hosted, latin + latin-ext for Polish) */
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-300-latin.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";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-300-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    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";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-300i-latin.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";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-300i-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-latin.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    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;
}

/* Tokens */
:root {
  --bg: #f6f3ee;
  --bg-raised: #fbf9f5;
  --ink: #17150f;
  --ink-soft: #3d3930;
  --muted: #6d675c;
  --line: #e2dccf;
  --line-strong: #cfc7b7;
  --accent: #96681f;
  --glow: 214 160 84;
  --glow-strength: 0.22;
  --header-bg: rgb(246 243 238 / 0.82);
  --shadow: 0 24px 48px -24px rgb(60 44 20 / 0.35);

  --font-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0c;
    --bg-raised: #161411;
    --ink: #ede8df;
    --ink-soft: #c9c2b6;
    --muted: #9a9286;
    --line: #2a2721;
    --line-strong: #3a362e;
    --accent: #d9a65c;
    --glow: 232 172 92;
    --glow-strength: 0.3;
    --header-bg: rgb(15 14 12 / 0.8);
    --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-raised: #161411;
  --ink: #ede8df;
  --ink-soft: #c9c2b6;
  --muted: #9a9286;
  --line: #2a2721;
  --line-strong: #3a362e;
  --accent: #d9a65c;
  --glow: 232 172 92;
  --glow-strength: 0.3;
  --header-bg: rgb(15 14 12 / 0.8);
  --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition:
    background-color 400ms var(--ease),
    color 400ms var(--ease);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
}
p {
  margin: 0 0 1.1em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: rgb(var(--glow) / 0.35);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  position: relative;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang {
  display: flex;
  gap: 2px;
  margin-right: 6px;
}
.lang a,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    border-color 300ms var(--ease),
    background-color 300ms var(--ease),
    opacity 300ms var(--ease);
}
.lang a {
  opacity: 0.55;
}
.lang a:hover,
.lang a[aria-current="true"] {
  opacity: 1;
}
.lang a[aria-current="true"] {
  border-color: var(--line-strong);
}
.lang svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}
.theme-toggle:hover {
  border-color: var(--line-strong);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: block;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 112px) 0 var(--section);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 .line {
  display: block;
}
.hero h1 em {
  font-style: italic;
  padding-left: 0.5em;
}
.hero-tagline {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-role {
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 400ms var(--ease),
    color 400ms var(--ease),
    border-color 400ms var(--ease),
    transform 400ms var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* Hero light: brass pendant, volumetric beam, lit portrait, floor pool */
:root {
  --beam: 0.38;
  --ambient: 0.2;
  --light-blend: normal;
  --grain: 0.06;
  --mote: 0.55;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --beam: 0.52;
    --ambient: 0.26;
    --light-blend: screen;
    --grain: 0.09;
    --mote: 0.85;
  }
}
:root[data-theme="dark"] {
  --beam: 0.52;
  --ambient: 0.26;
  --light-blend: screen;
  --grain: 0.09;
  --mote: 0.85;
}
.hero-visual {
  position: relative;
  padding-top: 150px;
}
.light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.light > span {
  position: absolute;
  left: 50%;
  display: block;
}
.light-ambient {
  top: -180px;
  width: 1100px;
  height: 1100px;
  margin-left: -550px;
  background: radial-gradient(
    circle var(--amb-r, 540px) at 50% 24%,
    rgb(var(--glow) / calc(var(--ambient) * 1.4)) 0%,
    rgb(var(--glow) / var(--ambient)) 14%,
    rgb(var(--glow) / calc(var(--ambient) * 0.45)) 40%,
    rgb(var(--glow) / calc(var(--ambient) * 0.12)) 68%,
    rgb(var(--glow) / 0) 100%
  );
  mix-blend-mode: var(--light-blend);
}
.light-grain {
  top: -180px;
  width: 1100px;
  height: 1100px;
  margin-left: -550px;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-image: radial-gradient(circle var(--amb-r, 540px) at 50% 24%, #000 0%, rgb(0 0 0 / 0.6) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--amb-r, 540px) at 50% 24%, #000 0%, rgb(0 0 0 / 0.6) 45%, transparent 100%);
}
/* Beam: blurred wrapper, clipped children (filter on parent keeps edges soft) */
.light-beam {
  top: 62px;
  bottom: -40px;
  width: min(760px, 185%);
  transform: translateX(-50%);
  filter: blur(9px);
  mix-blend-mode: var(--light-blend);
}
.light-beam::before,
.light-beam::after {
  clip-path: polygon(49.5% 0, 50.5% 0, 66% 100%, 34% 100%);
  background: linear-gradient(
    to bottom,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 1))  0%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.78))  5%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.56))  12%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.36))  22%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.21))  36%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.11))  54%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0.05))  74%,
    rgb(255 244 222 / calc(var(--beam) * 1.5 * 0))  100%
  );
}
.light-beam::before {
  clip-path: polygon(48.8% 0, 51.2% 0, 100% 100%, 0 100%);
  background: linear-gradient(
    to bottom,
    rgb(255 222 168 / calc(var(--beam) * 1))  0%,
    rgb(255 222 168 / calc(var(--beam) * 0.78))  5%,
    rgb(255 222 168 / calc(var(--beam) * 0.56))  12%,
    rgb(255 222 168 / calc(var(--beam) * 0.36))  22%,
    rgb(255 222 168 / calc(var(--beam) * 0.21))  36%,
    rgb(255 222 168 / calc(var(--beam) * 0.11))  54%,
    rgb(255 222 168 / calc(var(--beam) * 0.05))  74%,
    rgb(255 222 168 / calc(var(--beam) * 0))  100%
  );
}
.light-beam::after {
  clip-path: polygon(49.4% 0, 50.6% 0, 72% 100%, 28% 100%);
  background: linear-gradient(
    to bottom,
    rgb(255 240 210 / calc(var(--beam) * 1.5)) 0%,
    rgb(255 226 170 / calc(var(--beam) * 0.5)) 45%,
    rgb(255 226 170 / 0) 90%
  );
}
.light-pool {
  bottom: -58px;
  width: min(680px, 160%);
  height: 140px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgb(var(--glow) / calc(var(--beam) * 0.9)) 0%,
    rgb(var(--glow) / calc(var(--beam) * 0.45)) 30%,
    rgb(var(--glow) / calc(var(--beam) * 0.12)) 55%,
    rgb(var(--glow) / 0) 72%
  );
  filter: blur(6px);
  mix-blend-mode: var(--light-blend);
}
.light-cable {
  top: -280px;
  width: 1px;
  height: 302px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 45%, #6a5a44);
}
.light-fixture {
  top: 20px;
  width: 30px;
  height: 42px;
  margin-left: -15px;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(
    90deg,
    #241d14 0%,
    #5e4729 22%,
    #c09257 46%,
    #8a6a3c 58%,
    #3b2f1f 82%,
    #1d1710 100%
  );
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 6px 14px -6px rgb(0 0 0 / 0.5);
}
.light-fixture::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 5px;
  margin-left: -4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #3b2f1f, #a07a46, #3b2f1f);
}
.light-fixture::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -2px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffffff 0%, #fff4dc 40%, #ffd28a 75%, #e9a24e 100%);
  box-shadow:
    0 0 2px 1px #fff,
    0 0 8px 3px rgb(255 240 214 / 0.95),
    0 0 24px 9px rgb(255 214 150 / 0.55),
    0 0 64px 22px rgb(var(--glow) / 0.22);
}
.light-bloom {
  top: 30px;
  width: 180px;
  height: 120px;
  margin-left: -90px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 35%,
    rgb(255 246 228 / 0.7) 0%,
    rgb(255 226 178 / 0.32) 18%,
    rgb(var(--glow) / 0.12) 42%,
    rgb(var(--glow) / 0) 70%
  );
  mix-blend-mode: var(--light-blend);
}
.portrait {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  /* lit from above: tight contact shadow plus a long soft shadow falling downward */
  box-shadow:
    0 2px 4px rgb(30 20 8 / 0.12),
    0 34px 60px -22px rgb(var(--shadow-ink) / 0.5);
}
/* Light falling on the photo: warm top wash, darker base, grazing top edge */
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 2px;
}
.portrait::after {
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% -6%, rgb(255 222 165 / 0.55), rgb(255 222 165 / 0) 72%),
    linear-gradient(to bottom, rgb(20 14 8 / 0) 55%, rgb(20 14 8 / 0.28));
  mix-blend-mode: soft-light;
}
.portrait::before {
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgb(255 232 190 / 0.95), transparent);
}
.motes {
  position: absolute;
  top: 62px;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  width: min(760px, 185%);
  transform: translateX(-50%);
  clip-path: polygon(48.8% 0, 51.2% 0, 100% 100%, 0 100%);
  pointer-events: none;
  /* dust only glints where the light is strong */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.75) 30%, rgb(0 0 0 / 0.3) 65%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 0.75) 30%, rgb(0 0 0 / 0.3) 65%, transparent 92%);
}
.motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(255 238 205);
  box-shadow: 0 0 6px 1px rgb(var(--glow) / 0.7);
  opacity: 0;
}
.motes i:nth-child(1) { left: 49%; top: 12%; --dx: 10px; animation-delay: 0s; }
.motes i:nth-child(2) { left: 44%; top: 30%; --dx: -14px; animation-delay: -3s; width: 2px; height: 2px; }
.motes i:nth-child(3) { left: 55%; top: 26%; --dx: 8px; animation-delay: -6s; }
.motes i:nth-child(4) { left: 38%; top: 52%; --dx: 16px; animation-delay: -9s; width: 2px; height: 2px; }
.motes i:nth-child(5) { left: 61%; top: 48%; --dx: -10px; animation-delay: -1.5s; }
.motes i:nth-child(6) { left: 47%; top: 64%; --dx: 12px; animation-delay: -4.5s; width: 4px; height: 4px; }
.motes i:nth-child(7) { left: 30%; top: 78%; --dx: -8px; animation-delay: -7.5s; width: 2px; height: 2px; }
.motes i:nth-child(8) { left: 68%; top: 72%; --dx: 14px; animation-delay: -10.5s; }
.motes i:nth-child(9) { left: 52%; top: 40%; --dx: -12px; animation-delay: -12s; width: 2px; height: 2px; }
.motes i:nth-child(10) { left: 24%; top: 90%; --dx: 10px; animation-delay: -2s; }
.motes i:nth-child(11) { left: 74%; top: 86%; --dx: -16px; animation-delay: -5s; width: 2px; height: 2px; }
.motes i:nth-child(12) { left: 57%; top: 82%; --dx: 6px; animation-delay: -8s; }

/* Load sequence: the lamp switches on, light warms up, then breathes */
@media (prefers-reduced-motion: no-preference) {
  .light-fixture::after,
  .light-bloom {
    animation: switch-on 1100ms ease-out 200ms both;
  }
  .light-beam,
  .light-pool,
  .light-ambient,
  .portrait::after {
    animation:
      warm-up 1800ms var(--ease) 700ms both,
      breathe 9s ease-in-out 2.6s infinite;
  }
  .motes i {
    animation: mote 14s linear infinite;
  }
  .reveal {
    animation: rise 900ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 100ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .motes {
    display: none;
  }
}
@keyframes warm-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
}
@keyframes switch-on {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  26% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  48% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes mote {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15%,
  80% {
    opacity: var(--mote);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 10px), -70px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}


.pull-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}









/* Contact form fields */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: border-color 300ms var(--ease);
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-bottom-color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.turnstile {
  min-height: 65px;
}
.form-status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  margin: 0;
  font-size: 0.95rem;
}
.form-status[data-state="success"] {
  color: var(--accent);
}
.form-status[data-state="error"] {
  color: #b4442f;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
}
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
    padding-top: 112px;
  }
  .light-cable {
    top: -220px;
    height: 242px;
  }
  .light-ambient,
  .light-grain {
    --amb-r: 380px;
    top: -150px;
    width: 760px;
    height: 760px;
    margin-left: -380px;
  }
  .portrait {
    max-width: 300px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .header-inner {
    height: 64px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .hero h1 em {
    padding-left: 0;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Tightened content (v1.1) */
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.icon-link:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.icon-link svg {
  width: 18px;
  height: 18px;
}


.footer-links {
  display: flex;
  gap: 22px;
}

/* About: credentials wall (variant D) */
.about-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-head .pull-quote {
  margin: 0 auto 20px;
  max-width: 22ch;
  font-size: clamp(2.2rem, 3.9vw, 2.9rem);
  line-height: 1.12;
}
.about-intro {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.cred-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 168px;
  padding: 34px 14px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.cred:last-child {
  border-right: 0;
}
.cred-mark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.cred-mark.caps {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cred-mark.lum {
  letter-spacing: 0.08em;
}
.cred-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cred-flag {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  max-width: 1040px;
  margin: clamp(36px, 4vw, 44px) auto 0;
  padding: 0;
  list-style: none;
}
.dot-line li {
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink);
}
.dot-line li.is-scope {
  flex-basis: 100%;
  justify-content: center;
  font-style: italic;
  color: var(--accent);
}
.dot-line li.is-scope + li::before {
  content: none;
}
.dot-line li + li::before {
  content: "·";
  margin-right: 28px;
  color: var(--accent);
}
.about-meta {
  margin: clamp(32px, 4vw, 44px) 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 960px) {
  .cred-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cred {
    border-bottom: 1px solid var(--line);
  }
  .cred:nth-child(2n) {
    border-right: 0;
  }
  .cred.is-partner {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .cred {
    min-height: 140px;
    padding: 32px 10px 24px;
  }
  .cred-mark {
    font-size: 1.35rem;
  }
  .dot-line {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .dot-line li {
    font-size: 1.4rem;
  }
  .dot-line li + li::before {
    content: none;
  }
}

/* Contact: lit panel (variant C). Always dark, the hero pendant returns. */
.contact-lit {
  --bg: #0f0e0c;
  --bg-raised: #161411;
  --ink: #ede8df;
  --ink-soft: #c9c2b6;
  --muted: #9a9286;
  --line: #2a2721;
  --line-strong: #3a362e;
  --accent: #d9a65c;
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  text-align: center;
}
.cl-cable {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 56px;
  background: linear-gradient(transparent, #5a4a35);
}
.cl-fixture {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 26px;
  height: 36px;
  margin-left: -13px;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(90deg, #241d14, #5e4729 22%, #c09257 46%, #8a6a3c 58%, #3b2f1f 82%, #1d1710);
}
.cl-fixture::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -2px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffffff 0%, #fff4dc 40%, #ffd28a 75%, #e9a24e 100%);
  box-shadow:
    0 0 2px 1px #fff,
    0 0 8px 3px rgb(255 240 214 / 0.95),
    0 0 24px 9px rgb(255 214 150 / 0.5),
    0 0 64px 22px rgb(232 172 92 / 0.2);
}
.cl-beam {
  top: 90px;
  left: 50%;
  width: 980px;
  height: 1120px;
  margin-left: -490px;
  filter: blur(9px);
  pointer-events: none;
}
.cl-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(48.8% 0, 51.2% 0, 100% 100%, 0 100%);
  /* longer tail so the light reaches the form, still fading with distance */
  background: linear-gradient(
    to bottom,
    rgb(255 222 168 / 0.52) 0%,
    rgb(255 222 168 / 0.36) 5%,
    rgb(255 222 168 / 0.24) 12%,
    rgb(255 222 168 / 0.15) 22%,
    rgb(255 222 168 / 0.095) 34%,
    rgb(255 222 168 / 0.06) 48%,
    rgb(255 222 168 / 0.035) 64%,
    rgb(255 222 168 / 0.015) 82%,
    rgb(255 222 168 / 0) 100%
  );
}
.cl-inner {
  position: relative;
}
.contact-lit .eyebrow {
  margin-bottom: 18px;
}
.contact-lit .section-title {
  color: #f1ebe1;
}
.cl-intro {
  max-width: 46ch;
  margin: 18px auto 36px;
  color: var(--ink-soft);
}
.cl-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  gap: 22px;
}
.cl-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.cl-links li,
.cl-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cl-links a {
  color: inherit;
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.cl-links a:hover {
  color: var(--ink);
}
.cl-links svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .contact-lit {
    padding: 128px 0 56px;
  }
}
.cl-form textarea {
  min-height: 104px;
}
.cl-form .field input,
.cl-form .field textarea {
  padding: 10px 0;
}
.contact-lit .cl-links {
  margin-top: 28px;
}
/* Footer continues the dark finale */
.contact-lit + .site-footer,
main:has(> .contact-lit:last-child) + .site-footer {
  --ink: #ede8df;
  --muted: #9a9286;
  --line: #2a2721;
  background: #0f0e0c;
  color: var(--muted);
}

/* Header socials (first in the tools group) */
.social {
  display: flex;
  gap: 2px;
  margin-right: 6px;
}
@media (max-width: 600px) {
  .header-inner {
    gap: 12px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .header-tools {
    gap: 0;
  }
  .social,
  .lang {
    margin-right: 0;
  }
  .lang a,
  .theme-toggle,
  .icon-link {
    width: 32px;
    height: 32px;
  }
}

/* Light physics: wall scallop, occlusion shadow, warm-up colour, colour tokens */
:root {
  --shadow-ink: 60 40 18;
  --occlusion: 70 48 22;
  --occlusion-a: 0.16;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow-ink: 0 0 0;
    --occlusion: 0 0 0;
    --occlusion-a: 0.55;
  }
}
:root[data-theme="dark"] {
  --shadow-ink: 0 0 0;
  --occlusion: 0 0 0;
  --occlusion-a: 0.55;
}
/* Scallop: the hyperbolic wash a downlight throws on a nearby wall */
.light-scallop,
.cl-scallop {
  position: absolute;
  left: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 70% at 50% 0%,
    rgb(255 236 200 / calc(var(--beam) * 1.3)) 0%,
    rgb(var(--glow) / calc(var(--beam) * 0.55)) 28%,
    rgb(var(--glow) / calc(var(--beam) * 0.16)) 55%,
    rgb(var(--glow) / 0) 80%
  );
  -webkit-mask-image: radial-gradient(ellipse 52% 150% at 50% 100%, #000 60%, transparent 66%);
  mask-image: radial-gradient(ellipse 52% 150% at 50% 100%, #000 60%, transparent 66%);
  filter: blur(4px);
  mix-blend-mode: var(--light-blend);
}
.light > .light-scallop {
  top: 58px;
  width: 560px;
  height: 520px;
  margin-left: -280px;
}
/* The portrait blocks the beam: darker core inside the floor pool */
.light > .light-occlusion {
  bottom: -34px;
  width: min(380px, 90%);
  height: 70px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(var(--occlusion) / var(--occlusion-a)) 0%, rgb(var(--occlusion) / 0) 70%);
  filter: blur(8px);
}
.cl-scallop {
  --beam: 0.5;
  --glow: 232 172 92;
  --light-blend: screen;
  top: 92px;
  width: 560px;
  height: 520px;
  margin-left: -280px;
}
@media (prefers-reduced-motion: no-preference) {
  .light-fixture::after {
    animation: lamp-heat 1600ms ease-out 200ms both;
  }
  .light-scallop {
    animation:
      warm-up 1800ms var(--ease) 700ms both,
      breathe 9s ease-in-out 2.6s infinite;
  }
}
/* Filament heats from orange to warm white */
@keyframes lamp-heat {
  0% {
    opacity: 0;
    filter: hue-rotate(-12deg) saturate(2.2) brightness(0.6);
  }
  20% {
    opacity: 0.85;
  }
  28% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
    filter: hue-rotate(-8deg) saturate(1.8) brightness(0.85);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@media (max-width: 960px) {
  .light > .light-scallop {
    width: 420px;
    height: 400px;
    margin-left: -210px;
  }
}

/* Review fixes (2026-10-04) */
.section-title em {
  white-space: nowrap;
}
.cl-links a,
.footer-links a {
  min-height: 44px;
  padding: 0 4px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
}
.cred-flag {
  font-size: 0.7rem;
}
@media (max-width: 600px) {
  .hero {
    padding-top: 8px;
  }
  .hero-visual {
    padding-top: 92px;
  }
  .portrait {
    max-width: 230px;
  }
  .hero .eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.7rem;
  }
  .light-cable {
    top: -240px;
    height: 262px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}

/* Light landing on the contact form */
.cl-form {
  position: relative;
}
.cl-form::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -40px;
  width: 140%;
  height: calc(100% + 80px);
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 45% at 50% 30%, rgb(232 172 92 / 0.07), rgb(232 172 92 / 0.025) 55%, rgb(232 172 92 / 0) 100%);
  pointer-events: none;
}
.cl-inner {
  isolation: isolate;
}
/* Button icons */
.btn .btn-icon {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 400ms var(--ease);
}
.btn:hover .icon-arrow {
  transform: translateX(3px);
}
.btn:hover .icon-send {
  transform: translate(2px, -2px);
}

/* HTML sitemap page */
.sitemap-page {
  border-top: 0;
  min-height: 70vh;
}
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}
.sitemap-title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-list a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
}
.sitemap-list a:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .sitemap-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
