/* iHomeRegistry — restored site
   Palette from the original 2016–2018 stylesheet: slate teal #445F64, logo teal #15B0B3,
   light surface #EDEFF0, business yellow #FFD74B. */

:root {
  --paper: #f8f7f4;
  --surface: #ffffff;
  --mist: #edeff0;
  --mist-2: #e2e8e9;
  --ink: #1d2c31;
  --slate: #445f64;
  --slate-deep: #22353a;
  --slate-night: #18272b;
  --muted: #54686d;
  --teal: #15b0b3;
  --teal-ink: #0a6c70;
  --teal-hover: #085a5d;
  --teal-pale: #9fdcdd;
  --teal-wash: #e3f3f3;
  --sun: #ffd74b;
  --line: rgba(29, 44, 49, 0.12);
  --line-strong: rgba(29, 44, 49, 0.2);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;

  --text-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.3125rem, 1.18rem + 0.6vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.42rem + 1.5vw, 2.625rem);
  --text-3xl: clamp(2.125rem, 1.6rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.7rem + 4.6vw, 5.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --wrap: 1200px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(24, 39, 43, 0.06), 0 2px 8px rgba(24, 39, 43, 0.05);
  --shadow-md: 0 2px 6px rgba(24, 39, 43, 0.07), 0 12px 32px rgba(24, 39, 43, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--teal-wash); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--surface); color: var(--ink); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-weight: 500;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow--light { color: var(--teal-pale); }
.display { font-family: var(--font-display); font-size: var(--text-3xl); letter-spacing: -0.01em; color: var(--ink); }
.lede { font-size: var(--text-lg); line-height: 1.6; color: var(--muted); max-width: 40em; }
.caps { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.8em 1.6em;
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--teal-ink); color: #fff;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--teal-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--slate-deep); }
.btn--light:hover { background: var(--teal-wash); color: var(--slate-deep); }
.btn svg { width: 1.1em; height: 1.1em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--teal-ink);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--teal-pale); }

