/* The Loftsman: shared styles. Tokens and decisions come from _work/design-plan.md. */

@font-face { font-family: 'Brygada 1918'; src: url('../fonts/brygada-1918.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Brygada 1918'; src: url('../fonts/brygada-1918-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Big Shoulders Stencil'; src: url('../fonts/big-shoulders-stencil.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Brygada Fallback'; src: local('Georgia'); size-adjust: 104%; ascent-override: 88%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Fallback'; src: local('Arial'); size-adjust: 105%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Stencil Fallback'; src: local('Arial Narrow'), local('Arial'); size-adjust: 88%; ascent-override: 112%; descent-override: 24%; }

:root {
  --ink: #0D1821;
  --steel: #1B2C38;
  --steel-2: #24384600;
  --linen: #E6ECEA;
  --linen-2: #D7E0DD;
  --yellow: #F6E21A;
  --yellow-logo: #FEF102;
  --green: #006035;
  --green-2: #0B7A47;
  --redlead: #B5432F;
  --on-dark: #E9EEF0;
  --on-dark-2: #A9B9C2;
  --on-light: #13202A;
  --on-light-2: #43535D;
  --line-dark: rgba(233, 238, 240, .14);
  --line-light: rgba(19, 32, 42, .16);
  --r: 3px;               /* surfaces: "TheLoftsman" 11 letters, 11 mod 5 = 1, slight */
  --rb: 0px;              /* buttons: "The" 3 letters, 3 mod 3 = 0, square */
  --gut: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --head-h: 92px;
  --f-display: 'Brygada 1918', 'Brygada Fallback', Georgia, serif;
  --f-body: 'Instrument Sans', 'Instrument Fallback', Arial, sans-serif;
  --f-stencil: 'Big Shoulders Stencil', 'Stencil Fallback', 'Arial Narrow', sans-serif;
  --media-cap: min(76vh, 760px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--on-dark); font: 400 1.0625rem/1.65 var(--f-body); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sec--linen :focus-visible, .on-light :focus-visible { outline-color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.container { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- type ---------- */
.h1 { font-size: clamp(2.7rem, 6vw, 6.2rem); line-height: 1.02; font-weight: 600; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.06; margin-bottom: 18px; }
.sec-head .h2 { margin-bottom: 0; }
.h3 { font-size: clamp(1.3rem, 1.6vw, 1.75rem); line-height: 1.18; }
.lede { font-size: clamp(1.06rem, 1.2vw, 1.18rem); line-height: 1.6; color: var(--on-dark-2); }
.sec--linen .lede, .on-light .lede { color: var(--on-light-2); }
.stencil { font-family: var(--f-stencil); font-weight: 700; letter-spacing: .02em; }
em.hand { font-style: italic; font-family: var(--f-display); font-weight: 500; color: var(--yellow); }
.sec--linen em.hand { color: var(--green); }
.split-h { display: flow-root; }
.split-line-mask { margin: -.2em -.15em -.7em; padding: .2em .15em .5em; }
.split-line-mask:first-child { margin-top: -.2em; padding-top: .2em; }
.split-line-mask:last-child { margin-bottom: -.5em; }

/* ---------- buttons (square: see --rb) ---------- */
.btn { --bg: transparent; display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .8em 1.45em; border-radius: var(--rb); border: 1.5px solid transparent; font: 600 1rem/1.1 var(--f-body); text-decoration: none; letter-spacing: .01em; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--on-dark)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--yellow { background: var(--yellow); color: var(--ink); --fill: #fff; }
.btn--line { border-color: rgba(233, 238, 240, .5); color: var(--on-dark); --fill: var(--on-dark); }
.btn--line:hover, .btn--line:focus-visible { color: var(--ink); border-color: var(--on-dark); }
.btn--green { background: var(--green); color: #fff; --fill: var(--ink); }
.btn--ink-line { border-color: rgba(19, 32, 42, .5); color: var(--on-light); --fill: var(--on-light); }
.btn--ink-line:hover, .btn--ink-line:focus-visible { color: var(--linen); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.arrow { display: inline; }
.textlink { color: var(--yellow); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sec--linen .textlink { color: var(--green); }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--head-h); transition: background-color .4s var(--ease), box-shadow .4s, height .4s var(--ease); }
.site-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); opacity: 0; transition: opacity .4s; }
.site-head.is-scrolled, .site-head.is-solid { background: rgba(13, 24, 33, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-head.is-scrolled::after, .site-head.is-solid::after { opacity: 1; }
.site-head.is-scrolled { --head-h: 72px; }
.head-in { height: 100%; width: min(1480px, 100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: flex-start; gap: 22px; }
.plate { flex: none; display: block; background: var(--linen); padding: 9px 12px 10px; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(0, 96, 53, .14); position: relative; transition: padding .4s var(--ease); }
.plate::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 2px; background: var(--yellow-logo); }
.plate img { height: 78px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .plate { padding: 6px 9px 8px; }
.is-scrolled .plate img { height: 52px; }
.nav { margin-left: auto; align-self: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; background: none; border: 0; font: 500 .98rem/1 var(--f-body); color: var(--on-dark); text-decoration: none; cursor: pointer; position: relative; }
.nav-link::after, .nav-btn::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-btn:hover::after, .nav-link[aria-current]::after, .nav-btn[data-current]::after, .nav-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-btn svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.head-cta { align-self: center; min-height: 46px; padding: .7em 1.2em; }
.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 10px); left: -10px; min-width: 330px; visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease), opacity .3s, visibility 0s .45s; z-index: 5; }
.drop.is-open { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease), opacity .2s, visibility 0s; }
.drop-in { background: var(--steel); border-top: 2px solid var(--yellow); border-radius: 0 0 var(--r) var(--r); padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); display: grid; gap: 2px; background-image: linear-gradient(rgba(233,238,240,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(233,238,240,.04) 1px, transparent 1px); background-size: 26px 26px; }
.drop--yards { left: -180px; }
.drop--yards .drop-in { grid-template-columns: repeat(3, minmax(220px, 1fr)); width: 760px; }
.drop-item { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r); text-decoration: none; transition: background-color .25s; position: relative; }
.drop-item::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--yellow); transform: scaleY(0); transition: transform .3s var(--ease); }
.drop-item:hover, .drop-item:focus-visible { background: rgba(233, 238, 240, .06); }
.drop-item:hover::before, .drop-item[aria-current]::before { transform: scaleY(1); }
.drop-name { font-weight: 600; font-size: 1rem; color: var(--on-dark); }
.drop-sub { font-size: .9rem; color: var(--on-dark-2); line-height: 1.4; }
.burger { display: none; align-self: center; margin-left: auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; background: rgba(13, 24, 33, .6); border: 1.5px solid rgba(233, 238, 240, .4); border-radius: var(--rb); cursor: pointer; }
.burger-lines { display: grid; gap: 6px; width: 22px; }
.burger-lines i { display: block; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] .burger-lines i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
.burger-txt { font-weight: 600; }
.menu { position: fixed; inset: 0; z-index: 85; background: var(--ink); overflow-y: auto; padding: calc(var(--head-h) + 24px) var(--gut) 40px; background-image: linear-gradient(rgba(233,238,240,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(233,238,240,.035) 1px, transparent 1px); background-size: 32px 32px; }
.menu[hidden] { display: none; }
.menu-list > li { border-bottom: 1px solid var(--line-dark); }
.menu-list > li > a, .menu-grp-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px; padding: 6px 0; background: none; border: 0; font: 600 1.45rem/1.2 var(--f-display); text-decoration: none; color: var(--on-dark); cursor: pointer; text-align: left; }
.menu-grp-btn svg { width: 14px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s; }
.menu-grp-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-sub { padding: 0 0 14px 14px; border-left: 2px solid var(--yellow); margin-bottom: 12px; }
.menu-sub a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark-2); font-size: 1.05rem; }
.menu-sub a[aria-current], .menu-list > li > a[aria-current] { color: var(--yellow); }
.menu-cta { margin-top: 26px; width: 100%; justify-content: center; }
body.menu-open { overflow: hidden; }
@media (max-width: 1320px) {
  .nav, .head-cta { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(72px, 7.6vw, 112px) 0; overflow: clip; }
.sec--ink { background: var(--ink); color: var(--on-dark); }
.sec--steel { background: var(--steel); color: var(--on-dark); }
.sec--linen { background: var(--linen); color: var(--on-light); }
.sec--grid::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-c, rgba(233,238,240,.045)) 1px, transparent 1px), linear-gradient(90deg, var(--grid-c, rgba(233,238,240,.045)) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.sec--linen.sec--grid { --grid-c: rgba(0, 96, 53, .07); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 3.6vw, 48px); }
.sec-head .lede { max-width: 120ch; }
.wl { position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; z-index: 2; }
.wl svg { width: 100%; height: 100%; }
.wl path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wl--dark { color: var(--yellow); }
.wl--light { color: var(--green); }
.wl--foot { position: relative; color: var(--yellow); opacity: .7; }
.wl .wl__line { stroke: currentColor; }
.wl .wl__ticks path { stroke: currentColor; opacity: .7; }
.sec > .wl { top: 0; }

