/*
 * Anushthan Caterers — front-end styles.
 * Mirrors the Marquet type scale: the body is sized in vw and every component
 * is sized in em, so the whole composition scales with the viewport.
 * Colours / fonts come from CSS variables printed by App\Support\Theme.
 */

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-bright);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-size: clamp(12.5px, 1vw, 19px);
  line-height: 1.2em;
  background-image: var(--tex-paper);
  background-size: 600px auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (max-width: 991px) { body { font-size: max(1.3vw, 11px); } }
@media (max-width: 767px) { body { font-size: 1.7vw; } }
@media (max-width: 479px) { body { font-size: 2.2vw; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--c-dark); color: var(--c-bright); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Layout ---------- */
.main-wrapper { width: 100%; display: flex; flex-direction: column; align-items: center; position: relative; }
.main-container { width: 94vw; position: relative; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .main-container { width: 90vw; } }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.5em;
  row-gap: 1.5em;
  width: 100%;
  align-items: start;
}
.pad-full { padding-top: 10em; padding-bottom: 10em; }
.pad-top { padding-top: 10em; }
.pad-bottom { padding-bottom: 10em; }
.pad-top-sm { padding-top: 4em; }
.pad-top-xs { padding-top: 2em; }

.paper { background-color: var(--c-bright); background-image: var(--tex-paper); background-size: 600px auto; }
.waves { background-color: var(--c-bright); background-image: var(--tex-waves); background-size: cover; background-position: center; }
.bg-brand-pattern { background-color: var(--c-brand); }
.pattern-band { height: 7em; background-image: var(--tex-band); background-repeat: repeat-x; background-position: center; background-size: auto 100%; }
.bg-texture { background-image: var(--tex-dark); background-size: cover; background-position: top center; }

/* ---------- Typography ---------- */
.f-heading { font-family: var(--font-heading); font-weight: var(--heading-weight); font-variation-settings: "SOFT" 100, "WONK" 0; }

.h-ultra, .h-large, .h-medium, .h-small, .h-small-extra, .ul-paragraph {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  margin: 0;
  letter-spacing: 0;
}
.h-ultra { font-size: 16em; line-height: .9; text-transform: uppercase; }
.h-large { font-size: 9.6em; line-height: .9; text-transform: uppercase; }
.h-medium { font-size: 4.8em; line-height: 1.1; }
.h-small { font-size: 3.17em; line-height: 1; }
.h-small-extra { font-size: 2em; line-height: 1; }
.ul-paragraph { font-size: 3.97em; line-height: 1.4; }

.p-normal { font-size: max(1.19em, 15px); font-weight: 300; line-height: 1.4; margin: 0; }
.p-small { font-size: max(.93em, 12.5px); font-weight: 300; line-height: 1.4; margin: 0; }
.p-large { font-size: 1.7em; font-weight: 300; line-height: 1.4; margin: 0; }
.bold { font-weight: 500; }
.prose-site p { margin: 0 0 1em; }
.prose-site p:last-child { margin-bottom: 0; }
.prose-site ul, .prose-site ol { margin: 0 0 1em 1.2em; padding: 0; }
.prose-site li { margin-bottom: .4em; }
.prose-site strong { font-weight: 500; }
.prose-site a { text-decoration: underline; text-underline-offset: .2em; }
.prose-site h2, .prose-site h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.1; margin: 1.2em 0 .5em; }
.prose-site h2 { font-size: 2.4em; }
.prose-site h3 { font-size: 1.8em; }

@media (max-width: 991px) {
  .h-ultra { font-size: 14em; }
  .h-large { font-size: 8em; }
  .h-medium { font-size: 3.5em; }
  .ul-paragraph { font-size: 3.6em; }
  .p-normal { font-size: 1.3em; line-height: 1.3; }
  .p-small { font-size: 1.1em; }
}
@media (max-width: 767px) {
  .h-large { font-size: 8.5em; }
  .ul-paragraph { font-size: 4.2em; }
  .p-small { font-size: 1.2em; }
  .p-large { font-size: 2.2em; }
  .h-small { font-size: 3.5em; }
  .h-small-extra { font-size: 3.5em; }
}
@media (max-width: 479px) {
  .h-ultra { font-size: 10.5em; }
  .h-large { font-size: 5.6em; }
  .ul-paragraph { font-size: 3em; }
  .p-normal { font-size: 1.7em; }
  .p-small { font-size: 1.58em; }
  .h-small-extra { font-size: 4em; }
}

