/* Τομή: paper and ink do the work, the cut red is only for the line and the contact button.
   A light high-contrast serif carries everything that is read slowly; a quiet Greek grotesk
   (Commissioner) carries labels, captions and controls. */
:root {
  --paper: #F2EEE7; --ink: #171613; --stone: #8A8377; --facade: #D9D5CA; --facade-2: #C9C4B6; --cut: #F03A17;
  --line: rgba(23,22,19,.16); --line-inv: rgba(242,238,231,.2);
  --gut: clamp(18px, 3vw, 48px);
  --font: "Commissioner", system-ui, sans-serif;
  --serif: "Noto Serif Display", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 300 16px/1.55 var(--font); letter-spacing: .005em; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
em { font-style: italic; }
.serif, h1, h2, h3, .big, .vision-text, .end-kicker { font-family: var(--serif); font-weight: 300; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 400; }

/* header: inverts over whatever passes under it */
.top { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 22px var(--gut); color: #fff; mix-blend-mode: difference; font-size: 12.5px; letter-spacing: .14em; pointer-events: none; }
/* over the hero photograph the header is plain white; everywhere else it inverts */
body.onhero .top { mix-blend-mode: normal; color: var(--paper); text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.top a { pointer-events: auto; }
.top nav { text-align: center; }
.clock { text-align: right; font-variant-numeric: tabular-nums; }

/* the wordmark is cut: the lower half slides along the line */
.mark { position: relative; display: inline-block; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .32em; line-height: 1; }
.mark span { display: block; clip-path: inset(0 0 48% 0); }
.mark span + span { position: absolute; inset: 0; clip-path: inset(52% 0 0 0); transform: translateX(.05em); }

/* hero */
.cut { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; opacity: 0; pointer-events: none; transition: opacity .9s; }
body.in3d #gl { opacity: 1; pointer-events: auto; }

/* the photographs: one 16:9 frame that covers the hero like a background */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); transition: opacity .9s; }
body.in3d .media { opacity: 0; pointer-events: none; }
.frame16 { position: absolute; left: 50%; top: 50%; width: max(100%, 177.78vh); width: max(100%, 177.78svh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
@supports not (aspect-ratio: 1) { .frame16 { height: max(100%, 56.25vw); } }
.frame16 canvas, .stills img, .variant img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame16 canvas { right: auto; object-fit: fill; }
.stills img { transition: none; }
.stills, .variant { position: absolute; inset: 0; transition: opacity .5s; }
.photo { position: absolute; inset: 0; }
.media.flying .spots { pointer-events: none; }
/* a caption that rides with the flight: bottom left on desktop, in the dark band on phones */
.flycap { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: calc(var(--gut) + 4px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; margin: 0; font-size: 12px; letter-spacing: .16em; color: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; pointer-events: none; }
.flycap span:first-child { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; }
.media.flying .flycap { opacity: .9; transform: none; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--cut); box-shadow: 0 0 12px rgba(240,58,23,.8); opacity: 0; pointer-events: none; }
.spots { position: absolute; inset: 0; transition: opacity .4s; }
.spot { position: absolute; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; transition: border-color .25s, background .25s; }
.spot span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 4px 9px; font-size: 13px; white-space: nowrap; color: var(--ink); background: var(--paper); opacity: 0; transition: opacity .2s; pointer-events: none; }
@media (hover: hover) { .spot:hover { border-color: var(--cut); background: rgba(240,58,23,.07); } .spot:hover span { opacity: 1; } }
.spot:focus-visible { outline: 2px solid #fff; }
.spot[aria-current="true"] { border-color: var(--cut); }
.panel .note { margin: 10px 0 0; font-size: 12px; opacity: .6; }
.load[hidden] { display: none; }
@media (max-width: 760px) {
  /* a tall screen keeps the villa whole: the frame sits above the controls, centred on the house */
  .frame16 { top: 0; bottom: auto; height: calc(100svh - 150px - env(safe-area-inset-bottom)); width: auto; transform: translateX(-45.3%); }
  /* phone stills are full-resolution crops of the middle of the frame, x .16 to .75 */
  .stills img, .variant img { left: 16%; width: 59%; }
}
.cut button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cut-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cut); opacity: 0; pointer-events: none; will-change: transform; }
.hero-copy { position: absolute; z-index: 3; left: var(--gut); top: 92px; width: min(38vw, 560px); color: var(--paper); pointer-events: none; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero-copy h1 { font-size: clamp(34px, 3.7vw, 62px); line-height: 1.06; letter-spacing: -.012em; }
.hero-copy p { margin-top: 18px; font-size: 12.5px; letter-spacing: .14em; opacity: .9; }
.cue { position: absolute; z-index: 3; right: var(--gut); bottom: var(--gut); font-size: 12px; letter-spacing: .16em; color: var(--paper); }
.ink { position: absolute; inset: 0; z-index: 4; background: var(--ink); opacity: 0; pointer-events: none; }
.load { position: absolute; z-index: 9; inset: 0; display: grid; place-items: center; color: var(--paper); background: var(--ink); }

/* the lift, the hour, the decoration */
.lift { position: absolute; z-index: 3; left: var(--gut); top: 50%; transform: translateY(-34%); display: grid; gap: 6px; color: var(--paper); }
.lift button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); background: rgba(20,20,18,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 500; transition: background .2s, border-color .2s; }
.lift button.wide { width: auto; min-width: 40px; padding: 0 10px; font-size: 13px; }
.lift button:nth-child(4) { margin-top: 8px; }
.lift button:hover { background: rgba(255,255,255,.18); }
.lift button[aria-current="true"] { background: var(--cut); border-color: var(--cut); color: #fff; }
.cut button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.clockbox { position: absolute; z-index: 3; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100vw - 2 * var(--gut))); padding: 10px 14px; color: var(--paper); background: rgba(20,20,18,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.clockbox label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.clockbox input { display: block; width: 100%; margin: 0 0 6px; accent-color: var(--cut); }
.stops { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; }
.stops button { min-height: 28px; opacity: .85; }
.panel { position: absolute; z-index: 5; top: 64px; right: var(--gut); bottom: 96px; width: 280px; padding: 16px; overflow-y: auto; color: var(--paper); background: rgba(20,20,18,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overscroll-behavior: contain; }
.panel[hidden] { display: none; }
.panel-floor { margin: 0 0 14px; font-family: var(--serif); font-size: 28px; font-weight: 300; }
.row { margin-bottom: 16px; }
.row h3 { margin: 0 0 8px; font-family: var(--font); font-size: 11.5px; font-weight: 400; letter-spacing: .12em; opacity: .7; }
.sws { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: grid; justify-items: center; gap: 4px; width: 56px; font-size: 11px !important; line-height: 1.15; }
.sw i { display: block; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); }
.sw[aria-pressed="true"] i { outline: 2px solid var(--cut); outline-offset: 2px; }
.sets { display: grid; gap: 6px; }
.sets button { padding: 10px 12px; text-align: left; border: 1px solid rgba(255,255,255,.3); }
.sets button:hover { background: rgba(255,255,255,.12); }
.sets button[aria-pressed="true"] { border-color: var(--cut); box-shadow: inset 0 0 0 1px var(--cut); }
.sets small { display: block; margin-top: 2px; font-size: 11.5px; opacity: .65; }
.cut .back { width: 100%; min-height: 42px; margin-top: 4px; background: var(--paper); color: var(--ink); font-weight: 500; }
.tip { position: fixed; z-index: 7; margin: 0; padding: 6px 10px; font-size: 13px; color: var(--ink); background: var(--paper); pointer-events: none; transform: translate(14px, 14px); }
.tip[hidden] { display: none; }
body.open .hero-copy, body.open .cue { opacity: 0 !important; }

/* statement */
.statement { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); background: var(--ink); color: var(--paper); overflow: hidden; }
.st-top, .st-foot { position: absolute; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .16em; }
.st-top { top: 84px; border-top: 1px solid var(--line-inv); padding-top: 14px; }
.st-foot { bottom: calc(var(--gut) + 6px); opacity: .6; }
.big { font-size: clamp(32px, 4.5vw, 78px); line-height: 1.14; letter-spacing: -.01em; max-width: 17em; margin-left: clamp(0px, 8vw, 160px); }
.big span { opacity: .14; }
.wipe { position: absolute; inset: 0; background: var(--paper); clip-path: inset(0 100% 0 0); }

/* works */
.works { position: relative; background: var(--paper); padding: 0 var(--gut) 10vh; }
.works-head { display: flex; justify-content: space-between; padding: 96px 0 8vh; font-size: 12px; letter-spacing: .16em; color: var(--stone); border-bottom: 1px solid var(--line); margin-bottom: 4vh; }
.work { position: relative; padding-bottom: 24vh; }
.work-open { position: relative; }
.title { position: sticky; top: 64px; z-index: 0; display: flex; justify-content: center; gap: .24em; font-size: clamp(54px, 10.5vw, 184px); line-height: 1.02; letter-spacing: -.02em; color: var(--ink); pointer-events: none; }
.title span { font-style: italic; }
.title b { font-weight: 200; opacity: .45; will-change: transform; }
.shot { position: relative; z-index: 1; overflow: hidden; background: #DAD6CB; clip-path: inset(0 50% 0 50%); will-change: clip-path; }
.shot img { display: block; width: 100%; height: 118%; margin-top: -9%; object-fit: cover; will-change: transform; }
.shot.wide { width: min(80vw, 1440px); aspect-ratio: 3 / 2; margin: 16vh auto 0; }
.meta { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; width: min(80vw, 1440px); margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.meta dt { font-size: 11.5px; letter-spacing: .16em; color: var(--stone); }
.meta dd { margin: 6px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.5vw, 24px); }
.pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 7vw, 140px); align-items: end; width: min(80vw, 1440px); margin: 18vh auto 0; }
.shot.lead { aspect-ratio: 4 / 5; }
.pair-side p { max-width: 21em; margin-bottom: 12vh; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.9vw, 31px); line-height: 1.34; }
.shot.small { width: 72%; aspect-ratio: 4 / 5; margin-left: auto; }
.work:nth-of-type(even) .pair { grid-template-columns: 1fr 1.15fr; }
.work:nth-of-type(even) .shot.lead { order: 2; }
.work:nth-of-type(even) .shot.small { margin-left: 0; }

