/* Cloudlight Creative Studio
   Overcast-daylight palette: walnut-plum ink on a rosy cloud ground, amber light as the only warm accent. */

:root {
  color-scheme: light;
  --bg: #F1E8E3;
  --surface: #FBF7F4;
  --surface-2: #E6D8D1;
  --field: #FFFFFF;
  --ink: #21151A;
  --ink-soft: #4E3C44;
  --accent: #8A3F12;
  --glow: #E0A04A;
  --line: #7A666D;
  --hair: #CDBAB2;
  --night: #1F1418;
  --night-ink: #F7EEE9;
  --night-soft: #DCCBCF;
  --shadow: 0 28px 60px -32px rgba(33, 21, 26, .55);

  --font-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.9rem, .87rem + .12vw, .97rem);
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-1: clamp(1.3rem, 1.16rem + .55vw, 1.6rem);
  --step-2: clamp(1.65rem, 1.36rem + 1.2vw, 2.35rem);
  --step-3: clamp(2.1rem, 1.55rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.45rem, 1.5rem + 3.7vw, 4.6rem);

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --max: 78rem;
  --header-h: 4.5rem;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-wipe: cubic-bezier(.75, 0, .2, 1);

  --chatbot-color: #8A3F12;
  --chatbot-on-color: #FFFFFF;
  --chatbot-background: #FBF7F4;
  --chatbot-surface: #E6D8D1;
  --chatbot-text: #21151A;
  --chatbot-font: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --chatbot-radius: 14px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #170F13;
  --surface: #23181D;
  --surface-2: #2F2228;
  --field: #170F13;
  --ink: #F6EDE8;
  --ink-soft: #D2C1C7;
  --accent: #F0B465;
  --glow: #C9873A;
  --line: #9A858D;
  --hair: #4A3940;
  --night: #33242B;
  --night-ink: #F7EEE9;
  --night-soft: #E2D3D7;
  --shadow: 0 28px 60px -30px rgba(0, 0, 0, .8);

  --chatbot-color: #F0B465;
  --chatbot-on-color: #1F1418;
  --chatbot-background: #23181D;
  --chatbot-surface: #2F2228;
  --chatbot-text: #F6EDE8;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--accent) var(--surface-2);
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--surface-2); }
html::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 12px; border: 3px solid var(--surface-2); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
/* Environmental layers: paper grain and drifting cloud light, always behind content. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
}
body::after {
  inset: -20%;
  background:
    radial-gradient(40% 32% at 18% 22%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%),
    radial-gradient(36% 30% at 84% 68%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="ready"] body::after { animation: cloud-drift 60s ease-in-out infinite alternate; }
}
@keyframes cloud-drift {
  from { transform: translate3d(-3%, -2%, 0); }
  to { transform: translate3d(4%, 3%, 0); }
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 36em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--bg); font-weight: 600; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--line { background: transparent; color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(33, 21, 26, .6); }
.btn:active { transform: translateY(0); }
.btn--line:hover { background: var(--surface); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: transparent;
  color: var(--ink-soft);
  border: 2px dashed var(--line);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}
.link { font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.link:hover { text-decoration-thickness: 3.5px; }

/* Preview note */
.preview-note {
  max-width: none;
  margin: 0;
  padding: .55rem var(--gutter);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.45;
  text-align: center;
  border-bottom: 1px solid var(--hair);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-compact { border-bottom-color: var(--hair); box-shadow: 0 10px 30px -24px rgba(33, 21, 26, .6); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  height: var(--header-h);
  margin-inline: auto;
  transition: height .3s var(--ease);
}
.site-header.is-compact .site-header__inner { height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 2.1rem; height: 2.1rem; color: var(--accent); flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; display: flex; flex-direction: column; }
.brand__sub { font-family: var(--font-text); font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-soft); margin-top: .2rem; }

