/* ==========================================================================
   Sri Vinayaga Interior Works — visual system
   Palette sampled from the company's visiting card (rust panel, amber bar,
   orange monogram). Shape language: square edges + one large "card arc".
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Tamil";
  src: url("../fonts/anek-tamil.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --rust: #a3482b;
  --rust-deep: #7a3119;
  --amber: #e99a3a;
  --amber-light: #ffd29a;
  --flame: #da7b34;
  --paper: #fbf8f3;
  --cream: #f7f0e6;
  --sand: #ece1d1;
  --umber: #24150f;
  --ink: #170d09;
  --text: #2a1b14;
  --muted: #6b5549;
  --line: rgba(42, 27, 20, .14);
  --line-light: rgba(247, 240, 230, .16);

  --f: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-ta: "Anek Tamil", "Noto Sans Tamil", "Latha", var(--f);

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1320px;
  --header-h: 68px;
  --arc: clamp(84px, 15vw, 260px);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { margin: 0; font-weight: 760; font-stretch: 112%; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:lang(ta) { font-family: var(--f-ta); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: .7rem 1rem; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.amber { color: var(--amber); }

/* Section labels: short rule + spaced caps */
.label {
  display: flex; align-items: center; gap: .9em;
  font-size: .75rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 1.25rem;
}
.label::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.label--light { color: var(--amber-light); }

/* The card's amber bar with letter-spaced caps */
.tag {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  padding: .55em 1em .55em 1.2em; margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.35em;
  font-weight: 650; font-size: 1rem; font-stretch: 104%; line-height: 1; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn .i--arrow { transition: transform .3s var(--ease); }
.btn:hover .i--arrow { transform: translateX(4px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-light); }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-deep); }
.btn--ghost-light { border-color: rgba(247, 240, 230, .55); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--rust-deep); border-color: var(--cream); }
.btn--sm { min-height: 44px; padding: .55em 1em; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--amber-light); font-weight: 650; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: .2em;
}
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .sv-mark {
  width: 44px; height: 44px; padding: 7px 6px 7px 5px;
  background: var(--rust); color: var(--amber);
  border-top-right-radius: 16px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-stretch: 120%; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.brand__sub { margin-top: .4em; font-size: .66rem; font-weight: 650; letter-spacing: .32em; text-transform: uppercase; color: var(--rust); }
.brand--light .brand__name { color: var(--cream); }
.brand--light .brand__sub { color: var(--amber-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 243, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(23, 13, 9, .5); }
.site-header__bar { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2.1vw, 2.1rem); }
.nav__link { position: relative; display: block; padding: .5rem 0; font-size: .95rem; font-weight: 560; text-decoration: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
  background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--rust); }
.nav__contact { display: none; }
.header-call { margin-left: 1.25rem; }
.menu-toggle { display: none; }