/* framed photo with station-tick ruler (slight 3px corners) */
.frame { position: relative; border-radius: var(--r); }
.frame__img { position: relative; overflow: hidden; border-radius: var(--r); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; }
.frame__rule { position: absolute; left: 0; right: 0; top: -14px; height: 10px; background-image: linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 10% 100%; opacity: .55; }
.frame__rule::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.frame figcaption, .cap { font-size: .92rem; line-height: 1.45; color: var(--on-dark-2); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--yellow); }
.sec--linen .frame figcaption, .sec--linen .cap { color: var(--on-light-2); border-left-color: var(--green); }
figure { margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background: var(--ink); overflow: clip; isolation: isolate; }
.hero__floor { position: absolute; inset: -3%; z-index: 0; background: url('../img/loft-floor.jpg') center / cover no-repeat, #101D27; }
.hero__floor::after { content: ''; position: absolute; inset: 0; background: radial-gradient(110% 90% at 70% 42%, rgba(40, 66, 84, .35) 0%, transparent 55%, rgba(6, 12, 17, .6) 100%); }
.hero__ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: .9; }
.hero__lines { position: absolute; inset: 0; z-index: 2; }
.hero__lines .lines { width: 100%; height: 100%; }
.lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lines__grid path { stroke: #A9B9C2; stroke-opacity: .16; stroke-width: 1; }
.lines__labels text { fill: #A9B9C2; fill-opacity: .7; font: 700 13px var(--f-stencil); letter-spacing: .06em; text-anchor: middle; }
.lines__labels text[text-anchor="end"] { text-anchor: end; }
.lines__profile path { stroke: #E9EEF0; stroke-width: 2.2; }
.lines__wl path { stroke: #E9EEF0; stroke-opacity: .5; stroke-width: 1.2; }
.lines__plan path { stroke: #E9EEF0; stroke-opacity: .85; stroke-width: 1.6; }
.lines__buttocks path { stroke: #7FD0A8; stroke-opacity: .8; stroke-width: 1.4; }
.lines__bpgrid path { stroke: #A9B9C2; stroke-opacity: .32; stroke-width: 1; }
.lines__sections path { stroke: var(--yellow); stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(246, 226, 26, .35)); }
.lines__ducks g path:first-child { fill: #2E3B44; stroke: #8A9AA4; stroke-width: 1; }
.lines__ducks .tip { stroke: #8A9AA4; stroke-width: 1.4; }
.lines__fill { fill: var(--yellow-logo); fill-opacity: .17; stroke: none; }
.lines__pen { fill: var(--yellow); filter: drop-shadow(0 0 10px rgba(246, 226, 26, .9)); opacity: 0; }
.hero__dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; width: 100%; height: 100%; }
.hero__lamp { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(520px 420px at var(--lx, 72%) var(--ly, 42%), rgba(255, 244, 200, .15), transparent 70%); mix-blend-mode: screen; }
.hero__scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(90deg, rgba(10, 20, 27, .94) 0%, rgba(10, 20, 27, .82) 30%, rgba(10, 20, 27, .2) 58%, transparent 75%), linear-gradient(0deg, rgba(10,20,27,.7), transparent 30%); }
.hero__inner { position: relative; z-index: 5; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head-h) + 10px); padding-bottom: 96px; }
.hero__copy { width: min(640px, 100%); }
.hero__copy .h1 { margin-bottom: 24px; }
.hero__copy .lede { color: #C9D5DB; max-width: 560px; }
.hero__meta { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; }
.hero__meta .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__stage { display: flex; align-items: center; gap: 16px; color: var(--on-dark-2); font-size: .95rem; }
.hero__stn { font-family: var(--f-stencil); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--yellow); width: 1.5em; flex: none; font-variant-numeric: tabular-nums; text-align: left; }
.hero__bar { width: 160px; height: 2px; background: rgba(233,238,240,.18); position: relative; overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-2); font-size: .95rem; text-decoration: none; min-height: 44px; }
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(var(--yellow), transparent); display: block; animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- five ways in (expanding panels) ---------- */
.ways { display: flex; gap: 12px; height: min(52vh, 500px); min-height: 400px; }
.way { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; color: var(--on-dark); text-decoration: none; transition: flex-grow .7s var(--ease); background: var(--ink); isolation: isolate; }
.way.is-active { flex-grow: 2.6; }
.way__img { position: absolute; inset: 0; z-index: -2; }
.way__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .7s; filter: saturate(.75) brightness(.8); }
.way.is-active .way__img img { transform: scale(1); filter: saturate(1) brightness(.95); }
.way::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,20,27,.95) 0%, rgba(10,20,27,.55) 45%, rgba(10,20,27,.1) 75%); }
.way__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: grid; gap: 10px; }
.way__tag { font-family: var(--f-stencil); font-size: 1rem; letter-spacing: .08em; color: var(--yellow); }
.way__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1.7vw, 1.8rem); line-height: 1.12; }
.way__text { font-size: 1rem; line-height: 1.5; color: #D2DCE1; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.way.is-active .way__text { max-height: 8em; opacity: 1; }
.way__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--yellow); }
.way__go svg { width: 18px; height: 18px; transition: transform .3s; flex: none; }
.way__go span { white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; transition: max-width .6s var(--ease), opacity .4s; }
.way.is-active .way__go span { max-width: 16em; opacity: 1; }
@media (max-width: 900px) { .way__go span { max-width: none; opacity: 1; } }
.way:hover .way__go svg { transform: translateX(5px); }
.way__books { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 100% at 50% 0%, #22394A, #0D1821); }
.way__books img { position: absolute; width: 46%; max-width: 230px; height: auto; top: 12%; border-radius: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.5); transition: transform 1s var(--ease); }
.way__books img:nth-child(1) { left: 8%; transform: rotate(-8deg); }
.way__books img:nth-child(2) { left: 30%; transform: rotate(2deg); top: 8%; z-index: 2; }
.way__books img:nth-child(3) { left: 50%; transform: rotate(10deg); top: 14%; }
.way.is-active .way__books img:nth-child(1) { transform: rotate(-12deg) translate(-12%, 2%); }
.way.is-active .way__books img:nth-child(3) { transform: rotate(14deg) translate(14%, 4%); }
@media (max-width: 900px) {
  .ways { flex-direction: column; height: auto; min-height: 0; }
  .way, .way.is-active { flex: none; height: 300px; }
  .way__text { max-height: none; opacity: 1; }
}

