/* ==========================================================
   ALBA — Interior Design Studio
   Palette: Ink #0f0303 · Olive Moss #6c6a2f · Linen #eeede8
            Cream #e7dfd0 · Cacao #4b2f22
   ========================================================== */

/* ---------- Brand fonts (self-hosted) ---------- */
@font-face {
  font-family: "Qureka";
  src: url("../assets/fonts/Qureka.woff2") format("woff2"), url("../assets/fonts/Qureka.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Marcellus (free, OFL) — accent font for moldure titles and statements */
@font-face {
  font-family: "Marcellus";
  src: url("../assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"), url("../assets/fonts/marcellus-latin-400-normal.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Cormorant Garamond Italic (free, OFL) — single italic accent words */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"), url("../assets/fonts/cormorant-garamond-latin-400-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* Outfit (free, OFL) — copy font */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #0f0303;
  --olive: #6c6a2f;
  --linen: #eeede8;       /* header, dropdown */
  --page: #eeede8;        /* page background */
  --cream: #e7dfd0;
  --sand: #e7dfd0;        /* contact boxes and panels */
  --field: #f4f0e8;       /* writing areas on sand */
  --cacao: #4b2f22;
  --night: #1c1d1f;          /* footer, from the template */
  --text: #3d3a37;
  --muted: #6e6a65;
  --rule: #0f0303;

  --serif: "Marcellus", "Cormorant Garamond", Georgia, serif;
  /* Previous accent face: --serif: "Qureka", "Marcellus", Georgia, serif; (files kept in assets/fonts) */
  --serif-alt: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --script: "Mrs Saint Delafield", "Pinyon Script", cursive;

  --gutter: clamp(16px, 4.8vw, 72px);
  --header-h: clamp(60px, 5vw, 76px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Title system: one size for every page/section title, one smaller for sub-titles */
  --t1-size: clamp(16px, 1.3vw, 20px);
  --t2-size: 13px;
  --t-weight: 400;
  --t-track: .14em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { display: flex; flex-direction: column; min-height: 100svh; }
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--linen);
  border-bottom: 1px solid var(--ink);
}
.logo img { width: clamp(88px, 8vw, 120px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav > a, .nav .dd-toggle {
  font-weight: 400; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav > a::after, .nav .dd-toggle::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: currentColor; transition: right .45s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after,
.dropdown:hover .dd-toggle::after, .dd-toggle[aria-current="page"]::after { right: 0; }

.dropdown { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 6px; }
.dd-toggle svg { width: 8px; height: 8px; transition: transform .3s var(--ease); }
.dd-menu {
  position: absolute; top: calc(100% + 18px); left: 0;
  transform: translate(0, -6px);
  min-width: 190px; padding: 6px 0;
  background: none; box-shadow: none;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.dd-menu::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.dd-menu a {
  display: block; padding: 9px 0; text-align: left; white-space: nowrap;
  font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  transition: letter-spacing .45s var(--ease), opacity .3s;
}
.dd-menu a:hover { letter-spacing: .32em; }
.dropdown:hover .dd-menu, .dropdown.open .dd-menu,
.dropdown:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(0, 0); }
.dropdown:hover .dd-toggle svg, .dropdown.open .dd-toggle svg { transform: rotate(180deg); }

.menu-btn { display: none; width: 28px; height: 18px; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 2px; }
.menu-btn span:nth-child(2) { bottom: 2px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 40px var(--gutter);
    background: var(--linen);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav .dd-toggle { font-family: var(--sans); font-weight: 300; font-size: 26px; text-transform: none; letter-spacing: .01em; }
  .nav > a::after, .nav .dd-toggle::after { display: none; }
  .dd-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: 0; padding: 0 0 0 18px; display: none; background: transparent;
  }
  .dropdown.open .dd-menu { display: block; transform: none; }
  .dropdown:hover .dd-menu { transform: none; }
  .dd-menu a { font-size: 15px; padding: 6px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 420px; max-height: 1000px;
  overflow: hidden;
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.hero.is-in img { transform: scale(1); }
@media (max-width: 760px) { .hero { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Moldure title ---------- */
.moldure-title {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  column-gap: clamp(20px, 4vw, 48px);
  padding: 0 var(--gutter);
}
.moldure-title h1, .moldure-title h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; transform: translateY(-.45em);
}
.moldure {
  --mh: clamp(26px, 2.6vw, 38px);
  display: flex; align-items: flex-start; width: 100%; height: var(--mh); color: var(--ink);
}
.moldure::before { content: ""; flex: 1; height: calc(var(--mh) * 10 / 267); background: currentColor; margin-right: -0.5px; }
.moldure::after {
  content: ""; flex: none; width: calc(var(--mh) * 144 / 267); height: 100%;
  background: url("../assets/moldure-end.svg") center / 100% 100% no-repeat;
}
.moldure.left { transform: scaleX(-1); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 110px) 0; }
.section.featured { background: var(--sand); padding: clamp(80px, 10vw, 150px) 0; margin-top: clamp(24px, 3vw, 48px); }
.lede {
  max-width: 600px; margin: clamp(10px, 1.6vw, 24px) auto 0; padding: 0 var(--gutter);
  text-align: center; color: var(--muted); font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; text-wrap: balance;
}

/* Inquire: long black pill */
.inquire {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; padding: 13px 56px;
  border-radius: 999px; background: var(--ink); color: var(--linen);
  font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .03em;
  line-height: 1; transition: background .45s var(--ease), color .45s var(--ease), letter-spacing .45s var(--ease);
}
.inquire:hover { background: var(--cacao); letter-spacing: .06em; }
.studio .inquire:hover, .sv-cta .inquire:hover, .hg-service .inquire:hover { background: var(--sand); color: var(--ink); }

/* View all: plain text, underline grows on hover */
.text-link {
  position: relative; display: inline-block; padding: 4px 0;
  font-family: var(--sans); font-size: 14px; font-weight: 300; letter-spacing: .02em; color: var(--ink);
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .45s var(--ease);
}
.text-link:hover::after { right: 0; }
.center { text-align: center; }
.moldure-title { max-width: 1400px; margin-left: auto; margin-right: auto; }
.studio .lede { max-width: 1140px; font-size: clamp(15px, 1.15vw, 17px); text-wrap: pretty; }

/* ---------- Featured projects (home) ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 44px);
  padding: 0 var(--gutter);
  max-width: 1400px; margin: 0 auto; align-items: center;
}
.projects .project-card { aspect-ratio: 1 / 1; }
.projects-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 clamp(4px, 1vw, 16px); }
.projects-mark-img { width: 22%; height: auto; margin-bottom: clamp(22px, 2.4vw, 36px); }
.projects-intro { max-width: 360px; margin: 0 auto; text-align: center; }
.projects-intro h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.projects-intro .text-link { font-size: 16px; }
.projects-intro p { margin: 0 0 26px; color: var(--muted); font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.7; text-wrap: pretty; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #d9d6cf; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.2s cubic-bezier(.25,.1,.25,1); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,3,3,.45), transparent 45%); opacity: 0; transition: opacity .9s cubic-bezier(.25,.1,.25,1); }
.project-card span {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1;
  text-align: center; color: #fff; font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 1.1vw, 17px); letter-spacing: .03em;
  opacity: 0; transform: translateY(8px); transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1);
}
.project-card:hover::after, .project-card:focus-visible::after { opacity: 1; }
.project-card:hover span, .project-card:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .project-card::after { opacity: .9; } .project-card span { opacity: 1; transform: none; } }
.project-card:hover img { transform: scale(1.035); }
/* Featured: slow, staggered fade-up */
.featured .reveal { transform: translateY(18px); transition: opacity 1.8s cubic-bezier(.25,.1,.25,1), transform 1.8s cubic-bezier(.25,.1,.25,1); }
.featured .reveal.is-in { transform: none; }
.projects > :nth-child(2) { transition-delay: .2s; }
.projects > :nth-child(3) { transition-delay: .4s; }

@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .projects-center { padding: 44px 8px; }
  .projects-mark-img { width: 18%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(32px, 4vw, 52px) var(--gutter);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.social { display: flex; gap: 12px; }
.social a { width: 20px; height: 20px; opacity: .92; transition: opacity .3s; }
.social a:hover { opacity: .6; }
.social svg { width: 100%; height: 100%; fill: #fff; }

/* ---------- Generic page bits ---------- */
.page-head { padding: clamp(56px, 7vw, 110px) 0 clamp(24px, 3vw, 40px); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--gutter);
  scroll-margin-top: var(--header-h);
}
.service:nth-of-type(even) .service-media { order: 2; }
.service-media { aspect-ratio: 4 / 5; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-num { font-family: var(--sans); font-size: 12px; color: var(--olive); letter-spacing: .1em; }
.service h2 { margin: 10px 0 18px; font-family: var(--sans); font-weight: var(--t-weight); font-size: var(--t1-size); letter-spacing: var(--t-track); text-transform: uppercase; line-height: 1.25; }
.service p { color: var(--text); max-width: 46ch; }
.service ul { list-style: none; margin: 26px 0 30px; padding: 0; max-width: 46ch; }
.service li { padding: 7px 0; font-size: 13px; display: flex; align-items: flex-start; gap: 14px; }
.service li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); margin-top: .62em; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-media { order: 0; }
}

/* ---------- About ---------- */
.team {
  display: grid; grid-template-columns: 1fr 0.9fr 0.9fr; gap: clamp(20px, 3.4vw, 48px);
  max-width: 1380px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(120px, 14vw, 220px);
  align-items: end;
}
.team-intro { margin-right: clamp(16px, 3vw, 56px); align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 76px; }
.team-intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.team-intro .eyebrow { margin-top: 12px; color: var(--muted); font-size: 11px; }
.team-intro p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 38ch; margin: 0 0 22px; }
.team-intro p.strong { color: var(--ink); font-family: var(--serif); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
.member figure { margin: 0; }
.member .photo { aspect-ratio: 344 / 466; overflow: hidden; filter: grayscale(1); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.member:hover .photo img { transform: scale(1.03); }
.member .name { font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.3vw, 19px); letter-spacing: .01em; margin: 16px 0 6px; }
.member .role { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.member .mail { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; transition: color .3s; }
.member .mail:hover { color: var(--ink); }
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team-intro { grid-column: 1 / -1; padding-bottom: 12px; }
}
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

.approach { padding-top: 0; }
.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 88px);
  max-width: 1200px; margin: clamp(72px, 8vw, 130px) auto 0; padding: 0 var(--gutter);
}
.values h3 { font-family: var(--sans); font-weight: 400; font-size: 18px; margin: 14px 0 8px; letter-spacing: .03em; }
.values p { color: var(--muted); font-size: 14px; margin: 0; }
.values .n { font-family: var(--sans); color: var(--olive); font-size: 14px; letter-spacing: .1em; display: block; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.mark-band { display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4vw, 56px); padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(120px, 14vw, 220px); text-align: center; }
.mark-band img { width: 64px; }
.mark-band blockquote { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.45; max-width: 26ch; text-wrap: balance; }

/* ---------- Contact ---------- */
.contact-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px);
  max-width: 1200px; margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--gutter) 0;
}
.option {
  position: relative; text-align: left; display: flex; flex-direction: column; justify-content: flex-start;
  min-height: clamp(260px, 24vw, 340px); padding: clamp(28px, 3.4vw, 52px);
  background: var(--sand); color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.option .eyebrow { color: inherit; opacity: .7; }
.option h2 { margin: 18px 0 14px; max-width: 18ch; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 32px); letter-spacing: .01em; line-height: 1.15; }
.option p { margin: 0; max-width: 36ch; font-size: 14px; opacity: .8; }
.option .go { position: relative; align-self: flex-start; margin-top: auto; padding: 36px 0 4px; font-family: var(--sans); font-weight: 300; font-size: 15px; letter-spacing: .02em; }
.option .go::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .45s var(--ease); }
.option:hover .go::after, .option.active .go::after { right: 0; }
.option:hover, .option.active { background: var(--ink); color: var(--linen); }
@media (max-width: 760px) {
  .contact-options { grid-template-columns: 1fr; }
}

.panel { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: none; }
.panel.open { display: block; margin-top: clamp(28px, 4vw, 64px); animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-inner { background: var(--sand); padding: clamp(28px, 4vw, 60px); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { font-weight: 300;
  width: 100%; border: 0; border-bottom: 1px solid transparent; background: var(--field);
  font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border-radius: 0; appearance: none;
  transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #faf8f3; border-bottom-color: var(--ink); }
.field select { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230f0303'/%3E%3C/svg%3E") right 14px center / 10px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 16px; border: 1px solid rgba(15,3,3,.35);
  font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--ink); cursor: pointer; transition: all .3s;
}
.chips input:checked + span { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 30px;
  border: 1px solid var(--ink); font-family: var(--sans); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--linen); }
.form-note { font-size: 13px; color: var(--muted); }
.disclosure { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.form .disclosure { text-align: right; margin-top: -10px; }
.chat-choices .disclosure { flex-basis: 100%; margin-top: 10px; }
@media (max-width: 760px) { .form .disclosure { text-align: left; margin-top: 0; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }

/* Booking calendar (placeholder until the HoneyBook form is embedded) */
.booking { margin-top: 18px; }
.inquire { white-space: nowrap; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-month { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: .01em; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); transition: background .3s; }
.cal-nav:hover:not(:disabled) { background: rgba(15,3,3,.06); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dow span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.cal-days { row-gap: 4px; }
.cal-days button {
  aspect-ratio: 1; max-width: 46px; width: 100%; margin: 0 auto; border-radius: 50%;
  font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink);
  transition: background .3s, color .3s;
}
.cal-days button:hover:not(:disabled) { background: rgba(15,3,3,.07); }
.cal-days button:disabled { color: rgba(15,3,3,.25); cursor: default; }
.cal-days button.open::after { content: ""; display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--olive); margin: 1px auto 0; }
.cal-days button.selected { background: var(--ink); color: var(--linen); }
.cal-days button.selected::after { background: var(--linen); }
.slots-day { margin: 6px 0 18px; font-family: var(--serif); font-size: 18px; }
.slots-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slots-list button {
  padding: 12px 10px; border-radius: 999px; border: 1px solid rgba(15,3,3,.22);
  font-size: 14px; font-variant-numeric: tabular-nums; transition: all .3s;
}
.slots-list button:hover { border-color: var(--ink); }
.slots-list button[aria-selected="true"] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.slots-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .booking-grid { grid-template-columns: 1fr; } .form-actions .inquire { width: 100%; padding-left: 24px; padding-right: 24px; } }
.form-status { font-family: var(--sans); font-size: 18px; }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; } }

