/* ============================================================
   DATUM — sample civil & structural engineering site
   Blueprint / drafting-sheet theme
   SAMPLE / PLACEHOLDER PROJECT · EulClavie web design demo
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:root {
  --blue-900: #071F38;
  --blue-800: #0A2743;
  --blue-700: #0E3358;
  --blue-600: #14406C;
  --paper:    #E8F1FA;
  --paper-dim:#93B4D2;
  --paper-faint: rgba(232,241,250,.6);
  --amber:    #FFAE52;
  --line:     rgba(232,241,250,.22);
  --line-soft:rgba(232,241,250,.11);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 88px);
  --bar-h: 30px;
  --nav-h: 70px;

  --fs-display: clamp(2.1rem, 6.2vw, 6.1rem);
  --fs-xl: clamp(1.8rem, 4.4vw, 4rem);
  --fs-lg: clamp(1.35rem, 2.6vw, 2.3rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--paper);
  background-color: var(--blue-800);
  /* drafting grid */
  background-image:
    linear-gradient(rgba(232,241,250,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,241,250,.055) 1px, transparent 1px),
    linear-gradient(rgba(232,241,250,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,241,250,.10) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  background-position: -1px -1px;
  padding-top: var(--bar-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--blue-900); }

.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.label--paper { color: var(--paper); }
.label--amber { color: var(--amber); }

.wrap { padding-inline: var(--gutter); }

/* sheet frame — the thin drafting border around the page */
.frame {
  position: fixed;
  inset: calc(var(--bar-h) + 12px) 12px 12px 12px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 90;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--line);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
@media (max-width: 760px) { .frame { display: none; } }

/* ---------- sample warning bar ---------- */
.sample-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--amber);
  color: #221100;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-inline: 16px;
  text-align: center;
}
.sample-bar .dim { color: rgba(34,17,0,.62); }
@media (max-width: 720px) { .sample-bar { font-size: 8.5px; letter-spacing: .16em; } .sample-bar .dim { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  z-index: 150;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background-color .45s var(--ease), height .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(7,31,56,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .16em;
}
.brand__rule { width: 26px; height: 1px; background: var(--line); }
.brand__sub { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); }
@media (max-width: 620px) { .brand__rule, .brand__sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding-block: 5px;
  color: var(--paper);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 34px; height: 34px; position: relative; margin-right: -6px; }
.nav__toggle i { position: absolute; left: 5px; right: 5px; height: 1px; background: var(--paper); transition: transform .4s var(--ease); }
.nav__toggle i:nth-child(1) { top: 13px; }
.nav__toggle i:nth-child(2) { top: 20px; }
body.menu-open .nav__toggle i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__toggle i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 900px) { .nav__links { display: none; } .nav__toggle { display: block; } }

.menu {
  position: fixed; inset: 0; z-index: 140;
  background: var(--blue-900);
  padding: calc(var(--bar-h) + var(--nav-h) + 20px) var(--gutter) 42px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 600; font-size: clamp(1.9rem, 9vw, 3rem);
  letter-spacing: .01em; text-transform: uppercase;
  padding-block: 12px; border-bottom: 1px solid var(--line-soft);
}
.menu__links span { font-family: var(--mono); font-size: 11px; color: var(--amber); letter-spacing: .1em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 40px) 60px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.66); opacity: .62; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,39,67,.78) 0%, rgba(10,39,67,.6) 42%, rgba(7,31,56,.92) 100%),
              radial-gradient(120% 90% at 70% 40%, rgba(30,111,184,.35), transparent 70%);
  mix-blend-mode: multiply;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(28px, 4vw, 70px); align-items: end; }
.hero h1 {
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -.015em;
  text-transform: uppercase;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { margin-top: 26px; max-width: 46ch; color: var(--paper-faint); font-size: 15px; }

/* title block (drawing sheet metadata) */
.titleblock { border: 1px solid var(--line); }
.titleblock div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.titleblock div:last-child { border-bottom: 0; }
.titleblock dt { color: var(--paper-dim); }
.titleblock dd { color: var(--paper); text-align: right; }

/* dimension line */
.dimline { display: flex; align-items: center; gap: 12px; margin-top: clamp(30px, 5vw, 54px); }
.dimline i { width: 1px; height: 11px; background: var(--line); flex: none; }
.dimline span { flex: 1; height: 1px; background: var(--line); }
.dimline b { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .16em; color: var(--paper-dim); text-transform: uppercase; white-space: nowrap; }

.hero__scroll { position: absolute; left: var(--gutter); bottom: 26px; z-index: 1; display: flex; align-items: center; gap: 10px; }
.hero__scroll .arrow { display: inline-block; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: .5 } 45% { transform: translateY(5px); opacity: 1 } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 12ch; }
  .titleblock { margin-top: 8px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(70px, 10vw, 150px); }