/* ---------- Notice bar ---------- */
.notice {
  background: var(--slate-night); color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-xs); letter-spacing: 0.02em; line-height: 1.5;
}
.notice .wrap { display: flex; justify-content: center; align-items: center; gap: 0.5em; padding-block: 0.6rem; text-align: center; flex-wrap: wrap; }
.notice a { color: #fff; font-weight: 500; }
.notice a:hover { color: var(--teal-pale); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand .logo-white { display: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0.6em 1.2em; font-size: var(--text-xs); }
.nav-toggle { display: none; }

/* Header over the home hero */
.home .site-header.is-over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header.is-over-hero .logo-color { display: none; }
.home .site-header.is-over-hero .logo-white { display: block; }
.home .site-header.is-over-hero .nav a:not(.btn) { color: #fff; }
.home .site-header.is-over-hero .nav .btn { background: #fff; color: var(--slate-deep); }
.home .site-header.is-over-hero .nav .btn:hover { background: var(--teal-wash); }
.home .site-header.is-over-hero .nav-toggle { color: #fff; border-color: rgba(255,255,255,0.5); }
.home .site-header { margin-bottom: calc(-1 * var(--header-h) - 1px); }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 1em;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--gutter) var(--space-5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav a:not(.btn) { min-height: 52px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: var(--space-4); min-height: 48px; }
  .home .site-header.is-over-hero .nav a:not(.btn) { color: var(--ink); }
  .home .site-header.is-over-hero .nav .btn { background: var(--teal-ink); color: #fff; }
  .brand img { height: 44px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, min(100svh, 940px));
  display: flex; align-items: flex-end;
  color: #fff; background: var(--slate-night);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 27, 30, 0.82) 0%, rgba(16, 27, 30, 0.55) 42%, rgba(16, 27, 30, 0.12) 75%),
    linear-gradient(0deg, rgba(16, 27, 30, 0.75) 0%, rgba(16, 27, 30, 0) 45%),
    linear-gradient(180deg, rgba(16, 27, 30, 0.55) 0%, rgba(16, 27, 30, 0) 22%);
}
.hero__inner { padding-top: calc(var(--header-h) + var(--space-9)); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero__title { font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.015em; max-width: 11ch; margin-bottom: var(--space-5); }
.hero__lede { font-size: var(--text-lg); line-height: 1.6; max-width: 34em; color: rgba(255, 255, 255, 0.88); margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: 760px; }
.door {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-2) var(--space-4);
  min-height: 132px; padding: var(--space-5);
  color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.door:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.door__label { grid-column: 1 / -1; align-self: start; font-size: var(--text-lg); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; display: flex; align-items: center; gap: 0.6em; }
.door__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.door--business .door__label::before { background: var(--sun); }
.door__desc { font-size: var(--text-sm); line-height: 1.45; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.02em; }
.door__arrow { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }
.door:hover .door__arrow { transform: translateX(4px); }

.hero__toggle {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vw, 3.5rem); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: rgba(16, 27, 30, 0.45); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
  color: #fff; cursor: pointer; transition: background-color 0.2s var(--ease);
}
.hero__toggle:hover { background: rgba(16, 27, 30, 0.7); }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__inner { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-7); }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .hero__toggle { top: calc(var(--header-h) + var(--space-4)); bottom: auto; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--mist { background: var(--mist); }
.section--white { background: var(--surface); }
.section--dark { background: var(--slate-deep); color: #fff; }
.section--dark .display, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(255, 255, 255, 0.78); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .display { margin-bottom: var(--space-4); }

/* ---------- Story teaser ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story .display { font-size: var(--text-3xl); }
.story__body { font-size: var(--text-lg); color: var(--ink); padding-top: var(--space-2); }
.story__body p { color: var(--muted); }
.story__body p:first-child { color: var(--ink); }
.story__body .link-arrow { margin-top: var(--space-4); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---------- Homeowner features ---------- */
.homeowners { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.homeowners__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.homeowners__intro .display { margin-bottom: var(--space-5); }
.checklist { list-style: none; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 0.75em; align-items: baseline; font-size: var(--text-base); }
.checklist li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.features > :nth-child(even) { transform: translateY(clamp(0px, 6vw, 72px)); }
.feature { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.feature__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.03); }
.feature__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.feature__num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--teal-ink); line-height: 1; margin-bottom: var(--space-3); display: block; }
.feature h3 { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-1); }
.feature__kicker { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin-bottom: var(--space-3); font-size: var(--text-base); }
.feature p:not(.feature__kicker) { color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }
@media (max-width: 980px) {
  .homeowners { grid-template-columns: 1fr; }
  .homeowners__intro { position: static; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .features > :nth-child(even) { transform: none; }
}

/* ---------- Rooms mosaic ---------- */
.rooms-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.rooms-head .lede { max-width: 32em; }
.rooms { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(200px, 260px)); gap: var(--space-4); }
.room { position: relative; overflow: hidden; border-radius: var(--radius-md); margin: 0; background: var(--mist-2); }
.room:first-child { grid-row: span 2; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.room:hover img { transform: scale(1.04); }
.room figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(0deg, rgba(16, 27, 30, 0.72), rgba(16, 27, 30, 0));
  color: #fff; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
@media (max-width: 860px) {
  .rooms { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .room:first-child { grid-column: span 2; grid-row: span 1; height: 260px; }
}
@media (max-width: 480px) { .rooms { grid-auto-rows: 150px; gap: var(--space-3); } .room:first-child { height: 220px; } }

/* ---------- Business ---------- */
.business { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.business__intro .display { margin-bottom: var(--space-5); }
.business__visual { margin: var(--space-7) 0 0; border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.business__visual img { width: 100%; height: auto; }
.business__visual figcaption { padding: var(--space-3) var(--space-4); background: var(--slate-night); color: rgba(255,255,255,0.72); font-size: var(--text-xs); letter-spacing: 0.04em; }
.offers { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.offer { padding: var(--space-6) 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-4); }
.offer__num { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--teal-pale); }
.offer h3 { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-3); color: #fff; }
.offer p { color: rgba(255, 255, 255, 0.78); font-size: var(--text-sm); }
.quote-dark { margin: var(--space-7) 0 0; padding: var(--space-6) 0 0; border-top: 1px solid var(--line-light); }
.quote-dark blockquote { margin: 0 0 var(--space-4); font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.55; color: #fff; }
.quote-dark figcaption { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-pale); font-weight: 500; }
.builders { margin-top: var(--space-6); padding: var(--space-5); background: rgba(255,255,255,0.06); border: 1px solid var(--line-light); border-radius: var(--radius-md); }
.builders h3 { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); margin-bottom: var(--space-2); }
.builders p { color: rgba(255,255,255,0.82); font-size: var(--text-sm); }
@media (max-width: 980px) { .business { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.testimonial-feature blockquote { margin: 0; }
.testimonial-feature .big {
  font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: var(--space-5);
}
.testimonial-feature .big::before { content: "\201C"; color: var(--teal); margin-left: -0.45em; }
.testimonial-feature .big::after { content: "\201D"; color: var(--teal); }
.testimonial-feature .rest { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--muted); line-height: 1.6; max-width: 36em; }
.testimonial-feature figcaption, .quote figcaption { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.testimonial-feature figcaption span, .quote figcaption span { display: block; margin-top: 0.3em; color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 400; font-size: var(--text-sm); }
.quotes { columns: 3 300px; column-gap: clamp(1.25rem, 3vw, 2rem); }
.quote { break-inside: avoid; margin: 0 0 clamp(1.25rem, 3vw, 2rem); padding: var(--space-6) var(--space-5); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 var(--space-5); font-family: var(--font-serif); font-size: var(--text-base); line-height: 1.7; color: var(--ink); }
.quote blockquote p { margin-bottom: 0.8em; }
@media (max-width: 860px) { .testimonial-feature { grid-template-columns: 1fr; } .testimonial-feature .big::before { margin-left: 0; } }

/* ---------- Partners ---------- */
.partners { border-block: 1px solid var(--line); background: var(--surface); }
.partners .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 4vw, 3rem); }
.partners__label { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); max-width: 12em; line-height: 1.5; }
.partners__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) clamp(1.5rem, 3vw, 3rem); }
.partners__logos img { width: auto; max-height: 52px; filter: grayscale(1); opacity: 0.78; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.partners__logos li:hover img { filter: none; opacity: 1; }
.partners__logos .slim img { max-height: 22px; }
@media (max-width: 860px) { .partners .wrap { grid-template-columns: 1fr; } .partners__logos { justify-content: flex-start; } }

/* ---------- Blog cards ---------- */
.posts-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.post-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card:first-child { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }
.post-card:first-child h3 a, .post-card:first-child h3 { color: #fff; }
.post-card:first-child .post-card__meta { color: var(--teal-pale); }
.post-card:first-child p { color: rgba(255,255,255,0.78); }
.post-card__meta { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); }
.post-card h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; }
.post-card:first-child h3 { font-size: var(--text-2xl); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 980px) { .post-cards { grid-template-columns: 1fr 1fr; } .post-card:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .post-cards { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta .display { margin-bottom: var(--space-4); }
.cta__actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta__email { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.cta__email:hover { color: var(--teal-ink); border-color: var(--teal-ink); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-night); color: rgba(255, 255, 255, 0.78); padding-block: clamp(3.5rem, 7vw, 5.5rem) var(--space-6); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); padding-bottom: var(--space-7); border-bottom: 1px solid var(--line-light); }
.footer-brand img { height: 64px; width: auto; margin-bottom: var(--space-5); }
.footer-brand p { max-width: 30em; color: rgba(255,255,255,0.7); }
.site-footer h2 { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-1); }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-5); font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); letter-spacing: 0.02em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: var(--space-5); max-width: 14ch; }
.page-hero .lede { max-width: 38em; }
.page-hero--split .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero--split .wrap { grid-template-columns: 1fr; } }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(248,247,244,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: clamp(1rem, 3vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 52px; white-space: nowrap; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--teal); }