/* Masked lines: each line slides up from behind its own clip. */
.line-mask { overflow: hidden; display: block; padding-bottom: .04em; }
@supports (overflow: clip) { .line-mask { overflow-x: visible; overflow-y: clip; } }
.line-mask > span { display: block; will-change: transform; }

/* ---------- Section header / rules ---------- */
.section-header { width: 100%; grid-column: 1 / -1; }
.section-header .p-small { font-weight: 500; }
.thin-line { width: 100%; height: 1px; margin-top: .4em; background: currentColor; }
.thin-line.faint { opacity: .3; }
.thick-line { width: 100%; height: 3px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn-main {
  display: inline-block;
  flex: none;
  align-self: flex-start;
  padding: .7em 1.5em;
  border: 1px solid currentColor;
  border-radius: 2em;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 1.19em;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s cubic-bezier(.65,0,.35,1);
}
.btn-main::before {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
  z-index: -1;
}
.btn-main > span { position: relative; z-index: 1; transition: color .45s cubic-bezier(.65,0,.35,1); }
.btn-main:hover::before, .btn-main:focus-visible::before { transform: translateY(0); }
.btn-main:hover > span, .btn-main:focus-visible > span { color: var(--btn-hover-text, var(--c-bright)); }
.on-dark .btn-main, .btn-main.on-dark { --btn-hover-text: var(--c-dark); }
.btn-main.large { font-size: 1.72em; font-weight: 300; }
@media (max-width: 991px) { .btn-main { font-size: 1.4em; } }
@media (max-width: 767px) { .btn-main { font-size: 1.2em; } }
@media (max-width: 479px) { .btn-main { font-size: 1.4em; } }

.link-underline { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s cubic-bezier(.65,0,.35,1); }
.link-underline:hover { background-size: 100% 1px; }

/* ---------- Images ---------- */
.img-frame { position: relative; overflow: hidden; border-radius: .7em; background: rgb(var(--c-dark-rgb) / .08); }
.img-frame > img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; max-width: none; object-fit: cover; will-change: transform; }
.img-frame.no-parallax > img { top: 0; height: 100%; }
.img-frame.capsule { border-radius: 14em; }
.on-dark .img-frame { background: rgb(var(--c-bright-rgb) / .06); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 94vw; padding-top: 2em; z-index: 101;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-dark);
  transition: color .4s ease;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-nav[data-theme="light"] { color: var(--c-bright); --btn-hover-text: var(--c-dark); }
@media (max-width: 767px) { .site-nav { width: 90vw; } }

.nav-logo { display: block; width: 4.6em; aspect-ratio: 700 / 630; background: currentColor; -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 3.2em; }
.nav-link { display: flex; flex-direction: column; gap: .25em; font-size: max(.93em, 13.5px); font-weight: 500; line-height: 1.4; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; font-family: inherit; }
.nav-link .nav-line { height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.nav-link:hover .nav-line, .nav-link[aria-current="page"] .nav-line, .nav-link[aria-expanded="true"] .nav-line { transform: scaleX(1); transform-origin: left; }
.nav-link .row { display: flex; align-items: center; gap: .6em; }
.plus-icon { position: relative; width: .65em; height: .65em; }
.plus-icon i { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .4s ease; }
.plus-icon i + i { transform: rotate(90deg); }
[aria-expanded="true"] .plus-icon i + i { transform: rotate(0deg); }
.nav-cta { font-size: max(1.05em, 14px); padding: .6em 1.4em; }
.site-nav { padding-bottom: 1em; transition: color .4s ease, padding .4s ease; }
.site-nav::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); opacity: 0; transition: opacity .4s ease, background-color .4s ease; background: rgb(var(--c-bright-rgb) / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(var(--c-dark-rgb) / .08); }
.site-nav[data-theme="light"]::before { background: rgb(var(--c-dark-rgb) / .88); box-shadow: 0 1px 0 rgb(var(--c-bright-rgb) / .08); }
.site-nav.is-scrolled { padding-top: 1em; }
.site-nav.is-scrolled::before { opacity: 1; }
.site-nav.menu-open::before { opacity: 0; }
.hamburger { display: none; flex-direction: column; align-items: flex-end; gap: .55em; width: 2.6em; background: none; border: 0; padding: .5em 0; color: inherit; cursor: pointer; }
.hamburger i { display: block; width: 100%; height: 2px; background: currentColor; transition: transform .45s cubic-bezier(.65,0,.35,1), opacity .3s ease, width .3s; }
.hamburger i:nth-child(3) { width: 60%; }
.hamburger.is-open i:nth-child(1) { transform: translateY(calc(.55em + 2px)) rotate(45deg); }
.hamburger.is-open i:nth-child(2) { opacity: 0; }
.hamburger.is-open i:nth-child(3) { width: 100%; transform: translateY(calc(-.55em - 2px)) rotate(-45deg); }
@media (max-width: 991px) {
  .nav-links, .nav-cta-desktop { display: none !important; }
  .hamburger { display: flex; }
  .nav-logo { width: 6em; }
}
@media (max-width: 479px) { .nav-logo { width: 9em; } .hamburger { width: 4em; } }