.menu-toggle, .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem .9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 .95rem/1 var(--font-text);
  cursor: pointer;
}
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu-toggle__bars { position: relative; width: 1.1rem; height: 2px; background: currentColor; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-menu {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  display: grid;
  gap: .25rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.site-menu[hidden] { display: none; }
.site-menu a { display: block; padding: .8rem 0; font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; border-bottom: 1px solid var(--hair); }
.site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-menu a:hover { text-decoration: underline; }

@media (max-width: 34rem) {
  .theme-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-toggle { padding-inline: .7rem; }
  .brand__sub { display: none; }
}

@media (min-width: 60rem) {
  .menu-toggle { display: none; }
  #site-menu, #site-menu[hidden] {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 1.6vw, 1.6rem);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-menu a { padding: .35rem 0; font: 500 1rem/1.2 var(--font-text); border: 0; text-decoration: none; }
  .site-menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
  .site-menu a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; text-decoration-color: var(--accent); }
  .site-menu a.site-menu__cta { padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; }
  .site-nav { margin-right: .5rem; }
}

/* Shared image frame: reserves space with a palette tone, never shows a broken image. */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--glow) 30%, var(--surface-2)));
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-failed { display: none; }
.ph.ph--keep.is-failed { display: block; }
.ph.is-failed img { visibility: hidden; }

/* Reveals: fail open, only hidden once motion is confirmed ready. */
html[data-motion="ready"] [data-reveal] {
  transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path 1.1s var(--ease-wipe);
}
html[data-motion="ready"] [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(1.6rem); }
html[data-motion="ready"] [data-reveal="slide"]:not(.is-visible) { transform: translateX(-2.2rem); }
html[data-motion="ready"] [data-reveal="mask"]:not(.is-visible) { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ============ HOME ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  min-height: min(86svh, 56rem);
  padding: 0 var(--gutter) clamp(2rem, 7vh, 4.5rem);
}
.hero__plate-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__plate { position: absolute; inset: -9% 0; will-change: transform; }
.hero__plate img { object-position: 30% 55%; }
.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 12% 18%, rgba(255, 226, 178, .32), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(31, 20, 24, .28));
  mix-blend-mode: soft-light;
}
.hero__copy {
  position: relative;
  z-index: 2;
  grid-column: 7 / span 6;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3.3vw, 4.3rem); margin-bottom: .35em; }
.hero__lede { font-size: var(--step-0); color: var(--ink); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__detail {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: -4.5rem;
  width: clamp(9rem, 16vw, 14.5rem);
  aspect-ratio: 4 / 5;
  border: 6px solid var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.hero__detail img { object-position: 78% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: hero-rise 1.1s .15s var(--ease) both; }
  .hero__plate-wrap { animation: hero-open 1.4s var(--ease-wipe) both; }
  .hero__detail { animation: hero-rise 1.1s .45s var(--ease) both; }
  html[data-motion="ready"] .hero__light { animation: light-pass 18s ease-in-out infinite alternate; }
}
@keyframes hero-rise { from { opacity: 0; translate: 0 2.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-open { from { clip-path: inset(0 0 14% 0); } to { clip-path: inset(0); } }
@keyframes light-pass { from { background-position: 0 0, 0 0; opacity: .85; } to { opacity: 1; background-position: 30vw 6vh, 0 0; } }

@media (max-width: 47.5rem) {
  .hero { display: block; min-height: 0; padding: 0 0 1rem; }
  .hero__plate-wrap { position: relative; height: 56svh; min-height: 18rem; }
  .hero__plate { inset: 0; }
  .hero__copy { margin: -3.5rem var(--gutter) 0; }
  .hero__detail { display: none; }
}

.pov { padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 5.5rem); }
.pov__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pov__title { grid-column: 4 / span 4; font-size: var(--step-3); }
.pov__body { grid-column: 8 / span 5; }
.pov__body p:first-child { font-size: var(--step-1); line-height: 1.45; }
@media (max-width: 60rem) {
  .pov__title { grid-column: 1 / -1; }
  .pov__body { grid-column: 1 / -1; }
}
@media (max-width: 47.5rem) { .pov { padding-top: 3rem; } }

/* Signature: the exposure sequence. Three services, one light passing across the frame. */
.exposure { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); background: var(--surface-2); border-block: 1px solid var(--hair); }
.exposure__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.exposure__head h2 { margin: 0; }
@media (max-width: 47.5rem) { .exposure__head { grid-template-columns: 1fr; } }

.exposure__sticky { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; gap: 1.5rem; }
.exposure__stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.shot { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.meter { display: none; }
.exposure__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.panel {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 4px solid var(--accent);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
}
.panel h3 { font-size: var(--step-2); margin-bottom: .4em; }
.panel__scope { font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; padding-top: .75rem; border-top: 1px solid var(--hair); }
.exposure__more { margin-top: 2rem; }

.exposure__track[data-capture-active="true"] { height: 320vh; }
.exposure__track[data-capture-active="true"] .exposure__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: calc(4rem + 1.25rem) 0 1.5rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
[data-capture-active="true"] .exposure__frame { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; height: 100%; max-height: 40rem; min-height: 0; }
[data-capture-active="true"] .exposure__stage { display: block; position: relative; min-height: 0; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
[data-capture-active="true"] .shot {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1s var(--ease-wipe);
}
[data-capture-active="true"] .shot img { filter: brightness(calc(.84 + var(--capture-progress, 1) * .18)) saturate(calc(.9 + var(--capture-progress, 1) * .15)); }
[data-capture-active="true"] .shot--0,
[data-capture-active="true"] [data-state="1"] .shot--1,
[data-capture-active="true"] [data-state="2"] .shot--1,
[data-capture-active="true"] [data-state="2"] .shot--2 { clip-path: inset(0); }
[data-capture-active="true"] .shot--1 img { object-position: 60% 60%; }
[data-capture-active="true"] .shot--2 img { object-position: 55% 70%; }
[data-capture-active="true"] .exposure__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 228, 184, .38) 50%, transparent 70%);
  mix-blend-mode: soft-light;
  transform: translateX(calc(var(--capture-progress, 0) * 200% - 100%));
}