@media (max-width: 1179px) {
  .js .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-left: .25rem;
    background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  }
  .menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after {
    display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s;
  }
  .menu-toggle__lines { position: relative; }
  .menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__lines::before { top: -6px; }
  .menu-toggle__lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

  .header-call { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--rust); color: var(--cream); overflow-y: auto;
    border-top-right-radius: var(--arc);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
  html:not(.js) .nav { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: .7rem 0; font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 750; font-stretch: 115%;
    letter-spacing: -.02em; border-bottom: 1px solid rgba(247, 240, 230, .18);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--amber-light); }
  .nav__contact { display: grid; gap: .35rem; font-size: 1.1rem; }
  .nav__contact a { font-weight: 700; text-decoration: none; color: var(--amber-light); }
  .nav__contact p { font-size: .9rem; opacity: .8; margin-top: .5rem; }
}
@media (max-width: 599px) {
  .header-call span { display: none; }
  .header-call { width: 48px; padding: 0; }
  .header-call .i { width: 1.3em; height: 1.3em; }
  .brand .sv-mark { width: 40px; height: 40px; }
}
.brand__name, .brand__sub { white-space: nowrap; }
@media (max-width: 374px) {
  .brand { gap: .55rem; }
  .brand__sub { letter-spacing: .2em; }
  .brand__name { font-size: .9rem; font-stretch: 110%; }
  .tag { letter-spacing: .2em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; background: var(--paper); }
.hero__media { position: relative; order: -1; height: clamp(300px, 46svh, 600px); }
.hero__shot { position: absolute; margin: 0; overflow: hidden; }
.hero__shot picture, .hero__shot img { width: 100%; height: 100%; object-fit: cover; }
.hero__shot figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: .45em .8em; background: rgba(23, 13, 9, .74); color: var(--cream);
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.hero__shot--a { inset: 0; }
.hero__shot--a figcaption { bottom: auto; top: 0; }
.hero__shot--b {
  right: var(--gutter); bottom: 76px; width: clamp(110px, 32%, 220px); aspect-ratio: 3 / 4;
  border: 5px solid var(--paper); z-index: 2;
}
.hero__shot--b figcaption, .hero__shot--c, .hero__bar { display: none; }

.hero__panel {
  position: relative; z-index: 3; overflow: hidden;
  margin-top: -56px;
  padding: clamp(2.6rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 4.5rem);
  background: var(--rust); color: var(--cream);
  border-top-right-radius: var(--arc);
}
.hero__copy { position: relative; z-index: 1; max-width: 620px; }
.hero__kicker {
  display: block; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 650; font-stretch: 100%; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4;
  color: var(--amber-light);
}
.hero__title { font-size: clamp(2.45rem, 1.3rem + 5.2vw, 5.4rem); font-weight: 800; font-stretch: 116%; line-height: .96; letter-spacing: -.035em; }
.hero__title em {
  font-style: normal; color: var(--amber);
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 100% .07em no-repeat;
  padding-bottom: .04em;
}
.hero__lead { max-width: 36ch; margin-top: 1.4rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(247, 240, 230, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__tamil {
  position: absolute; right: -.04em; bottom: -.12em; z-index: 0; pointer-events: none;
  font-family: var(--f-ta); font-weight: 800; font-stretch: 110%; line-height: 1; white-space: nowrap;
  font-size: clamp(3rem, 13vw, 7.5rem);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 210, 154, .26);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__shot--c { display: block; left: var(--gutter); bottom: 76px; width: clamp(110px, 24%, 180px); aspect-ratio: 3 / 4; border: 5px solid var(--paper); z-index: 2; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: clamp(640px, calc(100svh - var(--header-h)), 920px);
  }
  .hero__panel {
    margin: 0; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4.5rem) clamp(4rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
  .hero__media { order: 0; height: auto; }
  .hero__shot--a { inset: 7% auto 7% 5%; width: 46%; }
  .hero__shot--a figcaption { top: auto; bottom: 0; }
  .hero__shot--b { inset: 9% auto auto 56%; width: 36%; height: 50%; aspect-ratio: auto; border: 0; right: auto; bottom: auto; }
  .hero__shot--b figcaption { display: block; top: 0; bottom: auto; }
  .hero__shot--c {
    display: block; inset: auto auto 7% 45%; width: 30%; height: 34%;
    border: 8px solid var(--paper); border-left: 0; border-bottom: 0; z-index: 3;
  }
  .hero__bar { display: block; position: absolute; left: 60%; top: calc(9% + 28px); width: 36%; height: 50%; background: var(--amber); z-index: 0; transform: translate(18px, -46px); }
  .hero__shot--b { z-index: 1; }
}

/* load-in animation for the hero (CSS only, independent of JS) */
.rise { animation: rise .9s var(--ease) both; }
.hero__copy .rise:nth-child(2) { animation-delay: .08s; }
.hero__copy .rise:nth-child(3) { animation-delay: .16s; }
.hero__copy .rise:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .hero__shot--b, .hero__bar { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__shot--c { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes drift { to { translate: 0 70px; } }
@keyframes drift-up { to { translate: 0 -50px; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--amber); color: var(--ink); border-bottom: 1px solid rgba(23, 13, 9, .15); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  display: flex; align-items: center; padding: 1.05rem 0;
  font-size: clamp(.95rem, .8rem + .6vw, 1.3rem); font-weight: 760; font-stretch: 122%; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.ticker__list li::after { content: ""; width: .5em; height: .5em; margin-inline: 1.5em; background: var(--rust); transform: skewX(-18deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Workshop ---------- */
.workshop { position: relative; padding-block: var(--section); overflow: hidden; }
.workshop::before {
  content: ""; position: absolute; right: 0; top: 42%; width: min(30vw, 380px); height: 46%;
  background: repeating-linear-gradient(90deg, var(--sand) 0 12px, transparent 12px 22px);
}
.workshop__grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem); }
.workshop__statement {
  font-size: clamp(1.7rem, .9rem + 3.3vw, 3.7rem); font-weight: 640; font-stretch: 106%;
  line-height: 1.14; letter-spacing: -.025em; max-width: 30ch;
}
.pill {
  display: inline-block; vertical-align: middle; width: 2.3em; height: 1.02em; margin: -.1em .1em 0;
  border-radius: 999px; overflow: hidden; background: var(--sand);
}
.pill picture, .pill img { width: 100%; height: 100%; object-fit: cover; }
.js .workshop__statement .pill { width: 0; margin-inline: 0; transition: width 1s var(--ease) .35s, margin .9s var(--ease) .35s; }
.js .workshop__statement.is-in .pill { width: 2.3em; margin-inline: .1em; }

.workshop__photo { margin: 0; }
.workshop__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.workshop__photo figcaption {
  display: flex; flex-wrap: wrap; gap: .4em 1em; margin-top: .8rem; padding-top: .7rem;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted);
}
.workshop__photo figcaption span { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--rust); }
.workshop__photo--small img { aspect-ratio: 7 / 5; }
.workshop__body p { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); max-width: 46ch; }
.workshop__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.25rem;
  margin: 2rem 0 0; padding-top: 1.4rem; border-top: 2px solid var(--ink);
}
.workshop__facts dt { font-size: .75rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.workshop__facts dd { margin: .3rem 0 0; font-size: 1.15rem; font-weight: 720; font-stretch: 108%; line-height: 1.25; }

@media (min-width: 600px) and (max-width: 899px) {
  .workshop__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .workshop__intro { grid-column: 1 / -1; }
  .workshop__photo:not(.workshop__photo--small) { grid-row: 2; grid-column: 1; }
  .workshop__photo--small { grid-row: 2; grid-column: 2; align-self: end; }
  .workshop__body { grid-row: 3; grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .workshop__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .workshop__intro { grid-column: 1 / -1; }
  .workshop__photo:not(.workshop__photo--small) { grid-column: 1 / span 5; grid-row: 2 / span 2; }
  .workshop__body { grid-column: 7 / span 6; grid-row: 2; padding-top: 1rem; }
  .workshop__photo--small { grid-column: 8 / span 5; grid-row: 3; align-self: end; }
}

/* ---------- Services ---------- */
.services { background: var(--umber); color: var(--cream); padding-block: var(--section); }
.services__head { display: grid; gap: 1.25rem; align-items: end; }
.services__head h2 { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.4rem); font-weight: 800; font-stretch: 116%; line-height: .95; letter-spacing: -.035em; }
.services__intro { max-width: 34ch; color: rgba(247, 240, 230, .75); padding-bottom: .5rem; }
.services__layout { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 3rem; }

.svc-list { border-top: 1px solid var(--line-light); }
.svc { border-bottom: 1px solid var(--line-light); }
.svc h3 { font: inherit; letter-spacing: normal; }
.svc__btn {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .75rem;
  width: 100%; padding: 1.05rem 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.svc__num { font-size: 1.05rem; font-weight: 500; font-stretch: 70%; letter-spacing: .04em; color: rgba(247, 240, 230, .5); font-variant-numeric: tabular-nums; transition: color .3s; }
.svc__title {
  font-size: clamp(1.2rem, .9rem + 1.3vw, 1.95rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.15;
  transition: color .3s, transform .4s var(--ease);
}
.svc__arrow { width: 1.4rem; height: 1.4rem; color: var(--amber); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); }
.svc__btn:hover .svc__title { transform: translateX(6px); }
.svc.is-active .svc__num, .svc.is-active .svc__title { color: var(--amber); }
.svc.is-active .svc__arrow { opacity: 1; transform: none; }
.svc__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.svc.is-active .svc__detail, html:not(.js) .svc__detail { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; min-height: 0; padding-left: 3.75rem; }
.svc__inner p { max-width: 44ch; padding-bottom: 1.25rem; color: rgba(247, 240, 230, .78); }
.svc__thumb { margin-bottom: 1.4rem; }
.svc__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-media { display: none; }

@media (max-width: 599px) {
  .svc__inner { padding-left: 0; }
  .svc__btn { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
}
@media (min-width: 760px) {
  .services__head { grid-template-columns: 1.3fr 1fr; }
  .services__intro { justify-self: end; }
}
@media (min-width: 960px) {
  .services__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
  .svc__thumb { display: none; }
  .svc-media {
    display: block; position: sticky; top: calc(var(--header-h) + 2rem);
    height: min(76vh, 700px); overflow: hidden; border-top-left-radius: var(--arc);
  }
  .svc-media__item { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity .6s ease, transform 1.2s var(--ease); }
  .svc-media__item.is-active { opacity: 1; transform: none; }
  .svc-media__item picture, .svc-media__item img { width: 100%; height: 100%; object-fit: cover; }
  .svc-media__item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 1rem;
    padding: 3.5rem 1.5rem 1.3rem; background: linear-gradient(transparent, rgba(23, 13, 9, .85));
    font-size: 1.15rem; font-weight: 700; font-stretch: 110%;
  }
  .svc-media__item figcaption span { color: var(--amber); font-stretch: 70%; font-weight: 500; }
  .svc-media__count {
    position: absolute; right: 1.25rem; top: 1rem; z-index: 2;
    font-size: 1rem; font-weight: 600; font-stretch: 70%; letter-spacing: .1em; color: var(--cream);
    background: rgba(23, 13, 9, .6); padding: .3em .6em;
  }
}

/* ---------- Film ---------- */
.film { background: var(--umber); }
.film__panel {
  position: relative; overflow: hidden;
  background: var(--rust); color: var(--cream);
  padding-block: var(--section);
  border-top-left-radius: var(--arc);
}
.film__panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(38vw, 520px);
  background: repeating-linear-gradient(90deg, rgba(23, 13, 9, .14) 0 10px, transparent 10px 20px);
  pointer-events: none;
}
.film__grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.film__copy h2 { font-size: clamp(2.2rem, 1.1rem + 4.2vw, 4.4rem); font-weight: 800; font-stretch: 114%; line-height: .98; letter-spacing: -.03em; }
.film__copy > p { max-width: 40ch; margin-top: 1.3rem; color: rgba(247, 240, 230, .9); }
.film__notes { margin-top: 2rem; counter-reset: note; max-width: 30rem; }
.film__notes li {
  counter-increment: note; display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid rgba(247, 240, 230, .25);
  font-size: .8rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
}
.film__notes li:last-child { border-bottom: 1px solid rgba(247, 240, 230, .25); }
.film__notes li::before { content: counter(note, upper-alpha); width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--amber); color: var(--ink); letter-spacing: 0; font-stretch: 90%; }

.film__stage { position: relative; display: flex; justify-content: center; padding: 0 22px 22px 0; }
.film__frame { position: relative; z-index: 2; width: min(76vw, 360px); aspect-ratio: 478 / 850; background: var(--ink); box-shadow: 22px 22px 0 var(--amber); }
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film__controls { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.film__btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(23, 13, 9, .72); color: var(--cream); transition: background-color .25s, color .25s;
}
.film__btn:hover { background: var(--amber); color: var(--ink); }
.film__btn .i { width: 20px; height: 20px; }
.film__btn .i--pause, .film__btn .i--sound,
.film__frame.is-playing .i--play, .film__frame.has-sound .i--muted { display: none; }
.film__frame.is-playing .i--pause, .film__frame.has-sound .i--sound { display: block; }
html:not(.js) .film__controls { display: none; }
.film__still, .film__tag { display: none; }

@media (min-width: 1024px) {
  .film__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); }
  .film__stage { justify-content: flex-end; padding-right: clamp(22px, 6vw, 90px); }
  .film__frame { width: min(28vw, 380px); }
  .film__still {
    display: block; position: absolute; left: 0; top: 16%; width: 38%; margin: 0;
    mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: .55;
  }
  .film__still img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
  .film__tag {
    display: block; position: absolute; left: 2%; bottom: 2%; z-index: 3;
    font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; font-stretch: 62%; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 210, 154, .7);
  }
}

