/* shiftedtech Renovation sample. Light, photo-led, warm paper and oak tones. */
/* Self-hosted Google Fonts (latin subset), so the first paint doesn't wait on another server */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 500; font-display: swap; src: url(fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/manrope.woff2) format("woff2"); }

:root {
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --stone: #F1EBE0;
  --line: #E4DBCC;
  --ink: #14293B;
  --ink-soft: #4A5866;
  --oak: #B4875A;        /* decorative only: rules, large numbers */
  --oak-ink: #8A6239;    /* oak dark enough for small text (5:1 on paper) */
  --accent: #C2481A;     /* warm orange, deep enough to pass AA with white */
  --accent-dark: #A33C14;
  --wa: #0F7A3E;

  --display: "Fraunces", Georgia, serif;
  --text: "Manrope", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(88px, 11vw, 168px);
  --notice-h: 32px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  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 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(44px, 6.4vw, 96px); }
h1 em, h2 em { font-style: italic; font-weight: 300; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.body { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); max-width: 34ch; margin: 24px 0 0; }
.label { font: 600 13px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--oak-ink); margin: 0 0 22px; display: flex; gap: 14px; align-items: center; }
.label span { color: var(--accent); font-family: var(--display); font-size: 15px; letter-spacing: 0; font-weight: 500; }
.label::after { content: ""; width: 48px; height: 1px; background: var(--oak); }

/* Notice and header */
.notice {
  margin: 0; height: var(--notice-h); display: flex; align-items: center; justify-content: center;
  padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.25;
  position: relative; z-index: 60;
}
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(251, 248, 243, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 219, 204, 0.7);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font: 500 20px/1 var(--display); letter-spacing: -0.01em; display: flex; flex-direction: column; gap: 3px; }
.brand small { font: 600 10px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--oak-ink); }
.nav { display: none; gap: 36px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-wide { width: 100%; }

/* Hero. The photo is clipped to an arch; JS widens the clip to full screen on scroll. */
.hero {
  position: relative; height: calc(100svh - var(--notice-h) - var(--header-h)); min-height: 560px; overflow: hidden;
  --t: 46%; --r: 6vw; --b: 22px; --l: 6vw; --rad: 44vw;
}
.motion .hero-run { height: calc(100svh - var(--notice-h) - var(--header-h) + 120vh); }
.motion .hero { position: sticky; top: var(--header-h); }
.hero-copy { position: relative; z-index: 2; padding: 40px var(--gutter) 0; }
.hero h1 { font-size: clamp(54px, 15vw, 150px); }
.hero h1 em { display: block; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 30ch; margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 899px) { .hero-actions { display: none; } }
.hero-media {
  position: absolute; inset: 0; z-index: 3;
  clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad) var(--rad) 0 0);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; }
.hero-caption {
  position: absolute; left: var(--gutter); bottom: 28px; margin: 0; z-index: 2;
  color: var(--white); font: italic 300 clamp(20px, 2vw, 30px)/1.2 var(--display);
  opacity: 0; max-width: 24ch;
}
/* Scrim only where the caption sits, not over the whole photo */
.hero-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgba(10, 20, 30, 0.55), rgba(10, 20, 30, 0));
  opacity: var(--scrim, 0); pointer-events: none;
}
@media (max-width: 899px) {
  .hero-copy { padding-top: 28px; }
  .hero { --t: calc(var(--copy-h, 330px) + 24px); }
}
@media (min-width: 900px) {
  .motion .hero-run { height: calc(100vh - var(--notice-h) - var(--header-h) + 120vh); }
  .hero { --t: 4vh; --r: 6vw; --b: 5vh; --l: 54vw; --rad: 20vw; height: calc(100vh - var(--notice-h) - var(--header-h)); }
  .hero-copy { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 52vw; padding-top: 0; }
  .hero h1 { font-size: clamp(80px, 8.6vw, 150px); }
  .hero-actions .btn-line { display: inline-flex; }
}