[data-capture-active="true"] .meter { display: grid; gap: .6rem; }
.meter__track { display: block; height: 4px; background: var(--hair); border-radius: 4px; overflow: hidden; }
.meter__fill { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--capture-progress, 0)); }
.meter__marks { display: grid; grid-template-columns: repeat(3, 1fr); font-size: var(--step--1); color: var(--ink-soft); }
.meter__marks li:nth-child(2) { text-align: center; }
.meter__marks li:nth-child(3) { text-align: right; }
[data-state="0"] .meter__marks li:nth-child(1),
[data-state="1"] .meter__marks li:nth-child(2),
[data-state="2"] .meter__marks li:nth-child(3) { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }

[data-capture-active="true"] .exposure__panels { grid-template-columns: 1fr; }
[data-capture-active="true"] [data-capture-panel] {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .45s;
}
[data-capture-active="true"] [data-capture-panel][data-active="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

@media (max-width: 47.5rem) {
  .exposure__track[data-capture-active="true"] { height: 300vh; }
  .exposure__track[data-capture-active="true"] .exposure__sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    padding-top: calc(3.75rem + .75rem);
    gap: .9rem;
  }
  [data-capture-active="true"] .exposure__frame { height: auto; grid-template-rows: auto auto; gap: .6rem; }
  [data-capture-active="true"] .exposure__stage { height: 32svh; min-height: 10rem; }
  [data-capture-active="true"] .panel { padding: 1rem 1.1rem; }
  [data-capture-active="true"] .panel h3 { font-size: var(--step-1); }
  [data-capture-active="true"] .panel p { font-size: 1rem; line-height: 1.5; }
}

