/* acewealth.net */

/* ---------- Tokens ---------- */
:root {
  --aubergine: #2A1E2E;
  --deep-butter: #E8C94A;
  --butter: #FDF3BC;
  --cream: #F4EFE2;

  --pad: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(.77, 0, .18, 1);
  --t-micro: .28s;
  --t-move: .6s;
  --t-reveal: .9s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  font-family: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--aubergine);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--deep-butter); color: var(--aubergine); }

img, svg, video { display: block; }

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

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

:focus { outline: none; }
:focus-visible { outline: none; }

/* ---------- Type ---------- */
.display-xl, .display, .display-s {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}
.display-xl { font-size: clamp(42px, 6.8vw, 118px); }
.display    { font-size: clamp(34px, 5.2vw, 88px); }
.display-s  { font-size: clamp(26px, 3.4vw, 56px); }

.pivot { font-style: italic; }

.idx {
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
}

.body {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  max-width: 34ch;
}
.body + .body { margin-top: 1.2em; }

.caption {
  font-size: 12px;
  max-width: 28ch;
}

.meta-dim { opacity: .62; }

/* ---------- Sections ---------- */
.sec {
  position: relative;
  min-height: 100vh;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
}
.sec-tall { min-height: 130vh; }

.g-aub    { background: var(--aubergine);   color: var(--cream); }
.g-cream  { background: var(--cream);       color: var(--aubergine); }
.g-butter { background: var(--deep-butter); color: var(--aubergine); }

.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 2vw, 32px);
}

/* ---------- Header ---------- */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(14px, 2vw, 22px) var(--pad);
  color: var(--cream);
  transition: background-color var(--t-move) var(--ease), backdrop-filter var(--t-move) var(--ease);
  pointer-events: none;
}
.chrome.scrolled {
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.chrome a, .chrome button {
  pointer-events: auto;
  font-weight: 500;
  font-size: 15px;
  color: var(--cream);
}
.chrome-brand { display: inline-flex; align-items: center; gap: 10px; }
.chrome-brand img { height: 18px; width: auto; }
.chrome .u-draw:hover,
.chrome .u-draw:focus-visible { background-size: 100% 2px; }

/* animated underline */
.u-draw {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 4px;
  transition: background-size var(--t-micro) var(--ease);
}
.u-draw:hover, .u-draw:focus-visible { background-size: 100% 2px; }

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--deep-butter);
  color: var(--aubergine);
  transform: translateY(-100%);
  transition: transform var(--t-move) var(--ease);
  visibility: hidden;
  padding: 0 var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
}
.menu.open { transform: translateY(0); visibility: visible; }

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(14px, 2vw, 22px) 0;
}
.menu-top .wordmark, .menu-close { font-weight: 500; font-size: 15px; }

.menu-links {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1.4vh, 18px);
}
.menu-links a {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
  font-size: clamp(34px, 6.4vh, 76px);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  padding-bottom: 6px;
  transition: background-size var(--t-micro) var(--ease);
}
.menu-links a:hover, .menu-links a:focus-visible { background-size: 100% 3px; }
.menu-links sup {
  font-size: .32em;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  vertical-align: super;
  margin-right: .5em;
}

/* ---------- Underline button ---------- */
.u-link {
  display: inline-block;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
  background-image: linear-gradient(var(--deep-butter), var(--deep-butter));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 5px;
  transition: background-size var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 100%; color: var(--aubergine); }

/* invert on light backgrounds */
.g-cream .u-link, .g-butter .u-link {
  background-image: linear-gradient(var(--aubergine), var(--aubergine));
}
.g-cream .u-link:hover, .g-cream .u-link:focus-visible,
.g-butter .u-link:hover, .g-butter .u-link:focus-visible {
  color: var(--cream);
}

/* ---------- Arrow link ---------- */
.a-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
}
.a-link svg {
  width: 1em; height: 1em;
  transition: transform var(--t-micro) var(--ease);
}
.a-link:hover svg, .a-link:focus-visible svg { transform: translateX(10px); }

/* ---------- Index rows ---------- */
.rows { border-top: 1px solid currentColor; }
.row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(18px, 2.6vw, 30px) clamp(8px, 1vw, 16px);
  border-bottom: 1px solid currentColor;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.row-num {
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  font-variant-numeric: tabular-nums;
}
.row-name {
  font-weight: 500;
  font-size: clamp(22px, 3vw, 48px);
  letter-spacing: -.025em;
  line-height: 1.02;
}
.row-meta { margin-left: auto; }
.row-meta svg { width: clamp(18px, 1.6vw, 24px); height: clamp(18px, 1.6vw, 24px); transition: transform var(--t-micro) var(--ease); }
.row:hover .row-meta svg, .row:focus-visible .row-meta svg { transform: translateX(10px); }

