@import url("fonts/fonts.css");

/* Alexandra Design, flagship: dark gallery look. Warm near-black like an evening interior, brass from her fittings,
   an editorial serif for headings, Poppins for reading. Contrast on --bg computed in tools/contrast.py. */
:root {
  color-scheme: dark;
  --bg: #121010;
  --bg2: #1a1715;
  --card: #221e1b;
  --ink: #efe8de;
  --muted: #a99b8c;
  --brass: #c9a46c;
  --hair: rgba(239, 232, 222, .12);   /* decorative lines only */
  --ctl: #7a6e62;                      /* borders of controls, 3:1 */
  --serif: "Newsreader", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
h2 { font-size: clamp(40px, 5.4vw, 80px); }
p { margin: 0 0 14px; }
.wrap { width: min(1320px, 100% - 2 * var(--gut)); margin: 0 auto; }
.skip { position: fixed; z-index: 99; left: 16px; top: -80px; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 16px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 500 12px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border: 0; border-radius: 0; background: var(--brass); color: var(--bg); font: 500 14px/1 var(--sans); letter-spacing: .03em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); translate: -101% 0; transition: translate .5s var(--ease); }
.btn:hover::after { translate: 0 0; }
.btn.sm { padding: 12px 18px; font-size: 13px; white-space: nowrap; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ctl); }
.btn.ghost:hover { color: var(--bg); }
.link { font-weight: 500; font-size: 15px; color: var(--ink); text-underline-offset: 6px; text-decoration-color: var(--brass); }
.link:hover { color: var(--brass); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* header: floats over the hero, gets a glass bar once you scroll */
.head { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 18px var(--gut); transition: background .4s, padding .4s, box-shadow .4s; }
.head.scrolled { padding-block: 12px; background: rgba(18, 16, 16, .78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair); }
.logo { margin: 0; white-space: nowrap; font: 300 26px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.logo em { color: var(--brass); }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.nav a:hover { background-size: 100% 1px; }

/* hero: full-bleed photo, headline over a dark gradient */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-img { position: absolute; inset: 0; margin: 0; }
.hero-img img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 55%; translate: 0 var(--py, 0); }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 16, .55) 0%, rgba(18, 16, 16, .2) 30%, rgba(18, 16, 16, .7) 66%, #121010 100%), linear-gradient(90deg, rgba(18, 16, 16, .7), transparent 70%); }
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(50px, 8vw, 128px); max-width: 12ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 60px; align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.hero-row p { max-width: 50ch; margin: 0; color: #d6ccbf; }
.js .hero-img img { scale: 1.14; transition: scale 2.6s var(--ease); }
.js .loaded .hero-img img { scale: 1; }
/* headline words rise out of a mask, one after another */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .w > span { translate: 0 105%; transition: translate 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .2s); }
.js .loaded .w > span { translate: 0 0; }
.js .hero-row { opacity: 0; translate: 0 20px; transition: opacity 1s var(--ease) .9s, translate 1s var(--ease) .9s; }
.js .loaded .hero-row { opacity: 1; translate: 0 0; }

/* ticker */
.ticker { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--hair); background: var(--bg2); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker p { display: flex; margin: 0; font: italic 300 clamp(28px, 3.4vw, 46px)/1 var(--serif); white-space: nowrap; }
.ticker p span { padding: 0 .7em; }
.ticker p span::after { content: "✦"; margin-left: 1.4em; font: normal 400 .4em/1 var(--sans); color: var(--brass); vertical-align: middle; }
@keyframes tick { to { translate: -50% 0; } }