/* ---------- black art + fair the line ---------- */
.art-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.art-copy .h2 { margin-bottom: 22px; }
.art-copy blockquote { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-dark); font: italic 500 1.2rem/1.5 var(--f-display); color: var(--on-dark); }
.art-copy blockquote cite { display: block; margin-top: 8px; font: 400 .92rem var(--f-body); color: var(--on-dark-2); font-style: normal; }
.art-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 34px; align-items: start; }
.art-photos .frame__img { aspect-ratio: 4 / 3; }
.art-photos .frame:nth-child(2) { margin-top: 48px; }
.fair { position: relative; background: #0A141B; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 80px rgba(0,0,0,.4); }
.fair__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.fair__head .h3 { color: var(--on-dark); }
.fair__hint { font-size: .95rem; color: var(--on-dark-2); }
.fair__board { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 90px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px),
  linear-gradient(180deg, #15242F, #101D26); touch-action: none; }
.fair__board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fair__grid path { stroke: rgba(169,185,194,.16); stroke-width: 1; fill: none; }
.fair__target { fill: none; stroke: rgba(233,238,240,.22); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.fair__batten { fill: none; stroke: #E9D9A8; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); transition: stroke .4s; }
.fair.is-fair .fair__batten { stroke: var(--yellow); filter: drop-shadow(0 0 10px rgba(246,226,26,.6)); }
.fair__duck { cursor: grab; outline: none; }
.fair__duck:active { cursor: grabbing; }
.fair__duck .body { fill: #3A4952; stroke: #A9B9C2; stroke-width: 1.5; transition: fill .2s; }
.fair__duck:hover .body, .fair__duck:focus-visible .body { fill: #55666F; }
.fair__duck:focus-visible .ring { stroke: var(--yellow); }
.fair__duck .ring { fill: none; stroke: transparent; stroke-width: 2; }
.fair__duck .hit { fill: transparent; }
.fair__meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 16px; }
.fair__meter b { font-weight: 600; font-size: .95rem; }
.fair__track { height: 8px; background: rgba(233,238,240,.1); border-radius: 2px; overflow: hidden; }
.fair__fill { height: 100%; width: 30%; background: linear-gradient(90deg, var(--redlead), var(--yellow)); transform-origin: left; }
.fair__val { font-family: var(--f-stencil); font-size: 1.5rem; color: var(--yellow); min-width: 3.4ch; text-align: right; }
.fair__msg { margin-top: 12px; min-height: 1.6em; color: var(--on-dark-2); }
.fair.is-fair .fair__msg { color: var(--yellow); }
.fair__reset { margin-top: 6px; background: none; border: 0; color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0; }
@media (max-width: 980px) { .art-grid { grid-template-columns: 1fr; } }

/* ---------- off the slipway (pinned horizontal) ---------- */
.slip { padding: 0; }
.slip__pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.slip__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-top: calc(var(--head-h) - 20px); margin-bottom: clamp(18px, 3vh, 34px); }
.slip__head .h2 { margin-bottom: 10px; }
.slip__head > div:first-child { flex: 1 1 auto; }
.slip__count { text-align: right; flex: none; }
.slip__count small { display: block; font-size: .9rem; color: var(--on-dark-2); }
.slip__no { font-family: var(--f-stencil); font-weight: 700; font-size: clamp(3.6rem, 7vw, 6.4rem); line-height: .9; color: var(--yellow); display: inline-flex; gap: .12em; }
.slip__no span { color: var(--on-dark-2); }
.slip__track { display: flex; width: max-content; gap: clamp(18px, 2vw, 30px); padding-left: max(var(--gut), (100vw - var(--wrap)) / 2); padding-right: 30vw; will-change: transform; }
.ship { flex: none; width: clamp(280px, 32vw, 480px); }
.ship__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #0A141B; }
.ship__img img, .ship__img video { width: 100%; height: 100%; object-fit: cover; }
.ship__img::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(233,238,240,.08); border-radius: inherit; }
.ship__body { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding-top: 16px; align-items: baseline; }
.ship__no { font-family: var(--f-stencil); font-size: 2.6rem; line-height: .9; color: var(--yellow); }
.ship__name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.ship__text { font-size: .98rem; line-height: 1.5; color: var(--on-dark-2); grid-column: 1 / -1; margin-top: 4px; }
.ship--film { width: clamp(300px, 40vw, 600px); }
.ship--film .ship__img { aspect-ratio: 880 / 624; }
.slip__rail { position: relative; margin-top: clamp(16px, 3vh, 30px); height: 22px; }
.slip__rail svg { width: 100%; height: 100%; }
.slip__rail path { fill: none; stroke: var(--yellow); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.slip__rail .ties path { stroke: rgba(233,238,240,.25); }
@media (max-width: 760px) {
  .slip__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .slip__count { text-align: left; }
  .slip__head .lede { display: none; }
}

/* ---------- books shelf ---------- */
.shelf-grid { display: grid; grid-template-columns: .78fr 1.6fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.shelf-copy .h2 { margin-bottom: 20px; }
.award { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 16px 18px; border-radius: var(--r); background: rgba(0, 96, 53, .08); border-left: 3px solid var(--green); color: var(--on-light); }
.award svg { width: 30px; height: 30px; flex: none; color: var(--green); }
.shelf { position: relative; padding-bottom: 38px; perspective: 1400px; }
.shelf__row { display: flex; gap: clamp(10px, 1.4vw, 20px); align-items: flex-end; justify-content: center; }
.book { flex: 1 1 0; max-width: 210px; text-decoration: none; color: inherit; transform-origin: bottom center; }
.book__cover { position: relative; border-radius: 2px 3px 3px 2px; overflow: hidden; box-shadow: 0 18px 30px rgba(13,24,33,.28), 0 2px 0 rgba(13,24,33,.2); transform-style: preserve-3d; }
.book__cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12), transparent); z-index: 2; }
.book__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(var(--glare, -120%)); z-index: 3; pointer-events: none; }
.book__cover img { width: 100%; aspect-ratio: 900 / 1271; object-fit: cover; }
.book__label { display: block; margin-top: 12px; font-size: .9rem; line-height: 1.35; color: var(--on-light-2); text-align: center; }
.book__label b { display: block; font-family: var(--f-stencil); font-size: 1.15rem; color: var(--redlead); letter-spacing: .04em; }
.shelf__plank { position: absolute; left: -2%; right: -2%; bottom: 14px; height: 16px; background: linear-gradient(180deg, #6B4E33, #4A3422); border-radius: 2px; box-shadow: 0 14px 24px rgba(13,24,33,.25); }
.shelf__plank::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.18); }
@media (max-width: 980px) { .shelf-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .shelf__row { flex-wrap: wrap; } .book { flex: 0 0 calc(33.33% - 10px); } .shelf__plank { display: none; } }

/* ---------- ship scroll ---------- */
.scroll-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.scroll-copy .h2 { margin-bottom: 20px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.price { padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: var(--r); background: rgba(233,238,240,.03); }
.price b { display: block; font-family: var(--f-stencil); font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.price span { display: block; margin-top: 8px; font-size: .95rem; color: var(--on-dark-2); line-height: 1.45; }
.paper { position: relative; width: min(100%, 470px, calc(var(--media-cap) * .72)); margin-inline: auto; }
.paper__roll { position: absolute; left: -4%; right: -4%; height: 26px; border-radius: 13px; background: linear-gradient(180deg, #CFC6AE, #F1EADA 40%, #B3A98F); box-shadow: 0 8px 18px rgba(0,0,0,.4); z-index: 3; }
.paper__roll--top { top: -13px; }
.paper__roll--bot { bottom: -13px; }
.paper__sheet { position: relative; overflow: hidden; clip-path: inset(0 0 0 0); border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,.45); background: #EFE9DA; }
.paper__sheet img { width: 100%; height: auto; aspect-ratio: 648 / 866; object-fit: cover; }
@media (max-width: 980px) { .scroll-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }

/* ---------- Ron ---------- */
.ron-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ron-photo { position: relative; width: min(100%, calc(var(--media-cap) * .95)); }
.ron-photo .frame__img { aspect-ratio: 1100 / 1156; }
.ron-photo::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--green); border-radius: var(--r); z-index: -1; }
.ron-copy .h2 { margin-bottom: 20px; }
.scale { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scale__item b { display: block; font-family: var(--f-stencil); font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; color: var(--green); }
.scale__item span { display: block; margin-top: 8px; font-size: .95rem; line-height: 1.45; color: var(--on-light-2); }
.ron-quote { margin: 28px 0 0; font: italic 500 1.3rem/1.45 var(--f-display); color: var(--on-light); }
@media (max-width: 980px) { .ron-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .scale { grid-template-columns: 1fr; } }

/* ---------- stories CTA ---------- */
.stories { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: clip; }
.stories__bg { position: absolute; inset: -12% 0; z-index: 0; }
.stories__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: grayscale(.1) brightness(.72) contrast(1.05); }
.stories::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,20,27,.95) 0%, rgba(10,20,27,.75) 45%, rgba(10,20,27,.25) 100%); }
.stories .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.stories .h2 { margin-bottom: 20px; }
.film { align-self: center; width: min(100%, 560px, calc(var(--media-cap) * 1.41)); justify-self: end; }
.film__frame { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 880 / 624; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(233,238,240,.12); background: #000; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__tag { position: absolute; left: 14px; top: 10px; font-size: 1.6rem; color: var(--yellow); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.film figcaption { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--yellow); font-size: .95rem; line-height: 1.5; color: #C9D5DB; }
@media (max-width: 900px) { .stories .container { grid-template-columns: 1fr; } .film { justify-self: start; } }

/* ---------- footer ---------- */
.site-foot { background: var(--steel); color: var(--on-dark); padding: 0 0 26px; position: relative; overflow: clip; }
.ft-run { overflow: hidden; border-bottom: 1px solid var(--line-dark); padding: 18px 0; }
.ft-run__track { display: flex; gap: 46px; width: max-content; white-space: nowrap; }
.ft-ship { font-size: 1rem; color: var(--on-dark-2); }
.ft-ship b { font-family: var(--f-stencil); font-weight: 700; color: var(--yellow); font-size: 1.2rem; letter-spacing: .04em; margin-right: 6px; }
.ft-ship i { font-style: normal; color: var(--on-dark-2); opacity: .7; }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; padding: 56px 0 44px; }
.plate--foot { display: inline-block; border-radius: var(--r); padding: 10px 12px 12px; margin-bottom: 18px; }
.plate--foot img { height: 84px; }
.ft-brand p { color: var(--on-dark-2); font-size: 1rem; }
.ft-h { font: 600 1.05rem/1.3 var(--f-body); color: var(--on-dark); margin-bottom: 14px; }
.ft-col li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark-2); text-decoration: none; font-size: 1rem; transition: color .25s; }
.ft-col li a:hover { color: var(--yellow); }
.ft-btn { margin-top: 18px; }
.ft-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .95rem; color: var(--on-dark-2); }
.ft-base a { color: var(--on-dark); text-underline-offset: 3px; }
.ft-credit { margin: 0; }
@media (max-width: 1100px) { .ft-grid { grid-template-columns: 1fr 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ft-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- holding pages ---------- */
.hold-open { position: relative; min-height: 54vh; padding: calc(var(--head-h) + 50px) 0 64px; display: flex; align-items: center; background: var(--ink); overflow: clip; }
.hold-open::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(233,238,240,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(233,238,240,.045) 1px, transparent 1px); background-size: 48px 48px; }
.hold-open .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hold-open .h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin-bottom: 18px; }
.hold-open .frame { color: var(--yellow); }
.hold-open .frame__img { aspect-ratio: 4 / 3; max-height: min(52vh, 460px); }
.hold-open .frame__img img { object-position: var(--pos, 50% 50%); }
.hold-body .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.hold-note h2 { margin-bottom: 16px; }
.hold-links { display: grid; gap: 12px; }
.hold-link { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: var(--r); background: #fff; color: var(--on-light); text-decoration: none; box-shadow: 0 1px 0 var(--line-light); transition: transform .35s var(--ease), box-shadow .35s; }
.hold-link:hover { transform: translateX(6px); box-shadow: 0 10px 26px rgba(13,24,33,.12); }
.hold-link img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r); }
.hold-link b { display: block; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.hold-link span { font-size: .95rem; color: var(--on-light-2); }
.hold-link svg { width: 20px; height: 20px; color: var(--green); }
@media (max-width: 900px) { .hold-open .container, .hold-body .container { grid-template-columns: 1fr; } }

/* ---------- motion states ---------- */
.js [data-rv] { opacity: 0; }
.js [data-wipe] { clip-path: inset(0 100% 0 0); }
.no-anim [data-rv], .no-js [data-rv] { opacity: 1 !important; transform: none !important; }
.no-anim [data-wipe], .no-js [data-wipe] { clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rv] { opacity: 1; transform: none; }
  .js [data-wipe] { clip-path: none; }
  .hero__scroll span { animation: none; }
  .way, .way__img img, .btn::before { transition: none; }
}