/* Chat */
.chat { display: flex; flex-direction: column; height: min(560px, 70svh); }
.chat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.chat-head img { width: 36px; }
.chat-head strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: .01em; }
.chat-head small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 0; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 78%; padding: 12px 16px; font-size: 15px; line-height: 1.5; animation: rise .45s var(--ease); }
.msg.bot { align-self: flex-start; background: var(--page); }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--linen); }
.msg.typing { display: inline-flex; gap: 4px; padding: 16px; }
.msg.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--cacao); opacity: .4; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px; }
.chat-choices button { padding: 9px 16px; border: 1px solid var(--ink); font-size: 13px; transition: all .3s; }
.chat-choices button:hover { background: var(--ink); color: var(--linen); }
.chat-input { display: flex; gap: 10px; padding-top: 14px; }
.chat-input { align-items: flex-end; transition: opacity .3s; background: var(--field); padding: 6px 8px 6px 18px; margin-top: 8px; border-bottom: 1px solid transparent; }
.chat-input:focus-within { background: #faf8f3; border-bottom-color: var(--ink); }
.chat-input.off { opacity: .35; }
.chat-input textarea { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 0; resize: none; overflow-y: auto; max-height: 180px; }
.chat-input textarea:focus { outline: none; }
.chat-input button { padding: 0 10px 13px; }
.chat-log > * { flex-shrink: 0; }
.chat-choices { align-items: center; }
.chat-choices .inquire { border: 0; padding: 13px 40px; background: var(--ink); color: var(--linen); }
.chat-choices .inquire:hover { background: var(--cacao); color: var(--linen); }
.chat-choices .text-link { border: 0; padding: 4px 0; margin-left: 18px; font-size: 12px; }
.chat-choices .text-link:hover { background: none; color: var(--ink); }
.msg.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; max-width: min(560px, 92%); margin: 0; }
.msg.summary dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.msg.summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .msg.summary { grid-template-columns: 1fr; gap: 2px; } .msg.summary dd { margin-bottom: 8px; } }
.chat-input button { font-family: var(--sans); font-weight: 400; letter-spacing: .02em; font-size: 14px; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--linen); padding: 13px 22px; font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; align-self: flex-start; animation: rise .45s var(--ease); }
.wa-btn svg { width: 16px; height: 16px; fill: currentColor; }
.wa-btn:hover { background: var(--olive); }

