/* ==========================================================================
   Chandony Labs — Design System
   Dark Luxury: near-black, generous whitespace, teal accent used sparingly.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset) ------------------------------------ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/fraunces-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fraunces-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/fraunces-300italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bg:            #0A0C0E;
  --bg-elev:       #101317;
  --surface:       #12161B;
  --border:        rgba(244, 245, 247, 0.08);
  --border-strong: rgba(244, 245, 247, 0.18);
  --text:          #F4F5F7;
  --text-muted:    #A6ADB4;
  --text-dim:      #7A828B;
  --accent:        #1EC8B7;
  --accent-ink:    #06231F; /* text color on top of accent-filled surfaces */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container-w:  1200px;
  --radius-sm:    2px;
  --radius-md:    4px;
  --section-pad:  clamp(6rem, 12vw, 10rem);
}

/* ---- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* ---- Typography ------------------------------------------------------------ */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text);
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
}

.hero-title {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title,
.about-title,
.contact-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---- Accessibility helpers -------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Atmosphere: grain overlay ---------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Atmosphere: glow -------------------------------------------------------- */
.glow {
  position: absolute;
  top: -25%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.07;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 30s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-48px, 48px); }
}

/* ---- Teal triangle motif ------------------------------------------------------ */
.tri {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: var(--accent);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ---- Section header row (01 · Label · hairline) -------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-num {
  color: var(--accent);
}

.section-label {
  color: var(--text-dim);
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Scroll reveal -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Section-title mask reveal: the clip-path is the effect, opacity stays put. */
.reveal.reveal--mask {
  opacity: 1;
  transform: translateY(0.35em);
  clip-path: inset(-10% -10% 105% -10%);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal--mask.is-visible {
  clip-path: inset(-10% -10% -15% -10%);
  transform: none;
}

/* ---- Buttons ---------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Header ------------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 12, 14, 0.8);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  height: 30px;
  width: auto;
}

.logo-word {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.logo-word--accent {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.lang-toggle button {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--text);
}

.lang-toggle button:hover {
  color: var(--text);
}

/* ---- Hero ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 8rem 4rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-eyebrow {
  grid-column: 1 / -1;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Sub-text + CTAs move into a narrow right column under the H1. */
.hero-foot {
  grid-column: 7 / -1;
  max-width: 480px;
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin-block: 1.75rem;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-rule-in 1.2s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes hero-rule-in {
  to { transform: scaleX(1); }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-scroll {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  margin-top: 3rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* Hero load-in: eyebrow / sub / CTAs / scroll hint fade up after the H1 lines. */
.hero-eyebrow,
.hero-sub,
.hero-ctas,
.hero-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-eyebrow { transition-delay: 0.5s; }
.hero-sub,
.hero-ctas { transition-delay: 0.65s; }
.hero-scroll { transition-delay: 0.8s; }

.hero.is-loaded .hero-eyebrow,
.hero.is-loaded .hero-sub,
.hero.is-loaded .hero-ctas,
.hero.is-loaded .hero-scroll {
  opacity: 1;
  transform: none;
}

/* Hero title line-mask reveal: each top-level node of the H1 is wrapped at
   runtime (main.js wrapHeroLines) into .line > .line-inner. */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title .line:nth-child(2) .line-inner {
  transition-delay: 0.14s;
}

.hero-title .line--indent {
  margin-left: clamp(2rem, 14vw, 14rem);
}

.hero.is-loaded .line-inner {
  transform: none;
}

/* Language switch: suppress the line transition while re-wrapping so the
   already-played reveal doesn't replay for the new-language text. */
.hero.is-relang .line-inner {
  transition: none;
}

/* ---- Sections --------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-pad);
}

/* ---- About ------------------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(4rem, 8vw, 6rem);
}

.principle {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.principle-marker {
  margin-bottom: 1.25rem;
}

.principle-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.principle-body {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---- Work / Project template -------------------------------------------------------------- */
.section-title {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 8rem);
}

.project {
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.project-content {
  grid-column: 1 / 7;
}

.project-visual {
  grid-column: 7 / 13;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.project-meta-sep {
  color: var(--text-dim);
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-left: auto;
  white-space: nowrap;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.6rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.project-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.project-description {
  max-width: 52ch;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---- Visual panel ------------------------------------------------------------------------- */
.panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.panel-watermark {
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14rem;
  line-height: 1;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.panel-header {
  position: relative;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.panel-formula {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.panel-divider {
  position: relative;
  height: 1px;
  background: var(--border);
  margin-block: 1.25rem;
}

.panel-rows {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--row-delay, 0s);
}

.panel-row.is-in {
  opacity: 1;
  transform: none;
}

/* Scoped to panel rows only — .tri is reused unscaled as a static bullet
   elsewhere on the page (e.g. .principle-marker). */
.panel-row .tri {
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--row-delay, 0s) + 0.15s);
}

.panel-row.is-in .tri {
  transform: scale(1);
}

.panel-row-label {
  color: var(--text-dim);
}

.panel-row-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.panel-row-value--ok {
  color: var(--accent);
}

.panel-footer {
  position: relative;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--footer-delay, 0s);
}

.panel-footer.is-in {
  opacity: 1;
  transform: none;
}

.work-next {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  color: var(--text-dim);
}

/* ---- Project facts strip -------------------------------------------------------------- */
.project-facts {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.fact-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
}

.fact-label {
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ---- Contact ------------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-sub {
  max-width: 46ch;
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding-block: 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #E0665A;
}

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-dim);
}

.footer-logo {
  opacity: 0.6;
}

.footer-right {
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-right a {
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--text);
}

/* ---- Responsive: tablet (<1024px) --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-content,
  .project-visual {
    grid-column: auto;
  }

  .project-visual {
    order: -1;
  }

  .panel-watermark {
    font-size: 10rem;
  }
}

/* ---- Responsive: mobile (<720px) ------------------------------------------------------------------ */
@media (max-width: 720px) {
  .nav-link--about,
  .nav-link--work {
    display: none;
  }

  /* Asymmetric hero composition collapses back to a single left-aligned column. */
  .hero-inner {
    display: block;
  }

  .hero-foot {
    max-width: none;
  }

  .hero-title .line--indent {
    margin-left: clamp(1rem, 8vw, 3rem);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .project-status {
    margin-left: 0;
  }

  .project-meta {
    flex-wrap: wrap;
  }

  /* Three stacked rows, no extra hairlines between them. */
  .project-facts {
    grid-template-columns: 1fr;
  }
}

/* ---- Reduced motion ---------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.reveal--mask {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .glow {
    animation: none;
  }

  .hero-rule {
    animation: none;
    transform: scaleX(1);
  }

  .hero-title .line-inner {
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-sub,
  .hero-ctas,
  .hero-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel-row,
  .panel-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel-row .tri {
    transform: scale(1);
    transition: none;
  }
}

/* ---- Responsive: very narrow (<480px): monogram only, wordmark would collide with nav ---- */
@media (max-width: 480px) {
  .logo-word {
    display: none;
  }
}

/* ---- Legal pages ---------------------------------------------------------------------------------- */
.legal-main {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: var(--section-pad);
}

.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-block {
  color: var(--text);
}