/* Services drop-down (desktop) */
.services-drop { position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none; }
.services-drop .panel { background: var(--c-bright); color: var(--c-dark); overflow: hidden; height: 0; pointer-events: auto; }
.services-drop .panel-inner { padding: 9em 0 3em; }
.services-drop .backdrop { position: fixed; inset: 0; background: rgb(var(--c-dark-rgb) / .45); opacity: 0; z-index: -1; }
.services-drop.is-open { pointer-events: auto; }
.service-item { display: flex; align-items: center; gap: .7em; padding: .5em 0; }
.service-item .dot { width: .5em; height: .5em; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.service-item:hover .dot, .service-item:focus-visible .dot { transform: scale(1); }

/* Full-screen menu (mobile) */
.menu-layout { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 560px); z-index: 100; background: var(--c-role-menu); color: var(--c-dark); display: flex; flex-direction: column; justify-content: space-between; display: none; box-shadow: -2em 0 4em rgb(var(--c-dark-rgb) / .25); }
.menu-layout .main-container { width: auto; margin: 0; padding: 0 2em; }
.menu-backdrop { position: fixed; inset: 0; z-index: 99; background: rgb(var(--c-dark-rgb) / .5); opacity: 0; display: none; }
@media (max-width: 991px) { .services-drop { display: none; } }
.menu-layout .pattern-band { height: 5em; opacity: .9; flex: none; }
.menu-layout .menu-links { padding-top: max(7.5em, 120px); display: flex; flex-direction: column; }
.menu-btn { display: flex; align-items: center; gap: .7em; overflow: hidden; min-height: 2.6em; padding: .35em 0; border-bottom: 1px solid rgb(var(--c-dark-rgb) / .15); }
.menu-btn .h-medium { font-size: max(3em, 26px); line-height: 1.2; }

.menu-layout { overflow-y: auto; }
.menu-btn-sub { padding-left: 1.2em; border-bottom: 0; min-height: 0; }
.menu-btn-sub .h-medium { font-size: max(2em, 17px); opacity: .8; }
.menu-footer { padding: 3em 0 2em; }

/* Page transition wipe */
.page-transition { position: fixed; inset: 0; z-index: 1000; background: var(--c-role-transition); transform-origin: right center; pointer-events: none; display: none; }
.js .page-transition { display: block; }