/* ---------- Projects gallery (vertical glide, full width) ---------- */
body.gallery-page { overflow: hidden; height: 100svh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glide { position: fixed; inset: var(--header-h) 0 0 0; overflow: hidden; touch-action: none; cursor: grab; }
.glide.dragging { cursor: grabbing; }
.glide-view { position: absolute; inset: 0; overflow: hidden; }
.glide-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; padding: clamp(32px, 6vh, 72px) var(--gutter) 30vh; }
.glide-track .g-row { max-width: 1240px; margin: 0 auto clamp(24px, 3vw, 40px); display: grid; gap: clamp(16px, 1.8vw, 26px); align-items: start; }
.g-row.full { grid-template-columns: 1fr; }
.g-row.pair { grid-template-columns: 2fr 1fr; }
.g-row.pair.rev { grid-template-columns: 1fr 2fr; }
.slide { position: relative; display: block; user-select: none; -webkit-user-drag: none; }
.slide .frame { overflow: hidden; background: #d9d6cf; }
.g-row.full .frame { aspect-ratio: 3 / 2; }
.g-row.pair .slide:first-child .frame { aspect-ratio: 3 / 2; }
.g-row.pair .slide:last-child .frame { aspect-ratio: 3 / 4; }
.g-row.pair.rev .slide:first-child .frame { aspect-ratio: 3 / 4; }
.g-row.pair.rev .slide:last-child .frame { aspect-ratio: 3 / 2; }
.slide img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, -8%)); pointer-events: none; transition: filter .6s var(--ease); }
.slide:hover img { filter: brightness(.94); }
.slide .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slide .meta b { font-weight: 400; font-size: 10.5px; color: var(--ink); }
@media (max-width: 760px) {
  .g-row.pair, .g-row.pair.rev { grid-template-columns: 1fr; }
  .g-row.pair .slide .frame, .g-row.pair.rev .slide .frame { aspect-ratio: 4 / 3 !important; }
}