/* invert on hover */
.g-cream .row:hover,  .g-cream .row:focus-visible  { background: var(--aubergine); color: var(--cream); }
.g-aub .row:hover,    .g-aub .row:focus-visible    { background: var(--cream); color: var(--aubergine); }

.ruled { border-top: 1px solid currentColor; }
.ruled li {
  list-style: none;
  border-bottom: 1px solid currentColor;
  padding: clamp(16px, 2.4vw, 28px) 0;
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 44px);
  letter-spacing: -.025em;
  line-height: 1.05;
}

ul.ruled.reveal li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
ul.ruled.reveal li:nth-child(2) { transition-delay: .12s; }
ul.ruled.reveal li:nth-child(3) { transition-delay: .24s; }
ul.ruled.reveal li:nth-child(4) { transition-delay: .36s; }
ul.ruled.reveal li:nth-child(5) { transition-delay: .48s; }
ul.ruled.reveal li:nth-child(6) { transition-delay: .60s; }
ul.ruled.reveal li:nth-child(7) { transition-delay: .72s; }
ul.ruled.reveal li:nth-child(8) { transition-delay: .84s; }
ul.ruled.reveal.inview li { opacity: 1; transform: translateY(0); }

/* ---------- Stats ---------- */
.stat-fig {
  font-weight: 500;
  font-size: clamp(56px, 7vw, 110px);
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: .6em;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  max-width: 26ch;
}

/* ---------- Media / placeholders ---------- */
.grade { position: relative; }
.grade img, .grade video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.12) saturate(.92) contrast(1.03);
}
.grade::after {
  content: ""; position: absolute; inset: 0;
  background: var(--aubergine); opacity: .16;
  mix-blend-mode: multiply; pointer-events: none;
}

.ph {
  position: relative;
  overflow: hidden;
  background-color: #43334a;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(244, 239, 226, .07) 0 2px,
    transparent 2px 16px
  );
}
.ph-label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--cream);
  opacity: .6;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  justify-content: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media .ph { position: absolute; inset: 0; animation: kenburns 22s linear infinite alternate; }
.hero-video { position: absolute; inset: 0; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42, 30, 46, .55), transparent 45%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--pad);
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero-kicker {
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  margin-bottom: clamp(18px, 3vh, 36px);
}

/* ---------- Pinned pop section (home) ---------- */
.pin-sec { padding: 0; min-height: 0; height: 280vh; display: block; }
.pin-sec .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
}
.pop-field { position: absolute; inset: 0; pointer-events: none; }
.pop {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--aubergine);
  transform: scale(0);
  will-change: transform, opacity;
}
.pop img { width: 100%; height: 100%; object-fit: cover; }
.pin-sec.static { height: auto; min-height: 100vh; }
.pin-sec.static .pin { position: relative; }
.pin-sec.static .pop { transform: none; }

/* ---------- Pinned video section (sustainability 01) ---------- */
.pinvid-sec { padding: 0; min-height: 0; height: 260vh; display: block; }
.pinvid-sec .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
}
.pinvid-media { position: absolute; inset: 0; }
.pinvid-media video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pinvid-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 30, 46, .65), rgba(42, 30, 46, .25));
  pointer-events: none;
}
.pinvid-sec .pin > .idx, .pinvid-sec .pin > .low { position: relative; z-index: 1; }
.pinvid-paras { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 72px); margin-top: clamp(36px, 6vh, 72px); }
.ppara { max-width: 28ch; opacity: .2; }
.ppara .idx { margin-bottom: 12px; }
.pinvid-sec.static { height: auto; min-height: 100vh; }
.pinvid-sec.static .pin { position: relative; }
.pinvid-sec.static .ppara { opacity: 1; }

/* ---------- Filmstrip ---------- */
.strip-sec { padding: 0; min-height: 0; height: 240vh; display: block; }
.strip-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.strip-head { position: absolute; top: var(--pad); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.strip {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 56px);
  padding-left: var(--pad);
  padding-right: var(--pad);
  will-change: transform;
  width: max-content;
}
.cell { flex: 0 0 auto; }
.cell .ph { width: 100%; }
.cell .caption { margin-top: 12px; }
.cell a:hover .cell-name, .cell a:focus-visible .cell-name { background-size: 100% 2px; }
.cell-name {
  display: inline;
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size var(--t-micro) var(--ease);
}

