/* AYB Resort House — public site
   Palette: paper / ink / river green / reed / teak
   Type: "AYB Display" = Anuphan (Thai, loopless) + Trirong (Latin) for headings; IBM Plex Sans Thai for text */

:root {
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --ink: #1E2420;
  --ink-2: #4A524C;
  --river: #284A42;
  --river-deep: #1A332D;
  --reed: #8A9A86;
  --line: #DCDDD6;
  --teak: #8C5E34;
  --teak-dark: #6F4825;
  --error: #A3312A;

  --display: "AYB Display", "IBM Plex Sans Thai", Georgia, serif;
  --text: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --step-5: clamp(2.8rem, 1.2rem + 5.4vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.75 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.35; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--text); font-weight: 600; line-height: 1.5; }
p { margin: 0 0 1em; }
address { font-style: normal; }
small { font-size: var(--step--1); }
:focus-visible { outline: 2px solid var(--teak); outline-offset: 3px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.img-ph { background: linear-gradient(135deg, #E4E6DF, #D3D8CF); aspect-ratio: 4/3; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 2px; border: 1px solid transparent;
  font: 500 var(--step-0)/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: var(--step--1); }
.btn-solid { background: var(--teak); color: #fff; }
.btn-solid:hover { background: var(--teak-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(0,0,0,.08); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.text-link { color: var(--river); font-weight: 500; text-decoration: underline; }
.text-link:hover { color: var(--teak); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(246,246,243,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, color .3s;
}
.has-hero .site-header { position: fixed; inset: 0 0 auto; }
.has-hero .site-header:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: baseline; gap: .45em; text-decoration: none; margin-right: auto; }
.brand img { max-height: 44px; width: auto; }
.brand-mark { font: 500 1.65rem/1 var(--display); letter-spacing: .04em; }
.brand-word { font: 400 .95rem/1 var(--display); opacity: .85; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: currentColor; }
.nav-contact { display: none; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { text-decoration: none; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .main-nav ul { gap: 20px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--paper); color: var(--ink);
    padding: 24px var(--gutter); transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 0; font: 400 var(--step-2)/1.3 var(--display); border: 0; }
  .nav-contact { display: block; }
  .has-hero.nav-open .site-header { background: var(--paper); color: var(--ink); }
  /* backdrop-filter makes the header the containing block of the fixed menu,
     shrinking it to header height so links spill over the page — drop it while open */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .main-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 96px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero (the one orchestrated motion: slow crossfade) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1000px; color: #fff; background: var(--river-deep); overflow: hidden; }
.hero-media, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-media > .img-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,16,.45) 0%, rgba(10,20,16,0) 28%), linear-gradient(90deg, rgba(10,20,16,.62) 0%, rgba(10,20,16,.25) 55%, rgba(10,20,16,0) 80%), linear-gradient(0deg, rgba(10,20,16,.55) 0%, rgba(10,20,16,0) 40%); }
.hero-slide figcaption { position: absolute; right: calc(var(--gutter) + 72px); bottom: 32px; z-index: 2; font-size: var(--step--1); opacity: .85; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(56px, 10vh, 120px); z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.2rem); line-height: 1.28; max-width: 15ch; margin-bottom: .35em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { max-width: 46ch; font-size: var(--step-1); line-height: 1.6; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 700px) {
  .hero-slide figcaption { display: none; }
  .hero-sub { font-size: var(--step-0); }
}

/* ---------- facts ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--white); padding-block: 0; }
.facts-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 2px; }
.facts-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-list strong { font: 500 var(--step-1)/1.4 var(--display); color: var(--river); }
.facts-list span { font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 800px) {
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li { padding: 20px 12px 20px 0; }
  .facts-list li + li { padding-left: 0; border-left: 0; }
  .facts-list li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- section heads ---------- */
section { padding-block: clamp(64px, 9vw, 128px); }
.page-head { padding-block: calc(var(--header-h) * 0 + clamp(40px, 6vw, 80px)) clamp(24px, 3vw, 40px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-2); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-title { margin-bottom: clamp(24px, 3vw, 40px); }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.65; }
.empty { padding: 48px 0; color: var(--ink-2); }

/* ---------- series band (the bold element) ---------- */
.series { background: var(--river-deep); color: #EEF1EC; }
.series .section-head p { color: #B9C4BB; }
.series-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.series-list li { border-bottom: 1px solid rgba(255,255,255,.18); }
.series-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: 24px; padding: clamp(18px, 2.4vw, 30px) 0; text-decoration: none;
}
.series-name {
  font: 300 var(--step-5)/1 var(--display); letter-spacing: -0.02em;
  transition: transform .5s var(--ease), color .3s;
}
.series-meta { display: grid; gap: 2px; justify-items: start; }
.series-th { font: 400 var(--step-1)/1.4 var(--display); }
.series-tag { color: #B9C4BB; font-size: var(--step--1); }
.series-count { font-size: var(--step--1); color: #D9C2A6; margin-top: 6px; }
.series-peek {
  position: absolute; right: 0; top: 50%; width: 240px; aspect-ratio: 4/3; overflow: hidden;
  transform: translateY(-50%) scale(.92); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .5s var(--ease);
}
.series-peek img, .series-peek .img-ph { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 900px) {
  .series-row:hover .series-name, .series-row:focus-visible .series-name { transform: translateX(24px); color: #fff; }
  .series-row:hover .series-peek, .series-row:focus-visible .series-peek { opacity: 1; transform: translateY(-50%) scale(1); }
  .series-row:hover .series-meta { opacity: 0; }
  .series-meta { transition: opacity .25s; }
}
@media (max-width: 700px) {
  .series-row { grid-template-columns: 1fr; gap: 6px; }
  .series-name { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

/* ---------- selected works (IDIN-style image grid) ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px); }
.work-lead { grid-column: span 2; grid-row: span 2; }
.work a, .project-card { display: block; text-decoration: none; }
.work-img, .project-img, .model-img, .post-img { display: block; overflow: hidden; background: #E4E6DF; }
.work-img img, .project-img img, .model-img img, .post-img img, .work-img .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.work-img { aspect-ratio: 4/3; }
.work-lead .work-img { aspect-ratio: auto; height: calc(100% - 64px); min-height: 320px; }
.work-cap { display: flex; flex-direction: column; padding-top: 10px; }
.work-title, .project-title { font-weight: 500; }
.work-loc, .project-meta { font-size: var(--step--1); color: var(--ink-2); }
@media (hover: hover) {
  .work a:hover img, .project-card:hover img, .model-card:hover img, .post-card:hover img { transform: scale(1.03); }
}
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-lead { grid-column: span 2; grid-row: auto; }
  .work-lead .work-img { height: auto; aspect-ratio: 4/3; min-height: 0; }
}

/* ---------- process / steps (a real sequence → numbered) ---------- */
.process { background: var(--white); }
.process-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); }
.process .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 300 var(--step-2)/1.1 var(--display); color: var(--reed); }
.steps h2, .steps h3 { margin: 0 0 4px; font: 600 var(--step-1)/1.45 var(--text); }
.steps p { margin: 0; color: var(--ink-2); }
.steps-full { max-width: 820px; padding-bottom: 32px; }
@media (max-width: 860px) {
  .process-inner { grid-template-columns: 1fr; }
  .process .section-head { position: static; }
}

/* ---------- testimonials ---------- */
.voice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 48px); }
.voice { margin: 0; padding-top: 20px; border-top: 2px solid var(--river); }
.voice blockquote { margin: 0 0 12px; font: 400 var(--step-1)/1.6 var(--display); }
.voice figcaption { color: var(--ink-2); font-size: var(--step--1); }

/* ---------- consult / lead form ---------- */
.consult { background: #E9ECE6; }
.consult-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.consult-copy p { color: var(--ink-2); max-width: 44ch; }
.consult-direct { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.consult-direct li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; }
.consult-direct span { color: var(--ink-2); font-size: var(--step--1); }
.consult-direct a { font: 400 var(--step-2)/1.2 var(--display); text-decoration: none; color: var(--river); }
@media (max-width: 860px) { .consult-inner { grid-template-columns: 1fr; } }

.lead-form { background: var(--white); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--step--1); }
.field > span { color: var(--ink-2); font-weight: 500; }
.field b { color: var(--teak); font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #C9CCC3; border-radius: 2px;
  background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.5 var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--river); outline-offset: 0; border-color: var(--river); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--step--1); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 20px 0 6px; font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--river); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.form-actions .btn { flex: 0 0 auto; }
.form-note { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.form-alert { background: #F6E3E1; color: var(--error); padding: 12px 14px; }
.form-status:empty { display: none; }
.form-status { margin: 12px 0 0; font-size: var(--step--1); }
.lead-form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 1.6rem/1 var(--display); color: var(--river); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding-right: 40px; }
@media (max-width: 860px) { .faq-inner { grid-template-columns: 1fr; } }

/* ---------- posts ---------- */
.post-grid, .model-grid, .project-grid, .award-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.post-img { aspect-ratio: 3/2; margin-bottom: 10px; }
.post-date { font-size: var(--step--1); color: var(--ink-2); }
.post-title { font: 400 var(--step-1)/1.5 var(--display); }
.post-ex { color: var(--ink-2); font-size: var(--step--1); }

/* ---------- filter bar (IDIN-like text filters) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 16px 0 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.filter a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.filter a small { color: var(--reed); margin-left: 2px; }
.filter a:hover { color: var(--ink); }
.filter a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.model-grid, .project-grid { grid-template-columns: repeat(3, 1fr); padding-top: 24px; }
.model-grid > li[hidden], .project-grid > li[hidden] { display: none; }
@media (max-width: 1000px) { .model-grid, .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .model-grid, .project-grid { grid-template-columns: 1fr; } }

.project-img { aspect-ratio: 4/3; margin-bottom: 10px; }
.project-card { display: flex; flex-direction: column; }
.model-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.model-img { aspect-ratio: 4/3; }
.model-body { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.model-series { font-size: var(--step--1); color: var(--river); }
.model-name { font: 400 var(--step-2)/1.25 var(--display); }
.model-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step--1); color: var(--ink-2); }
.model-price { font-size: var(--step--1); color: var(--teak); font-weight: 500; margin-top: 4px; }

.inline-cta { margin: clamp(48px, 6vw, 88px) 0; padding: 28px 0; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.inline-cta p { margin: 0; font: 400 var(--step-2)/1.35 var(--display); max-width: 30ch; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 20px; font-size: var(--step--1); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--reed); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- detail pages ---------- */
.detail-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 28px; }
.detail-head h1 { max-width: 20ch; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(140px, 17vw, 260px); gap: 8px; }
.gallery .g-item { overflow: hidden; display: block; background: #E4E6DF; cursor: zoom-in; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-lead { grid-row: span 2; }
.gallery.g-count-2 { grid-template-columns: 2fr 1fr; }
.gallery.g-count-3 { grid-template-columns: 2fr 1fr; }
.gallery.g-count-4 .g-item:nth-child(3) { grid-row: span 2; }
.gallery.is-many { grid-template-columns: repeat(4, 1fr); }
.gallery.is-many .g-lead { grid-column: span 2; }
.plans { padding-top: clamp(32px, 4vw, 56px); }
.plans .section-title { display: flex; align-items: center; gap: 10px; }
.gallery-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.plan-item { display: block; background: #fff; border: 1px solid var(--line); padding: clamp(10px, 2vw, 24px); cursor: zoom-in; }
.plan-item img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; display: block; }
.gallery.is-single { grid-template-columns: 1fr; grid-auto-rows: auto; }
.gallery.is-single .g-lead img { aspect-ratio: 16/9; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery .g-lead { grid-column: span 2; grid-row: span 2; }
  .gallery.g-count-2, .gallery.g-count-3 { grid-template-columns: 1fr 1fr; }
  .gallery.is-many { grid-template-columns: 1fr 1fr; }
  .gallery.g-count-4 .g-item:nth-child(3) { grid-row: auto; }
  .gallery .g-item:last-child:nth-child(even) { grid-column: span 2; }
}
.detail-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.detail-side { display: flex; flex-direction: column; gap: 28px; }
.side-cta { position: sticky; top: calc(var(--header-h) + 20px); }
.side-cta h2 { font-size: var(--step-2); }
.side-cta p { color: var(--ink-2); font-size: var(--step--1); }
.spec-list { margin: 0; border-top: 1px solid var(--ink); }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-2); font-size: var(--step--1); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; }
  .side-cta { position: static; }
}
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--river); }
.note { font-size: var(--step--1); color: var(--ink-2); border-left: 2px solid var(--reed); padding-left: 12px; margin-top: 2em; }
.related { padding-top: 0; }
.next-work { padding-block: 48px 0; }
.next-work a { display: block; padding: 28px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.next-label { display: block; font-size: var(--step--1); color: var(--ink-2); }
.next-title { font: 300 var(--step-4)/1.15 var(--display); }
.next-work a:hover .next-title { color: var(--river); }

.lightbox { border: 0; padding: 0; background: rgba(12,18,15,.96); width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
.lightbox::backdrop { background: rgba(12,18,15,.96); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 48px 64px; }
.lb-btn, .lb-close { position: absolute; background: none; border: 0; color: #fff; font: 300 3rem/1 var(--display); cursor: pointer; width: 56px; height: 56px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 8px; top: 8px; font-size: 2.4rem; }
.lb-count { position: absolute; left: 16px; top: 16px; margin: 0; font-size: var(--step--1); opacity: .8; }
@media (max-width: 600px) { .lightbox img { padding: 56px 8px; } }

/* ---------- about ---------- */
.about-figure { margin: 0 auto clamp(32px, 4vw, 64px); }
.about-figure img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.about-founders { border-top: 1px solid var(--ink); padding-top: 12px; }
.about-founders h2 { font-size: var(--step-2); }
.policies { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.award-grid { grid-template-columns: repeat(4, 1fr); }
.award-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; margin-bottom: 10px; }
.award-title { margin: 0; font-weight: 500; }
@media (max-width: 860px) {
  .about-grid, .policies { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- article ---------- */
.article { max-width: 820px; padding-top: clamp(40px, 6vw, 80px); }
.article-head h1 { font-size: var(--step-3); font-weight: 400; }
.article-cover { margin: 24px 0 36px; }
.article-body { font-size: 1.0625rem; line-height: 1.85; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); }
.prefill { background: #E9ECE6; padding: 12px 16px; margin-bottom: 16px; }
.contact-ways { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-ways li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-ways span { font-size: var(--step--1); color: var(--ink-2); }
.big-link { font: 400 var(--step-3)/1.15 var(--display); color: var(--river); text-decoration: none; }
.big-link:hover { color: var(--teak); }
.map { width: 100%; aspect-ratio: 4/3; border: 0; filter: grayscale(.3); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.thanks { min-height: 50vh; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C8CEC8; padding-top: clamp(48px, 6vw, 80px); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { font: 400 var(--step-2)/1.2 var(--display); color: #fff; margin-bottom: .4em; }
.footer-head { color: #fff; font-weight: 500; margin-bottom: .6em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #9AA39C; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9AA39C; }
.footer-base p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- contact dock ---------- */
.contact-dock { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.contact-dock a {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 24px;
  text-decoration: none; color: #fff; font-size: var(--step--1); font-weight: 500;
  box-shadow: 0 6px 18px rgba(20,30,25,.22);
}
.contact-dock svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.dock-line { background: #06C755; }
.dock-call { background: var(--river); }
.dock-form { background: var(--teak); }
@media (min-width: 901px) {
  .contact-dock a span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease); }
  .contact-dock a { padding: 0 13px; justify-content: center; }
  .contact-dock a:hover span, .contact-dock a:focus-visible span { max-width: 140px; }
}
@media (max-width: 900px) {
  .contact-dock { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
  .contact-dock a { flex: 1; border-radius: 0; height: 56px; justify-content: center; box-shadow: none; padding: 0 6px; }
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   v2 — logo, language switch, icons, full-bleed tiles, infographic,
   page-head line art, scroll reveals
   ===================================================================== */
:root { --gold: #B5A042; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* logo: dark version on light header, light version on hero/footer */
.brand { align-items: center; }
.brand .logo { height: 38px; width: auto; }
.logo-light { display: none; }
.has-hero .site-header:not(.is-solid) .logo-dark { display: none; }
.has-hero .site-header:not(.is-solid) .logo-light { display: block; }
.footer-logo { margin: 0 0 .8em; }
.footer-logo .logo { display: block; height: 44px; width: auto; }
@media (max-width: 600px) { .brand .logo { height: 30px; } }

/* language switch */
.lang-switch { display: flex; border: 1px solid currentColor; border-radius: 2px; overflow: hidden; opacity: .85; }
.lang-switch a { padding: 4px 8px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; line-height: 1.2; }
.lang-switch a[aria-current] { background: currentColor; }
.lang-switch a[aria-current] { color: var(--paper); background: var(--ink); }
.has-hero .site-header:not(.is-solid) .lang-switch a[aria-current] { background: #fff; color: var(--ink); }
.header-phone { align-items: center; gap: 6px; }
@media (min-width: 1081px) { .header-phone { display: inline-flex; } }
.nav-lang-m { display: none; }
@media (max-width: 900px) { .lang-switch { display: none; } .nav-lang-m { display: block; } }

/* hero: staggered title entrance + scroll cue */
.hero-title, .hero-sub, .hero-actions { animation: rise .9s var(--ease) both; }
.hero-sub { animation-delay: .15s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* facts with icons + count-up */
.facts-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.facts-list li > strong, .facts-list li > span { grid-column: 2; }
.fact-ic { grid-row: span 2; width: 34px; height: 34px; color: var(--gold); margin-top: 2px; }
.facts-list strong [data-count] { font: 300 2.1rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--river); margin-right: 2px; }

/* series icons */
.series-th { display: inline-flex; align-items: center; gap: 8px; }
.series-ic { width: 22px; height: 22px; color: #D9C98A; }

/* links with arrow */
.text-link { display: inline-flex; align-items: center; gap: 6px; }
.text-link .ic { transition: transform .25s var(--ease); }
.text-link:hover .ic { transform: translateX(4px); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

/* ---------- page head with line art ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.page-head-text .lede { animation: rise .8s .1s var(--ease) both; }
.page-head-text h1 { animation: rise .8s var(--ease) both; }
.page-art { width: clamp(150px, 20vw, 260px); height: auto; color: var(--river); }
.page-art .ln { stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 700px) { .page-head { grid-template-columns: 1fr; } .page-art { display: none; } }

/* shared line-drawing animation (page art, infographic, thank-you) */
.ln { stroke: currentColor; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.page-art .ln { animation: draw 1.4s var(--ease) forwards; }
.page-art .ln:nth-child(2) { animation-delay: .15s; }
.page-art .ln:nth-child(3) { animation-delay: .3s; }
.page-art .ln:nth-child(4) { animation-delay: .45s; }
.page-art .ln:nth-child(5) { animation-delay: .6s; }
.page-art .ln:nth-child(6) { animation-delay: .75s; }
.page-art .ln:nth-child(7) { animation-delay: .9s; }
.ln-thin { stroke-width: 1 !important; opacity: .55; }
.ln-accent { stroke: var(--teak) !important; }
.ln-green { stroke: #6E8B5E !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks-check svg { width: 72px; height: 72px; color: var(--river); }
.thanks-check .ln { animation: draw 1s var(--ease) forwards; }
.thanks-check .ln + .ln { animation-delay: .7s; }

/* ---------- full-bleed tile grid (IDIN-style) ---------- */
.tile-grid { list-style: none; margin: 0; padding: 0 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.tile-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile-cell[hidden] { display: none; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #DADDD5; text-decoration: none; color: #fff; isolation: isolate; }
.tile-img, .tile-img img, .tile-img .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img img { transition: transform 1.2s var(--ease), filter .6s; }
.tile-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,26,22,.92) 0%, rgba(14,26,22,.55) 50%, rgba(14,26,22,.1) 85%); opacity: 0; transition: opacity .45s var(--ease); }
.tile-cap { text-shadow: 0 1px 12px rgba(0,0,0,.35); position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; transform: translateY(28px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.tile-kicker { font-size: var(--step--1); color: #D9C98A; letter-spacing: .02em; }
.tile-title { font: 400 var(--step-2)/1.2 var(--display); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step--1); color: #DCE3DE; margin-top: 4px; }
.tile-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 500; margin-top: 10px; }
.tile-go .ic { transition: transform .35s var(--ease) .1s; transform: translateX(-6px); }
/* the corner line that sweeps in on hover */
.tile::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 2; }
@media (hover: hover) {
  .tile:hover .tile-img img, .tile:focus-visible .tile-img img { transform: scale(1.07); filter: saturate(1.08); }
  .tile:hover .tile-veil, .tile:focus-visible .tile-veil { opacity: 1; }
  .tile:hover .tile-cap, .tile:focus-visible .tile-cap { transform: none; opacity: 1; }
  .tile:hover .tile-go .ic, .tile:focus-visible .tile-go .ic { transform: none; }
  .tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
  .tile-grid:hover .tile:not(:hover) .tile-img img { filter: grayscale(.35) brightness(.92); }
}
/* second photo: wipes up over the cover on hover (desktop only) */
.tile-img2 { clip-path: inset(100% 0 0 0); transition: clip-path .85s var(--ease); }
.tile-img2 img { transform: scale(1.14); }
@media (hover: hover) {
  .tile:hover .tile-img2, .tile:focus-visible .tile-img2 { clip-path: inset(0 0 0 0); }
  .tile:hover .tile-img2 img, .tile:focus-visible .tile-img2 img { transform: scale(1.04); }
  .tile.has-alt:hover .tile-img:not(.tile-img2) img { transform: scale(1.1); filter: brightness(.8); }
}
@media (hover: none) { .tile-img2 { display: none; } }
/* touch: caption always visible on a light veil */
@media (hover: none) {
  .tile-veil { opacity: .85; background: linear-gradient(0deg, rgba(14,26,22,.85) 0%, rgba(14,26,22,0) 55%); }
  .tile-cap { transform: none; opacity: 1; padding: 14px 16px; }
  .tile-go { display: none; }
}
@media (max-width: 1400px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .tile-grid, .tile-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tile-grid, .tile-grid-3 { grid-template-columns: 1fr; } .tile-title { font-size: var(--step-1); } }
.tile-grid + .wrap .inline-cta { margin-top: clamp(40px, 5vw, 72px); }
/* mixed sizes (classes set by site.js) */
.tile-grid.is-mixed { grid-auto-flow: row dense; }
.tile-grid .t-big, .tile-grid .t-big-r { grid-column: span 2; grid-row: span 2; }
.tile-grid .t-big-r { grid-column-end: -1; }
.tile-grid .t-wide { grid-column: span 2; }
.tile-grid .t-full, .tile-grid .t-hero { grid-column: 1 / -1; }
.tile-grid .t-big .tile, .tile-grid .t-big-r .tile { aspect-ratio: auto; height: 100%; }
.tile-grid .t-wide .tile { aspect-ratio: 8 / 3; height: 100%; }
.tile-grid .t-full .tile { aspect-ratio: 21 / 8; height: 100%; }
.tile-grid .t-hero .tile { aspect-ratio: 16 / 10; height: 100%; }
.tile-grid .t-big .tile-title, .tile-grid .t-big-r .tile-title, .tile-grid .t-full .tile-title { font-size: var(--step-3); }
.tile-grid .t-big .tile-cap, .tile-grid .t-big-r .tile-cap { padding: 32px 36px; }
.tile-grid-end { height: clamp(48px, 6vw, 96px); }
.filter { margin-bottom: 20px; }
.related { padding-top: clamp(32px, 4vw, 56px); }

/* ---------- build infographic ---------- */
.infog { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.infog-art { background: var(--paper); border: 1px solid var(--line); padding: clamp(12px, 2vw, 28px); position: relative; }
.infog-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .45; pointer-events: none; }
.infog-art svg { position: relative; width: 100%; height: auto; display: block; color: var(--ink); }
.infog .ln { transition: stroke-dashoffset 1.2s var(--ease); }
.infog .lay.on .ln { stroke-dashoffset: 0; }
.infog .lay.on .ln:nth-child(2) { transition-delay: .15s; }
.infog .lay.on .ln:nth-child(3) { transition-delay: .3s; }
.infog .lay.on .ln:nth-child(4) { transition-delay: .45s; }
.infog .lay.on .ln:nth-child(5) { transition-delay: .6s; }
.fill-house { fill: var(--river); opacity: 0; transition: opacity 1s .2s; }
.infog .lay.on .fill-house { opacity: .08; }
.infog-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; position: relative; }
.infog-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.infog-step { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; width: 100%; padding: 10px 0; position: relative; }
.infog-step:focus-visible { outline: 2px solid var(--teak); outline-offset: 2px; }
.infog-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--reed); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease); position: relative; z-index: 1; }
.infog-ic .ic { width: 22px; height: 22px; }
.infog-txt { display: flex; flex-direction: column; padding-top: 4px; }
.infog-txt strong { font-weight: 600; transition: color .3s; }
.infog-txt strong::before { counter-increment: st; content: counter(st, decimal-leading-zero) "  "; color: var(--reed); font-weight: 400; font-variant-numeric: tabular-nums; }
.infog-txt > span { color: var(--ink-2); font-size: var(--step--1); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .35s; }
.infog-step.done .infog-ic { background: #E7EDE9; color: var(--river); border-color: #C9D6CE; }
.infog-step[aria-pressed="true"] .infog-ic { background: var(--river); color: #fff; border-color: var(--river); transform: scale(1.08); }
.infog-step[aria-pressed="true"] .infog-txt > span { max-height: 6em; opacity: 1; }
.infog-step[aria-pressed="true"] strong { color: var(--river); }
@media (max-width: 860px) { .infog { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tile-grid [data-reveal]:nth-child(4n+2) { transition-delay: .08s; }
.js .tile-grid [data-reveal]:nth-child(4n+3) { transition-delay: .16s; }
.js .tile-grid [data-reveal]:nth-child(4n+4) { transition-delay: .24s; }
.js .facts-list [data-reveal]:nth-child(2) { transition-delay: .1s; }
.js .facts-list [data-reveal]:nth-child(3) { transition-delay: .2s; }
.js .facts-list [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* ---------- small icon touches ---------- */
.spec-list dt { display: inline-flex; align-items: center; gap: 8px; }
.spec-list dt .ic { color: var(--reed); width: 18px; height: 18px; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ic { color: var(--river); margin-top: .35em; }
.consult-direct span, .contact-ways span { display: inline-flex; align-items: center; gap: 6px; }
.prefill { display: flex; align-items: center; gap: 8px; }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--river); font-weight: 500; margin-top: 4px; }
.post-card:hover .post-more .ic { transform: translateX(4px); }
.post-more .ic { transition: transform .25s var(--ease); }
.policy-ic { width: 34px; height: 34px; color: var(--gold); margin-bottom: 8px; }
.about-founders h2 { display: flex; align-items: center; gap: 10px; }
.award-img { display: block; overflow: hidden; }
.award-img img { transition: transform .8s var(--ease); }
.award-grid li:hover .award-img img { transform: scale(1.04); }
.notfound-actions { padding-bottom: 96px; }
.article-head .muted { display: inline-flex; align-items: center; gap: 6px; }

/* next project: full-width image banner */
.next-work { padding: 64px 0 0; }
.next-work a { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; border: 0; padding: 0; min-height: 260px; }
.next-bg, .next-bg img, .next-bg .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next-bg img { transition: transform 1.4s var(--ease); }
.next-bg::after { content: ""; position: absolute; inset: 0; background: rgba(14,26,22,.55); transition: background .4s; }
.next-inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.next-work .next-label { color: #D9C98A; }
.next-work .next-title { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.next-work .next-title .ic { width: .8em; height: .8em; transition: transform .35s var(--ease); }
.next-work a:hover .next-bg img { transform: scale(1.05); }
.next-work a:hover .next-bg::after { background: rgba(14,26,22,.4); }
.next-work a:hover .next-title .ic { transform: translateX(8px); }

@media (prefers-reduced-motion: reduce) {
  .ln { stroke-dashoffset: 0 !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-slide.is-active img, .hero-title, .hero-sub, .hero-actions, .page-head-text h1, .page-head-text .lede { animation: none; }
  .hero-scroll span { animation: none; }
}

.page-models .page-head, .page-projects .page-head { padding-bottom: 8px; }

/* series band sized to fit one screen (client feedback) */
.series { padding-block: clamp(44px, 5.5vw, 76px); }
.series .section-head { margin-bottom: clamp(18px, 2.2vw, 28px); }
.series .section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: .3em; }
.series-row { padding: clamp(10px, 1.2vw, 16px) 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.series-name { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.1; }
.series-peek { width: 190px; }
@media (min-height: 700px) and (min-width: 900px) {
  .series { min-height: 0; max-height: none; }
}
@media (max-width: 700px) { .series-name { font-size: clamp(1.9rem, 9vw, 2.5rem); } }
.series .section-head { max-width: 860px; }
.series .section-head p { margin: 0; }
.series-th { font-size: var(--step-0); }
.series-count { margin: 0 0 0 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); font-size: var(--step--1); }
.series-meta { gap: 0; }
@media (min-width: 900px) {
  .series { padding-block: clamp(32px, 6vh, 72px); }
  .series-name { font-size: clamp(2rem, min(3.4vw, 6.4vh), 3.4rem); }
  .series-row { padding: clamp(6px, 1.3vh, 16px) 0; }
}

/* ---------- mobile type scale: headings a notch smaller so they breathe next to body text ---------- */
@media (max-width: 600px) {
  :root { --step-1: 1.15rem; --step-2: 1.35rem; --step-3: 1.55rem; --step-4: 1.95rem; }
  h1, h2, h3 { line-height: 1.3; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.25rem); line-height: 1.32; max-width: 16ch; }
  .series .section-head h2 { font-size: 1.45rem; }
  .series-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .series-name { font-size: clamp(1.7rem, 7.4vw, 2.1rem); line-height: 1.15; }
  .series-meta { justify-items: start; }
  .facts-list strong { font-size: 1.05rem; line-height: 1.35; }
  .facts-list strong [data-count] { font-size: 1.7rem; }
  .facts-list li .ic { width: 26px; height: 26px; }
}

/* mobile dock with 3 buttons (LINE + call + quote): keep each label on one line */
@media (max-width: 900px) {
  .contact-dock a { gap: 6px; font-size: .86rem; white-space: nowrap; }
  .contact-dock svg { width: 18px; height: 18px; }
}
@media (max-width: 370px) { .contact-dock a { font-size: .78rem; gap: 4px; } }