/* ---------- Our Services as a horizontal gallery ---------- */
.hg-intro { width: clamp(300px, 30vw, 460px); }
.hg-intro .page-title { text-align: left; padding: 0; }
.hg-head { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; }
.hg-head .page-title { margin-right: -.06em; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; line-height: 1.1; }
.hg-item img.hg-mark { width: clamp(40px, 3.4vw, 52px); height: auto; flex: none; margin: 0 0 clamp(22px, 2.4vw, 34px); }
.hg-intro p { color: var(--text); }
.hg-service { width: clamp(320px, 32vw, 480px); }
.hg-service .service-num { font-family: var(--serif); font-size: 15px; color: var(--ink); letter-spacing: .08em; }
.hg-service h2 { margin: 14px 0 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); letter-spacing: .01em; line-height: 1.1; }
.hg-service p { margin: 0; max-width: 400px; font-size: 14px; color: var(--text); line-height: 1.75; }
.hg-service .svc-text ul { margin: 30px 0 38px; max-width: 400px; border-bottom: 1px solid rgba(15,3,3,.16); }
.hg-service .svc-text li { font-size: 13px; padding: 9px 0; border-top: 1px solid rgba(15,3,3,.16); }
.hg-service .svc-text li::before { display: none; }
.hg-service .inquire { align-self: flex-start; }
.hg-hint { justify-self: end; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
@media (max-width: 760px) { .hg-intro, .hg-service { width: 84vw; } .hg-hint { display: none; } }

/* ---------- Page title (Services and service pages) ---------- */
.page-title { margin: 0; text-align: center; padding: 0 var(--gutter); font-family: var(--sans); font-weight: var(--t-weight); font-size: var(--t1-size); letter-spacing: var(--t-track); text-transform: uppercase; line-height: 1.25; }
.services-head .lede, .svc-head .lede { max-width: 820px; margin-top: clamp(18px, 2vw, 28px); }

/* ---------- Service detail pages ---------- */
.svc-page { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--gutter) clamp(96px, 12vw, 180px); }
.svc-head { max-width: 900px; }
.svc-page .page-title { text-align: left; padding: 0; }
.page-title.main { font-size: clamp(22px, 2vw, 28px); }
.svc-head .lede { text-align: left; margin: 20px 0 0; padding: 0; max-width: none; color: var(--text); text-wrap: pretty; }
.svc-block { padding-top: clamp(48px, 6vw, 80px); max-width: 900px; }
.svc-block.has-image { max-width: none; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: stretch; }
.svc-title { margin: 0 0 14px; font-family: var(--sans); font-weight: 500; font-size: var(--t2-size); letter-spacing: .16em; text-transform: uppercase; }
.svc-text p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 16px); line-height: 1.75; max-width: 900px; text-wrap: pretty; }
.svc-text p + ul { margin-top: 22px; }
.svc-text ul { list-style: none; margin: 0; padding: 0; }
.svc-text li { padding: 7px 0; font-size: 14px; display: flex; align-items: flex-start; gap: 14px; color: var(--text); }
.svc-text li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); margin-top: .62em; }
.svc-photo { margin: 0; min-height: 320px; overflow: hidden; background: #d9d6cf; position: relative; }
.svc-photo img { position: absolute; inset: 0; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-cta { margin-top: clamp(56px, 7vw, 100px); text-align: left; }
@media (max-width: 760px) { .svc-block.has-image { grid-template-columns: 1fr; } .svc-photo { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Project page: horizontal glide gallery ---------- */
body.hgallery-page { overflow: hidden; height: 100svh; }
.hg { position: fixed; inset: var(--header-h) 0 0 0; display: flex; flex-direction: column; }
.hg-view { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.hg-view.dragging { cursor: grabbing; }
.hg-track {
  position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: stretch;
  gap: clamp(12px, 1.4vw, 22px); padding: clamp(20px, 3vh, 40px) var(--gutter);
  will-change: transform;
}
.hg-item { margin: 0; height: 100%; flex: none; position: relative; user-select: none; }
.hg-item img { height: 100%; width: auto; display: block; pointer-events: none; -webkit-user-drag: none; }
.hg-photo { overflow: hidden; background: #d9d6cf; }
.hg-photo img { transform: translateX(var(--px, 0)); scale: 1.06; }
.hg-drawing { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 0 clamp(24px, 4vw, 72px); }
.hg-drawing img { height: auto; max-height: 72%; width: clamp(260px, 34vw, 520px); object-fit: contain; }
.hg-drawing figcaption { font-family: var(--serif); font-size: 16px; letter-spacing: .02em; color: var(--ink); }
.hg-text { width: clamp(300px, 34vw, 520px); display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(16px, 3vw, 56px); }
.hg-text h1 { margin: 0 0 30px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); letter-spacing: .01em; line-height: 1.1; }
.hg-text p { margin: 30px 0 0; max-width: 400px; color: var(--text); font-size: 14px; line-height: 1.75; }
.pj-facts { margin: 0; display: grid; gap: 0; max-width: 400px; border-bottom: 1px solid rgba(15,3,3,.16); }
.pj-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(15,3,3,.16); }
.pj-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pj-facts dd { margin: 0; font-size: 13px; color: var(--text); }
.hg-bar { display: grid; grid-template-columns: 1fr minmax(120px, 240px) 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter) clamp(18px, 3vh, 32px); }
.hg-bar .text-link { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; justify-self: start; }
.hg-bar .text-link:last-child { justify-self: end; }
.hg-progress { height: 1px; background: rgba(15,3,3,.18); position: relative; }
.hg-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
@media (max-width: 760px) {
  .hg-view { flex: none; height: min(60svh, 520px); margin: auto 0; }
  .hg-track { padding-top: 0; padding-bottom: 0; }
  .hg-text { width: 84vw; }
  .hg-drawing img { width: 70vw; }
  .hg-bar { grid-template-columns: 1fr 1fr; }
  .hg-progress { display: none; }
}

/* ---------- Intro: brand mark on solid linen, fades out ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #eeede8;
  animation: intro-out 2s ease-in-out 2s forwards;
}
.intro img { width: clamp(72px, 7vw, 104px); height: auto; animation: intro-mark 1.2s ease-out both; }
@keyframes intro-mark { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro-seen .intro { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal, .featured .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Service page, editorial layout (v2) ---------- */
.sv { --sv-max: 1240px; }
.sv-hero { position: relative; height: calc(76svh - var(--header-h)); min-height: 380px; overflow: hidden; background: #d9d6cf; }
.sv-hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: svZoom 2.4s var(--ease) forwards; }
@keyframes svZoom { to { transform: scale(1); } }
.sv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,3,3,.42), transparent 48%); }
.sv-hero-text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 4vw, 56px); color: var(--linen); }
.sv-eyebrow { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.sv-title { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 80px); letter-spacing: .01em; line-height: 1; }

.sv-intro, .sv-row, .sv-statement, .sv-facts, .sv-pair, .sv-next { max-width: var(--sv-max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: content-box; }
.sv-intro { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(24px, 4vw, 72px); padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.sv-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: .55em; }
.sv-lede { margin: 0; max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; color: var(--text); font-weight: 300; text-wrap: pretty; }

.sv-num { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sv-h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); letter-spacing: .01em; line-height: 1.2; }
.sv-p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 16px); line-height: 1.75; text-wrap: pretty; }
.sv-p.center { text-align: center; max-width: 640px; margin: 0 auto; }

.sv-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(24px, 4vw, 72px); padding-top: 28px; position: relative; }
.sv-row::before, .sv-facts > div::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(15,3,3,.18); }
.sv-pair { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(14px, 1.6vw, 22px); padding-top: clamp(40px, 4.5vw, 72px); padding-bottom: clamp(64px, 7vw, 112px); align-items: end; }
.sv-pair figure { margin: 0; overflow: hidden; background: #d9d6cf; }
.sv-pair figure:first-child { aspect-ratio: 3 / 2; }
.sv-pair figure:last-child { aspect-ratio: 3 / 4; }
.sv-pair img { width: 100%; height: 100%; object-fit: cover; }

.sv-band { background: var(--sand); padding: clamp(56px, 6.5vw, 104px) var(--gutter); }
.sv-band-inner { max-width: var(--sv-max); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: stretch; }
.sv-included .sv-h { margin: 0 0 clamp(28px, 3vw, 44px); }
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
.sv-list li { border-top: 1px solid rgba(15,3,3,.2); padding: 16px 0 22px; font-size: 14px; line-height: 1.5; color: var(--text); }
.sv-tall { margin: 0; overflow: hidden; min-height: 420px; position: relative; background: #d9d6cf; }
.sv-tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sv-statement { text-align: center; padding-top: clamp(72px, 8.5vw, 136px); padding-bottom: clamp(64px, 7.5vw, 120px); }
.sv-quote { margin: 26px auto 34px; max-width: none; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.12; color: var(--ink); text-wrap: balance; }

.sv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); padding-bottom: clamp(64px, 7vw, 112px); }
.sv-facts > div { position: relative; padding-top: 28px; display: grid; gap: 14px; align-content: start; }
.sv-facts > div::before { left: 0; right: 0; }