/* scroll story: the section is tall, the inner part sticks; scrolling moves through the frames */
.story { position: relative; height: calc(var(--n) * 85vh + 100vh); margin-top: clamp(60px, 9vw, 130px); }
.story-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 70px); align-items: center; padding: 86px var(--gut) 30px; }
.story h2 { font-size: clamp(38px, 4.6vw, 68px); margin-bottom: clamp(18px, 2.5vw, 34px); }
.stamps { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--hair); }
.stamps button { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0 14px; width: 100%; padding: 9px 0 9px 20px; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; position: relative; transition: color .4s; }
.stamps button::before { content: ""; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--ctl); transition: background .4s, scale .4s, box-shadow .4s; }
.stamps time { font: 500 12px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.stamps b { font: 300 22px/1.25 var(--serif); color: inherit; }
.stamps span { grid-column: 2; max-height: 0; overflow: hidden; font-size: 14px; line-height: 1.55; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.stamps .on button { color: var(--ink); }
.stamps .on button::before { background: var(--brass); scale: 1.6; box-shadow: 0 0 0 4px rgba(201, 164, 108, .18); }
.stamps .on time { color: var(--brass); }
.stamps .on span { max-height: 120px; opacity: 1; margin-top: 4px; }
.story-stage { position: relative; height: min(76vh, 720px); }
.story-stage figure { position: absolute; inset: 0 0 34px; margin: 0; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity .7s var(--ease); background: var(--card); }
.story-stage figure.on { opacity: 1; }
.story-stage img { width: 100%; height: 100%; object-fit: contain; scale: calc(1 + var(--z, 0) * .05); transition: scale .2s linear; }
.story-bar { position: absolute; left: 0; right: 90px; bottom: 10px; height: 2px; background: var(--hair); }
.story-bar i { display: block; height: 100%; width: 0; background: var(--brass); }
.story-count { position: absolute; right: 0; bottom: 0; margin: 0; font: 300 20px/1 var(--serif); color: var(--muted); }
.story-count span { color: var(--ink); }
/* bathroom story: frames are scrubbed by scroll, the next one fades in over the last part of each step */
.story.scrub .story-stage figure { transition: none; }
.story.scrub .story-stage img { object-fit: cover; }
.story-stage video { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); object-fit: cover; background: var(--card); }
.story-stage.has-video figure { display: none; }
/* the bathroom frame takes the video's own 16:9 shape so nothing is cropped */
.story.scrub .story-stage { height: auto; aspect-ratio: 16 / 9; margin-bottom: 34px; }
.story.scrub .story-stage figure, .story.scrub .story-stage video { inset: 0; height: 100%; }
.story.scrub .story-bar { bottom: -24px; }
.story.scrub .story-count { bottom: -34px; }
.story-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
/* no motion wanted, or no JS: the frames are just shown one after another */
.story.static { height: auto; }
.story.static .story-pin { position: static; height: auto; grid-template-columns: 1fr; }
.story.static .story-stage { height: auto; aspect-ratio: auto; margin-bottom: 0; display: grid; gap: 16px; }
.story.static .story-stage figure { position: static; opacity: 1 !important; }
.story.static .story-stage video, .story.static .story-bar, .story.static .story-count { display: none; }
.story.static .story-stage.has-video figure { display: grid; }
.story.static .stamps span { max-height: none; opacity: 1; }

/* before / after */
.ba-sec { padding: clamp(80px, 10vw, 140px) 0 0; }
.sec-h { max-width: 820px; margin-bottom: clamp(30px, 4vw, 54px); }
.sec-h.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; max-width: none; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 40px 28px; }
.ba-item { margin: 0; }
.ba-item:first-child { grid-column: 1 / -1; }
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); --pos: 50%; touch-action: pan-y; }
.ba-item:first-child .ba { aspect-ratio: 2; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba .knob { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--ink); pointer-events: none; }
.ba .knob::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(18, 16, 16, .55); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font: 300 20px/1 var(--serif); letter-spacing: .2em; }
.ba input:focus-visible + .knob::after { outline: 2px solid var(--brass); outline-offset: 3px; }
.ba .tag { position: absolute; z-index: 2; top: 14px; padding: 7px 12px; background: rgba(18, 16, 16, .72); backdrop-filter: blur(6px); color: var(--ink); font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.ba .tag.l { left: 14px; } .ba .tag.r { right: 14px; }
.ba-item figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* services */
.services { padding: clamp(90px, 11vw, 160px) 0 0; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--hair); }
.svc li { position: relative; padding: 34px 30px 40px 0; border-bottom: 1px solid var(--hair); counter-increment: s; }
.svc li + li { padding-left: 30px; border-left: 1px solid var(--hair); }
.svc li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.svc li::before { content: "0" counter(s); display: block; margin-bottom: 18px; font: 300 15px/1 var(--serif); color: var(--brass); }
.svc li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--brass); scale: 0 1; transform-origin: left; transition: scale .7s var(--ease); }
.svc li:hover::after { scale: 1 1; }
.svc h3 { font-size: 30px; margin-bottom: 12px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.deliver { margin-top: clamp(60px, 8vw, 110px); }
.deliver h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 26px; }
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sheet { margin: 0; padding: 14px 14px 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); transition: translate .5s var(--ease); }
.sheet:hover { translate: 0 -6px; }
.sheet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sheet figcaption { padding: 12px 2px 16px; font-size: 14px; color: var(--muted); }