/* ---------- How it works ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__label { position: sticky; top: calc(var(--header-h) + 72px); }
.split__label .display { margin-bottom: var(--space-4); }
.prose-blocks { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.block h3 { font-family: var(--font-sans); font-size: var(--text-lg); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-4); }
.block p { color: var(--muted); max-width: 40em; }
.block ul { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.block li { display: flex; gap: 0.8em; align-items: baseline; color: var(--ink); }
.block li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.block--card { padding: var(--space-6); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.block__img { margin: var(--space-5) 0 0; border-radius: var(--radius-md); overflow: hidden; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .split__label { position: static; } }

.screens { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.screen { grid-column: span 4; margin: 0; }
.screen--wide { grid-column: span 6; }
.screen button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); cursor: zoom-in; transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.screen button:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.screen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.screen figcaption { margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .screen, .screen--wide { grid-column: span 6; } }
@media (max-width: 520px) { .screen, .screen--wide { grid-column: span 12; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(16, 27, 30, 0.86); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-md); background: #fff; }
.lightbox p { color: #fff; margin-top: var(--space-3); font-size: var(--text-sm); letter-spacing: 0.06em; }
.lightbox__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lightbox__close svg { width: 18px; height: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.about-grid + .about-grid { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.about-grid h2 { font-family: var(--font-display); font-size: var(--text-2xl); }
.about-grid .body { font-size: var(--text-lg); line-height: 1.7; color: var(--ink); max-width: 36em; }
.about-grid .body p { margin-bottom: 1.1em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

.timeline { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.timeline li { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--line-light); }
.timeline time { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-pale); padding-top: 0.3em; }
.timeline p { color: rgba(255,255,255,0.86); }
.timeline a { color: #fff; }
.timeline a:hover { color: var(--teal-pale); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.contact-card__body { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: var(--space-5); justify-content: center; }
.contact-card__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.contact-list { list-style: none; display: grid; gap: var(--space-4); }
.contact-list dt, .contact-list .k { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { color: var(--teal-ink); border-color: var(--teal-ink); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } .contact-card__img img { min-height: 220px; max-height: 300px; } }

/* ---------- Blog index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: clamp(2rem, 4vw, 3rem); }
.filters button {
  min-height: 44px; padding: 0 1.1em; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .count { opacity: 0.6; margin-left: 0.4em; }
.series { margin-bottom: clamp(3rem, 6vw, 5rem); }
.series[hidden] { display: none; }
.series__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: var(--space-5); align-items: baseline; }
.series__head h2 { font-family: var(--font-display); font-size: var(--text-2xl); }
.series__head p { color: var(--muted); max-width: 36em; }
.post-list { list-style: none; border-top: 1px solid var(--line-strong); }
.post-row { border-bottom: 1px solid var(--line); }
.post-row a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2) clamp(1.5rem, 5vw, 5rem); padding: var(--space-5) 0; text-decoration: none; color: var(--ink); transition: background-color 0.2s var(--ease); }
.post-row a:hover { background: rgba(21, 176, 179, 0.05); }
.post-row a:hover .post-row__title { color: var(--teal-ink); }
.post-row time { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 0.45em; }
.post-row__title { display: block; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; margin-bottom: var(--space-2); transition: color 0.2s var(--ease); }
.post-row__dek { display: block; color: var(--muted); font-size: var(--text-sm); max-width: 44em; }
@media (max-width: 760px) {
  .series__head, .post-row a { grid-template-columns: 1fr; }
  .post-row time { padding-top: 0; }
}

/* ---------- Article ---------- */
.article-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.article-head .crumbs { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-5); display: flex; gap: 0.6em; flex-wrap: wrap; color: var(--muted); }
.article-head .crumbs a { color: var(--teal-ink); text-decoration: none; }
.article-head .crumbs a:hover { text-decoration: underline; }
.article-head h1 { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: var(--space-5); }
.article-head .dek { font-family: var(--font-serif); font-style: italic; font-size: var(--text-lg); color: var(--muted); margin-bottom: var(--space-5); }
.article-meta { display: flex; gap: var(--space-3) var(--space-5); flex-wrap: wrap; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.prose { font-family: var(--font-serif); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.8; color: var(--ink); padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.25em; }
.prose h2, .prose h3 { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.06em; margin: 2em 0 0.7em; line-height: 1.3; }
.prose h2 { font-size: var(--text-xl); }
.prose h3 { font-size: var(--text-lg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--teal-ink); }
.prose blockquote { padding-left: 1.2em; border-left: 2px solid var(--teal); color: var(--muted); font-style: italic; }
.prose strong, .prose b { font-weight: 700; }
.prose a { word-break: break-word; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.archive-note { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--muted); background: var(--mist); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-7); line-height: 1.55; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding-block: var(--space-6) clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.article-nav a { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.article-nav a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.article-nav .k { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); }
.article-nav .t { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; }
.article-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } .article-nav .next { grid-column: 1; text-align: left; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-9); }
.notfound h1 { font-family: var(--font-display); font-size: var(--text-3xl); margin-bottom: var(--space-4); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .features > .reveal:nth-child(even) { transform: translateY(calc(clamp(0px, 6vw, 72px) + 18px)); }
.js .features > .reveal.is-visible:nth-child(even) { transform: translateY(clamp(0px, 6vw, 72px)); }
@media (max-width: 600px) {
  .js .features > .reveal:nth-child(even) { transform: translateY(18px); }
  .js .features > .reveal.is-visible:nth-child(even) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