.steps-preview { padding: clamp(4rem, 9vw, 7rem) 0; }
.steps-preview__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.steps-preview__head h2 { margin: 0; }
.steps-preview__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.steps-preview__list li { display: grid; gap: .35rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps-preview__n { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; color: var(--accent); }
.steps-preview__list strong { font-size: var(--step-1); font-weight: 600; }
.steps-preview__list span:last-child { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 60rem) {
  .steps-preview__list { grid-template-columns: 1fr; gap: 0; }
  .steps-preview__list li { grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-block: 1rem; border-top-width: 1px; }
  .steps-preview__n { grid-row: span 2; }
}

.fit { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.fit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.fit__image { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.fit__image img { object-position: 62% 50%; }
.fit__list { display: grid; gap: .9rem; margin-bottom: 1.75rem; }
.fit__list li { position: relative; padding-left: 1.9rem; font-size: var(--step-1); line-height: 1.35; }
.fit__list li::before { content: ""; position: absolute; left: 0; top: .32em; width: .9rem; height: .9rem; border: 3px solid var(--accent); border-radius: 50%; }
.fit__limit { padding: .9rem 1.1rem; background: var(--surface); border-left: 4px solid var(--ink); font-weight: 500; }
@media (max-width: 47.5rem) {
  .fit__grid { grid-template-columns: 1fr; }
  .fit__image { aspect-ratio: 3 / 2; border-radius: var(--radius); max-height: 18rem; }
}

.close { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--night); color: var(--night-ink); }
.close__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; }
.close__inner h2 { grid-row: span 2; margin: 0; font-size: var(--step-4); }
.close__inner p { color: var(--night-soft); }
.close__inner .btn { justify-self: start; }
.close .btn--light:focus-visible { outline-color: var(--night-ink); }
@media (max-width: 47.5rem) { .close__inner { grid-template-columns: 1fr; } .close__inner h2 { grid-row: auto; } }

/* ============ WORK ============ */
.work-open { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.work-open__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.work-open__copy { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.work-open__lede { font-size: var(--step-1); line-height: 1.45; }
.sheet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.sheet__frame { position: relative; padding: .9rem; background: var(--surface); border: 1px solid var(--hair); }
.sheet__frame:first-child { grid-row: span 2; }
.sheet__frame:first-child img { aspect-ratio: 4 / 5; object-position: 74% 50%; }
.sheet__frame img { aspect-ratio: 3 / 2; height: auto; }
.sheet__frame .ph { background: none; overflow: visible; }
.sheet__frame::before, .sheet__frame::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-color: var(--line);
  border-style: solid;
  pointer-events: none;
}
.sheet__frame::before { top: -.6rem; left: -.6rem; border-width: 2px 0 0 2px; }
.sheet__frame::after { bottom: -.6rem; right: -.6rem; border-width: 0 2px 2px 0; }
.sheet figcaption { padding-top: .75rem; font-size: var(--step--1); color: var(--ink); line-height: 1.45; }
.sheet__id { display: block; font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 60rem) {
  .work-open__grid { grid-template-columns: 1fr; }
  .work-open__copy { position: static; }
}
@media (max-width: 34rem) {
  .sheet { grid-template-columns: 1fr; }
  .sheet__frame:first-child { grid-row: auto; }
  .sheet__frame:first-child img { aspect-ratio: 3 / 2; }
}

.casefile { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--surface-2); border-block: 1px solid var(--hair); }
.casefile__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.casefile__list { margin: 0; }
.casefile__list > div { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.casefile__list > div:last-child { border-bottom: 1px solid var(--line); }
.casefile__list dt { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.casefile__list dd { margin: 0; }
@media (max-width: 47.5rem) {
  .casefile__grid { grid-template-columns: 1fr; }
  .casefile__list > div { grid-template-columns: 1fr; }
}

.work-next { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.work-next__inner { display: grid; justify-items: start; gap: .5rem; }

/* ============ SERVICES ============ */
.ledger { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.ledger__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.ledger__head h1 { margin: 0; }
.ledger__head p { margin: 0; }
.ledger__scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.ledger__table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.ledger__table th, .ledger__table td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.ledger__table tbody tr:last-child > * { border-bottom: 0; }
.ledger__table thead th { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.2; border-bottom: 2px solid var(--ink); }
.ledger__table thead th a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.ledger__table tbody th { width: 11rem; font-weight: 600; font-size: var(--step--1); }
.ledger__table td + td, .ledger__table th + td, .ledger__table td + th, .ledger__table th + th { border-left: 1px solid var(--hair); }
@media (max-width: 47.5rem) { .ledger__head { grid-template-columns: 1fr; } }

.svc { padding: clamp(3rem, 7vw, 5rem) 0; }
.svc__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding-top: 1.75rem; border-top: 3px solid var(--ink); }
.svc__name { position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; font-size: var(--step-3); }
.svc__body > p:first-child { font-size: var(--step-1); line-height: 1.45; }
.svc__body h3 { margin-top: 1.75rem; font-family: var(--font-text); font-size: 1rem; font-weight: 700; }
.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .7rem; height: .4rem; border: solid var(--accent); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
@media (max-width: 47.5rem) {
  .svc__row { grid-template-columns: 1fr; }
  .svc__name { position: static; }
}
.svc-band { padding: 0 var(--gutter); }
.svc-band__figure { height: clamp(12rem, 32vw, 26rem); max-width: var(--max); margin-inline: auto; border-radius: var(--radius); }
.svc-band__figure img { object-position: 70% 42%; }

.limits { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--surface-2); border-top: 1px solid var(--hair); }
.limits__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.limits h2 { font-size: var(--step-2); }
.limits__list li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.limits__quote { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.limits__quote .btn { margin-top: .75rem; }
@media (max-width: 47.5rem) { .limits__grid { grid-template-columns: 1fr; } }

/* ============ APPROACH ============ */
.rail { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--hair); }
.rail h1 { max-width: 14em; }
.rail__lede { max-width: 44em; }
.rail__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.rail__list::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem; height: 2px; background: var(--line); }
.rail__list a { position: relative; display: grid; justify-items: start; gap: .6rem; font-weight: 600; text-decoration: none; }
.rail__list a:hover { text-decoration: underline; }
.rail__n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); font-family: var(--font-display); font-size: 1.25rem; }
.rail__list a:hover .rail__n { background: var(--ink); color: var(--bg); }
@media (max-width: 40rem) {
  .rail__list { grid-template-columns: 1fr; gap: .5rem; }
  .rail__list::before { left: 1.4rem; right: auto; top: 1rem; bottom: 1rem; width: 2px; height: auto; }
  .rail__list a { grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
}

.stages { padding: clamp(3rem, 7vw, 5rem) 0; }
.stages__inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 52rem; }
.stages__inner::before { content: ""; position: absolute; left: 1.9rem; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.stage { position: relative; display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); gap: 1.5rem; }
.stage__n { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); position: relative; z-index: 1; }
.stage h2 { font-size: var(--step-2); margin-top: .35rem; }
.stage__out { display: inline-block; padding: .5rem .85rem; background: var(--surface-2); border-left: 3px solid var(--accent); font-size: var(--step--1); font-weight: 600; }

