/* DIMARE — homepage styles
   Tokens come from design-system/tokens.json (theme: Nocturne). */
:root {
  --forest: #173D3C;
  --pine: #28534E;
  --gold: #B99A64;
  --ivory: #F4F0E7;
  --mist: #C9D5CF;
  --sage: #A7B5A0;
  --sage-deep: #5E847A;
  --plum: #8E6A80;

  --ground: var(--forest);
  --surface: #1F4A47;
  --surface-raised: var(--pine);
  --surface-plum: #35484D;
  --rule: #3E625C;
  --frame: var(--gold);
  --ink: var(--ivory);
  --ink-body: var(--mist);
  --ink-muted: var(--sage);
  --ink-plum: #E9E1E6;
  --accent: var(--gold);
  --accent-text: #D2B682;
  --accent-plum: #D9BFCF;
  --on-accent: var(--forest);
  --focus: #D2B682;

  --font-display: "Bodoni Moda", Didot, Georgia, serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  --space-hair: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-frame: 28px;
  --space-12: 48px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(23, 61, 60, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 64px; }
.wordmark { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.42em; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-decoration: none; color: var(--ink-body); }
.nav a:hover { color: var(--accent-text); }
.nav .nav-cta { color: var(--accent-text); }
@media (max-width: 860px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- Shared parts ---------- */
.frame { border: 1px solid var(--frame); padding: var(--space-hair); }
.frame__inner { border: 1px solid var(--rule); height: 100%; }

.section { padding-block: 112px 0; }
.section:last-of-type { padding-bottom: 112px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 48px; }
.eyebrow { font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: 0.36em; text-transform: uppercase; color: var(--accent-text); }
.title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.title em { font-style: normal; color: var(--accent); }
.lead { margin: 0; max-width: 46em; font-family: var(--font-serif); font-size: 17px; line-height: 1.7; font-weight: 300; color: var(--ink-body); text-wrap: balance; }
.footnote { margin: 28px auto 0; max-width: 60em; font-size: 12px; line-height: 1.7; color: var(--ink-muted); text-align: center; }

.diamond { display: inline-block; width: 7px; height: 7px; border: 1px solid var(--frame); transform: rotate(45deg); flex: none; }
.diamond--filled { background: var(--frame); }
.roman { font-family: var(--font-display); font-style: italic; line-height: 1; color: var(--accent); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ornament::before, .ornament::after { content: ""; width: 48px; height: 1px; background: var(--frame); }

.panel { background: var(--surface); border: 1px solid var(--rule); }
.panel--raised { background: var(--surface-raised); }
.label-card { border: 1px solid var(--frame); padding: 5px; display: flex; }
.label-card > .panel { flex-grow: 1; }
.card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: 32px 22px; text-align: center; min-height: 100%; }
.card-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.36em; color: var(--accent-text); }
.card-name { font-family: var(--font-serif); font-size: 19px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.card-desc { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }

/* ---------- Hero ---------- */
.hero { padding-block: 32px 0; }
.hero .frame { min-height: 620px; display: flex; }
.hero .frame__inner { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; padding: 36px clamp(20px, 4vw, 48px) 32px; text-align: center; }
.hero-top, .hero-bottom { width: 100%; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--accent-text); }
.hero-bottom { font-weight: 400; letter-spacing: 0.04em; font-size: 13px; color: var(--ink-muted); }
.hero-bottom .k { font-weight: 600; letter-spacing: 0.32em; font-size: 11px; color: var(--accent-text); }
.hero-center { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.monogram { width: 116px; height: 164px; border: 1px solid var(--frame); border-radius: 58px 58px 0 0; display: flex; align-items: center; justify-content: center; padding-top: 20px; font-family: var(--font-display); font-style: italic; font-size: 84px; line-height: 1; color: var(--accent); }
.hero h1 { margin: 0 -0.42em 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 9vw, 96px); line-height: 1; letter-spacing: 0.42em; color: var(--ink); }
.hero .ornament .eyebrow { font-size: 12px; letter-spacing: 0.42em; }
.hero .tagline { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.6; color: var(--ink-body); }
.cta { display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px; border: 1px solid var(--frame); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; transition: background-color .2s; }
.cta:hover { background: var(--surface); }
@media (max-width: 560px) {
  .hero .frame { min-height: 0; }
  .hero-top span:last-child { display: none; }
  .ornament::before, .ornament::after { width: 24px; }
  .hero .ornament .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
}

/* ---------- Concept ---------- */
.quote { margin: 0 0 18px; font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.5; font-weight: 400; text-align: center; text-wrap: balance; }
.concept-body { margin: 0 auto 56px; max-width: 46em; color: var(--ink-body); text-align: center; }
.space-card .card-body { min-height: 220px; }
.space-card .roman { font-size: 32px; }
.space-card .en { font-size: 12px; font-weight: 600; letter-spacing: 0.32em; }
.space-card .kr { font-family: var(--font-serif); font-size: 15px; color: var(--ink-body); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-6); }
.timeline { padding: 28px 36px; display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 104px 24px minmax(0, 1fr); align-items: center; padding-block: 18px; }
.tl-row + .tl-row { border-top: 1px solid var(--rule); }
.tl-year { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--accent); }
.tl-title { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 17px; line-height: 1.5; }
.tl-sub { display: block; font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.stats { padding: 8px 32px; display: flex; flex-direction: column; justify-content: center; }
.stat { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.stat + .stat { border-top: 1px solid var(--rule); }
.stat-num { min-width: 120px; font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.stat-unit { font-family: var(--font-serif); font-size: 20px; }
.stat-label { font-size: 15px; line-height: 1.55; color: var(--ink); }
.stat-label small { display: block; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 480px) {
  .timeline, .stats { padding-inline: 20px; }
  .tl-row { grid-template-columns: 72px 20px minmax(0, 1fr); }
  .tl-year { font-size: 26px; }
  .stat-num { min-width: 88px; font-size: 42px; }
}

/* ---------- Models ---------- */
.model .card-body { min-height: 280px; padding-inline: 28px; }
.model .roman { font-size: 28px; }
.model .model-name { font-family: var(--font-display); font-size: 34px; line-height: 1.1; color: var(--ink); }
.model p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-body); }
.formats { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.formats .ornament span { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.formats .ornament span em { font-style: normal; font-weight: 300; color: var(--ink-muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 10px 18px; border: 1px solid var(--rule); font-family: var(--font-serif); font-size: 14px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; grid-auto-flow: column; gap: 12px; }
.lane-label { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lane-label b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.22em; }
.lane-label span { font-size: 13px; color: var(--ink-muted); }
.lane-label--plum b { color: var(--accent-plum); }
.step-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 6px; }
.step-head .roman { font-size: 20px; }
.step-head b { font-size: 12px; font-weight: 600; letter-spacing: 0.32em; }
.cell { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 12px; text-align: center; font-family: var(--font-serif); font-size: 16px; line-height: 1.6; }
.cell .lane { display: none; font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; }
.cell--dimare { background: var(--surface); border: 1px solid var(--rule); }
.cell--dimare.is-last { border-color: var(--frame); }
.cell--dimare .lane { color: var(--accent-text); }
.cell--edenique { background: var(--surface-plum); color: var(--ink-plum); }
.cell--edenique .lane { color: var(--accent-plum); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 0; }
  .lane-label, .process > .spacer { display: none; }
  .step { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 18px; border-top: 1px solid var(--rule); }
  .step .step-head { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .cell { min-height: 0; }
  .cell .lane { display: block; }
}
@media (min-width: 901px) { .step { display: contents; } }

/* ---------- Projects / References ---------- */
.project .card-body { min-height: 196px; }

/* ---------- EDENIQUE ---------- */
.edenique { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 44px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.fact .card-body { min-height: 200px; }
.fact .num { font-family: var(--font-display); font-size: 58px; line-height: 1; color: var(--accent); }
.fact .num small { font-family: var(--font-serif); font-size: 22px; }
.fact p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.pillars { display: flex; flex-direction: column; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding-block: 24px; }
.pillar + .pillar { border-top: 1px solid var(--rule); }
.pillar p { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 19px; line-height: 1.6; }
@media (max-width: 480px) { .fact .num { font-size: 44px; } .fact .card-body { min-height: 160px; } }

/* ---------- Consulting ---------- */
.service .card-body { justify-content: flex-start; padding-top: 32px; padding-bottom: 32px; }
.arch { width: 84px; height: 112px; border: 1px solid var(--frame); border-radius: 42px 42px 0 0; display: flex; align-items: center; justify-content: center; padding-top: 14px; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--accent); }
.arch--1 { background: var(--forest); }
.arch--2 { background: var(--pine); }
.arch--3 { background: var(--sage-deep); color: var(--ivory); }
.service h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.service .tags { font-size: 13px; font-weight: 500; color: var(--accent-text); }
.service p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-body); }

/* ---------- OEM ---------- */
.category .card-body { min-height: 190px; }
.category h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.category p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-body); }
.certs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 18px 8px; }
.certs li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12px; line-height: 1.45; color: var(--ink-body); }
.seal { width: 78px; height: 92px; border: 1px solid var(--frame); border-radius: 39px 39px 0 0; display: flex; align-items: center; justify-content: center; padding-top: 18px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.seal--gold { background: var(--gold); color: var(--on-accent); }
.certs li.iso { color: var(--ink); }

/* ---------- Brands ---------- */
.brand .card-body { min-height: 196px; }
.brand .roman { font-size: 16px; color: var(--ink-muted); }
.brand .brand-name { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: 0.1em; color: var(--accent); }
.brand p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }

