/* Layout: a slim fixed left rail (monogram, menu, Process, Casa 8) beside one calm scroll of
   large photographs and short text. White, black, one serif, one sans. Single light look by choice. */
:root {
  --bg: #FFFFFF;
  --soft: #F5F5F3;
  --ink: #141414;
  --muted: #6F6F6C;
  --line: #E2E2DE;
  --red: #B8262B;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --rail: 76px;
  --pad: clamp(24px, 6vw, 96px);
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { margin: 0; }
.muted { color: var(--muted); }
.text { max-width: 34em; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Rail ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 50; background: var(--bg);
  border-right: 1px solid var(--line); padding-block: 22px; padding-left: env(safe-area-inset-left, 0px);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.monogram { font: italic 400 1.6rem/1 var(--display); text-decoration: none; letter-spacing: -.04em; }
.rail-mid { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 24px; height: 1px; background: var(--ink); }
.rail-link { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.rail-link:hover { color: var(--red); }
.casa8-tile { width: 48px; height: 60px; border: 1px solid var(--ink); background: none; cursor: pointer; padding: 0; font: italic 400 1.7rem/1 var(--display); transition: background .3s, color .3s; }
.casa8-tile:hover { background: var(--ink); color: var(--bg); }
main, .site-footer { margin-left: var(--rail); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; align-items: center; padding: 40px var(--gr) 40px calc(var(--rail) + var(--pad));
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); }
.menu nav a { font: 400 clamp(1.8rem, 4vw, 3.1rem)/1.1 var(--display); text-decoration: none; width: fit-content; }
.menu nav a { transition: color .25s; }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--red); }
.menu { flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(28px, 5vh, 56px); overflow-y: auto; }
.social { display: flex; gap: 28px; flex-wrap: wrap; }
.social a { text-decoration: none; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-social a:hover { color: var(--red); }
.menu-close { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); background: none; border: 0; cursor: pointer; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 12vw, 168px); padding-left: var(--pad); padding-right: max(var(--gr), var(--pad)); }
.soft { background: var(--soft); }
.head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 44em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(92vh, 940px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vw, 48px); padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 56px) clamp(32px, 6vw, 72px) var(--pad); }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 9.6rem); letter-spacing: -.035em; line-height: .88; }
.hero h1 em { display: block; padding-left: .9em; }
.hero-pre { display: block; font-size: .26em; letter-spacing: 0; line-height: 1.2; margin-bottom: .5em; }
.hero-pre i { font-style: italic; }
.hero-tag { font: 400 clamp(1.2rem, 2vw, 1.6rem)/1.35 var(--display); max-width: 20em; }
.hero-img { margin: 0; overflow: hidden; background: var(--soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Work ---------- */
.project { margin-top: clamp(64px, 9vw, 128px); }
.project:first-of-type { margin-top: 0; }
.project h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 22px; }
.pgrid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.shot { border: 0; padding: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Studio ---------- */
.upcoming { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.up { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ink); padding-top: 20px; }
.up p { color: var(--muted); font-size: .98rem; }
.swatches { display: flex; height: 56px; margin-top: auto; }
.swatches i { flex: 1; }

/* ---------- Designer ---------- */
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote { font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.25 var(--display); }

/* ---------- Practice ---------- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { counter-increment: s; padding-block: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: counter(s); font: italic 400 1.9rem/1 var(--display); grid-row: span 2; }
.step p { color: var(--muted); }
.process { align-items: start; }
.process .text { max-width: none; }

/* ---------- Places & sources ---------- */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.col h3 { border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 6px; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.col li b { display: block; font: 400 1.2rem/1.3 var(--display); }
.col li a { text-decoration: none; }
.col li a:hover { font-style: italic; }
.col li span { color: var(--muted); font-size: .95rem; }

.col ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.col ol li { counter-increment: p; display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.col ol li::before { content: counter(p); font: italic 400 1.2rem/1.3 var(--display); grid-row: span 2; }
.map { aspect-ratio: 4 / 3; background: var(--line); margin-block: 18px 6px; z-index: 0; }
.map .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.92); }
.map .leaflet-control-attribution { font-size: .65rem; background: rgba(255,255,255,.8); }
.map .leaflet-control-attribution a { color: var(--muted); }
.pin { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: italic 400 .95rem/1 var(--display); }
.leaflet-container { font: inherit; }
.leaflet-tooltip { font: 400 .85rem var(--body); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; padding: 4px 8px; }
.leaflet-tooltip::before { display: none; }
.cols.with-img { --n: 4; align-items: start; }
.col-img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.process-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 12px; }

/* ---------- Inquire ---------- */
.inquire { align-items: start; }
form.inq { display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; color: var(--muted); }
.field input, .field textarea { font: 400 1.05rem var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; border-radius: 0; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.submit { align-self: start; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 16px 36px; cursor: pointer; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s; }
.submit:hover { background: var(--bg); color: var(--ink); }
.thanks { font: italic 400 1.5rem/1.35 var(--display); }
.form-error { color: var(--red); font-size: .95rem; }
.email { font: 400 1.2rem var(--display); user-select: all; }

/* ---------- Casa 8 ---------- */
.casa8 {
  position: fixed; z-index: 55; left: calc(var(--rail) + 12px); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - var(--rail) - 28px)); background: var(--bg); border: 1px solid var(--ink); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(12px); opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .3s, visibility .3s;
}
.casa8.is-open { transform: none; opacity: 1; visibility: visible; }
.casa8 img { width: 100%; height: 170px; object-fit: cover; object-position: 50% 30%; }
.casa8 h2 { font-size: 2.2rem; }
.casa8 .motto { font: italic 400 1.15rem/1.35 var(--display); }
.casa8 p:last-child { color: var(--muted); font-size: .95rem; }
.casa8-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px 8px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gr) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gl); }
.lightbox[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; height: 100%; min-height: 0; min-width: 0; }
.lb-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); object-fit: contain; }
.lb-btn { background: none; border: 0; cursor: pointer; font: 400 2rem/1 var(--display); padding: 16px; }
.lb-close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); background: none; border: 0; cursor: pointer; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 64px 40px; padding-left: var(--pad); padding-right: max(var(--gr), var(--pad)); display: flex; flex-direction: column; gap: 40px; }
.foot-name { font: italic 400 clamp(3rem, 11vw, 9rem)/.9 var(--display); letter-spacing: -.04em; }
.foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .cols.with-img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --rail: 0px; --pad: 0px; }
  body { font-size: 16px; }
  .rail { inset: 0 0 auto 0; width: auto; height: calc(58px + env(safe-area-inset-top, 0px)); flex-direction: row; padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl); border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-mid { flex-direction: row; gap: 18px; }
  .rail-link { writing-mode: horizontal-tb; transform: none; }
  .casa8-tile { width: 34px; height: 40px; font-size: 1.3rem; }
  main { padding-top: calc(58px + env(safe-area-inset-top, 0px)); }
  .section, .site-footer { padding-left: var(--gl); padding-right: var(--gr); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; aspect-ratio: 4 / 5; }
  .hero-text { padding: 36px var(--gr) 48px var(--gl); }
  .split, .three { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid .shot:first-child:nth-last-child(odd) { grid-column: span 2; }
  .cols, .cols.with-img { grid-template-columns: minmax(0, 1fr); }
  .col-img { aspect-ratio: 4 / 3; }
  .menu { padding-left: var(--gl); }
  .casa8 { left: var(--gl); right: var(--gr); width: auto; bottom: auto; top: calc(66px + env(safe-area-inset-top, 0px)); }
  .lb-btn { padding: 8px; }
}
@media (max-width: 520px) { .upcoming { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