/* ---------- Home hero ---------- */
.hero-anim-container { position: relative; height: 300vh; background-color: var(--c-dark); }
.hero-bg { position: absolute; inset: 0; opacity: .7; }
.hero-sticky { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-image { position: relative; z-index: 1; width: 26em; height: 37em; border-radius: 14em; overflow: hidden; opacity: .9; will-change: transform; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-wordmark { position: absolute; z-index: 2; display: flex; justify-content: center; color: var(--c-bright); pointer-events: none; padding-top: 2em; }
.hero-wordmark .letter { display: block; overflow: hidden; overflow: clip; font-size: 10.5em; line-height: 1; text-transform: uppercase; }
.hero-wordmark .letter > span { display: block; }
.hero-path { position: absolute; z-index: 3; width: 31em; height: 44em; color: var(--c-bright); pointer-events: none; }
.hero-path svg { width: 100%; height: 100%; overflow: visible; }
.hero-path text { font-family: var(--font-body); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.hero-scroll-cover { position: relative; z-index: 2; margin-top: -100vh; }
@media (max-width: 767px) {
  .hero-image { width: 36em; height: 51.2em; border-radius: 20em; }
  .hero-path { width: 43em; height: 61em; }
  .hero-wordmark .letter { font-size: 8.5em; }
}
@media (max-width: 479px) {
  .hero-image { width: 38em; height: 54em; border-radius: 20em; }
  .hero-path { width: 45em; height: 64em; }
  .hero-wordmark .letter { font-size: 6.4em; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: 12em; }
.page-hero .title-row { overflow: hidden; overflow: clip; }
.page-hero .title-row.right { text-align: right; }
.img-frame.top > img { object-position: center top; }
.tall-image { aspect-ratio: 1 / 1.8; width: 100%; }
@media (max-width: 767px) {
  .page-hero { padding-top: 16em; }
  .page-hero .title-row.right { text-align: left; white-space: normal; }
}

/* ---------- Paragraph line reveal ---------- */
.para-lines .split-line { display: block; }

/* ---------- Home services slider ---------- */
.services-wrapper { position: relative; z-index: 2; }
.services-stage { position: sticky; top: 8em; height: calc(100vh - 8em); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.svc-rows { position: relative; flex: 1; }
.svc-row { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.svc-row .img-frame { height: 100%; }
.svc-row .img-frame > img { top: 0; left: -15%; width: 130%; height: 100%; }
.svc-titles { position: relative; line-height: 1.15; height: 1.15em; overflow: hidden; overflow: clip; }
.svc-titles > div > div { height: 1.15em; }
.svc-indicators { display: flex; gap: 1em; }
.svc-indicator { flex: 1; height: 3px; border-radius: 1.5px; background: rgb(var(--c-dark-rgb) / .15); overflow: hidden; }
.svc-indicator > i { display: block; height: 100%; background: var(--c-dark); transform: scaleX(0); transform-origin: left; }
@media (max-width: 767px) {
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row .img-frame:nth-child(3) { display: none; }
}

/* ---------- Numbered list (sticky text + scrolling image) ---------- */
.menu-item-wrapper { position: relative; }
.menu-text-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; z-index: 1; pointer-events: none; }
.menu-text-sticky a { pointer-events: auto; }
.menu-images { position: relative; top: -20em; padding-bottom: 14em; z-index: 0; }
.ratio-2-3 { aspect-ratio: 2 / 3; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-7-8 { aspect-ratio: 7 / 8; }
@media (max-width: 767px) {
  .menu-text-sticky { position: static; height: auto; padding: 4em 0; }
  .menu-images { top: 0; padding-bottom: 0; }
  .menu-item-wrapper { display: flex; flex-direction: column-reverse; padding: 6em 0 0; }
}

/* ---------- 3-image parallax composition ---------- */
.three-images .img-a { grid-column: 1 / span 3; margin-top: 18em; }
.three-images .img-b { grid-column: 5 / span 4; }
.three-images .img-c { grid-column: 10 / span 3; margin-top: 30em; }
@media (max-width: 767px) {
  .three-images .img-a { grid-column: 1 / span 5; margin-top: 10em; }
  .three-images .img-b { grid-column: 6 / span 7; }
  .three-images .img-c { display: none; }
}

/* ---------- Hover list rows (testimonials, values, FAQ) ---------- */
.hover-row { position: relative; display: block; cursor: pointer; z-index: 1; }
.hover-row .row-inner { display: flex; align-items: center; gap: 2em; padding: 2em 0; overflow: hidden; }
.hover-row .row-dot { flex: none; width: .7em; height: .7em; margin-left: .7em; border-radius: 1em; background: currentColor; transform: scale(0); transition: transform .45s cubic-bezier(.65,0,.35,1); }
.hover-row:hover .row-dot, .hover-row:focus-visible .row-dot { transform: scale(1); }
.flip { position: relative; overflow: hidden; overflow: clip; }
.flip > span { display: block; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.flip > span + span { position: absolute; left: 0; top: 0; transform: translateY(105%); }
.hover-row:hover .flip > span:first-child, .hover-row:focus-visible .flip > span:first-child { transform: translateY(-105%); }
.hover-row:hover .flip > span + span, .hover-row:focus-visible .flip > span + span { transform: translateY(0); }
.flip > span:first-child { opacity: .75; }
.hover-card { position: fixed; left: 0; top: 0; z-index: 50; width: 18em; height: 28em; border-radius: 14em; overflow: hidden; pointer-events: none; color: var(--c-dark); visibility: hidden; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 3em 2.4em; box-sizing: border-box; }
.hover-card.image { width: 15em; height: 21em; padding: 0; }
.hover-card.image img { width: 100%; height: 100%; object-fit: cover; }
.hover-card .p-large { font-weight: 500; font-size: 1.45em; line-height: 1.25; }
.row-mobile-detail { display: none; }
@media (hover: none), (max-width: 767px) {
  .hover-card { display: none; }
  .row-mobile-detail { display: block; padding: 0 0 2em 2.7em; }
  .hover-row .row-dot { transform: scale(1); }
}

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3; column-gap: 1.5em; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 1.5em; display: block; width: 100%; cursor: zoom-in; }
.gallery-grid .g-item img { width: 100%; height: auto; border-radius: .7em; }
.gallery-grid .g-item .img-reveal { overflow: hidden; border-radius: .7em; }
@media (max-width: 767px) { .gallery-grid { columns: 2; } }
.filter-btn { font-size: 1.19em; padding: .5em 1.2em; border: 1px solid currentColor; border-radius: 2em; background: transparent; color: inherit; cursor: pointer; font-family: inherit; transition: background .3s, color .3s; }
.filter-btn.is-active { background: var(--c-dark); color: var(--c-bright); }
@media (max-width: 767px) { .filter-btn { font-size: 1.5em; } }

.lightbox { position: fixed; inset: 0; z-index: 900; background: rgb(var(--c-dark-rgb) / .94); display: flex; align-items: center; justify-content: center; padding: 4vw; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: .7em; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--c-bright); cursor: pointer; font-size: 2.2em; padding: .5em; font-family: inherit; }

/* ---------- Large landscape image ---------- */
.image-large { width: 100%; height: 55vw; overflow: hidden; position: relative; }
.image-large img { max-width: none; position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-role-footer); color: var(--c-dark); }
.footer-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 8em 0 2em; box-sizing: border-box; }
@media (max-width: 767px) { .footer-inner { min-height: 80vh; } }
.sm-btn { display: inline-flex; width: 2.6em; height: 2.6em; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; transition: background .3s, color .3s; }
.sm-btn:hover { background: var(--c-dark); color: var(--c-bright); }
.sm-btn svg { width: 45%; height: 45%; fill: currentColor; }
@media (max-width: 767px) { .sm-btn { width: 4em; height: 4em; } }

/* ---------- Forms ---------- */
.form-panel { background: rgb(var(--c-brand-rgb) / .38); border-radius: 1em; padding: 3em; }
.field { display: block; margin-bottom: 1.6em; }
.field label, .field .label { display: block; font-size: .93em; font-weight: 500; margin-bottom: .2em; }
.text-field { width: 100%; box-sizing: border-box; padding: .5em 0; background: transparent; border: 0; border-bottom: 1px solid rgb(var(--c-dark-rgb) / .4); font-family: var(--font-body); font-size: 1.3em; font-weight: 300; color: var(--c-dark); border-radius: 0; outline: none; transition: border-color .3s; }
.text-field:focus { border-color: var(--c-dark); }
textarea.text-field { min-height: 7em; resize: vertical; }
select.text-field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field-error { color: #9b1c1c; font-size: .93em; margin-top: .4em; }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .93em; font-weight: 300; line-height: 1.4; }
.check input { margin-top: .2em; width: 1.1em; height: 1.1em; accent-color: var(--c-dark); }
@media (max-width: 767px) {
  .form-panel { padding: 4em 3em; }
  .field label, .field .label, .check { font-size: 1.4em; }
  .text-field { font-size: 1.7em; }
}

/* Utility for screen-reader only text */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Elements that GSAP will reveal start hidden only when JS + motion are on. */
.js.motion [data-fade] { opacity: 0; transform: translateY(6em); }
.js.motion .line-mask > span { transform: translateY(110%); }
.js.motion .hero-wordmark .letter > span { transform: translateY(110%); }
.js.motion .hero-image { transform: scale(.2); }
.js.motion .hero-path { opacity: 0; transform: translateY(-2em); }
.js.motion [data-anim="para-lines"] { visibility: hidden; }
.no-anim [data-anim="para-lines"] { visibility: visible !important; }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none !important; }
  .flip > span, .btn-main::before, .hamburger i { transition: none; }
}

/* ---------- Brand accents & compact display headings ---------- */
.h-large.compact { font-size: 6.6em; }
@media (max-width: 767px) { .h-large.compact { font-size: 7em; } }
@media (max-width: 479px) { .h-large.compact { font-size: 4.8em; } }
.text-brand-deep { color: color-mix(in srgb, var(--c-brand) 55%, var(--c-dark)); }
.footer-band { background-color: var(--c-bright); background-image: var(--tex-paper); background-size: 600px auto; }

/* ---------- Grid placement (static copy of the Tailwind utilities used by grid-12) ----------
 * The Tailwind CDN compiles classes in the browser after load; defining the layout-critical
 * column classes here means the grid is correct on first paint and even if the CDN is slow or blocked. */
.col-span-1{grid-column:span 1 / span 1}
.col-start-1{grid-column-start:1}
.col-span-2{grid-column:span 2 / span 2}
.col-start-2{grid-column-start:2}
.col-span-3{grid-column:span 3 / span 3}
.col-start-3{grid-column-start:3}
.col-span-4{grid-column:span 4 / span 4}
.col-start-4{grid-column-start:4}
.col-span-5{grid-column:span 5 / span 5}
.col-start-5{grid-column-start:5}
.col-span-6{grid-column:span 6 / span 6}
.col-start-6{grid-column-start:6}
.col-span-7{grid-column:span 7 / span 7}
.col-start-7{grid-column-start:7}
.col-span-8{grid-column:span 8 / span 8}
.col-start-8{grid-column-start:8}
.col-span-9{grid-column:span 9 / span 9}
.col-start-9{grid-column-start:9}
.col-span-10{grid-column:span 10 / span 10}
.col-start-10{grid-column-start:10}
.col-span-11{grid-column:span 11 / span 11}
.col-start-11{grid-column-start:11}
.col-span-12{grid-column:span 12 / span 12}
.col-start-12{grid-column-start:12}
.order-1{order:1}
.order-2{order:2}
.row-start-1{grid-row-start:1}
@media (min-width: 768px) {
  .md\:col-span-1{grid-column:span 1 / span 1}
  .md\:col-start-1{grid-column-start:1}
  .md\:col-span-2{grid-column:span 2 / span 2}
  .md\:col-start-2{grid-column-start:2}
  .md\:col-span-3{grid-column:span 3 / span 3}
  .md\:col-start-3{grid-column-start:3}
  .md\:col-span-4{grid-column:span 4 / span 4}
  .md\:col-start-4{grid-column-start:4}
  .md\:col-span-5{grid-column:span 5 / span 5}
  .md\:col-start-5{grid-column-start:5}
  .md\:col-span-6{grid-column:span 6 / span 6}
  .md\:col-start-6{grid-column-start:6}
  .md\:col-span-7{grid-column:span 7 / span 7}
  .md\:col-start-7{grid-column-start:7}
  .md\:col-span-8{grid-column:span 8 / span 8}
  .md\:col-start-8{grid-column-start:8}
  .md\:col-span-9{grid-column:span 9 / span 9}
  .md\:col-start-9{grid-column-start:9}
  .md\:col-span-10{grid-column:span 10 / span 10}
  .md\:col-start-10{grid-column-start:10}
  .md\:col-span-11{grid-column:span 11 / span 11}
  .md\:col-start-11{grid-column-start:11}
  .md\:col-span-12{grid-column:span 12 / span 12}
  .md\:col-start-12{grid-column-start:12}
  .md\:order-1{order:1}
  .md\:order-2{order:2}
  .md\:row-start-1{grid-row-start:1}
}

/* ---------- Portrait sizing ---------- */
.tall-image { max-height: 82vh; }
.portrait-card { max-width: 30em; }
@media (max-width: 767px) {
  .tall-image { aspect-ratio: 4 / 5; height: auto; width: min(100%, 420px); max-height: none; }
  .portrait-card { max-width: min(100%, 420px); }
}

/* Person pages: long names must fit the heading column. */
.page-hero.person .h-large { font-size: 6.4em; overflow-wrap: anywhere; }
@media (max-width: 767px) { .page-hero.person .h-large { font-size: 6.6em; } }
@media (max-width: 479px) { .page-hero.person .h-large { font-size: 4.4em; } }