/* ---------- Work ---------- */
.work { background: var(--cream); padding-block: var(--section); }
.work__head { display: grid; gap: 1.25rem; align-items: end; }
.work__head h2 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.8rem); font-weight: 800; font-stretch: 114%; line-height: .96; letter-spacing: -.035em; }
.work__intro { max-width: 40ch; color: var(--muted); }
@media (min-width: 900px) { .work__head { grid-template-columns: 1.4fr 1fr; } .work__intro { justify-self: end; } }

.work__body { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid rgba(42, 27, 20, .3); font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
input:checked + .chip { background: var(--ink); border-color: var(--ink); color: var(--cream); }
input:focus-visible + .chip { outline: 3px solid var(--amber); outline-offset: 2px; }

.work__grid {
  flex-basis: 100%; margin-top: 1.25rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 44vw, 250px);
  grid-auto-flow: dense; gap: clamp(6px, 1vw, 14px);
}
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile { animation: tile-in .6s var(--ease) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } }
.tile__link { position: relative; display: block; height: 100%; overflow: hidden; background: var(--sand); text-decoration: none; color: #fff; }
.tile__link picture, .tile__link img { width: 100%; height: 100%; object-fit: cover; }
.tile__link img { transition: transform 1s var(--ease); }
.tile__link:hover img, .tile__link:focus-visible img { transform: scale(1.05); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .1rem;
  padding: 2.6rem .85rem .75rem; background: linear-gradient(transparent, rgba(20, 11, 7, .85));
  font-size: .78rem; line-height: 1.35;
}
.tile__cap strong { font-size: .95rem; font-weight: 700; font-stretch: 106%; }
.tile__cap span { opacity: .85; }
@media (max-width: 599px) { .tile:not(.tile--big):not(.tile--wide) .tile__cap span { display: none; } .tile__cap strong { font-size: .88rem; } }
@media (hover: hover) and (min-width: 900px) {
  .tile__cap span { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
  .tile__link:hover .tile__cap span, .tile__link:focus-visible .tile__cap span { max-height: 3em; opacity: .85; }
}
@media (min-width: 720px) { .work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 23vw, 250px); } }
@media (min-width: 720px) and (max-width: 1099px) { .tile--tall-md { grid-row: span 2; } }
@media (min-width: 1100px) { .work__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 17vw, 250px); } }