/* ---------- Partners ---------- */
.partner-list { list-style: none; margin: 0; padding: 4px 32px 16px; }
.partner-list li { padding-block: 14px; text-align: center; font-family: var(--font-serif); font-size: 16px; }
.partner-list li + li { border-top: 1px solid var(--rule); }
.partner-list li small { font-family: var(--font-sans); font-size: 13px; color: var(--ink-muted); }
.partner-head { display: block; padding-top: 24px; text-align: center; }

/* ---------- Recognition ---------- */
.recognition { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 16px; }
.awards li + li { border-top: 1px solid var(--rule); }
.awards .yr { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent); }
.awards .nm { font-size: 15px; line-height: 1.5; }
.awards .nm span { font-family: var(--font-serif); color: var(--ink-body); }
.awards .cat { font-family: var(--font-serif); font-size: 14px; color: var(--ink-muted); text-align: right; }
.notes { display: flex; flex-direction: column; gap: 20px; }
.notes .card-body { padding: 36px 32px; }
.notes p { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 16px; line-height: 1.75; }
@media (max-width: 520px) {
  .awards li { grid-template-columns: 64px minmax(0, 1fr); }
  .awards .cat { grid-column: 2; text-align: left; }
  .awards .yr { font-size: 24px; }
}

/* ---------- Contact ---------- */
.contact .frame__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 64px clamp(20px, 4vw, 56px); text-align: center; }
.contact .monogram { width: 84px; height: 118px; border-radius: 42px 42px 0 0; padding-top: 14px; font-size: 58px; }
.contact h2 { margin: 0 -0.4em 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: 0.4em; }
.contact .signoff { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); color: var(--accent); }
.contacts { width: 100%; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 44px; }
.contacts .divider { background: var(--rule); }
.org { display: flex; flex-direction: column; gap: 10px; }
.org:first-child { align-items: flex-end; text-align: right; }
.org:last-child { align-items: flex-start; text-align: left; }
.org h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.org address { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--ink-body); }
.org a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.org a:hover { border-color: var(--frame); }
@media (max-width: 760px) {
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .contacts .divider { height: 1px; }
  .org:first-child, .org:last-child { align-items: center; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-muted); }
