/* Tamil Tech — shared styles (v2)
   Palette from the logo: mundasu red, the charcoal ring, the white disc. Gold only for the 10-year moment.
   Red is nudged from the logo's #E8262B to #E2222A so white body text on it passes WCAG AA (4.6:1). */

:root {
  --red: #E2222A;
  --red-deep: #9E1219;
  --charcoal: #242424;
  --charcoal-2: #2F2F2F;   /* raised tiles on charcoal */
  --paper: #FFFFFF;
  --mist: #F4F2F1;         /* light tiles */
  --gold: #E2A93B;
  --grey: #6B6461;
  --grey-on-dark: #B9B2AF;
  --line: #E6E1DF;

  --font: "Anek Tamil", "Noto Sans Tamil", system-ui, sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.65rem;
  --t-xl: clamp(1.9rem, 3.4vw, 2.6rem);
  --t-2xl: clamp(2.25rem, 5vw, 3.5rem);
  --t-hero: clamp(3.1rem, 7.4vw, 7.5rem);

  --r-lg: 20px;   /* feature tiles */
  --r-md: 12px;   /* small tiles */
  --r-sm: 6px;    /* inputs */

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  overflow-x: hidden;
}
html[lang="ta"] body { line-height: 1.75; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-head :focus-visible, .is-top :focus-visible, .on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--charcoal); color: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- Header: red while over the hero, white once scrolled ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.site-header.is-top { background: var(--red); color: var(--paper); border-bottom-color: transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 2.75rem; height: 2.75rem; }
.brand span { font-weight: 700; font-size: var(--t-md); font-variation-settings: "wdth" 112; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding-block: .4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.brand span { white-space: nowrap; }
/* Tamil menu labels are long: drop the wordmark (the logo stays) until there is room for both */
@media (max-width: 1080px) {
  html[lang="ta"] .brand span { display: none; }
  html[lang="ta"] .nav { gap: 1.25rem; }
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

.lang { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; flex-shrink: 0; }
.lang button {
  font: inherit; font-size: var(--t-sm); font-weight: 600;
  border: 0; background: none; color: inherit;
  padding: .3rem .8rem; border-radius: 999px; cursor: pointer; min-height: 2.25rem;
}
.lang button[aria-pressed="true"] { background: var(--charcoal); color: var(--paper); }
.is-top .lang button[aria-pressed="true"] { background: var(--paper); color: var(--red-deep); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .site-header .wrap { gap: .75rem; }
  .brand span { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); color: var(--charcoal);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--red-deep); border-bottom-color: var(--line); }
  .lang { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; color: inherit;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .65rem 1.5rem;
  font: inherit; font-size: 1.125rem; font-weight: 700; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-deep); }