/* first-screen states set before scripts run, so nothing flickers */
.js:not(.no-anim) [data-hero-lines] { opacity: 0; }
.js:not(.no-anim) [data-hero-rv] { opacity: 0; }
.js:not(.no-anim) [data-hero-h] { visibility: hidden; }
.js:not(.no-anim) [data-hero-h].is-split { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .js:not(.no-anim) [data-hero-lines], .js:not(.no-anim) [data-hero-rv] { opacity: 1; }
  .js:not(.no-anim) [data-hero-h] { visibility: visible; }
}
.hero__meta { transition: opacity .6s var(--ease); }
.js:not(.fonts-in) .hero__meta { opacity: 0; }
/* slipway without the pin: a plain horizontal scroller */
.no-js .slip__pin, .slip--static .slip__pin, .no-anim .slip__pin { height: auto; padding: 90px 0; }
.no-js .slip__track, .slip--static .slip__track, .no-anim .slip__track { width: auto; overflow-x: auto; padding-right: var(--gut); padding-bottom: 12px; scroll-snap-type: x mandatory; }
.no-js .ship, .slip--static .ship, .no-anim .ship { scroll-snap-align: start; }
/* footer: a light runs along the top rule */
.ft-grid { position: relative; }
.ft-grid::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--yellow) 50%, transparent) no-repeat; background-size: 30% 100%; animation: ftlight 7s linear infinite; opacity: .7; }
@keyframes ftlight { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .ft-grid::before { animation: none; } }