.site-footer .wordmark { font-size: 12px; color: var(--ink-muted); }

/* =========================================================
   Motion
   Everything below only runs when html.motion is set
   (motion allowed + motion.js loaded). Resting state = final layout.
   ========================================================= */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); --ease-silk: cubic-bezier(.65, 0, .35, 1); }

.hero .frame { position: relative; overflow: hidden; }
.hero .frame__inner { position: relative; z-index: 1; }

/* Monogram: the vessel fills like scent rising, then settles */
.monogram { position: relative; overflow: hidden; }
.monogram::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(185, 154, 100, 0.22), rgba(185, 154, 100, 0.04)); transform-origin: bottom; }
.monogram span { position: relative; }


/* Process connector line (desktop) */
.process { position: relative; }
.process-line { position: absolute; top: 4px; height: 1px; background: var(--rule); left: calc(162px + (100% - 210px) / 10); width: calc((100% - 210px) / 5 * 4 + 48px); transform-origin: left center; }
@media (max-width: 900px) { .process-line { display: none; } }

/* Hover states (always on) */
.label-card, .panel, .cta { transition: border-color .4s var(--ease-out), transform .5s var(--ease-out), background-color .4s var(--ease-out); }
.grid > .label-card:hover, .facts > .label-card:hover { transform: translateY(-4px); border-color: var(--accent-text); }
.grid > .panel:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-body .diamond, .cta .diamond { transition: transform .6s var(--ease-silk), background-color .4s; }
.grid > *:hover .diamond { transform: rotate(225deg); background: var(--frame); }
.cta:hover .diamond { transform: rotate(225deg); background: var(--frame); }
.arch { transition: transform .6s var(--ease-out); }
.service:hover .arch { transform: translateY(-6px); }
.nav a { position: relative; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0.28em; bottom: -6px; height: 1px; background: var(--frame); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--ink); }
.site-header { transition: background-color .4s, border-color .4s; }
.site-header:not(.is-scrolled) { background: rgba(23, 61, 60, 0); border-bottom-color: transparent; backdrop-filter: none; }

