/* TGC Enterprise: one stylesheet for the whole site.
   Palette tokens live here and nowhere else. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --glass-mist: #E7EADD;
  --glass-sage: #B6C09D;
  --glass-moss: #77855D;
  --glass-lime: #92B152;
  --lead: #2F3729;
  --taupe: #997864;
  --wood-honey: #D19C6D;
  --wood-heart: #8A5A3C;
  --iron: #1F1C17;
  --glass-amber: #D8A84E;
  --glass-lilac: #B7A3C0;
  --azulejo: #2F5D9B; /* Sevilla tile blue: only in ceramic tile motifs (frieze, art patches) */

  /* Derived: a darker moss-lead for small secondary text (meets AA on mist) */
  --text-soft: #4B5543;
  --rule: rgba(47, 55, 41, 0.18);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1360px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--glass-mist);
  color: var(--lead);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.75rem, 7.4vw, 6.25rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--font-display); }

:focus-visible {
  outline: 2px solid var(--lead);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.menu-open :focus-visible { outline-color: var(--glass-mist); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--lead);
  color: var(--glass-mist);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(231, 234, 221, 0.94);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  position: relative;
  z-index: 40;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); font-weight: 500; }
.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current] { border-bottom-color: var(--taupe); }

/* Casa’s drop-down */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__group > a { display: block; }
.nav__sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 860px) {
  .nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.25rem;
    min-width: 13rem;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.4rem;
    padding: 0.9rem 1.25rem;
    background: var(--glass-mist);
    border: 1px solid var(--rule);
  }
  .nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.6rem; }
  .nav__group:hover .nav__sub,
  .nav__group:focus-within .nav__sub { display: flex; }
}

.header__right { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
/* Language: a quiet "EN" label with a list of codes, no box */
.lang { position: relative; z-index: 40; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
}
.lang__chev { transition: transform 0.2s; }
.lang.open .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute;
  top: 100%;
  right: -0.9rem;
  margin: 0.55rem 0 0;
  padding: 0.7rem 0;
  min-width: 5.5rem;
  list-style: none;
  text-align: center;
  background: var(--glass-mist);
  color: var(--lead);
  box-shadow: 0 10px 30px rgba(47, 55, 41, 0.14);
}
.lang__list[hidden] { display: none; }
.lang__list button {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
}
.lang__list button:hover { color: var(--taupe); }
.lang__list button[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--taupe);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.menu-open .lang__btn { color: var(--glass-mist); }
.menu-btn {
  display: none;
  position: relative;
  z-index: 40;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
}

/* Phone menu: only when JS is available, otherwise the nav simply wraps */
@media (max-width: 859px) {
  .site-header { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .header__right { flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1rem; }
  .js .header__right { flex-wrap: nowrap; gap: 0.9rem; }
  .nav { width: 100%; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .js .site-header { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .js .menu-btn { display: block; }
  .js .nav {
    position: fixed;
    inset: 0;
    z-index: 35;
    width: auto;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: var(--lead);
    color: var(--glass-mist);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
  }
  .js .nav a {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    line-height: 1.2;
    border: 0;
  }
  .js .nav a[aria-current] { font-style: italic; }
  .js .nav__group { flex-direction: column; align-items: flex-start; }
  .js .nav__sub { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 1.25rem; }
  .js .nav__sub a { font-size: clamp(1.7rem, 8vw, 2.4rem); opacity: 0.85; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; border-color: transparent; }
  .menu-open .wordmark,
  .menu-open .menu-btn { color: var(--glass-mist); }
  .menu-open body { overflow: hidden; }
}

/* ---------- Layout helpers ---------- */
.section { padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section--sage { background: var(--glass-sage); }
.section--lead { background: var(--lead); color: var(--glass-mist); }
.section--heart { background: var(--wood-heart); color: var(--glass-mist); }
.section--lead .soft,
.section--heart .soft { color: var(--glass-mist); opacity: 0.88; }
.soft { color: var(--text-soft); }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; max-width: 32em; }
.stack > * + * { margin-top: 1.5rem; }
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border: 1px solid currentColor;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--lead); border-color: var(--lead); color: var(--glass-mist); }
.btn--solid { background: var(--lead); border-color: var(--lead); color: var(--glass-mist); }
.btn--solid:hover { background: transparent; color: var(--lead); }
.section--lead .btn:hover,
.section--heart .btn:hover { background: var(--glass-mist); border-color: var(--glass-mist); color: var(--lead); }
.section--heart .btn--solid,
.section--lead .btn--solid { background: var(--glass-mist); border-color: var(--glass-mist); color: var(--lead); }
.section--heart .btn--solid:hover,
.section--lead .btn--solid:hover { background: transparent; color: var(--glass-mist); }
.btns { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.link {
  text-decoration: underline;
  text-decoration-color: var(--taupe);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  font-weight: 500;
}
.link:hover { text-decoration-color: currentColor; }
.section--lead .link, .section--heart .link { text-decoration-color: var(--glass-sage); }

/* ---------- Hero: the tagline beside three pictures from Tishad's story ---------- */
.hero {
  display: grid;
  background: var(--glass-mist);
  min-height: max(30rem, calc(100svh - var(--header-h) - var(--footer-h)));
}
.hero__text {
  align-self: center;
  padding: 2rem var(--gutter);
  animation: rise 1.4s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.5rem); max-width: 8em; }
.hero__panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1vw, 0.9rem);
  padding: clamp(0.5rem, 1.5vw, 1rem);
  min-height: 0;
}
.panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--glass-sage);
  animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.panel:nth-child(2) { animation-delay: 0.25s; }