/* reduced-motion / no-JS fallback: manual horizontal scroll */
.strip-sec.static { height: auto; min-height: 100vh; }
.strip-sec.static .strip-pin { position: relative; height: auto; overflow-x: auto; padding: 25vh 0 12vh; }
.strip-sec.static .strip-head { position: static; padding: var(--pad) var(--pad) 6vh; }

/* ---------- Reveals ---------- */
.line-mask { overflow: hidden; display: block; padding-bottom: .12em; margin-bottom: -.12em; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--t-reveal) var(--ease);
}
.line-mask:nth-of-type(2) > span { transition-delay: 80ms; }
.line-mask:nth-of-type(3) > span { transition-delay: 160ms; }
.line-mask:nth-of-type(4) > span { transition-delay: 240ms; }
.inview .line-mask > span { transform: translateY(0); }

.curtain { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.inview .curtain { clip-path: inset(0 0 0 0); }

.fade-late { opacity: 0; transition: opacity var(--t-reveal) var(--ease) .25s; }
.inview .fade-late { opacity: 1; }

/* ---------- Split section w/ image column ---------- */
.third { padding: 0; flex-direction: row; }
.third.img-right { flex-direction: row-reverse; }
.third-media { flex: 0 0 33%; position: relative; overflow: hidden; }
.third-media img { position: absolute; inset: 0; }
.third-text { flex: 1 1 auto; min-height: 110vh; padding: var(--pad); display: flex; flex-direction: column; }

/* ---------- Side image ---------- */
.marginpic { position: absolute; top: 50%; transform: translateY(-42%); right: var(--pad); width: clamp(170px, 22vw, 360px); }
.marginpic .grade { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.marginpic .caption { margin-top: 10px; }

/* ---------- Tab toggle (why / shaping) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-bottom: clamp(20px, 3vh, 32px); }
.tab {
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--t-micro) var(--ease);
}
.tab:hover, .tab:focus-visible, .tab.is-active { background-size: 100% 2px; }
.tab-panels { display: grid; max-width: 56ch; }
.tab-panel .body { max-width: none; }
.tab-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), visibility 0s linear var(--t-micro);
}
.tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-micro) var(--ease), transform var(--t-micro) var(--ease), visibility 0s;
}

/* ---------- Paired images ---------- */
.duo-pic {
  position: absolute;
  top: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 32px);
}
.duo-pic .grade { border-radius: 6px; overflow: hidden; }

/* parallax: img overflows crop, translated on scroll */
.plx img { height: 130%; will-change: transform; }

/* ---------- Sub-labels ---------- */
.lbl { font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); margin-bottom: 16px; }

/* ---------- Compact ruled list ---------- */
.ruled-s { border-top: 1px solid currentColor; }
.ruled-s li { list-style: none; border-bottom: 1px solid currentColor; padding: 13px 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }

/* ---------- Numbered blocks ---------- */
.blocks { border-top: 1px solid currentColor; }
.block { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 32px); row-gap: 18px; padding: clamp(28px, 4.5vh, 52px) clamp(8px, 1vw, 16px); border-bottom: 1px solid currentColor; }
.block-num { grid-column: 1 / span 1; font-weight: 500; font-size: clamp(15px, 1.5vw, 19px); font-variant-numeric: tabular-nums; }
.block-title { grid-column: 2 / span 5; font-weight: 500; font-size: clamp(22px, 2.8vw, 44px); letter-spacing: -.025em; line-height: 1.05; }
.block-body { grid-column: 8 / span 5; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; max-width: 34ch; }

/* block bodies collapse to zero height, expand on hover */
.blocks.hover-reveal .block-bodywrap {
  grid-column: 8 / span 5;
  display: grid;
  grid-template-rows: 0fr;
  justify-items: end;
  transition: grid-template-rows var(--t-move) var(--ease);
}
.blocks.hover-reveal .block-bodywrap .block-body {
  grid-column: auto;
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease);
}
.blocks.hover-reveal .block:hover .block-bodywrap,
.blocks.hover-reveal .block.is-hover .block-bodywrap,
.blocks.hover-reveal .block:focus-within .block-bodywrap {
  grid-template-rows: 1fr;
}
.blocks.hover-reveal .block:hover .block-body,
.blocks.hover-reveal .block.is-hover .block-body,
.blocks.hover-reveal .block:focus-within .block-body {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .blocks.hover-reveal .block-bodywrap { grid-template-rows: 1fr; }
  .blocks.hover-reveal .block-bodywrap .block-body { opacity: 1; transform: none; }
}