/* the series timeline under the shelf: each volume's years on one ruler, 1850 to 1984 */
.era { position: relative; margin: 30px 28px 0; height: 64px; color: var(--on-light-2); }
.era__line { position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--on-light); opacity: .8; transform-origin: left; }
.era__tick { position: absolute; top: 10px; width: 1px; height: 18px; background: var(--on-light); }
.era__tick span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-family: var(--f-stencil); font-weight: 700; font-size: 1rem; letter-spacing: .04em; color: var(--on-light); white-space: nowrap; }
.era__span { position: absolute; top: 12px; height: 14px; background: var(--green); opacity: .85; border-radius: 1px; transform-origin: left; }
.era__span--v5 { top: 0; height: 8px; background: var(--redlead); }
.era__gap { position: absolute; top: 12px; height: 14px; background: repeating-linear-gradient(45deg, rgba(19,32,42,.35) 0 2px, transparent 2px 6px); }
.shelf-col .era { margin-top: 4px; }
.era__span { box-shadow: inset -3px 0 0 var(--linen); }

.paper__under { position: absolute; z-index: 0; top: 6%; left: 30%; width: 82%; transform: rotate(7deg); border-radius: 2px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.5); opacity: .92; }
.paper__under img { width: 100%; height: auto; }
.paper__sheet, .paper__roll { z-index: 2; }
.paper { margin-left: 0; margin-right: auto; }
@media (max-width: 980px) { .paper__under { left: 22%; width: 70%; } }
/* phone hero: the body plan sits above the headline, the copy below it */
@media (max-width: 760px) {
  .hero { min-height: 760px; }
  .hero__lines .lines, .hero__ghost { position: absolute; width: 780px; height: 439px; max-width: none; left: calc(50% - 560px); top: 64px; object-fit: fill; }
  .hero__scrim { background: linear-gradient(0deg, rgba(10,20,27,.96) 0%, rgba(10,20,27,.9) 44%, rgba(10,20,27,.25) 66%, rgba(10,20,27,.1) 100%); }
  .hero__inner { justify-content: flex-end; padding-bottom: 92px; }
  .hero__copy .h1 { font-size: clamp(2.3rem, 10.4vw, 3rem); margin-bottom: 16px; }
  .hero__copy .lede { font-size: 1rem; }
  .hero__copy .btn-row { margin-top: 22px; gap: 10px; }
  .hero__scroll { display: none; }
  .hero__stn { font-size: 2rem; }
  .hero__bar { width: 90px; }
}
/* the drafting grid creeps slowly, like paper on a drawing board */
.sec--grid::before, .hold-open::before { animation: griddrift 24s linear infinite; }
@keyframes griddrift { from { background-position: 0 0, 0 0; } to { background-position: 48px 48px, 48px 48px; } }
.sec--grid::before, .hold-open::before { animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) { .sec--grid::before, .hold-open::before { animation: none; } }
.stories__credit { margin-top: 26px; font-size: .9rem; color: var(--on-dark-2); }
@media (max-width: 900px) { .ft-col li a { min-height: 44px; } }
.menu-grp-btn.is-current { color: var(--yellow); }

.hold-link > span > span { display: block; }
@media (max-width: 520px) { .hold-link { grid-template-columns: 72px 1fr; } .hold-link img { width: 72px; height: 56px; } .hold-link svg { display: none; } }
