/* shiftedtech Design & Build sample. Pure white, charcoal and gold.
   Edited like an architecture monograph: big didone titles, lots of air. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/bodoni-moda.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/bodoni-moda-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jost.woff2) format("woff2"); }

:root {
  --white: #FFFFFF;
  --champagne: #F6F1E4;
  --ink: #2B2A29;
  --gold-ink: #7D5F1A;   /* gold dark enough for small text: 6.0:1 on white */
  --gold: #E3C46F;       /* accent gold: rules, the slit and stars only, never text */
  --stone: #6E6A66;      /* captions: 5.4:1 on white, 4.75:1 on champagne */
  --line: #E9E1CC;
  --field: #85807A;      /* input borders, 3.9:1 on white */
  --wa: #0F7A3E;         /* WhatsApp green deepened so white text passes AA (5.4:1) */

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --text: "Jost", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 88px);
  --section: clamp(96px, 12vw, 180px);
  --hh: 72px;            /* sticky header height; the project title stages sit under it */
}
@media (max-width: 899px) { :root { --hh: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(42px, 6vw, 92px); }
h1 em, h2 em, .intro-text em { font-style: italic; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }

.label {
  font: 500 13px/1 var(--text); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 22px; display: flex; align-items: center; gap: 16px;
}
.label::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.body { font-size: clamp(17px, 1.25vw, 19px); color: var(--stone); max-width: 36ch; margin: 24px 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 0;
  font: 500 15px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); transition: background-color .25s, color .25s;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--gold-ink); border-color: var(--gold-ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-wide { width: 100%; }

/* Notice and header */
.notice {
  margin: 0; padding: 8px 16px; text-align: center; font-size: 12.5px; line-height: 1.35;
  color: var(--stone); background: var(--white); border-bottom: 1px solid var(--line);
}
.top {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
}
.brand { display: block; margin-right: auto; text-decoration: none; }
/* Text wordmark: the name in the display face, the trade in small gold capitals */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wm-name { font: 400 28px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.wm-trade { font: 500 10.5px/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); margin-top: 6px; }
.wordmark-lg .wm-name { font-size: 40px; }
.wordmark-lg .wm-trade { font-size: 12px; margin-top: 8px; }
.nav { display: flex; gap: 34px; }
.nav a { font: 500 13px/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--gold); }
@media (max-width: 899px) {
  .nav { display: none; }
  .wm-name { font-size: 23px; }
  .wm-trade { font-size: 9.5px; margin-top: 5px; }
  .hide-sm { display: none; }
}