/* Statement */
.statement { padding: var(--section) var(--gutter); display: grid; gap: 56px; }
.statement-text { margin: 0; font: 300 clamp(36px, 5.4vw, 84px)/1.08 var(--display); letter-spacing: -0.02em; max-width: 18ch; }
.statement-text .w { opacity: 1; }
.motion .statement-text .w { opacity: 0.16; }
@media (min-width: 900px) {
  .statement { grid-template-columns: 1fr auto; align-items: end; }
}

/* Chapter 01: closet */
.closet { padding: 0 var(--gutter) var(--section); }
.closet-steps { list-style: none; padding: 0; margin: 40px 0 0; display: none; }
.closet-steps li { font: 400 20px/1 var(--display); color: #8E97A0; padding: 14px 0 14px 28px; position: relative; transition: color .4s ease; }
.closet-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: currentColor; transition: width .4s ease; }
.closet-steps li.is-on { color: var(--ink); }
.closet-steps li.is-on::before { width: 20px; background: var(--accent); }
.closet-frame { display: grid; gap: 14px; margin-top: 48px; }
.closet-frame figure { overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 4; background: var(--stone); }
.closet-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; background: var(--white); }
@media (min-width: 900px) {
  .closet-frame { grid-template-columns: 1fr 1fr; }
  /* Pinning uses position: sticky inside a tall section, which is cheaper than moving the element in JS */
  .motion .closet { height: calc(100vh - var(--header-h) + 280vh); padding-bottom: 0; }
  .motion .closet-stage { position: sticky; top: var(--header-h); display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; height: calc(100vh - var(--header-h)); }
  .motion .closet-steps { display: block; }
  .motion .closet-frame { position: relative; margin: 0; height: min(76vh, 760px); aspect-ratio: 3 / 4; justify-self: end; display: block; }
  .motion .closet-frame figure { position: absolute; inset: 0; aspect-ratio: auto; }
  .motion .closet-frame figure:not(:first-child) { clip-path: inset(100% 0 0 0); }
}