.people { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--surface-2); border-block: 1px solid var(--hair); }
.people__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.people__image { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.people__image img { object-position: 30% 70%; }
@media (max-width: 47.5rem) { .people__grid { grid-template-columns: 1fr; } }

.faq { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.faq__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 1.1rem 3rem 1.1rem 0; font-weight: 600; font-size: var(--step-0); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .6rem; top: 50%; width: 1rem; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.faq summary:hover { text-decoration: underline; }
.faq details p { padding: 0 0 1.2rem; }
@media (max-width: 47.5rem) { .faq__inner { grid-template-columns: 1fr; } }

.approach-next { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.approach-next__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.approach-next__inner h2 { margin: 0; font-size: var(--step-2); }

/* ============ CONTACT ============ */
.inquiry { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.inquiry__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.inquiry__aside h1 { font-size: var(--step-3); }
.inquiry__lede { font-size: var(--step-1); line-height: 1.4; }
.notice { margin-top: 1.5rem; padding: 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--hair); border-left: 5px solid var(--accent); border-radius: 4px; }
.notice__title { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.notice p { font-size: var(--step--1); }

.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.form__row { display: grid; gap: 1.1rem; }
.form__row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form__row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 40rem) { .form__row--two, .form__row--three { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .98rem; }
.req { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 2px solid var(--line);
  border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent); border-style: dashed; border-width: 3px; }
.form__hint { margin: -.4rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.form__hold { margin: 0; font-weight: 600; font-size: var(--step--1); }
.form__status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form__status:not(:empty) { padding: .75rem 1rem; background: var(--surface-2); border-left: 4px solid var(--ink); }
@media (max-width: 60rem) { .inquiry__grid { grid-template-columns: 1fr; } }

.contact-after { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--surface-2); border-top: 1px solid var(--hair); }
.contact-after__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); }
.contact-after h2 { font-size: var(--step-2); }
.contact-after__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.contact-after__list dt { font-weight: 700; }
.contact-after__list dd { margin: .2rem 0 0; }
@media (max-width: 47.5rem) { .contact-after__grid, .contact-after__list { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
.site-footer__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; margin-bottom: .5rem; }
.site-footer p { color: var(--night-soft); }
.site-footer p.site-footer__name { color: var(--night-ink); }
.site-footer__links { display: grid; gap: .5rem; }
.site-footer a { color: var(--night-ink); font-weight: 500; }
.site-footer a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
.site-footer :focus-visible { outline-color: var(--night-ink); }
@media (max-width: 40rem) { .site-footer__inner { grid-template-columns: 1fr; } }