.section--tight { padding-block: clamp(50px, 6vw, 96px); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(34px, 5vw, 70px); }
.sechead h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- project sheets ---------- */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 46px); }
.sheet { border: 1px solid var(--line); background: rgba(7,31,56,.4); display: flex; flex-direction: column; transition: border-color .5s var(--ease), transform .6s var(--ease); }
.sheet--wide { grid-column: 1 / -1; }
.sheet:hover { border-color: rgba(232,241,250,.45); }
.duo { position: relative; overflow: hidden; background: var(--blue-900); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); transition: filter 1s var(--ease), transform 1.2s var(--ease); }
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: #2E86D6; mix-blend-mode: color; opacity: .92;
  transition: opacity .8s var(--ease);
}
.duo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(7,31,56,.15), rgba(7,31,56,.6));
  transition: opacity .8s var(--ease);
}
.sheet:hover .duo img { filter: none; transform: scale(1.03); }
.sheet:hover .duo::after { opacity: 0; }
.sheet:hover .duo::before { opacity: .35; }
.sheet__img { aspect-ratio: 3 / 2; }
.sheet--wide .sheet__img { aspect-ratio: 21 / 9; }
.sheet__tag { position: absolute; z-index: 3; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--paper); background: rgba(7,31,56,.72); border: 1px solid var(--line); padding: 4px 8px; }
.sheet__body { padding: clamp(16px, 2vw, 26px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sheet h3 { font-weight: 600; font-size: var(--fs-lg); line-height: 1.06; letter-spacing: -.005em; text-transform: uppercase; }
.sheet__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 18px; }
.sheet__meta div { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.sheet__meta dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }
.sheet__meta dd { font-family: var(--mono); font-size: 12px; margin-top: 3px; }
.sheet__cta { margin-top: auto; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 6px; position: relative;
}
.arrowlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.arrowlink .arrow { transition: transform .5s var(--ease); }
.arrowlink:hover .arrow, .sheet:hover .arrowlink .arrow { transform: translateX(6px); }
.arrowlink:hover::after, .sheet:hover .arrowlink::after { transform: scaleX(.4); }

@media (max-width: 820px) {
  .sheets { grid-template-columns: 1fr; }
  .sheet--wide .sheet__img { aspect-ratio: 16 / 9; }
}

/* ---------- data strip ---------- */
.data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data div { padding: clamp(20px, 3vw, 38px) 18px; border-right: 1px solid var(--line-soft); }
.data div:last-child { border-right: 0; }
.data b { display: block; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.data span { display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .data { grid-template-columns: repeat(2, 1fr); }
  .data div:nth-child(2n) { border-right: 0; }
  .data div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- practice ---------- */
.practice { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.practice__fig { grid-column: 1 / 6; }
.practice__fig .duo { aspect-ratio: 4 / 3; }
.practice__fig figcaption { margin-top: 12px; }
.practice__body { grid-column: 7 / 13; }
.practice h2 { font-weight: 700; font-size: var(--fs-xl); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; max-width: 16ch; }
.practice p { margin-top: 24px; color: var(--paper-faint); max-width: 52ch; }
.practice p + p { margin-top: 16px; }
.practice .arrowlink { margin-top: 30px; }
@media (max-width: 900px) { .practice__fig, .practice__body { grid-column: 1 / -1; } }

/* ---------- scope of works ---------- */
.scope { border-top: 1px solid var(--line); }
.scope__row {
  display: grid; grid-template-columns: 72px minmax(0, 3fr) minmax(0, 5fr);
  gap: clamp(14px, 2.4vw, 40px);
  padding-block: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .5s var(--ease), padding-left .5s var(--ease);
}
.scope__row::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--amber); transition: width .7s var(--ease); }
.scope__row:hover::before { width: 100%; }
.scope__row:hover { background: rgba(232,241,250,.03); padding-left: 12px; }
.scope__row h3 { font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.9rem); text-transform: uppercase; line-height: 1.1; }
.scope__items { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 4px; }
.scope__items li { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }
.scope__num { font-family: var(--mono); font-size: 11px; color: var(--amber); letter-spacing: .12em; padding-top: 6px; }
@media (max-width: 760px) {
  .scope__row { grid-template-columns: 52px 1fr; gap: 8px 14px; }
  .scope__items { grid-column: 2; }
  .scope__row:hover { padding-left: 0; }
}

/* ---------- codes strip ---------- */
.codes { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 32px); }