.panel:nth-child(3) { animation-delay: 0.5s; }
.panel img, .panel svg { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 859px) {
  .hero { grid-template-rows: auto minmax(0, 1fr); }
  .hero__text { padding-top: 1.25rem; padding-bottom: 0.5rem; }
  .hero__panels {
    display: flex;
    min-height: 22rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero__panels::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 80%; scroll-snap-align: center; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); height: max(33rem, calc(100svh - var(--header-h) - var(--footer-h))); }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Page intro (inner pages) ---------- */
.intro { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3.5rem); }
.intro__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.75rem; }
.intro h1 { max-width: 12em; }

/* ---------- Casa tiles ---------- */
.tiles { display: grid; gap: 1rem; max-width: var(--max); margin: 0 auto; }
@media (min-width: 760px) { .tiles--two { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: var(--glass-mist);
  text-decoration: none;
  background: var(--lead);
}
.tile img,
.tile svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover img, .tile:focus-visible img,
.tile:hover svg, .tile:focus-visible svg { transform: scale(1.035); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 28, 23, 0.82) 0%, rgba(31, 28, 23, 0.5) 34%, rgba(31, 28, 23, 0) 62%);
}
.tile__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  display: grid;
  gap: 0.35rem;
}
.tile__status { font-weight: 500; }
.tile__name { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.tile__text { max-width: 26em; }
@media (min-width: 760px) {
  .tiles--stack .tile { aspect-ratio: 16 / 8; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: var(--max); margin: 0 auto; }
@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--flip { grid-template-columns: 6fr 5fr; }
  .split--flip > :first-child { order: 2; }
}
.frame { overflow: hidden; background: var(--glass-sage); }
.frame img { width: 100%; height: auto; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--portrait img { height: 100%; object-fit: cover; }
.frame svg { display: block; width: 100%; height: 100%; }

/* ---------- Lists ---------- */
.rows { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--rule); }
.row { display: grid; gap: 0.75rem 3rem; padding: clamp(1.75rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .row { grid-template-columns: 5fr 6fr; } }
.section--lead .rows, .section--lead .row { border-color: rgba(231, 234, 221, 0.25); }

.gallery { display: grid; gap: 1rem; max-width: var(--max); margin: 0 auto; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .frame { aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero__img { display: block; }

/* ---------- Contact ---------- */
.big-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.2vw, 4.25rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--taupe);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.big-mail:hover { text-decoration-color: currentColor; }
.section--heart .big-mail { text-decoration-color: var(--wood-honey); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

/* ---------- Pull quote ---------- */
.pullquote {
  margin: 0;
  max-width: 24em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.pullquote p { margin: 0; max-width: none; }
.stack > .pullquote--plain { margin-top: 1.75rem; }
.pullquote--plain { font-style: normal; font-size: clamp(1.7rem, 3.8vw, 3rem); max-width: 26em; }

/* ---------- Footer (Home only, below the first screen), with the azulejo tile frieze on top ---------- */
:root { --footer-h: 0rem; } /* the one-screen pages have no footer */
.site-footer {
  position: relative;
  background: var(--iron);
  color: var(--glass-mist);
  padding: calc(clamp(3rem, 7vw, 5rem) + 28px) var(--gutter) 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2240%22 viewBox=%220 0 80 40%22%3E%3Crect x=%220%22 width=%2240%22 height=%2240%22 fill=%22%23E7EADD%22/%3E%3Cpolygon points=%2220.0%2C2.4 23.1%2C12.6 32.4%2C7.6 27.4%2C16.9 37.6%2C20.0 27.4%2C23.1 32.4%2C32.4 23.1%2C27.4 20.0%2C37.6 16.9%2C27.4 7.6%2C32.4 12.6%2C23.1 2.4%2C20.0 12.6%2C16.9 7.6%2C7.6 16.9%2C12.6%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2220.0%22 cy=%2220.0%22 r=%223.2%22 fill=%22%23D8A84E%22/%3E%3Ccircle cx=%220%22 cy=%220%22 r=%228%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2240%22 cy=%220%22 r=%228%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%220%22 cy=%2240%22 r=%228%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2240%22 cy=%2240%22 r=%228%22 fill=%22%232F5D9B%22/%3E%3Crect x=%2240%22 width=%2240%22 height=%2240%22 fill=%22%23E7EADD%22/%3E%3Ccircle cx=%2253.2%22 cy=%2220.0%22 r=%226.8%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2266.8%22 cy=%2220.0%22 r=%226.8%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2260.0%22 cy=%2213.2%22 r=%226.8%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2260.0%22 cy=%2226.8%22 r=%226.8%22 fill=%22%232F5D9B%22/%3E%3Ccircle cx=%2260.0%22 cy=%2220.0%22 r=%223.6%22 fill=%22%23D8A84E%22/%3E%3Ccircle cx=%2240%22 cy=%220%22 r=%225%22 fill=%22%23D8A84E%22/%3E%3Ccircle cx=%2280%22 cy=%220%22 r=%225%22 fill=%22%23D8A84E%22/%3E%3Ccircle cx=%2240%22 cy=%2240%22 r=%225%22 fill=%22%23D8A84E%22/%3E%3Ccircle cx=%2280%22 cy=%2240%22 r=%225%22 fill=%22%23D8A84E%22/%3E%3Cpath d=%22M0 .6H80M0 39.4H80M40 0V40%22 stroke=%22%231F1C17%22 stroke-width=%221.2%22 fill=%22none%22/%3E%3C/svg%3E") repeat-x;
  background-size: auto 28px;
}
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 2.25rem; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand { margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 860px) { .footer__grid > div:first-child { display: flex; align-items: center; } }
.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--glass-sage); margin-bottom: 0.4rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 0.3em; }
.footer__base { max-width: var(--max); margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(231, 234, 221, 0.18); color: var(--glass-sage); font-size: 0.95rem; }

/* ---------- Scroll reveal (images only, gentle) ---------- */
.js .reveal { opacity: 0; transition: opacity 1.1s ease; }
.js .reveal.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text, .panel { animation: none; }
  .js .reveal { opacity: 1; transition: none; }
  .tile img, .tile svg { transition: none; }
  .tile:hover img, .tile:focus-visible img,
  .tile:hover svg, .tile:focus-visible svg { transform: none; }
}

/* ---------- One screen per page (no scrolling on desktop) ---------- */
.screen { min-height: calc(100svh - var(--header-h) - var(--footer-h)); }
@media (min-width: 860px) {
  .screen { height: calc(100svh - var(--header-h) - var(--footer-h)); min-height: 33rem; }
}

/* Casa's overview: heading, then two tiles that fill the screen */
.casas-screen { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(0.75rem, 2vh, 1.5rem); padding: clamp(1rem, 3vh, 2rem) var(--gutter); }
.casas-screen__head { max-width: var(--max); width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 2rem; }
.casas-screen h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.casas-screen .lede { font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 0; }
.tiles--fill { width: 100%; min-height: 0; grid-template-columns: 1fr 1fr; gap: clamp(0.5rem, 1.5vw, 1.25rem); }
.tiles--fill .tile { aspect-ratio: auto; height: 100%; min-height: 0; }
.tiles--fill .tile__name { font-size: clamp(1.15rem, 4vw, 3rem); }
.tiles--fill .tile__body { padding: 0.9rem; }
@media (min-width: 760px) { .tiles--fill .tile__body { padding: clamp(1.4rem, 3vw, 2.5rem); } }
@media (max-width: 599px) { .tiles--fill .tile__text { display: none; } }

/* Detail pages (each Casa, Vision): art panel next to the text */
.detail { display: grid; grid-template-rows: minmax(5.5rem, 16svh) auto; }
.detail__art { position: relative; overflow: hidden; background: var(--glass-sage); min-height: 0; }
.detail__art img, .detail__art svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail__text { display: grid; align-content: center; gap: 0.7rem; padding: clamp(1rem, 4vh, 3rem) var(--gutter); }
.detail__text p { font-size: 0.95rem; line-height: 1.5; }
@media (min-width: 860px) { .detail__text { gap: 1rem; } .detail__text p { font-size: 1.0625rem; line-height: 1.65; } }
.detail__text h1 { font-size: clamp(2.2rem, 5.4vw, 4.75rem); }
.detail__text p.lede { font-size: clamp(1.05rem, 1.9vw, 1.4rem); line-height: 1.4; }
.detail__text .btns { margin-top: 0.5rem; }
@media (min-width: 860px) {
  .detail { grid-template-columns: 5fr 6fr; grid-template-rows: none; }
  .detail--flip { grid-template-columns: 6fr 5fr; }
  .detail--flip .detail__art { order: 2; }
  .detail__text { padding-left: clamp(2rem, 5vw, 5rem); padding-right: clamp(2rem, 5vw, 5rem); }
}
.detail__text .pullquote--plain { font-size: clamp(1.5rem, 2.9vw, 2.6rem); }

/* Founder: portrait, bio and the pull quote side by side */
.founder { display: grid; grid-template-rows: minmax(5rem, 11svh) auto auto; }
.founder__art { position: relative; overflow: hidden; background: var(--glass-sage); min-height: 0; }
.founder__art img, .founder__art svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__bio { display: grid; align-content: center; gap: 0.6rem; padding: clamp(1rem, 3vh, 2.5rem) var(--gutter); }
.founder__bio h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.founder__bio p { font-size: clamp(0.84rem, 1.15vw, 1.05rem); line-height: 1.42; }
.founder__bio h1 { font-size: clamp(2rem, 4.4vw, 4rem); }
.founder__bio .founder__sub { font-size: 1.05rem; }
.founder__quote { display: grid; align-content: center; padding: clamp(0.9rem, 3vh, 2.5rem) var(--gutter); background: var(--glass-sage); }
.founder .pullquote { font-size: clamp(1.2rem, 2.5vw, 2.4rem); max-width: none; }
@media (min-width: 860px) {
  .founder { grid-template-columns: 3fr 5fr 4fr; grid-template-rows: none; }
  .founder__bio { padding-left: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); }
}

.notfound { display: grid; align-items: center; padding: 2rem var(--gutter); }

/* ---------- Japanese and Chinese: system CJK fonts follow the Latin fonts ---------- */
html:lang(ja) {
  --font-display: "Bodoni Moda", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Times New Roman", serif;
  --font-text: "Jost", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", sans-serif;
}
html:lang(zh) {
  --font-display: "Bodoni Moda", "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Times New Roman", serif;
  --font-text: "Jost", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
}
html:lang(ja) .pullquote, html:lang(zh) .pullquote { font-style: normal; }
html:lang(ja) body, html:lang(zh) body { line-height: 1.8; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { line-height: 1.2; letter-spacing: 0; }