/* vision */
.vision { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: #fff; background: var(--ink); }
.vision img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vision::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,.05) 30%, rgba(10,10,9,.55)); }
.vision-line { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; display: flex; justify-content: space-between; padding: 12px var(--gut); border-top: 1px solid rgba(255,255,255,.45); font-size: 12px; letter-spacing: .16em; }
.vision-text { position: absolute; z-index: 2; left: var(--gut); bottom: 10vh; max-width: 12em; font-size: clamp(38px, 6vw, 104px); line-height: 1.04; letter-spacing: -.015em; }

/* services */
.services { position: relative; padding: 16vh var(--gut); background: var(--paper); }
.sv-head { display: flex; justify-content: space-between; padding-top: 14px; margin-bottom: 10vh; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .16em; color: var(--stone); }
.sv-list { list-style: none; margin: 0; padding: 0; }
.sv-list li { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0 34px; border-bottom: 1px solid var(--line); transition: padding-left .5s cubic-bezier(.2,.7,.2,1); }
.sv-list h3 { margin: 0; font-size: clamp(38px, 5.8vw, 100px); line-height: 1.02; letter-spacing: -.015em; }
@media (hover: hover) { .sv-list li:hover h3 { font-style: italic; } }
.sv-list p { margin: 0; max-width: 24em; font-size: 15.5px; line-height: 1.6; color: #4b4741; }
.sv-float { position: fixed; z-index: 20; left: 0; top: 0; width: 22vw; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s, scale .25s; }
.sv-float img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .sv-list li:hover { padding-left: 2.4vw; } }