/* ---------- cinematic band ---------- */
.band { position: relative; height: clamp(420px, 74vh, 760px); overflow: hidden; display: flex; align-items: flex-end; }
.band .duo { position: absolute; inset: -10% 0; }
.band .duo::before { background: linear-gradient(180deg, rgba(7,31,56,.1) 0%, rgba(7,31,56,.5) 55%, rgba(7,31,56,.9) 100%); }
.band .duo img { will-change: transform; }
.band__inner { position: relative; z-index: 3; width: 100%; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.band h2 { font-weight: 700; font-size: var(--fs-xl); text-transform: uppercase; line-height: 1.02; letter-spacing: -.01em; }
.band__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.band__ticks { position: absolute; inset: 16px; z-index: 3; pointer-events: none; }
.band__ticks span { position: absolute; width: 12px; height: 12px; border: 1px solid rgba(232,241,250,.55); }
.band__ticks span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.band__ticks span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.band__ticks span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.band__ticks span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- cta ---------- */
.cta { border: 1px solid var(--line); padding: clamp(34px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.cta h2 { font-weight: 700; font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1.0; text-transform: uppercase; letter-spacing: -.02em; }
.cta p { margin-top: 20px; color: var(--paper-faint); max-width: 40ch; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--amber); color: var(--amber);
  padding: 16px 26px;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--amber); color: var(--blue-900); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- sample notice ---------- */
.notice { border: 1px dashed rgba(255,174,82,.5); padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(14px, 3vw, 40px); background: rgba(255,174,82,.05); }
.notice p { font-size: 13.5px; color: var(--paper-faint); max-width: 64ch; }
.notice p + p { margin-top: 10px; }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } }

/* ---------- footer / title block ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 70px); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 50px); align-items: start; }
.foot__brand .brand__mark { font-size: 26px; }
.foot__brand p { margin-top: 14px; color: var(--paper-faint); font-size: 13px; max-width: 32ch; }
.foot__col h4 { margin-bottom: 14px; }
.foot__col li + li { margin-top: 8px; }
.foot__col a, .foot__col span { font-family: var(--mono); font-size: 12.5px; color: var(--paper); }
.foot__col a:hover { color: var(--amber); }
.foot__block { margin-top: clamp(34px, 5vw, 60px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); }
.foot__block div { padding: 12px 14px; border-right: 1px solid var(--line-soft); }
.foot__block div:last-child { border-right: 0; }
.foot__block dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }
.foot__block dd { font-family: var(--mono); font-size: 12px; margin-top: 5px; }
.foot__bottom { margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 26px; }
@media (max-width: 860px) {
  .foot__top { grid-template-columns: repeat(2, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__block { grid-template-columns: repeat(2, 1fr); }
  .foot__block div { border-bottom: 1px solid var(--line-soft); }
  .foot__block div:nth-child(2n) { border-right: 0; }
}

/* ---------- project sheet page ---------- */
.psheet { padding-top: calc(var(--nav-h) + clamp(30px, 6vw, 70px)); }
.psheet__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(24px, 4vw, 60px); align-items: end; padding-bottom: clamp(26px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.psheet h1 { font-weight: 700; font-size: clamp(2rem, 5.4vw, 5rem); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.psheet__lead { margin-top: 20px; color: var(--paper-faint); max-width: 48ch; }
.psheet__hero { margin-top: clamp(26px, 4vw, 52px); }
.psheet__hero .duo { aspect-ratio: 21 / 9; }
.psheet__hero .duo img { filter: grayscale(1) contrast(1.15) brightness(.95); }
@media (max-width: 860px) { .psheet__head { grid-template-columns: 1fr; align-items: start; } .psheet__hero .duo { aspect-ratio: 4 / 3; } }

.spec { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 56px); }
.spec__list { grid-column: 1 / 5; }
.spec__list div { display: flex; justify-content: space-between; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--line-soft); }
.spec__list dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.spec__list dd { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.spec__text { grid-column: 6 / 12; }
.spec__text p { color: var(--paper-faint); max-width: 54ch; }
.spec__text p + p { margin-top: 1.2em; }
@media (max-width: 900px) { .spec__list, .spec__text { grid-column: 1 / -1; } }

.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.2vw, 34px); }
.pgrid .g-a { grid-column: 1 / 7; }
.pgrid .g-b { grid-column: 7 / 13; }
.pgrid .g-c { grid-column: 1 / 13; margin-top: clamp(12px, 2vw, 26px); }
.pgrid .duo { aspect-ratio: 4 / 3; }
.pgrid .g-c .duo { aspect-ratio: 21 / 9; }
.pgrid figcaption { margin-top: 10px; }
.pgrid figure:hover .duo img { filter: none; }
.pgrid figure:hover .duo::after { opacity: 0; }
@media (max-width: 820px) { .pgrid .g-a, .pgrid .g-b, .pgrid .g-c { grid-column: 1 / -1; margin-top: 0; } .pgrid .g-c .duo { aspect-ratio: 4 / 3; } }

.nextsheet { display: block; border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 88px); }
.nextsheet h2 { font-weight: 700; font-size: var(--fs-xl); text-transform: uppercase; line-height: 1; margin-top: 10px; transition: transform .5s var(--ease); }
.nextsheet:hover h2 { transform: translateX(10px); }

/* ---------- reveal + transition ---------- */
.rv { opacity: 0; transform: translateY(22px); }
.is-ready .rv { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.page { opacity: 0; transition: opacity .45s ease; }
.page.is-visible { opacity: 1; }
.page.is-leaving { opacity: 0; transition-duration: .26s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .page { opacity: 1; }
}