/* Hero */
.hero { position: relative; height: calc(100svh - var(--hh)); min-height: 600px; max-height: 1100px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero-panel {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  width: min(600px, 46vw); background: var(--white); padding: clamp(32px, 3.4vw, 52px);
}
.hero-panel .label { margin-bottom: 26px; }
h1 { font-size: clamp(56px, 7.2vw, 118px); line-height: .95; letter-spacing: -0.02em; }
h1 em { color: var(--gold-ink); }
.lede { font-size: clamp(18px, 1.4vw, 21px); color: var(--stone); margin: 22px 0 30px; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption {
  position: absolute; right: var(--gutter); top: 24px; margin: 0;
  background: var(--white); padding: 10px 16px; font: 500 14px/1.3 var(--text);
}
.hero-caption span { display: block; color: var(--stone); font-weight: 400; font-size: 13px; }

@media (max-width: 899px) {
  .hero { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .hero-media { position: relative; height: 52svh; min-height: 320px; }
  .hero-panel .label { letter-spacing: 0.16em; font-size: 12px; }
  .hero-panel .label::before { display: none; }
  .hero-media img { object-position: 64% 50%; }
  .hero-panel { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 12px 0; padding: 30px 22px 8px; }
  .hero-caption { right: auto; left: 12px; top: 12px; bottom: auto; padding: 8px 12px; font-size: 13px; }
  .hero-caption span { font-size: 12px; }
  .actions .btn { flex: 1 1 100%; }
}

/* Intro and proof */
.intro { padding: var(--section) var(--gutter) calc(var(--section) * .7); max-width: 1440px; margin: 0 auto; }
.intro-text { font: 400 clamp(34px, 4.6vw, 72px)/1.12 var(--display); margin: 0; max-width: 20ch; letter-spacing: -0.01em; }
.intro-text em { color: var(--gold-ink); }
.proof { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.proof li { border-top: 1px solid var(--gold); padding-top: 26px; }
.proof .label::before { display: none; }
.proof .label { margin-bottom: 12px; }
.proof-line { margin: 0; font: 400 clamp(22px, 1.9vw, 28px)/1.25 var(--display); }
@media (max-width: 899px) { .proof { grid-template-columns: 1fr; gap: 28px; } }

/* The project book */
.book-head { padding: calc(var(--section) * .4) var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.book-head h2 { max-width: 12ch; }

.project { padding-bottom: var(--section); }
.opening-stage {
  --door-w: min(820px, calc(100vw - 2 * var(--gutter)));
  --door-h: min(520px, 54vh, calc(var(--door-w) * .634));
  --fs: min(8.6vw, 10.5vh, 132px);
  --gap: clamp(10px, 1.6vh, 18px);
  position: relative;
  height: calc(var(--door-h) + 2 * var(--fs) + 2 * var(--gap) + 120px);
}
.addr {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  row-gap: calc(var(--door-h) + 2 * var(--gap));
  font-size: var(--fs); line-height: 1; letter-spacing: -0.02em; pointer-events: none; z-index: 2;
}
.addr span { display: block; width: var(--door-w); white-space: nowrap; will-change: transform; }
.addr-a { text-align: left; }
.addr-b { text-align: right; }
.door {
  position: absolute; left: 50%; top: 50%;
  width: var(--door-w); height: var(--door-h);
  transform: translate(-50%, -50%); overflow: hidden; background: var(--champagne);
}
.door img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.door::after { content: ""; position: absolute; inset: 0; background: var(--gold); opacity: var(--veil, 0); pointer-events: none; }
.region {
  margin: 0; font: 500 13px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
}
.opening-stage .region {
  position: absolute; left: calc(50% - var(--door-w) / 2);
  top: calc(50% + var(--door-h) / 2 + var(--gap)); max-width: calc(var(--door-w) * .55);
  height: var(--fs); display: flex; align-items: center;
}

.motion .opening { height: calc(100vh - var(--hh) + 120vh); }
.motion .opening-stage { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); }

@media (max-width: 899px) {
  .opening-stage {
    --door-h: min(48vh, 420px);
    --fs: min(13.2vw, 64px);
    --gap: 12px;
  }
  .opening-stage .region { font-size: 11.5px; letter-spacing: 0.12em; max-width: 58%; }
}

/* Photos rise in an offset grid after each project title opens */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 72px) 24px;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
}
.grid figure:nth-child(1) { grid-column: 1 / 8; }
.grid figure:nth-child(2) { grid-column: 9 / 13; margin-top: 14vh; }
/* pulled up into the space left beside the tall photo */
.grid figure:nth-child(3) { grid-column: 2 / 7; margin-top: max(-240px, -16vw); }
.grid figure:nth-child(4) { grid-column: 8 / 13; margin-top: 4vh; }
.grid-c figure:nth-child(3) { grid-column: 3 / 9; }
.grid img { width: 100%; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--stone); display: flex; gap: 12px; align-items: center; }
figcaption::before { content: ""; width: 24px; height: 1px; background: var(--gold); flex: none; }
@media (max-width: 899px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .grid figure:nth-child(n) { grid-column: auto; margin-top: 0; }
  .grid figure.tall { width: 72%; justify-self: end; }
}

/* More samples */
.more { padding: 0 var(--gutter) var(--section); max-width: 1440px; margin: 0 auto; }
.more-head { margin-bottom: clamp(40px, 5vw, 72px); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(30px, 3.2vw, 50px); margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* portrait cut-outs on white: crop to the face and shoulders */
.tiles img.tile-pose { object-position: 50% 12%; background: var(--white); }
@media (max-width: 899px) {
  .row { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .tiles { gap: 8px; }
}

/* What we build */
.build { background: var(--champagne); padding: var(--section) var(--gutter); }
.build-head, .build-cols { max-width: 1240px; margin: 0 auto; }
.build-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 88px); }
.build h3 { font: 500 13px/1 var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.build-list { list-style: none; margin: 0; padding: 0; }
.build-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid #DCCFAE; text-decoration: none;
  font: 400 clamp(30px, 3.4vw, 52px)/1.1 var(--display); transition: padding-left .3s, color .3s;
}
.build-list a span { font: 400 22px/1 var(--text); color: var(--gold-ink); }
.build-list a:hover { padding-left: 12px; color: var(--gold-ink); }
@media (max-width: 899px) { .build-cols { grid-template-columns: 1fr; } }

/* Quote */
.quote {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px);
  max-width: 1440px; margin: 0 auto; padding: var(--section) var(--gutter);
}
.quote-text a { color: var(--gold-ink); }
.form { background: var(--champagne); padding: clamp(24px, 3.4vw, 52px); }
.field { margin-bottom: 20px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.req { font-weight: 400; color: var(--stone); font-size: 13px; }
input, select, textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--white);
  border: 1px solid var(--field); border-radius: 0; padding: 13px 14px; min-height: 52px;
}
textarea { resize: vertical; }
input::placeholder { color: #77726C; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.form-error { color: #B3261E; font-weight: 500; margin: 0 0 16px; }
.form-note { font-size: 14px; color: var(--stone); margin: 14px 0 0; }
@media (max-width: 899px) {
  .quote { grid-template-columns: 1fr; }
  .form { margin: 0 calc(var(--gutter) * -1); }
  .field-pair { grid-template-columns: 1fr; }
}

/* Footer (light) */
.foot { border-top: 1px solid var(--gold); padding: clamp(56px, 7vw, 96px) var(--gutter) 110px; max-width: 1440px; margin: 0 auto; }
.foot-brand p { font: italic 400 22px/1.2 var(--display); margin: 16px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.foot-cols p { margin: 0; line-height: 1.9; }
.foot-cols .label { margin-bottom: 14px; line-height: 1; }
.foot-cols a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot-small { font-size: 13px; color: var(--stone); margin: 56px 0 0; }
@media (max-width: 899px) { .foot-cols { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none;
  font: 500 15px/1 var(--text); box-shadow: 0 8px 24px rgba(15, 60, 35, .25);
}
.wa-float:hover { background: #0B6633; }
@media (max-width: 479px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