/* CSS-only filtering */
#f-wardrobes:checked ~ .work__grid .tile:not([data-cat="wardrobes"]),
#f-living:checked ~ .work__grid .tile:not([data-cat="living"]),
#f-kitchens:checked ~ .work__grid .tile:not([data-cat="kitchens"]),
#f-glass:checked ~ .work__grid .tile:not([data-cat="glass"]),
#f-windows:checked ~ .work__grid .tile:not([data-cat="windows"]) { display: none; }

/* ---------- Why ---------- */
.why { padding-block: var(--section); overflow: hidden; }
.why__grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 5rem); align-items: center; }
.why__num {
  display: block; width: max-content; margin-inline: auto;
  font-size: clamp(11rem, 50vw, 26rem); font-weight: 900; font-stretch: 62%; line-height: .78; letter-spacing: -.05em;
  background-color: var(--rust); background-size: cover; background-position: center 30%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why__copy h2 { font-size: clamp(1.9rem, 1rem + 3vw, 3.4rem); font-weight: 760; font-stretch: 110%; line-height: 1.05; letter-spacing: -.03em; }
.why__trades { display: flex; flex-wrap: wrap; gap: .35rem 0; margin-top: 1.75rem; font-size: .92rem; color: var(--muted); }
.why__trades li:not(:last-child)::after { content: "/"; margin-inline: .65em; color: var(--amber); font-weight: 700; }
.why__points { display: grid; gap: 2rem; margin-top: 1rem; }
.why__points li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.why__idx { display: block; font-size: .95rem; font-weight: 600; font-stretch: 70%; color: var(--rust); margin-bottom: .9rem; }
.why__points h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.why__points p { margin-top: .6rem; color: var(--muted); max-width: 38ch; }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .why__num { margin-inline: 0; }
  .why__points { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2rem; }
}