.sv-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(80px, 7.5vw, 112px) var(--gutter); }
/* Option A (current): photo — travertine slab edge */
.sv-cta.cta-photo { background: #e6d9c6 url("../assets/img/cta-travertine.jpg") center 50% / cover no-repeat; }
/* Option A2 (saved): linen curtains over a stone ledge — swap the image above for "../assets/img/cta-curtain.jpg" center 72% */
/* Option B (saved): CSS plaster with soft window shadow — switch the class in the HTML to "sv-cta cta-plaster" */
.sv-cta.cta-plaster {
  background-color: #e6ddcd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='400'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .29  0 0 0 0 .22  0 0 0 .45 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 240px 240px, cover;
  background-blend-mode: multiply, multiply;
}
/* soft daylight shadow, like light through a window onto plaster (placeholder for a photo) */
.sv-cta.cta-plaster::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(60,45,30,0) 0 70px, rgba(70,52,34,.17) 70px 112px, rgba(60,45,30,0) 110px 190px);
  filter: blur(16px);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 72% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 90% at 72% 40%, #000 0%, transparent 75%);
}
.sv-cta.cta-plaster::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(120,100,75,.10), transparent 30%, transparent 75%, rgba(255,255,255,.12));
}
.inquire.light { background: var(--linen); color: var(--ink); }
.inquire.light:hover { background: var(--cream); }

.sv-next { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: clamp(36px, 4vw, 60px); padding-bottom: clamp(36px, 4vw, 60px); color: var(--ink); }
.sv-next .sv-eyebrow { color: var(--muted); }
.sv-next-name { display: inline-flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; letter-spacing: .01em; }
.sv-next svg { width: 34px; height: 17px; transition: transform .5s var(--ease); }
.sv-next:hover svg { transform: translateX(8px); }

@media (max-width: 860px) {
  .sv-intro, .sv-row, .sv-band-inner, .sv-facts { grid-template-columns: 1fr; }
  .sv-row { gap: 12px; }
  .sv-list { grid-template-columns: 1fr; }
  .sv-tall { min-height: 0; aspect-ratio: 3 / 2; }
  .sv-list li { padding: 10px 0 11px; font-size: 13.5px; }
  .sv-included .sv-h { margin-bottom: 20px; }
  .sv-hero { height: 70svh; }
}

@media (max-width: 860px) { .d-only { display: none; } }