.btn-white { background: var(--paper); color: var(--red-deep); }
.btn-white:hover { background: var(--charcoal); color: var(--paper); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--red-deep); border-color: var(--paper); }
.btn-line { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-line:hover { background: var(--charcoal); color: var(--paper); }

/* ---------- Hero: the one loud thing ---------- */

.hero { background: var(--red); color: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 0 2rem;
  min-height: min(calc(100svh - 4.5rem), 52rem);
  padding-top: clamp(2rem, 6vw, 4.5rem);
  container-type: inline-size;
}
.hero-text { padding-bottom: clamp(2.5rem, 6vw, 5rem); align-self: center; position: relative; z-index: 1; }

/* Two fixed lines. Size comes from the text column's width so the longer line
   ("Valarga Technology" ≈ 8.6em, "வளர்க டெக்னாலஜி" ≈ 10.6em at wdth 100) always fits. */
.hero-line {
  margin: 0;
  white-space: pre-line;
  font-size: min(calc((100cqi - 2rem) * .6 / 8.9), 7.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 100;
  transition: font-variation-settings 420ms var(--ease), opacity 220ms ease;
}
html[lang="ta"] .hero-line { line-height: 1.2; font-size: min(calc((100cqi - 2rem) * .6 / 10.9), 6rem); }
/* Language swap: the headline squeezes to its narrowest width, then opens out in the new language */
.hero-line.is-swapping { font-variation-settings: "wdth" 75; opacity: 0; }

.hero-who { margin: 2rem 0 .4rem; font-size: var(--t-md); font-weight: 700; }
.hero-who, .hero-body { max-width: 30rem; }
.hero-body { margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Cutout is cropped at the hip and wide (arms out): it runs out to the page margin and sits flush on the hero's bottom edge */
.hero-photo {
  /* half-way into the gutter, plus up to 3rem of the empty side margin on wide screens; fingertips never touch the edge */
  margin: 0 calc(-.5 * var(--gutter) - min(3rem, max(0px, (100vw - var(--max)) / 2))) 0 0;
  align-self: end; justify-self: end;
  width: calc(140% + var(--gutter)); max-width: 56rem;
  position: relative; z-index: 0;
}
/* Small laptops / tablets landscape: less room beside the copy, so a slightly smaller cutout keeps the hand clear of it */
@media (min-width: 861px) and (max-width: 1200px) {
  .hero-photo { width: calc(110% + var(--gutter) / 2); }
}
.hero-photo img { width: 100%; height: auto; }

/* Load sequence: headline, copy and photo rise once, in order */
.js .hero-line, .js .hero-meta, .js .hero-photo { opacity: 0; transform: translateY(24px); }
.js.is-loaded .hero-line, .js.is-loaded .hero-meta, .js.is-loaded .hero-photo {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease), transform 700ms var(--ease), font-variation-settings 420ms var(--ease);
}
.js.is-loaded .hero-meta { transition-delay: 150ms; }
.js.is-loaded .hero-photo { transition-delay: 280ms; }
.js.is-loaded .hero-line.is-swapping { opacity: 0; }

/* Phones: single column */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { display: contents; }
  .hero-line { order: 1; font-size: calc(100cqi / 8.9); }
  html[lang="ta"] .hero-line { font-size: calc(100cqi / 10.9); }
  /* Phones: headline, copy and both buttons first, then the photo standing on the hero's bottom edge */
  .hero-meta { order: 2; }
  .hero-photo { order: 3; justify-self: center; width: min(100%, 30rem); max-width: none; margin: 2rem 0 0; }
  .hero-who { margin-top: 1.25rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
/* Jump links land below the sticky header */
section[id] { scroll-margin-top: 4.5rem; }
.section-mist { background: var(--mist); }
.on-dark { background: var(--charcoal); color: var(--paper); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 2rem; margin-bottom: 2rem;
}
.section-head h2, .h2 {
  margin: 0; font-size: var(--t-xl); font-weight: 700; line-height: 1.15;
  font-variation-settings: "wdth" 112;
}
.section-head p { margin: 0; color: var(--grey); max-width: 36rem; }
.on-dark .section-head p { color: var(--grey-on-dark); }

.text-link { color: var(--red-deep); font-weight: 600; text-underline-offset: .2em; }
.on-dark .text-link { color: var(--paper); }

/* ---------- Video bento: one featured, four small ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0; padding: 0; list-style: none;
}
.bento .tile:first-child { grid-column: span 2; grid-row: span 2; }

.tile a { display: block; text-decoration: none; }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mist);
}
.tile:first-child .thumb { border-radius: var(--r-lg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.tile a:hover .thumb img, .play-btn:hover .thumb img { transform: scale(1.03); }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-lg);
}
.play-icon {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--red); color: var(--paper);
  display: grid; place-items: center;
  transition: transform 200ms var(--ease);
}
.play-btn:hover .play-icon { transform: scale(1.08); }
.play-icon svg { width: 1.5rem; height: 1.5rem; margin-left: 3px; }

.tile h3 {
  margin: .7rem 0 .2rem; font-size: var(--t-base); font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile:first-child h3 { font-size: var(--t-lg); line-height: 1.25; font-weight: 700; margin-top: 1rem; }
.tile a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.tile .meta { margin: 0; font-size: var(--t-sm); color: var(--grey); }
.list-empty { color: var(--grey); }

@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bento { gap: 1.25rem .75rem; }
  .bento .tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .bento .tile:not(:first-child) h3 { font-size: .9375rem; }
  .play-icon { width: 3.25rem; height: 3.25rem; left: 1rem; bottom: 1rem; }
}

/* ---------- X posts on charcoal ---------- */

.posts {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 0 1rem; margin: 0; list-style: none;
  scrollbar-color: #4A4A4A transparent;
}
.posts li { scroll-snap-align: start; }
.posts a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--charcoal-2); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none;
  transition: background-color 150ms ease;
}
.posts a:hover { background: #3A3A3A; }
.posts img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.posts .post-text {
  margin: 0; padding: 1rem 1.1rem .4rem; line-height: 1.45; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.posts .text-only .post-text { font-size: var(--t-md); font-weight: 600; -webkit-line-clamp: 7; padding-top: 1.25rem; }
.posts .meta { margin: auto 0 0; padding: .4rem 1.1rem 1rem; font-size: var(--t-sm); color: var(--grey-on-dark); }
.on-dark .list-empty { color: var(--grey-on-dark); }

/* ---------- Ten years: the only place gold appears ---------- */

.decade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.decade .decade-mark {
  margin: 0; color: var(--gold);
  font-size: clamp(7rem, 18vw, 13rem); font-weight: 800; line-height: .8;
  font-variation-settings: "wdth" 125;
}
.decade h2 { margin-bottom: .75rem; }
.decade p { margin: 0; color: var(--grey); max-width: 38rem; }
@media (max-width: 700px) { .decade { grid-template-columns: 1fr; } }

.shelf {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
  border-bottom: 6px solid var(--charcoal);
}
.shelf .slot {
  aspect-ratio: 3 / 4; border: 1.5px dashed #C9C2BF; border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: grid; place-items: center; text-align: center;
  color: var(--grey); font-size: var(--t-sm); padding: .5rem;
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf .slot:nth-child(n+4) { display: none; }
}

/* ---------- Shorts: vertical 9:16 strip ---------- */

.shorts {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0; padding: 0 0 1rem; list-style: none;
}
.shorts li { scroll-snap-align: start; }
.shorts a { display: block; text-decoration: none; }
.shorts img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--r-md); background: var(--line);
  transition: transform 400ms var(--ease);
}
.shorts a:hover img { transform: translateY(-4px); }
.shorts h3 {
  margin: .6rem 0 .2rem; font-size: .9375rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shorts a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.shorts .meta { margin: 0; font-size: var(--t-sm); color: var(--grey); }

/* ---------- Tamil Tech map: a horizontal rail of milestones in date order ---------- */

.map-controls { display: flex; gap: .5rem; }
.map-controls button {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid var(--charcoal); background: var(--paper); color: var(--charcoal);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.map-controls button:hover { background: var(--charcoal); color: var(--paper); }
.map-controls svg { width: 1.25rem; height: 1.25rem; }

.map {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0; padding: 0 0 1.25rem; list-style: none;
  scrollbar-color: #C9C2BF transparent;
}
.stop {
  position: relative; flex: 0 0 12rem;
  padding: 4.25rem 1.5rem 0 0;
  scroll-snap-align: start;
}
.stop.has-media { flex-basis: 16.5rem; }
/* the rail itself: each stop draws its own segment so the line runs unbroken */
.stop::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.75rem;
  height: 3px; background: var(--red);
}
.stop:last-child::before { right: auto; width: 2rem; }
.stop-dot {
  position: absolute; left: 0; top: calc(2.75rem - 6px);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--red);
}
.new-year .stop-dot { background: var(--red); }
.stop-year {
  position: absolute; left: 0; top: 0;
  font-size: var(--t-lg); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 115;
}
.stop:last-child .stop-year { color: var(--gold); }
.stop-media {
  margin: .75rem 0 0; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 420 / 391; background: var(--mist);
}
.stop-media img { width: 100%; height: 100%; object-fit: cover; }
.stop-media.is-logo { display: grid; place-items: center; background: var(--mist); }
.stop-media.is-logo img { width: 62%; height: auto; object-fit: contain; }
.stop time { display: block; font-size: var(--t-sm); color: var(--grey); }
.stop h3 { margin: .15rem 0 0; font-size: var(--t-base); font-weight: 700; line-height: 1.35; }
/* Photos line up across stops: titles above them always take two lines of space */
.stop.has-media h3 { min-height: 2.7em; }
html[lang="ta"] .stop.has-media h3 { min-height: 4.05em; }  /* longer Tamil titles run to three lines */

@media (max-width: 560px) {
  .stop { flex-basis: 10rem; padding-right: 1rem; }
  .stop.has-media { flex-basis: 14rem; }
  .stop.has-media h3 { min-height: 4.05em; }  /* narrower cards wrap English titles to three lines too */
  .map-controls { display: none; }
}

/* ---------- Network: Tamil Selvan + MrPalam on row 1, the other three on row 2 ---------- */

.network {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem;
  margin: 0; padding: 0; list-style: none;
}
.network li { grid-column: span 2; }
.network .big { grid-column: span 3; }
.network a {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--paper); border-radius: var(--r-md); text-decoration: none;
  transition: background-color 150ms ease;
}
.network a:hover { background: #FBFAFA; }
.network .logo { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex-shrink: 0; background: var(--line); }
.network .text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.network .name { font-weight: 700; font-size: var(--t-md); line-height: 1.25; }
.network .note { font-size: var(--t-sm); color: var(--grey); }
.network .subs { color: var(--grey); font-size: var(--t-sm); }
.network .big a { min-height: 9rem; padding: 1.5rem 1.75rem; gap: 1.25rem; border-radius: var(--r-lg); }
.network .big .logo { width: 5rem; height: 5rem; }
.network .big .name { font-size: var(--t-lg); }
.network .dark a { background: var(--charcoal); color: var(--paper); }
.network .dark a:hover { background: #333; }
.network .dark .note, .network .dark .subs { color: var(--grey-on-dark); }
.network .name { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .network { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network li { grid-column: span 1; }
  .network .big { grid-column: 1 / -1; }
}
/* Narrow phones: one channel per row, so names and counts never squeeze */
@media (max-width: 560px) {
  .network li { grid-column: 1 / -1; }
  .network .big a { min-height: 0; padding: 1.25rem; }
  .network .big .logo { width: 4rem; height: 4rem; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: var(--paper); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; }
.site-footer h2 { font-size: var(--t-base); margin: 0 0 .75rem; }
.site-footer .footer-sub { margin-top: 1.75rem; }
.footer-mail { margin: 0; }
.site-footer .text-link { color: var(--paper); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.socials a { font-weight: 500; text-underline-offset: .2em; }
.notice { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--red); background: var(--mist); color: var(--charcoal); max-width: 34rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.site-footer .notice { background: var(--charcoal-2); color: var(--paper); }
.notice strong { display: block; margin-bottom: .25rem; }
.fineprint { margin-top: 2.5rem; color: var(--grey-on-dark); font-size: var(--t-sm); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages: red page head, matching the home hero ---------- */

.page-head { background: var(--red); color: var(--paper); padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head h1 {
  margin: 0 0 1rem; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1;
  max-width: 16ch; font-variation-settings: "wdth" 118;
}
html[lang="ta"] .page-head h1 { line-height: 1.2; font-size: clamp(2.1rem, 5.5vw, 4rem); }
.page-head .lead { font-size: var(--t-md); max-width: 40rem; margin: 0; }

/* Form */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--paper); border: 1.5px solid #BDB5B1; border-radius: var(--r-sm);
  padding: .7rem .85rem; min-height: 3rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--charcoal); outline: 3px solid rgba(226, 34, 42, .25); outline-offset: 0; }
.field .error { color: var(--red-deep); font-size: var(--t-sm); margin: .35rem 0 0; }
.field [aria-invalid="true"] { border-color: var(--red-deep); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; padding: 1rem 1.25rem; border-radius: var(--r-sm); }
.form-status[data-state="ok"] { background: #EAF5EC; color: #1E5B2B; }
.form-status[data-state="error"] { background: #FBE9E9; color: var(--red-deep); }
.form-status:empty { display: none; }

.aside-box { background: var(--mist); padding: 1.75rem; border-radius: var(--r-lg); }
.aside-box h2 { font-size: var(--t-md); margin: 0 0 .5rem; }
.aside-box p { margin: 0 0 1rem; }
.aside-box p:last-child { margin-bottom: 0; }
.aside-box .notice { background: var(--paper); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { margin: 0; background: var(--mist); border-radius: var(--r-lg); overflow: hidden; }
.prose p { margin: 0 0 1.25rem; max-width: 38rem; }
.prose .pull {
  white-space: pre-line;
  font-size: var(--t-xl); font-weight: 700; color: var(--red); line-height: 1.25;
  margin-block: 2rem; font-variation-settings: "wdth" 112;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero-line, .js .hero-meta, .js .hero-photo { opacity: 1; transform: none; }
}
.map-head { display: flex; justify-content: flex-end; margin: 2.5rem 0 1rem; }
.page-head .page-actions { margin: 2rem 0 0; }