/* ---------- Logo slots ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.5vw, 40px); }
.logo-row.compact { row-gap: clamp(16px, 2vh, 28px); }
.logo-row.compact .logo-slot { width: clamp(120px, 11vw, 170px); height: clamp(44px, 4vw, 60px); }
.logo-link { display: flex; flex-direction: column; gap: 10px; }
.logo-slot { display: block; width: clamp(150px, 15vw, 220px); height: clamp(64px, 6vw, 96px); border-radius: 6px; }
.logo-name { display: inline-flex; align-items: center; gap: .4em; font-size: 13px; font-weight: 500; }
.logo-slot.logo-img { display: flex; align-items: center; justify-content: flex-start; }
.logo-slot.logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: left center; }
.logo-name svg { width: .9em; height: .9em; flex: 0 0 auto; transition: transform var(--t-micro) var(--ease); }
a.logo-link:hover .logo-name svg, a.logo-link:focus-visible .logo-name svg { transform: translate(3px, -3px); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 56px); row-gap: clamp(28px, 4vh, 44px); max-width: 900px; }
.field label { display: block; font-size: 14px; margin-bottom: 12px; }
.field input, .field textarea { display: block; width: 100%; background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; padding: 6px 0 12px; font: inherit; color: inherit; caret-color: currentColor; transition: border-bottom-width var(--t-micro) var(--ease), padding-bottom var(--t-micro) var(--ease); }
.field input:focus, .field textarea:focus { border-bottom-width: 4px; padding-bottom: 10px; }
.field-full { grid-column: 1 / -1; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; margin-top: 10px; min-height: 1.2em; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--aubergine);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 4vw, 64px);
  padding: clamp(16px, 2.5vh, 24px) var(--pad);
  transform: translateY(100%);
  transition: transform var(--t-move) var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 14px; line-height: 1.5; max-width: 72ch; }
.cookie-actions { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 40px); }
.cookie-decline {
  font-size: 14px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 3px;
  transition: background-size var(--t-micro) var(--ease);
}
.cookie-decline:hover, .cookie-decline:focus-visible { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--aubergine);
  color: var(--cream);
  padding: var(--pad);
  padding-top: clamp(64px, 12vh, 140px);
}
.footer-echo { max-width: 18ch; }
.footer-cols {
  margin-top: clamp(48px, 10vh, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 2vw, 32px);
  row-gap: 40px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-cols h3 { font-size: 14px; font-weight: 500; margin-bottom: .8em; }
.footer-cols a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-micro) var(--ease);
}
.footer-cols a:hover, .footer-cols a:focus-visible { background-size: 100% 1px; }
.footer-legal {
  margin-top: clamp(48px, 8vh, 96px);
  font-size: 12px;
  opacity: .62;
}

/* ---------- Layout helpers ---------- */
.mt-auto { margin-top: auto; }
.low { margin-top: auto; padding-top: clamp(48px, 10vh, 128px); }

.sec-hero { min-height: 100svh; }
.low.deep { padding-top: clamp(40px, 8vh, 96px); }
.col-a { grid-column: 1 / span 5; }
.col-b { grid-column: 7 / span 5; }
.self-end { align-self: end; }
.mt-beat { margin-top: clamp(36px, 6vh, 72px); }
.mb-beat { margin-bottom: clamp(36px, 6vh, 72px); }
.my-beat { margin: clamp(36px, 6vh, 72px) 0; }
.mt-deep { margin-top: clamp(40px, 8vh, 96px); }
.mt-block { margin-top: clamp(32px, 5vh, 64px); }
.frame { overflow: hidden; border-radius: 6px; }
.frame-45 { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.frame-32 { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .cols > * { grid-column: 1 / -1 !important; }
  .row-name { font-size: 20px; }
  .ruled li { font-size: 20px; }
  .pinvid-paras { flex-direction: column; gap: 24px; }
  .duo-pic { position: static; margin: 28px 0 0; }
  .third, .third.img-right { flex-direction: column; }
  .third-media { flex-basis: auto; min-height: 48vh; }
  .third-text { min-height: 0; }
  .marginpic { position: static; margin: 28px 0 8px; }
  .block > * { grid-column: 1 / -1 !important; }
  .block-title { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001s !important;
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
  .hero-media .ph { animation: none; }
  .line-mask > span { transform: none; }
  .curtain { clip-path: inset(0 0 0 0); }
  .fade-late { opacity: 1; }
  ul.ruled.reveal li { opacity: 1; transform: none; }
}