/* Design page image pair: two images on laptop and tablet, one landscape image on phones */
@media (max-width: 600px) {
  .sv-pair { grid-template-columns: 1fr; }
  .sv-pair figure:last-child { display: none; }
}
@media (min-width: 601px) and (max-width: 860px) { .sv-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Home: clear header over hero ---------- */
:is(.home, .clear-head) .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: rgba(255,255,255,.75);
  transition: background .6s var(--ease), border-color .6s var(--ease);
}
:is(.home, .clear-head) .site-header .logo img { filter: brightness(0) invert(1); transition: filter .6s var(--ease); }
:is(.home, .clear-head) .site-header .nav > a, :is(.home, .clear-head) .site-header .dd-toggle { color: #fff; transition: color .6s var(--ease); }
:is(.home, .clear-head) .site-header .menu-btn span { background: #fff; }
:is(.home, .clear-head) .site-header.solid, body:is(.home, .clear-head).menu-open .site-header { background: var(--linen); border-bottom-color: var(--ink); }
:is(.home, .clear-head) .site-header.solid .logo img, body:is(.home, .clear-head).menu-open .site-header .logo img { filter: none; }
:is(.home, .clear-head) .site-header.solid .nav > a, :is(.home, .clear-head) .site-header.solid .dd-toggle, body:is(.home, .clear-head).menu-open .site-header .nav > a, body:is(.home, .clear-head).menu-open .site-header .dd-toggle { color: var(--ink); }
:is(.home, .clear-head) .site-header.solid .menu-btn span, body:is(.home, .clear-head).menu-open .menu-btn span { background: var(--ink); }
:is(.home, .clear-head) .site-header .dd-menu a { color: #fff; }
:is(.home, .clear-head) .site-header.solid .dd-menu a { color: var(--ink); }
.home .hero { height: 100svh; max-height: none; }
.home .hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(15,3,3,.32), transparent); }

/* ---------- Home: symmetrical featured projects ---------- */
.sym-intro { max-width: 560px; margin: 0 auto clamp(48px, 5vw, 76px); padding: 0 var(--gutter); text-align: center; }
.sym-mark { width: 44px; height: auto; margin: 0 auto 26px; }
.sym-intro h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.sym-intro p { margin: 0; color: var(--muted); font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.75; text-wrap: balance; }
.sym-grid { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.sym-grid .project-card { aspect-ratio: 4 / 5; }
.sym-grid > :nth-child(2) { transition-delay: .2s; }
.sym-more { text-align: center; margin: clamp(40px, 4vw, 60px) 0 0; }
.sym-more .text-link { font-size: 16px; }
@media (max-width: 600px) { .sym-grid { grid-template-columns: 1fr; } .sym-grid .project-card { aspect-ratio: 4 / 3; } }

/* ---------- Home: projects as a collection row ---------- */
.coll-head, .coll-grid { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.coll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.coll-head h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.coll-head p { margin: 0; max-width: 520px; color: var(--muted); font-size: clamp(14px, 1.05vw, 15px); line-height: 1.7; }
.coll-all { display: inline-flex; align-items: center; gap: 12px; flex: none; font-size: 15px; font-weight: 300; color: var(--ink); padding-bottom: 4px; }
.coll-all svg { width: 22px; height: 11px; transition: transform .6s var(--ease); }
.coll-all:hover svg { transform: translateX(6px); }
.coll-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.06; background: #d9d6cf; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.2s cubic-bezier(.25,.1,.25,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(15,3,3,.28); opacity: 0; transition: opacity .9s cubic-bezier(.25,.1,.25,1); }
.tile-cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 0 16px 22px; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(8px); transition: opacity .9s cubic-bezier(.25,.1,.25,1), transform .9s cubic-bezier(.25,.1,.25,1); }
.tile-cap b { font-family: var(--serif); font-weight: 400; font-size: clamp(16px, 1.3vw, 19px); }
.tile-cap small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.coll-grid > :nth-child(2) { transition-delay: .12s; } .coll-grid > :nth-child(3) { transition-delay: .24s; } .coll-grid > :nth-child(4) { transition-delay: .36s; }
@media (max-width: 860px) {
  .coll-grid { grid-template-columns: 1fr 1fr; }
  .coll-head { flex-direction: column; align-items: flex-start; }
}

/* Home: closing CTA banner on travertine */
.home-cta { position: relative; text-align: center; padding: clamp(90px, 9vw, 140px) var(--gutter);
  background: #e6d9c6 url("../assets/img/cta-travertine.jpg") center 50% / cover no-repeat; }
.home-cta-text { max-width: 760px; margin: 0 auto 36px; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.home-cta .inquire:hover { background: var(--sand); color: var(--ink); }
.featured .coll-head { align-items: baseline; }
.featured .coll-head h2 { margin: 0; }
.section.featured { padding-bottom: clamp(64px, 7vw, 110px); }

/* ---------- Home hero text ---------- */
.home .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(80deg, rgba(15,3,3,.42) 0%, rgba(15,3,3,.12) 45%, transparent 70%), linear-gradient(to top, rgba(15,3,3,.25), transparent 40%); }
.hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10vh, 120px); color: #fff; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 92px); line-height: 1.02; letter-spacing: -.005em; }
.hero-title em { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.1em; letter-spacing: 0; }
.hero-sub { margin: clamp(20px, 2.2vw, 30px) 0 clamp(26px, 2.8vw, 40px); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.hero-sub span { margin: 0 .9em; opacity: .8; }
.hero-cta { display: inline-flex; align-items: center; gap: 28px; padding: 16px 26px; border: 1px solid rgba(255,255,255,.85); color: #fff; font-size: 14px; font-weight: 300; letter-spacing: .04em; transition: background .6s var(--ease), color .6s var(--ease); }
.hero-cta svg { width: 20px; height: 10px; }
.hero-cta:hover { background: #fff; color: var(--ink); }
@media (max-width: 600px) { .hero-sub { font-size: 10px; letter-spacing: .22em; } .hero-sub span { margin: 0 .5em; } }

/* ---------- Home: three large projects, near full width ---------- */
.featured .coll-head, .coll-grid.big3 { max-width: none; padding: 0 clamp(16px, 3.4vw, 64px); }
.coll-grid.big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 48px); }
.coll-grid.big3 .tile { aspect-ratio: 1 / 1; }
.coll-grid.big3 .tile-cap b { font-size: clamp(18px, 1.6vw, 24px); }
@media (max-width: 860px) { .coll-grid.big3 { grid-template-columns: 1fr; } .coll-grid.big3 .tile { aspect-ratio: 4 / 3; } }

/* Home closing banner: headline + small subheader */
.home-cta-text { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35; max-width: 820px; }
.home-cta-sub { text-wrap: balance; max-width: 560px; margin: 0 auto 36px; font-size: 14px; line-height: 1.7; color: var(--text); }

/* Home refinements */
.home .section.featured { margin-top: 0; background: var(--linen); padding-top: clamp(48px, 5vw, 80px); }
.hero-cta { justify-content: center; min-width: 240px; }
.coll-all.text-link { font-size: 15px; }
.tile-cap b { font-family: var(--sans); font-weight: 400; font-size: 13px !important; letter-spacing: .2em; text-transform: uppercase; }

/* Home: oval hero CTA, captions under project images, View all below */
.hero-cta { border-radius: 999px; padding: 15px 40px; }
.tile-link { display: block; color: var(--ink); }
.tile-link:hover .tile img { transform: scale(1.035); }
.tile-name { display: block; margin-top: 18px; text-align: center; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.coll-grid.big3 .tile::after { display: none; }
.coll-foot { display: flex; justify-content: flex-end; padding: clamp(28px, 3vw, 44px) clamp(16px, 3.4vw, 64px) 0; }
.coll-foot .text-link { font-size: 15px; }
.coll-grid.big3 > :nth-child(2) { transition-delay: .12s; } .coll-grid.big3 > :nth-child(3) { transition-delay: .24s; }

/* Home closing banner: same scale as the service page statement */
.home-cta-text { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.12; max-width: 1000px; margin: 0 auto 26px; }
.home-cta-sub { max-width: 640px; margin: 0 auto 36px; font-size: clamp(15px, 1.1vw, 16px); line-height: 1.75; color: var(--text); }

/* About: names in the caption font, same size, ink color */
.member .name { font-family: var(--sans); font-weight: 400; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 16px 0 4px; }

/* Closing banner: two-line statement, larger subheader */
.home-cta-text { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.25; max-width: 1080px; text-wrap: balance; }
.home-cta-sub { font-size: clamp(16px, 1.3vw, 19px); max-width: 680px; }

/* Hero CTA: same oval and height as the black buttons, outlined */
.hero-cta { min-width: 220px; padding: 13px 56px; font-size: 13px; font-weight: 400; letter-spacing: .03em; line-height: 1; border: 1px solid #fff; gap: 0; }

/* All black buttons: outline in black on hover */
.inquire { border: 1px solid var(--ink); }
.inquire:hover, .studio .inquire:hover, .sv-cta .inquire:hover, .hg-service .inquire:hover,
.home-cta .inquire:hover, .chat-choices .inquire:hover { background: transparent; color: var(--ink); border-color: var(--ink); letter-spacing: .06em; }
.chat-choices .inquire { border: 1px solid var(--ink); }
.home-cta .inquire:hover, .sv-cta .inquire:hover { background: rgba(238,237,232,.45); }

/* About: closing line in the copy font, black */
.team-intro p.strong { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--ink); }

/* Services: title + brand mark centered in the intro panel */
.hg-head { align-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hg-head .page-title { text-align: center; }

/* Black buttons: slightly thicker outline, no fill on hover */
.inquire, .chat-choices .inquire { border-width: 1.5px; }
.home-cta .inquire:hover, .sv-cta .inquire:hover { background: transparent; }
.hg-intro p { text-align: justify; text-align-last: center; hyphens: auto; }

/* Service detail pages: clear header over the hero */
.clear-head .sv-hero { height: 80svh; }
.clear-head .sv-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(15,3,3,.32), transparent); }

/* Featured projects: 3 across on tablet, 2 across on phones */
@media (max-width: 860px) {
  .coll-grid.big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .coll-grid.big3 .tile { aspect-ratio: 1 / 1; }
  .tile-name { font-size: 10px; letter-spacing: .16em; margin-top: 12px; }
}
@media (max-width: 600px) {
  .coll-grid.big3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .coll-grid.big3 > :nth-child(3) { display: none; }
}

/* Closing banner: tighter subheader, two-line headline on tablet and phone */
.home-cta-sub { line-height: 1.45; }
@media (max-width: 860px) {
  .home-cta-text { font-size: 3.9vw; line-height: 1.25; max-width: none; text-wrap: balance; }
  .home-cta-sub { font-size: clamp(14px, 2.1vw, 17px); }
}
@media (min-width: 861px) { .home-cta-sub { max-width: 900px; text-wrap: nowrap; } }
.home-cta .home-cta-text { margin: 0 auto 14px; } .home-cta .home-cta-sub { margin-top: 0; }
@media (max-width: 860px) { .home-cta .home-cta-sub { white-space: nowrap; text-wrap: nowrap; max-width: none; font-size: clamp(12px, 3.5vw, 17px); } }
.home .hero { aspect-ratio: auto; width: 100%; }
.slide { margin: 0; cursor: inherit; } .slide:hover img { filter: none; }

/* ---------- Footer (black) ---------- */
.site-footer { display: block; background: #0f0303; color: var(--linen); padding: clamp(64px, 7vw, 110px) var(--gutter) 32px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px); }
.ft-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; color: var(--linen); }
.ft-lede { margin: 0 0 30px; color: rgba(238,237,232,.62); font-size: 14px; font-weight: 300; }
.ft-form { display: flex; align-items: flex-end; gap: 20px; max-width: 520px; border-bottom: 1px solid rgba(238,237,232,.5); }
.ft-form input[type=email] { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 0; color: var(--linen); font: inherit; font-size: 15px; font-weight: 300; outline: none; }
.ft-form input::placeholder { color: rgba(238,237,232,.5); }
.ft-form button { padding: 12px 0; color: var(--linen); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; transition: opacity .3s; }
.ft-form button:hover { opacity: .6; }
.ft-form .hp { position: absolute; left: -9999px; }
.ft-note { margin: 14px 0 0; font-size: 11px; color: rgba(238,237,232,.45); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ft-cols h3 { margin: 0 0 18px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--linen); }
.ft-cols a { display: block; padding: 5px 0; color: rgba(238,237,232,.72); font-weight: 300; font-size: 14px; transition: color .3s; }
.ft-cols a:hover { color: var(--linen); }
.ft-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: clamp(56px, 7vw, 100px); padding-top: 26px; border-top: 1px solid rgba(238,237,232,.18); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(238,237,232,.55); }
.ft-mark { width: 40px; height: auto; justify-self: center; grid-column: 2; }
.ft-place { grid-column: 1; grid-row: 1; }
.ft-copy { grid-column: 3; justify-self: end; }
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr; }
  .ft-bottom { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .ft-mark { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .ft-place { grid-column: 1; grid-row: 2; } .ft-copy { grid-column: 2; grid-row: 2; }
}
@media (max-width: 480px) { .ft-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; } .ft-bottom { font-size: 10px; letter-spacing: .12em; } }

/* ---------- Opening sequence (home): mark appears, hairline draws, curtain lifts ---------- */
.intro { animation: intro-lift 1.2s cubic-bezier(.76,0,.24,1) 2.3s forwards; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro img { animation: intro-mark 1.5s cubic-bezier(.22,.61,.36,1) .2s both; }
.intro-line { display: block; width: 72px; height: 1px; background: var(--ink); transform: scaleX(0); animation: intro-line 1s cubic-bezier(.65,0,.35,1) 1.1s forwards; }
@keyframes intro-mark { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }

/* Hero settles in as the curtain lifts, then the words rise one by one */
.home .hero img { transform: scale(1.08); transition: transform 2.8s cubic-bezier(.22,.61,.36,1); }
.home .hero.is-in img { transform: scale(1); }
.hero-text > * { opacity: 0; transform: translateY(18px); transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1); }
.hero.is-in .hero-text > * { opacity: 1; transform: none; }
.hero.is-in .hero-text > :nth-child(1) { transition-delay: .5s; }
.hero.is-in .hero-text > :nth-child(2) { transition-delay: .75s; }
.hero.is-in .hero-text > :nth-child(3) { transition-delay: 1s; }
.home .site-header { animation: head-in 1s ease 0s both; }
html:not(.intro-seen) .home .site-header { animation-delay: 2.9s; }
@keyframes head-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-text > * { opacity: 1; transform: none; } .intro { display: none; } }