/* work grid */
.work { padding: clamp(90px, 11vw, 160px) 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 16px; border: 1px solid var(--ctl); background: none; color: var(--ink); font: 400 13px/1 var(--sans); letter-spacing: .04em; cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.chips button:hover { border-color: var(--brass); }
.chips button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; margin: 0; padding: 0; list-style: none; }
.grid li.tall { grid-row: span 2; }
.grid li.wide { grid-column: span 2; }
.grid button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; background: var(--card); cursor: zoom-in; }
.grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: scale 1s var(--ease), filter .6s; }
.grid button:hover img { scale: 1.05; filter: none; }
.grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 13px; text-align: left; background: linear-gradient(transparent, rgba(12, 10, 9, .8)); opacity: 0; translate: 0 8px; transition: opacity .4s, translate .4s var(--ease); }
.grid button:hover span, .grid button:focus-visible span { opacity: 1; translate: 0 0; }
.grid li.gone { display: none; }
/* photos open like a curtain when they scroll in */
.js .grid li { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .grid.in li { clip-path: inset(0 0 0 0); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 100px); align-items: center; padding: clamp(90px, 11vw, 160px) 0; }
.about-img { margin: 0; position: relative; }
.about-img::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); opacity: .5; }
.about-img img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 40%; }
.about h2 { margin-bottom: 26px; }
.about blockquote { margin: 0 0 24px; font: italic 300 clamp(22px, 2vw, 28px)/1.4 var(--serif); }
.about p { color: var(--muted); max-width: 56ch; }
.partners { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 2; }
.partners span { display: block; font: 500 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }

/* contact */
.contact { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg2); border-top: 1px solid var(--hair); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); }
.contact p { color: var(--muted); max-width: 48ch; margin-top: 24px; }
.reach { margin: 30px 0 0; }
.reach div { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.reach dt { min-width: 90px; color: var(--muted); font-size: 14px; }
.reach dd { margin: 0; }
.reach a { text-decoration: none; }
.reach a:hover { color: var(--brass); }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--ctl); border-radius: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.4 var(--sans); transition: border-color .3s; }
.form select option { color: var(--ink); background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form .btn { justify-self: start; }
.done { margin: 0; color: var(--brass); font-size: 14px; }

.foot { padding: 34px 0 40px; color: var(--muted); border-top: 1px solid var(--hair); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.foot .logo { color: var(--ink); font-size: 22px; margin-right: auto; }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* lightbox */
.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 9, .96); color: #fff; }
.lb[open] { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; }
.lb::backdrop { background: transparent; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lb img { max-height: 84vh; width: auto; object-fit: contain; }
.lb figcaption { font-size: 14px; color: var(--muted); }
.lb button { border: 0; background: none; color: #fff; cursor: pointer; }
.lb-nav { height: 100%; font: 300 54px/1 var(--serif); }
.lb-x { position: absolute; top: 14px; right: 20px; font: 300 40px/1 var(--sans); }

.mock-tag { position: fixed; z-index: 40; right: 14px; bottom: 14px; padding: 9px 14px; background: var(--ink); color: var(--bg); font-size: 12px; text-decoration: none; }

/* settle-in */
.js .rise { opacity: 0; translate: 0 30px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rise.in { opacity: 1; translate: 0 0; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .head .btn { margin-left: auto; }
  .hero-row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li:nth-child(n) { padding-left: 0; border-left: 0; }
  .svc li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--hair); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .about-img { margin-right: 22px; }
  /* story on a narrow screen: picture on top, the active step under it */
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 18px; padding-top: 74px; }
  .story-stage { order: -1; height: 44vh; }
  .story h2 { font-size: 34px; margin-bottom: 12px; }
  .story .eyebrow { margin-bottom: 8px; }
  .stamps li:not(.on) { display: none; }
  .story.scrub .story-pin { align-items: start; gap: 30px; }
  .story-note { display: none; }
}
@media (max-width: 640px) {
  .svc, .sheets { grid-template-columns: 1fr; }
  .svc li:nth-child(even) { padding-left: 0; border-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .grid li.wide { grid-column: span 2; }
  .ba-item:first-child .ba { aspect-ratio: 3 / 2; }
  .ba .knob::after { width: 44px; height: 44px; }
  .lb[open] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .mock-tag { left: 14px; text-align: center; }
  .hero { padding-bottom: 90px; }
  .head .btn.sm { padding: 10px 14px; font-size: 12px; }
  .logo { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .rise, .js .hero-row { opacity: 1; translate: none; }
  .js .w > span { translate: none; }
  .js .hero-img img { scale: 1; }
  .js .grid li { clip-path: none; }
  html { scroll-behavior: auto; }
}