/* ---------- Process ---------- */
.process { background: var(--sand); padding-block: var(--section); }
.process__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.process__media { position: relative; padding-bottom: 18%; }
.process__img { margin: 0; position: relative; }
.process__img img { width: 100%; object-fit: cover; }
.process__img figcaption {
  position: absolute; left: 0; top: 0; padding: .45em .8em;
  background: var(--paper); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rust);
}
.process__img--a { width: 76%; }
.process__img--a img { aspect-ratio: 4 / 5; }
.process__img--b { position: absolute; right: 0; bottom: 0; width: 48%; border: 8px solid var(--sand); border-right: 0; border-bottom: 0; }
.process__img--b img { aspect-ratio: 3 / 4; }
.process__copy h2 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4rem); font-weight: 800; font-stretch: 112%; line-height: .98; letter-spacing: -.03em; }

.steps { position: relative; margin-top: 2.5rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: calc(1.375rem - 1px); top: .5rem; bottom: 2.5rem; width: 2px; background: rgba(23, 13, 9, .16); }
.steps::after { background: var(--rust); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--paper); border: 2px solid var(--rust); color: var(--rust);
  font-weight: 800; font-stretch: 80%; font-size: .95rem;
}
.step h3 { font-size: 1.3rem; font-stretch: 108%; padding-top: .55rem; }
.step p { margin-top: .4rem; color: var(--muted); max-width: 42ch; }
@media (min-width: 960px) {
  .process__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .process__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 70%; }
  }
}
@keyframes grow { to { transform: scaleY(1); } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding-block: var(--section); }
.contact__mark { position: absolute; right: -6%; bottom: -12%; width: min(70vw, 620px); color: rgba(233, 154, 58, .06); pointer-events: none; }
.contact__mark svg { width: 100%; height: auto; }
.contact__grid { position: relative; display: grid; gap: clamp(3rem, 5vw, 5rem); }
.contact__info h2 { font-size: clamp(2.4rem, 1.2rem + 4.8vw, 5.2rem); font-weight: 800; font-stretch: 116%; line-height: .95; letter-spacing: -.035em; }
.contact__lead { max-width: 40ch; margin-top: 1.25rem; color: rgba(247, 240, 230, .8); }
.contact__phones { margin: 2.25rem 0; border-top: 1px solid var(--line-light); }
.contact__phones a {
  display: flex; flex-direction: column; padding: .8rem 0; text-decoration: none; border-bottom: 1px solid var(--line-light);
  font-size: clamp(2rem, 1rem + 4.6vw, 4.2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05;
  transition: color .25s;
}
.contact__phones a:hover { color: var(--amber); }
.contact__phone-label { font-size: .72rem; font-weight: 650; font-stretch: 100%; letter-spacing: .24em; text-transform: uppercase; color: var(--amber-light); margin-bottom: .35rem; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-end; justify-content: space-between; }
.contact__meta address { font-style: normal; color: rgba(247, 240, 230, .85); line-height: 1.5; }
.contact__meta-label { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: var(--amber-light); }
@media (min-width: 600px) {
  .contact__phones a { flex-direction: row; align-items: baseline; gap: 1.25rem; }
  .contact__phone-label { width: 3.5rem; flex: none; margin: 0; }
}

.enquiry { align-self: start; background: var(--cream); color: var(--text); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-top-right-radius: clamp(56px, 8vw, 110px); }
.enquiry__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); font-stretch: 110%; padding-right: 2.5rem; }
.enquiry__note { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.field { display: grid; gap: .4rem; margin-top: 1.15rem; }
.field label { font-size: .88rem; font-weight: 650; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem .9rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid rgba(42, 27, 20, .28); border-radius: 2px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a3482b' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.enquiry__error { margin-top: 1rem; color: #b3261e; font-size: .92rem; font-weight: 600; }
.enquiry .btn { margin-top: 1.4rem; }

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}

/* ---------- Footer ---------- */
.footer { background: #100906; color: rgba(247, 240, 230, .72); padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: 1.5rem; font-size: .95rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand p { margin-top: 1.25rem; max-width: 38ch; }
.footer a { display: inline-block; padding-block: .25rem; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--amber); }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: .25rem 2.5rem; }
.footer__contact { display: grid; gap: .1rem; align-content: start; justify-items: start; }
.footer__contact a { color: var(--cream); font-weight: 650; }
.footer__contact p { margin-top: .4rem; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(247, 240, 230, .12); font-size: .85rem;
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- Mobile quick bar ---------- */
.quickbar { display: none; }
@media (max-width: 899px) {
  .js .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .js .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 56px;
    font-weight: 700; font-stretch: 106%; text-decoration: none;
  }
  .quickbar a:first-child { background: var(--amber); color: var(--ink); }
  .quickbar a:last-child { background: var(--rust); color: #fff; }
  .js .footer { padding-bottom: calc(56px + 1.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(16, 9, 6, .92); }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; margin-inline: auto; object-fit: contain; }
.lightbox__cap { margin-top: .75rem; color: var(--cream); text-align: center; font-size: .95rem; }
.lightbox__close {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--amber); color: var(--ink); font-size: 1.8rem; line-height: 1;
}

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* the observed figure stays unclipped (IntersectionObserver ignores fully clipped targets); only its image wipes in */
.js .reveal-img > picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.js .reveal-img.is-in > picture { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img > picture { clip-path: none; }
  .js .workshop__statement .pill { width: 2.3em; margin-inline: .1em; }
  .ticker__track { flex-wrap: wrap; width: auto; }
  .ticker__list:last-child { display: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
}