/* Intro mark: one slow clockwise turn while fading in, then holds still */
.intro img { animation: intro-spin 1.8s cubic-bezier(.33,0,.15,1) .15s both; }
@keyframes intro-spin { from { opacity: 0; transform: rotate(-360deg); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(0deg); } }
@keyframes intro-spin { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
.intro img { animation: intro-spin 1.6s cubic-bezier(.45,0,.2,1) .3s both; }
@keyframes intro-spin { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }
.intro img { animation: intro-spin 1.2s cubic-bezier(.45,0,.2,1) .4s both; }
@keyframes intro-spin { from { transform: rotate(-180deg); } to { transform: rotate(0deg); } }
.intro img { animation: intro-spin 1.4s cubic-bezier(.45,0,.2,1) .35s both; }

/* Intro timing: 1s rotate + fade in, 1s hold, 2s fade out with the background */
@keyframes intro-spin { from { opacity: 0; transform: rotate(-180deg); } to { opacity: 1; transform: rotate(0deg); } }
.intro img { animation: intro-spin 1s cubic-bezier(.45,0,.2,1) 0s both; }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
.intro { animation: intro-fade 2s ease-in-out 2s forwards; }
html:not(.intro-seen) .home .site-header { animation-delay: 3s; }

/* Intro timing v2: mark 1s rotate+fade in, .5s hold, 1s fade out (ends 2.5s); background fades 1.5s→3s */
@keyframes intro-mark2 {
  0%   { opacity: 0; transform: rotate(-180deg); animation-timing-function: cubic-bezier(.45,0,.2,1); }
  40%  { opacity: 1; transform: rotate(0deg); }
  60%  { opacity: 1; transform: rotate(0deg); animation-timing-function: ease-in-out; }
  100% { opacity: 0; transform: rotate(0deg); }
}
.intro img { animation: intro-mark2 2.5s linear 0s both; }
.intro { animation: intro-fade 1.5s ease-in-out 1.5s forwards; }
html:not(.intro-seen) .home .site-header { animation-delay: 2.4s; }

/* Intro timing v3 (2.5s): mark 0–1s rotate+fade in, 1–1.5s hold, 1.5–2s fade out; background 1.5–2.5s */
@keyframes intro-mark3 {
  0%   { opacity: 0; transform: rotate(-180deg); animation-timing-function: cubic-bezier(.33,1,.68,1); }
  50%  { opacity: 1; transform: rotate(0deg); }
  75%  { opacity: 1; transform: rotate(0deg); animation-timing-function: cubic-bezier(.37,0,.63,1); }
  100% { opacity: 0; transform: rotate(0deg); }
}
.intro img { animation: intro-mark3 2s linear 0s both; will-change: transform, opacity; backface-visibility: hidden; }
.intro { animation: intro-fade 1s cubic-bezier(.37,0,.63,1) 1.5s forwards; will-change: opacity; }
html:not(.intro-seen) .home .site-header { animation-delay: 1.9s; }

/* Intro v4: pure fade (no rotation) — in 0–1s, hold to 1.5s, out by 2s; background out 1.5–2.5s */
@keyframes intro-mark4 {
  0%   { opacity: 0; animation-timing-function: cubic-bezier(.37,0,.63,1); }
  50%  { opacity: 1; }
  75%  { opacity: 1; animation-timing-function: cubic-bezier(.37,0,.63,1); }
  100% { opacity: 0; }
}
.intro img { animation: intro-mark4 2s linear 0s both; transform: none; }

/* ---------- Page transitions: content fades, header stays still ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body > main, body > footer { animation: page-in .8s cubic-bezier(.37,0,.63,1) backwards; transition: opacity .45s cubic-bezier(.37,0,.63,1); }
html:not(.intro-seen) body.home > main, html:not(.intro-seen) body.home > footer { animation: none; }
html.leaving body > main, html.leaving body > footer { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { body > main, body > footer { animation: none; } html.leaving body > main, html.leaving body > footer { opacity: 1 !important; } }
.home .section.featured { padding-bottom: clamp(48px, 5vw, 80px); }
.home .section.featured { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(64px, 9vw, 136px); }

/* Contact: option boxes centered vertically in the first screen */
.contact-options { min-height: calc(100svh - var(--header-h)); align-content: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); box-sizing: border-box; }