/* steps */
.steps { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.steps-track { display: flex; align-items: stretch; width: max-content; height: 100vh; height: 100svh; padding: 0 var(--gut); will-change: transform; }
.steps-intro { width: 52vw; padding-right: 8vw; align-self: center; }
.steps-intro span { font-size: 12px; letter-spacing: .16em; opacity: .6; }
.steps-intro h2 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 90px); line-height: 1.06; letter-spacing: -.015em; }
.steps article { width: 30vw; padding: 0 2.6vw; align-self: center; border-left: 1px solid var(--line-inv); }
.steps b { display: block; margin-bottom: 26vh; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; opacity: .7; }
.steps h3 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 50px); letter-spacing: -.01em; }
.steps p { margin: 0; max-width: 22em; font-size: 15.5px; line-height: 1.6; opacity: .75; }

/* all work */
.depth { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); perspective: 900px; }
.depth h2 { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); text-align: center; font-size: clamp(46px, 7.4vw, 128px); letter-spacing: -.015em; line-height: 1; mix-blend-mode: difference; color: #fff; }
.depth h2 em { font-style: italic; }
.depth sup { font-family: var(--font); font-size: .2em; vertical-align: 2.4em; letter-spacing: .1em; }
.tiles { position: absolute; inset: 0; transform-style: preserve-3d; }
.tile { position: absolute; left: 50%; top: 50%; width: 22vw; aspect-ratio: 4 / 5; margin: -14vw 0 0 -11vw; background: var(--ink); overflow: hidden; opacity: 0; will-change: transform, opacity; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* pill */
.pill { position: fixed; z-index: 40; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: baseline; gap: 18px; padding: 11px 20px; font-size: 12px; letter-spacing: .12em; color: var(--paper); background: rgba(23,22,19,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.pill span { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; }
.pill.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s, transform .3s; }
.pill b { font-weight: 400; }
.pill span, .pill b { white-space: nowrap; }

/* end */
.end { position: relative; background: var(--ink); color: var(--paper); padding: 16vh var(--gut) calc(var(--gut) + env(safe-area-inset-bottom)); overflow: hidden; }
.end-kicker { max-width: 12em; font-size: clamp(40px, 6.4vw, 112px); line-height: 1.04; letter-spacing: -.015em; }
.end-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; padding: 16px 28px; font-size: 12.5px; letter-spacing: .16em; color: #fff; background: var(--cut); transition: background .3s; }
.end-cta::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .3s; }
.end-cta:hover::after { width: 44px; }
.end-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16vh; padding-top: 16px; border-top: 1px solid var(--line-inv); font-size: 14.5px; }
.end-cols h4 { margin: 0 0 10px; font-weight: 400; font-size: 11.5px; letter-spacing: .16em; opacity: .5; }
.end-cols p { margin: 0 0 4px; }
.mark-xl { display: block; margin-top: 12vh; font-weight: 300; font-size: 21vw; letter-spacing: .12em; line-height: .8; text-align: center; }
.end-note { margin-top: 32px; font-size: 12px; letter-spacing: .04em; opacity: .45; }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; }
  .clock { display: none; }
  .hero-copy { width: auto; right: var(--gut); }
  .hero-copy { top: 74px; }
  .hero-copy h1 { font-size: 34px; }
  .big { margin-left: 0; }
  .title { gap: .14em; }
  .cue { display: none; }
  .lift { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); left: var(--gut); right: var(--gut); transform: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .lift button, .lift button.wide { width: auto; min-width: 0; padding: 0 2px; font-size: 12px; }
  .lift button:nth-child(4) { margin-top: 0; margin-left: 6px; }
  .panel { top: auto; left: 0; right: 0; width: auto; bottom: 0; max-height: 46%; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sw { width: 52px; }
  body.open .clockbox, body.open .lift { display: none; }
  .title { font-size: 13vw; top: 54px; }
  .shot.wide, .meta, .pair { width: 100%; }
  .shot.wide { aspect-ratio: 4 / 5; margin-top: 10vh; }
  .meta { grid-template-columns: 1fr 1fr; }
  .meta div:first-child { grid-column: 1 / -1; }
  .pair, .work:nth-of-type(even) .pair { grid-template-columns: 1fr; margin-top: 8vh; }
  .work:nth-of-type(even) .shot.lead { order: 0; }
  .pair-side p { margin-bottom: 5vh; }
  .work { padding-bottom: 14vh; }
  .sv-list li { grid-template-columns: 1fr; gap: 8px; }
  .sv-float { display: none; }
  .steps-track { display: block; width: auto; height: auto; padding: 14vh var(--gut); }
  .steps-intro { width: auto; padding: 0 0 8vh; }
  .steps article { width: auto; padding: 18px 0 26px; border-left: 0; border-top: 1px solid rgba(239,237,231,.25); }
  .steps b { margin-bottom: 20px; }
  .tile { width: 52vw; margin: -33vw 0 0 -26vw; }
  .end-cols { grid-template-columns: 1fr 1fr; }
  .st-foot { flex-direction: column; gap: 2px; }
}

