/* Lamplit Residences
   Palette taken off the tiles themselves: limestone, evening amber, and the
   blue-violet the stone falls into out of the sun. */
:root{
  --stone:#f2ebdf;
  --ink:#241d16;
  --ink-2:#5d5044;
  --amber:#c8843a;
  --amber-lt:#f0b464;
  --dusk:#2d3550;
  --line:rgba(36,29,22,.14);
  --cut:57%;              /* where the hero's front copy is clipped */
  --shell:min(1240px,92vw);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
/* the nav is fixed, so anchored sections must stop clear of it */
section[id]{scroll-margin-top:92px}
/* No plain ground anywhere — the page carries the picture's own evening
   palette all the way down, so the sections below the building read as a
   continuation of the garden rather than a white page bolted on. */
body{
  background:linear-gradient(180deg,#2b334e 0%,#5c5145 34%,#8a6636 52%,#3d4a2c 74%,#222d1d 100%) fixed;
  background-color:#222d1d;
  color:#f3ece0;
  font:400 17px/1.6 "Instrument Sans",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
h1,h2,h3,.readout b,.rent{font-family:Fraunces,Georgia,serif;font-weight:300;letter-spacing:-.015em}
img{display:block;max-width:100%}
a{color:inherit}

.pill{
  display:inline-block;font:500 15px/1 "Instrument Sans",sans-serif;
  background:var(--amber);color:#241606;border:0;
  padding:14px 24px;border-radius:999px;cursor:pointer;text-decoration:none;
  transition:background .2s,transform .2s;
}
.pill:hover{background:var(--amber-lt);transform:translateY(-1px)}
.pill.big{padding:16px 30px;font-size:16px}
.pill:focus-visible,a:focus-visible,button:focus-visible,
input:focus-visible,select:focus-visible,.floor:focus-visible{
  outline:2px solid var(--amber);outline-offset:3px
}

/* ── nav ───────────────────────────────────────────────────────────── */
.nav{
  position:fixed;inset:0 0 auto 0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:20px max(24px,4vw);color:#fff;
  transition:background .3s,color .3s,box-shadow .3s;
}
.nav.stuck{
  background:rgba(22,20,16,.72);color:#fff;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 1px 0 rgba(255,255,255,.12);
}
.wordmark{font-family:Fraunces,Georgia,serif;font-size:20px;text-decoration:none}
.wordmark span{display:block;font-family:"Instrument Sans",sans-serif;font-size:10px;
  letter-spacing:.22em;text-transform:uppercase;opacity:.75;margin-top:2px}
.nav nav{display:flex;align-items:center;gap:28px;font-size:15px}
.nav nav a{text-decoration:none;opacity:.9}
.nav nav a:hover{opacity:1}
.nav .pill{color:#241606;opacity:1}

/* ── the building ──────────────────────────────────────────────────────
   cap, repeating storeys, cap. Every image is full-bleed and butts
   directly against the next; the storey module is the same file each
   time, so those joins are literally the same pixels. */
.tower{position:relative;isolation:isolate;width:100%}
.tile{position:relative;overflow:hidden;line-height:0;width:100%}
.tile img{display:block;width:100%;max-width:none;transition:filter .35s ease}
.tower-sec{position:relative;display:grid}
.tower-sec>.tower,.tower-sec>.tower-copy{grid-area:1/1}
.tower-copy .sub{margin-top:14px;color:rgba(255,255,255,.82);font-size:15px}
.tower-copy .pill{margin-top:20px;pointer-events:auto}
.tower-copy h1{font-size:clamp(30px,3.4vw,50px);line-height:1.02;font-weight:300;margin-top:6px}
/* ── old tower block below ─────────────────────────────────────────────────────────
   The building runs the full width of the page and you scroll down it.
   The copy rides over the picture on a frosted panel rather than sitting
   beside it on a plain ground. */
/* tower and copy share one grid cell, so the copy floats over the picture
   and sticks within it instead of being pushed below by the flow */
.tower-sec{position:relative;display:grid}
.tower-sec>.tower,.tower-sec>.tower-copy{grid-area:1/1}
.tower-copy{
  position:sticky;z-index:6;
  top:clamp(90px,16vh,150px);
  align-self:start;justify-self:start;
  width:min(400px,80vw);
  margin:clamp(40px,8vh,110px) 0 0 max(24px,5vw);
  padding:26px 26px 28px;
  background:rgba(22,18,14,.46);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.16);border-radius:6px;
  color:#fff;pointer-events:none;
}
.tower-copy h2{font-size:clamp(26px,2.6vw,38px);line-height:1.06}
.tower-copy>p{margin-top:14px;color:rgba(255,255,255,.8);font-size:15px}
.readout{
  margin-top:22px;padding-top:20px;border-top:1px solid rgba(255,255,255,.22);
  display:flex;align-items:flex-start;gap:18px;min-height:104px;
}
.readout b{
  font-size:clamp(44px,4.6vw,64px);line-height:.85;color:var(--amber-lt);
  font-weight:300;min-width:1.3em;
}
.readout strong{display:block;font-family:Fraunces,Georgia,serif;font-weight:400;font-size:21px}
.readout span{display:block;margin-top:5px;color:rgba(255,255,255,.72);font-size:14px;max-width:28ch}

/* the two tiles stacked into one building, full width of the page.
   --sc and --dx scale and centre the base tile so its facade lines up
   with the tile above it. */

/* one hotspot per floor, placed in percentages of the whole stack */
.floors{position:absolute;inset:0;z-index:3}
.floor{
  position:absolute;left:0;right:0;border:0;padding:0;background:transparent;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
/* X-ray lens.
   The whole facade is X-rayable; the lens is the only window into it. A
   radial mask on the .floors layer, centred on the cursor, reveals the
   inverted band and the drawn room beneath it. --lens is the RADIUS, so the
   circle is twice that across — change it in one place.
   --bx / --bxr hold the building's left and right edges as measured off the
   tiles, so the lens never bites into the sky either side. */
.floors{
  --lens:0px;                      /* set by script while the cursor is over */
  --mx:-999px; --my:-999px;
  --bx:23%; --bxr:24%;
  -webkit-mask-image:radial-gradient(circle var(--lens) at var(--mx) var(--my),#000 78%,transparent 100%);
          mask-image:radial-gradient(circle var(--lens) at var(--mx) var(--my),#000 78%,transparent 100%);
}
.floor{left:var(--bx);right:var(--bxr)}
.floor::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:1;
  background:
    repeating-linear-gradient(0deg,rgba(120,225,255,.10) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,rgba(80,200,255,.16),rgba(40,150,220,.22));
  backdrop-filter:invert(1) hue-rotate(178deg) saturate(1.45) contrast(1.12) brightness(1.05);
  -webkit-backdrop-filter:invert(1) hue-rotate(178deg) saturate(1.45) contrast(1.12) brightness(1.05);
}
/* the drawn room, always painted — the mask decides what you actually see */
.floor .plan{
  position:absolute;z-index:2;inset:2% 0;
  opacity:1;pointer-events:none;
}
.floor .plan svg{width:100%;height:100%;display:block;overflow:visible}
.floor .plan .w,.floor .plan .f,.floor .plan .d{vector-effect:non-scaling-stroke}
.floor .plan .w{fill:none;stroke:#a9ecff;stroke-width:1.6;opacity:.95}
.floor .plan .f{fill:none;stroke:#7fd8f5;stroke-width:1;opacity:.82}
.floor .plan .d{fill:none;stroke:#7fd8f5;stroke-width:.7;opacity:.55;stroke-dasharray:4 4}
.floor .plan .s{fill:rgba(150,235,255,.10)}

/* the label rides outside the lens, so it stays readable */
.floor .tag{
  position:absolute;z-index:3;left:auto;right:-8px;top:50%;
  transform:translate(calc(100% + 18px),-50%);
  background:rgba(8,26,38,.86);color:#bfeeff;font-size:12px;letter-spacing:.14em;
  text-transform:uppercase;padding:7px 13px;border-radius:3px;white-space:nowrap;
  border:1px solid rgba(150,235,255,.45);
  opacity:0;transition:opacity .2s;pointer-events:none;
}
.floor.lit .tag{opacity:1}

/* ── homes ─────────────────────────────────────────────────────────── */
.homes{width:var(--shell);margin:0 auto;padding:clamp(64px,9vw,120px) 0}
.homes h2{font-size:clamp(30px,3.6vw,50px);margin-bottom:40px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:22px}
.card{
  background:rgba(18,16,12,.42);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.16);border-radius:6px;
  padding:30px 26px 26px;display:flex;flex-direction:column;gap:10px;
  transition:transform .25s,background .25s;
}
.card:hover{transform:translateY(-4px);background:rgba(18,16,12,.56)}
.card h3{font-size:26px}
.card .floors{color:var(--amber-lt);font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.card .spec{color:rgba(255,255,255,.7);font-size:15px}
.card .rent{font-size:32px;color:var(--amber-lt);font-weight:400}
.card .rent span{font-family:"Instrument Sans",sans-serif;font-size:15px;color:rgba(255,255,255,.7)}
.card .line{color:rgba(255,255,255,.78);font-size:15px;flex:1}
.card .pill{align-self:flex-start;margin-top:8px}
.fine{margin-top:20px;color:rgba(255,255,255,.6);font-size:14px}

/* ── the street ────────────────────────────────────────────────────────
   Drawn, not photographed: the stops sit on a single rule like a transit
   line, so the section carries weight without competing with the tower. */
.street{width:var(--shell);margin:0 auto;padding:clamp(28px,4vw,56px) 0 clamp(40px,5vw,72px)}
.street h2{font-size:clamp(30px,3.6vw,50px);line-height:1.05;max-width:16ch}
.street-lede{margin-top:18px;color:rgba(255,255,255,.76);max-width:46ch}
.route{
  list-style:none;margin-top:clamp(38px,6vw,64px);
  display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0;
  border-top:1px solid rgba(255,255,255,.28);
}
.route li{position:relative;padding:30px 20px 0 0}
.route li::before{
  content:"";position:absolute;top:-6px;left:0;width:11px;height:11px;
  border-radius:50%;background:var(--amber-lt);
  box-shadow:0 0 0 4px rgba(240,180,100,.22);
}
.route b{display:block;font-family:Fraunces,Georgia,serif;font-weight:400;font-size:21px}
.route em{
  display:block;font-style:normal;margin-top:4px;
  font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--amber-lt);
}
.route span{display:block;margin-top:10px;color:rgba(255,255,255,.68);font-size:15px}
.claim-note{margin-top:18px;color:rgba(255,255,255,.6);font-size:15px;max-width:38ch}

/* ── claim ─────────────────────────────────────────────────────────── */
.claim{color:#efe8dc;padding:clamp(64px,9vw,120px) max(24px,4vw)}
.claim-copy,.claim-form,.claim .done{width:min(1240px,100%);margin:0 auto}
@media (min-width:900px){
  .claim{
    display:grid;grid-template-columns:1fr 1fr;gap:64px;
    width:var(--shell);margin:0 auto;padding-left:0;padding-right:0;
  }
  .claim-copy,.claim-form,.claim .done{width:auto}
  .claim-form{align-self:center;margin-top:0}
}
.claim h2{font-size:clamp(30px,3.6vw,50px);margin-bottom:16px}
.claim-copy p{color:#c8c2b6;max-width:38ch}
.claim-copy .street{margin-top:22px}
.stops{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.stops li{border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:6px 14px;font-size:14px;color:#ded7ca}
.claim-form{display:grid;gap:16px;margin-top:34px}
.claim-form label{display:grid;gap:7px;font-size:14px;color:#c8c2b6}
.claim-form input,.claim-form select{
  font:inherit;font-size:16px;color:#fff;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.22);border-radius:3px;padding:13px 14px;
}
.claim-form select option{color:#241d16}
.claim-form .err{color:#ffb4a2;font-size:14px}
.claim-form .privacy{font-size:13px;color:#a49d92}
.claim-form .privacy em{font-style:normal;opacity:.75}
.claim .done b{display:block;font-family:Fraunces,Georgia,serif;font-size:30px;font-weight:300}
.claim .done p{color:#c8c2b6;margin-top:8px}

footer{color:rgba(255,255,255,.58);font-size:14px;padding:0 max(24px,4vw) 56px;text-align:center}
footer p+p{margin-top:6px}
footer a{color:var(--amber-lt)}

/* ── pop-up ────────────────────────────────────────────────────────── */
/* The panel lives in the space cleared on the right, so the building stays
   visible and lit beside it instead of being covered by a modal. */
.pop{
  position:fixed;inset:0;z-index:60;pointer-events:none;
  opacity:0;transition:opacity .3s;
}
.pop.show{opacity:1}
.pop[hidden]{display:none}
.pop-box{
  position:absolute;top:50%;right:max(20px,3vw);
  width:min(430px,40vw);pointer-events:auto;
  background:rgba(16,24,30,.82);color:#eaf6fb;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(150,235,255,.28);border-radius:6px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  transform:translate(14px,-50%);transition:transform .35s cubic-bezier(.2,.9,.25,1.05);
}
.pop.show .pop-box{transform:translate(0,-50%)}
.pop-img{aspect-ratio:16/9;background:#c9bda8 center/cover no-repeat}
.pop-meta{flex-direction:column;align-items:flex-start;
  display:flex;flex-wrap:wrap;gap:18px 24px;align-items:flex-end;
  justify-content:space-between;padding:24px 26px 26px;
}
.pop-floor{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.pop-meta h2{font-size:30px;margin-top:6px}
.pop-meta p{color:rgba(255,255,255,.76);margin-top:6px;max-width:42ch}
.pop-meta small{display:block;margin-top:10px;color:var(--amber-lt);font-size:15px}
/* sits inside the panel, or it collides with the nav's own button */
.pop-close{
  position:absolute;z-index:2;top:12px;right:12px;
  font:inherit;font-size:13px;pointer-events:auto;cursor:pointer;
  background:rgba(8,20,28,.72);color:#dff3fb;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(170,235,255,.4);border-radius:999px;padding:7px 15px;
}
.pop-close:hover{background:rgba(8,20,28,.9)}

/* ── narrow ────────────────────────────────────────────────────────── */
@media (max-width:860px){
  .nav nav a:not(.pill){display:none}
  .hero h1{font-size:clamp(38px,11vw,60px)}
  .hero-foot p{display:none}
  .tower-inner{grid-template-columns:1fr}
  .tower-copy h2{max-width:none}
  .readout{min-height:0;margin-top:24px;padding-top:20px}
  .readout b{font-size:46px}
  .floor .tag{font-size:12px;padding:6px 12px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