/* ---------- Horizontal galleries on tablet & phone: fill the height, no gaps, narrower photos ---------- */
@media (max-width: 1100px) {
  .hg-view { flex: 1; height: auto; margin: 0; }
  .hg-track { padding-top: 0; padding-bottom: 0; }
  .hg-photo { max-width: 56vw; }
  .hg-photo img { width: 100%; object-fit: cover; }
  .hg-intro, .hg-service, .hg-text { width: clamp(340px, 46vw, 480px); }
  .hg-service h2, .hg-text h1 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 20px; }
  .hg-service .svc-text ul { margin: 22px 0 28px; }
}
@media (max-width: 760px) {
  .hg-photo { max-width: 74vw; }
  .hg-intro, .hg-service, .hg-text { width: 86vw; }
  .hg-service h2, .hg-text h1 { font-size: 30px; margin: 10px 0 16px; }
  .hg-service p, .hg-text p { font-size: 14px; line-height: 1.65; }
  .hg-service .svc-text ul { margin: 18px 0 22px; }
  .hg-service .svc-text li { padding: 7px 0; }
  .hg-bar { padding-top: 14px; }
}

/* Mobile menu: Services sub-links in the menu text color */
@media (max-width: 760px) {
  body .site-header .nav .dd-menu a { color: var(--ink); }
}

/* Services intro: never hyphenate; mobile spacing and narrower copy */
.hg-intro p { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 760px) {
  .hg-track { padding-top: 16px; padding-bottom: 16px; }
  .hg-intro p { max-width: 290px; margin-left: auto; margin-right: auto; }
}

/* Tablet: keep laptop proportions — a shorter, centered band of images + text */
@media (min-width: 761px) and (max-width: 1100px) {
  .hg { justify-content: center; }
  .hg-view { flex: none; height: min(calc(100svh - var(--header-h) - 120px), 78vw); }
  .hg-track { padding-top: 20px; padding-bottom: 20px; }
  .hg-photo { max-width: 52vw; }
  .hg-intro, .hg-service, .hg-text { width: clamp(360px, 44vw, 460px); }
  .hg-service p, .hg-text p, .hg-intro p { font-size: 15px; }
  .hg-service .svc-text li { font-size: 14px; }
  .hg-bar { padding-top: 18px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hg { justify-content: flex-start; }
  .hg-view { height: min(calc(100svh - var(--header-h) - 90px), 86vw); }
  .hg-track { padding-top: 24px; padding-bottom: 0; }
}

/* ---------- Horizontal gallery pages: footer only on tablet, page scrolls down to it ---------- */
.hgallery-page .site-footer { display: none; }
@media (max-width: 1100px) {
  body.hgallery-page { overflow: visible; height: auto; }
  .hgallery-page .hg { position: relative; inset: auto; }
  .hgallery-page .hg-view { touch-action: pan-y; }
  .hgallery-page .hg-bar { padding-bottom: clamp(40px, 6vw, 64px); }
  .hgallery-page .site-footer { display: block; }
}

/* ---------- Contact: tighter spacing on tablet & phone ---------- */
@media (max-width: 1100px) {
  .contact-options { min-height: 0; align-content: start; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
}

/* ---------- About on tablet ---------- */
@media (min-width: 901px) and (max-width: 1100px) {
  .team { grid-template-columns: 1.2fr .78fr .78fr; padding-top: clamp(72px, 9vw, 96px); padding-bottom: clamp(56px, 7vw, 80px); }
  .team-intro { justify-content: flex-start; gap: 40px; padding-bottom: 54px; }
}

/* ---------- Services on phone: shorter images to balance the text column ---------- */
@media (max-width: 760px) {
  .hg-view { flex: none; height: clamp(500px, 72svh, 620px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  main:has(> .contact-options) { display: flex; flex-direction: column; justify-content: center; }
  main:has(> .contact-options) > * { width: 100%; }
  main:has(> .contact-options) > div[style] { height: 0 !important; }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .contact-options { grid-template-columns: 1fr; max-width: 720px; gap: 32px; }
}

/* ---------- About: tablet layout (narrower, taller portraits; more air above the copy) ---------- */
@media (min-width: 901px) and (max-width: 1100px) {
  .team { grid-template-columns: 1.35fr .72fr .72fr; align-items: start; }
  .member .photo { aspect-ratio: 2 / 3; }
  .team-intro { justify-content: flex-start; gap: clamp(64px, 8vw, 88px); padding-bottom: 0; }
  .team-intro p { max-width: none; text-align: justify; text-align-last: left; hyphens: manual; -webkit-hyphens: manual; }
}
/* About on phones and small tablets: more space between title and copy */
@media (max-width: 900px) {
  .team-intro > div:first-child { margin-bottom: 40px; }
}
.team-intro { gap: 40px; }

/* About: copy ends exactly at the bottom of the portraits (desktop + tablet) */
@media (min-width: 901px) {
  .team-intro { justify-content: space-between; padding-bottom: var(--cap-h, 50px); }
  .team-intro > div:last-child > p:last-child { margin-bottom: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .team-intro { gap: 48px; }
  .team-intro p { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
}

/* About tablet: title on its own row, copy beside the portraits, top-to-bottom */
@media (min-width: 901px) and (max-width: 1100px) {
  .team { grid-template-columns: 1.3fr .75fr .75fr; align-items: start; row-gap: 40px; }
  .team-intro { display: contents; }
  .team-intro > div:first-child { grid-column: 1 / -1; }
  .team-intro > div:last-child { grid-column: 1; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: var(--cap-h, 50px); margin-right: clamp(8px, 2vw, 28px); }
  .team-intro > div:last-child p { margin: 0; font-size: 13px; line-height: 1.65; }
  .member { grid-row: 2; }
}