/* free Netlify sites add a fixed "Powered by Netlify" badge (202x64, bottom right) that can't be hidden:
   everything that lives along the bottom edge steps up above it */
html:has(#nl-badge-frame) .cue, html:has(#nl-badge-frame) .flycap { bottom: calc(var(--gut) + 56px + env(safe-area-inset-bottom)); }
html:has(#nl-badge-frame) .end { padding-bottom: calc(var(--gut) + 64px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  html:has(#nl-badge-frame) .clockbox { bottom: calc(66px + env(safe-area-inset-bottom)); }
  html:has(#nl-badge-frame) .lift { bottom: calc(148px + env(safe-area-inset-bottom)); }
  html:has(#nl-badge-frame) .frame16 { height: calc(100svh - 202px - env(safe-area-inset-bottom)); }
  html:has(#nl-badge-frame) .pill { bottom: calc(70px + env(safe-area-inset-bottom)); }
  html:has(#nl-badge-frame) .panel { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .big span { opacity: 1; }
  .shot { clip-path: none; }
  .wipe { display: none; }
  .steps-track { flex-wrap: wrap; width: auto; height: auto; padding: 14vh var(--gut); gap: 24px; }
  .depth { height: auto; padding: 16vh var(--gut); perspective: none; }
  .depth h2 { position: static; transform: none; color: var(--ink); mix-blend-mode: normal; }
  .tiles { display: none; }
}