@media (prefers-reduced-motion: reduce) {
  .label-card, .panel, .cta, .arch, .card-body .diamond, .cta .diamond { transition: none; }
  .grid > *:hover, .facts > .label-card:hover, .service:hover .arch { transform: none; }
}

/* ---- Hero intro sequence ---- */
@keyframes dm-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-frame-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dm-spread { from { opacity: 0; letter-spacing: 0.16em; filter: blur(6px); } to { opacity: 1; letter-spacing: 0.42em; filter: blur(0); } }
@keyframes dm-fill { 0% { transform: scaleY(0); } 70% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: .55; } }
@keyframes dm-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.motion .hero .frame { animation: dm-frame-in 1.2s var(--ease-out) both; }
.motion .hero .monogram { animation: dm-fade 1s ease .3s both; }
.motion .hero .monogram::before { animation: dm-fill 2.2s var(--ease-silk) .5s both; }
.motion .hero .monogram span { animation: dm-fade-up 1.2s var(--ease-out) 1.2s both; }
.motion .hero h1 { animation: dm-spread 1.8s var(--ease-out) .9s both; }
.motion .hero .ornament::before { transform-origin: right; animation: dm-rule 1s var(--ease-out) 1.7s both; }
.motion .hero .ornament::after { transform-origin: left; animation: dm-rule 1s var(--ease-out) 1.7s both; }
.motion .hero .ornament .eyebrow { animation: dm-fade 1s ease 1.8s both; }
.motion .hero .tagline { animation: dm-fade-up 1.1s var(--ease-out) 2.0s both; }
.motion .hero .cta { animation: dm-fade-up 1.1s var(--ease-out) 2.25s both; }
.motion .hero-top, .motion .hero-bottom { animation: dm-fade 1.4s ease 2.4s both; }

/* ---- Scroll reveal ---- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="fade"] { transform: none; }
/* titles: emphasis word arrives a beat later */
.motion .section-head[data-reveal] .title em { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease-out) .35s, transform 1s var(--ease-out) .35s; }
.motion .section-head[data-reveal].is-in .title em { opacity: 1; transform: none; }
/* ornament rules draw */
.motion .formats[data-reveal] .ornament::before, .motion .formats[data-reveal] .ornament::after { transform: scaleX(0); transition: transform 1s var(--ease-out) .2s; }
.motion .formats[data-reveal] .ornament::before { transform-origin: right; }
.motion .formats[data-reveal] .ornament::after { transform-origin: left; }
.motion .formats[data-reveal].is-in .ornament::before, .motion .formats[data-reveal].is-in .ornament::after { transform: scaleX(1); }
/* process: line draws, diamonds fill in sequence */
.motion .process-line { transform: scaleX(0); transition: transform 1.6s var(--ease-silk) .2s; }
.motion .process.is-in .process-line { transform: scaleX(1); }
.motion .process .step-head .diamond { transition: background-color .4s, transform .6s var(--ease-silk); transition-delay: calc(.4s + var(--i, 0) * 260ms); }
.motion .process.is-in .step-head .diamond { background: var(--frame); transform: rotate(225deg); }
/* arches in consulting fill from the bottom */
.motion .service .arch { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-silk) .3s, transform .6s var(--ease-out); }
.motion .service.is-in .arch { clip-path: inset(0 0 0 0); }

/* Numerals: Bodoni's large optical size has hairlines too thin to read.
   Pin numbers to the text cut (opsz 11) at weight 500 for sturdier strokes. */
.tl-year, .stat-num, .fact .num, .awards .yr, .seal {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 11;
  font-weight: 500;
  letter-spacing: 0.01em;
}