/* Chapter 02: rooms, sideways gallery */
.raya { background: var(--stone); }
.raya-pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.motion .raya { height: calc(100svh - var(--header-h) + var(--dist, 0px)); }
.motion .raya-pin { position: sticky; top: var(--header-h); overflow: hidden; height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.raya-track { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 96px var(--gutter); width: max-content; }
.motion .raya-track { padding-block: 0; will-change: transform; }
.raya-intro { width: min(78vw, 460px); flex: none; scroll-snap-align: start; }
.arch-card { --pw: min(78vw, 52vh); flex: none; width: var(--pw); scroll-snap-align: center; }
.arch { aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(var(--pw) / 2) calc(var(--pw) / 2) 6px 6px; background: var(--line); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.arch-card:nth-of-type(even) { margin-top: 10vh; }
.arch-card figcaption { margin-top: 16px; font: italic 300 20px/1.2 var(--display); }
.raya-end { flex: none; width: min(70vw, 380px); display: grid; gap: 20px; justify-items: start; scroll-snap-align: end; }
.raya-end p { margin: 0; font: 400 clamp(32px, 3.4vw, 48px)/1.08 var(--display); }
@media (max-width: 899px) { .arch-card:nth-of-type(even) { margin-top: 6vh; } }
@media (max-width: 599px) { :root { --notice-h: 40px; } .notice { font-size: 11.5px; } }

/* Chapter 03: office */
.office { padding: var(--section) var(--gutter); }
.office-head { max-width: 640px; margin-left: auto; }
.office-wide { margin-top: 64px; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.parallax { height: 100%; }
.office-wide img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.office-grid { display: grid; gap: 14px; margin-top: 14px; }
.office-grid figure { overflow: hidden; border-radius: 6px; }
.office-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.office-grid .g3 img { aspect-ratio: 4 / 3; }
.office-grid figcaption { font-size: 14px; color: var(--oak-ink); padding-top: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 900px) {
  .office-wide { aspect-ratio: 21 / 9; margin-top: 80px; }
  .office-grid { grid-template-columns: 5fr 4fr 4fr; gap: 3vw; align-items: start; margin-top: 3vw; }
  .office-grid .g2 { margin-top: 14vw; }
  .office-grid .g3 { margin-top: 5vw; }
}

/* How we work */
.promises { padding: var(--section) var(--gutter); background: var(--white); border-block: 1px solid var(--line); }
.promise-list { list-style: none; margin: 56px 0 0; padding: 0; }
.promise-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.p-num { font: 500 15px/1 var(--display); color: var(--accent); }
.p-big { font: 400 clamp(30px, 4.6vw, 68px)/1.05 var(--display); letter-spacing: -0.02em; }
.p-small { grid-column: 2; color: var(--ink-soft); font-size: 16px; margin-top: 8px; }
@media (min-width: 900px) {
  .promises { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; }
  .promise-list { margin: 0; }
  .promise-list li { grid-template-columns: 64px 1fr auto; }
  .p-small { grid-column: 3; margin: 0; text-align: right; }
}

/* Services */
.services { padding: var(--section) var(--gutter); }
.service-list { list-style: none; padding: 0; margin: 48px 0 0; }
.service-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none;
  font: 400 clamp(24px, 3vw, 40px)/1.15 var(--display);
  transition: padding .35s ease, color .25s ease;
}
.service-list li:last-child a { border-bottom: 1px solid var(--line); }
.service-list .arrow { font-family: var(--text); font-size: 22px; color: var(--accent); transition: transform .35s ease; flex: none; }
.service-list a:hover { padding-left: 14px; color: var(--accent-dark); }
.service-list a:hover .arrow { transform: translateX(6px); }
@media (min-width: 900px) {
  .services { display: grid; grid-template-columns: 1fr 2fr; gap: 6vw; }
  .service-list { margin: 0; }
}

/* Quote form */
.quote { padding: var(--section) var(--gutter); background: var(--stone); display: grid; gap: 48px; }
.quote-photo { display: none; margin-top: 48px; border-radius: 999px 999px 6px 6px; overflow: hidden; max-width: 320px; }
.quote-form { background: var(--white); border-radius: 10px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -30px rgba(20, 41, 59, 0.25); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  border: 1.5px solid #CFC5B4; border-radius: 8px; padding: 13px 14px; width: 100%; min-height: 52px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(194, 72, 26, 0.35); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.form-error { color: var(--accent-dark); font-weight: 600; margin: 0 0 16px; }
.form-note { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: start; }
  .quote-photo { display: block; }
}

/* Footer stays light */
.foot { padding: 80px var(--gutter) 120px; display: grid; gap: 40px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-mark { margin: 0; font: 500 26px/1 var(--display); letter-spacing: -0.01em; display: flex; flex-direction: column; gap: 4px; }
.foot-mark small { font: 600 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--oak-ink); }
.foot-line { font: italic 300 clamp(28px, 3vw, 44px)/1 var(--display); margin: 0; }
.foot-info { margin: 0; display: grid; gap: 24px; }
.foot-info dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--oak-ink); }
.foot-info dd { margin: 6px 0 0; font-size: 18px; }
.foot-info a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.foot-info a:hover { text-decoration-color: currentColor; }
.foot-legal { font-size: 13px; color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1fr 2fr; }
  .foot-info { grid-template-columns: repeat(3, 1fr); }
  .foot-legal { grid-column: 1 / -1; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  background: var(--wa); color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -10px rgba(15, 122, 62, 0.6);
  transition: transform .25s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 480px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Sample photos: the portrait mascot cut-outs are taller than the frames, so keep the face in view. */
.office-grid .g1 img, .office-grid .g2 img { object-position: 50% 15%; background: var(--white); }
.quote-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; background: var(--white); }
