/* =========================================================================
   Unify — every inner page uses the Home / About vocabulary.
   Loaded last. Tokens: 26px cards (22px media), amber / ink / surface fills,
   mono red-dot labels, balanced display headings, one section rhythm,
   one hero height, lift-on-hover with the same soft shadow.
   ========================================================================= */
:root {
  --section: clamp(3rem, 2rem + 4vw, 6rem);
  --r-card: 26px;
  --r-media: 22px;
  --lift: 0 40px 70px -40px rgba(0, 0, 0, .5);
}

/* ---------- section rhythm (same as .hm-sec / .ab-* sections) ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .7); }
.section--flush-top { padding-top: 0; }
.page-hero + .section--flush-top,
.page-hero + .section--tight,
.page-hero + .section { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--surface { background: var(--surface); }

/* ---------- hero: same height + meta rule as About ---------- */
.page-hero { min-height: clamp(26rem, 60vh, 40rem); }
.page-hero h1 { text-wrap: balance; }

/* ---------- labels: mono caps, red dot, trailing hairline (= .ab-label) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.eyebrow::after { content: ""; flex: 0 0 clamp(2rem, 6vw, 4rem); height: 1px; background: currentColor; opacity: .35; }
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow--plain::before, .eyebrow--plain::after { display: none; }

/* ---------- headings: .h2 / .sec-head = .ab-h2 ---------- */
.sec-head { display: grid; gap: .9rem; margin-bottom: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); }
.sec-head .h2, .h2 { text-wrap: balance; }
.sec-head .h2 { max-width: 22ch; }
.sec-head--center .h2 { max-width: 22ch; }
.h2 em, .h3 em, .sec-head em, .gallery-group__head em {
  background: linear-gradient(var(--amber), var(--amber)) 0 94% / 100% .12em no-repeat;
}
.gallery-group__head { gap: .75rem 1rem; }
.gallery-group__count { font-family: var(--font-mono); letter-spacing: .12em; }

/* ---------- cards: 26px, lift + soft shadow ---------- */
.p-card, .product-rail .p-card, .t-card, .value, .person, .path, .shop-card, .calc,
.contact-panel, .tile, .empty-state, .product--rev {
  border-radius: var(--r-card);
}
.p-card, .t-card, .value, .person, .path, .logo-card__img, .tile {
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.p-card:hover, .t-card:hover, .value:hover, .path:hover, .tile:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.value, .t-card, .person, .path { background: var(--surface); border-color: var(--line); }
.value:hover { border-color: var(--amber); }
.section--surface .value, .section--surface .t-card, .section--surface .person, .section--surface .path { background: var(--white); }

/* ink product tiles (= About › Mission / Home › Why ink card) */
.product-rail .p-card { background: var(--ink); border-color: var(--ink); }
.product-rail .p-card__media { background: var(--surface-2); }
.product-rail .p-card__num { background: var(--amber); color: var(--ink); }

/* ---------- media: 22px ---------- */
.product__frame, .figure-frame, .news-card__media, .article__media, .path__media, .carousel__viewport,
.map-frame, .embed-card, .gallery__item, .logo-card__img, .res-figures a, .res-figures figure,
.page-hero__media--framed, .split__media, .order-cta {
  border-radius: var(--r-media);
}
.news-row__thumb { border-radius: 14px; }
.path { overflow: hidden; }
.news-card__media { box-shadow: 0 30px 60px -45px rgba(0, 0, 0, .45); }
.news-card:hover h3 { color: var(--ink); }

/* ---------- product panels: ink card like About › Philosophy ---------- */
.product--rev { padding: clamp(1.75rem, 1rem + 4vw, 4.5rem); }
.product--rev .product__frame { border-radius: var(--r-media); }
.product__index { font-family: var(--font-mono); letter-spacing: .08em; }

/* ---------- contact / calculator: dark + light panels, 26px ---------- */
.contact-panel__info { background: var(--ink); }
.calc { box-shadow: none; border: 1px solid var(--line); background: var(--surface); }
.calc--dark { background: var(--ink); border-color: var(--ink); }
.calc .field input, .calc .field select, .field input, .field select, .field textarea { border-radius: 14px; }
.calc__result { border-top-color: var(--line-strong); }

/* ---------- numbered rows (Career, Why join): About › mission list look ---------- */
.rows { border-top: 1px solid var(--line-strong); }
.row__num { font-family: var(--font-mono); font-weight: 500; color: var(--amber-deep); letter-spacing: .08em; }
.row:hover { padding-left: .6rem; }
.row { transition: padding .5s var(--ease); }

/* ---------- accordion (Resources) ---------- */
.accordion { border-top-color: var(--line-strong); }
.acc summary .plus { border-radius: 50%; }
.acc[open] summary .plus { background: var(--amber); border-color: var(--amber); }

/* ---------- buttons / arrow links: pill + amber circle ---------- */
.btn { border-radius: 999px; }
.arrow-link .circle { border-radius: 50%; }
.arrow-link:hover .circle { background: var(--amber); border-color: var(--amber); }

/* ---------- notices ---------- */
.notice { border-radius: 0 var(--r-media) var(--r-media) 0; }

/* ---------- mobile: slightly tighter radii ---------- */
@media (max-width: 640px) {
  :root { --r-card: 20px; --r-media: 16px; }
  .product--rev { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .p-card, .t-card, .value, .person, .path, .tile, .row { transition: none; }
  .p-card:hover, .t-card:hover, .value:hover, .path:hover, .tile:hover { transform: none; }
}

/* =========================================================================
   Premium layer — every inner page (hero meta, overlap, tilt, parallax, rail)
   ========================================================================= */

/* content sheet slides over the hero with a rounded top, like a page turning */
.page-hero { padding-bottom: clamp(4.5rem, 4rem + 3vw, 7rem); }
.page-hero + .section, .page-hero + .section--tight, .page-hero + .section--flush-top {
  position: relative; z-index: 2; margin-top: calc(-1 * clamp(2rem, 1.5rem + 2vw, 3.5rem));
  border-radius: 32px 32px 0 0; background: var(--white);
  padding-top: clamp(3rem, 2rem + 3.5vw, 5.5rem);
}
.page-hero + .section--surface { background: var(--surface); }
@media (max-width: 640px) { .page-hero + .section, .page-hero + .section--tight, .page-hero + .section--flush-top { border-radius: 22px 22px 0 0; } }

/* numbered label above every section title */
.sec-head > .ab-label, .split__sticky > .ab-label { margin-bottom: .1rem; }
.ab-label i { animation: unifyPulse 2.4s ease-in-out infinite; }
@keyframes unifyPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 33, 41, .45); } 50% { box-shadow: 0 0 0 7px rgba(230, 33, 41, 0); } }

/* hero meta row: staggered in, hairline draws */
.page-hero .ab-hero__meta { position: relative; border-top-color: transparent; }
.page-hero .ab-hero__meta::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: rgba(255, 255, 255, .28);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .5s;
}
.js .page-hero .ab-hero__meta.is-inview::before, .no-js .page-hero .ab-hero__meta::before { transform: scaleX(1); }

/* cards: tilt + glow (JS sets inline transform; keep it snappy while moving) */
[data-spot]::before { z-index: 0; mix-blend-mode: normal; }
.p-card > *, .value > *, .t-card > *, .path > *, .person > *, .calc > *, .product--rev > * { position: relative; z-index: 1; }
.p-card[data-spot]::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247, 180, 50, .28), transparent 65%); }

/* media: framed, parallax-ready, zoom on hover without fighting the scroll transform */
.product__frame, .figure-frame, .path__media, .article__media, .news-card__media, .gallery__item { overflow: hidden; }
.path__media img { transition: transform .2s linear; will-change: transform; }
.news-card__media, .gallery__item { position: relative; }
.news-card__media::before, .gallery__item::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.news-card:hover .news-card__media::before, .gallery__item:hover::before { opacity: 1; }

/* news rows: amber index + slide on hover */
.news-row { transition: padding .5s var(--ease); }
.news-row:hover { padding-left: .75rem; }
.news-row__num { font-family: var(--font-mono); color: var(--amber-deep); }

/* links in body copy: underline sweeps in */
.prose a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.prose a:hover { background-size: 100% 2px; color: var(--ink); }

/* buttons: ink pill that fills amber */
.btn--dark { background: var(--ink); }
.btn, .arrow-link { will-change: transform; }

/* form focus: amber ring, label lifts */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
.field:focus-within label { color: var(--amber-deep); }

/* chapter rail is shown on every page now: keep clear of narrow content */

@media (prefers-reduced-motion: reduce) {
  .ab-label i { animation: none; }
  .page-hero .ab-hero__meta::before { transition: none; transform: scaleX(1); }
}

/* =========================================================================
   Tidy pass — layout, spacing and UX per page type
   ========================================================================= */

/* ---------- global safety: nothing overflows, long text wraps ---------- */
main { overflow-x: clip; }
main img, main iframe, main video { max-width: 100%; }
.prose p, .prose li, .row__body, .news-row h3, .value p, .t-card blockquote { overflow-wrap: anywhere; hyphens: auto; }
.prose, .container--narrow .lead { max-width: 68ch; }
.container--narrow .prose { margin-inline: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- hero: readable title block, tidy breadcrumb + meta ---------- */
.page-hero__inner { align-content: end; gap: clamp(.9rem, 1.2vw, 1.4rem); }
.breadcrumb { gap: .35rem .6rem; font-size: .68rem; letter-spacing: .14em; }
.breadcrumb li { gap: .6rem; }
.breadcrumb li + li::before { color: rgba(255, 255, 255, .35); }
.page-hero h1 { max-width: 16ch; letter-spacing: -.045em; }
.page-hero h1.is-long { max-width: 22ch; }
.page-hero .ab-hero__meta { margin-top: clamp(.5rem, 2vw, 1.5rem); width: 100%; max-width: 46rem; }
.page-hero .watermark { opacity: .8; }
/* article pages carry no meta row: keep hero compact */
article > .page-hero { min-height: clamp(20rem, 46vh, 30rem); }
@media (max-width: 767.98px) {
  .page-hero { min-height: 24rem; }
  .page-hero .ab-hero__meta { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .page-hero .ab-hero__meta li:last-child { grid-column: 1 / -1; }
}

/* ---------- section heads ---------- */
.sec-head > .ab-label { grid-column: 1 / -1; }
.sec-head--split { align-items: end; }
.sec-head .h2 { max-width: 20ch; }
.section > .container > .sec-head:last-child { margin-bottom: 0; }

/* ---------- article pages: one comfortable reading column ---------- */
.article__media { margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem); box-shadow: 0 30px 60px -45px rgba(0, 0, 0, .45); }
.article__media img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--surface); }
.prose.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.85; }
.prose.lead p { color: var(--text); }
.prose.lead p + p, .prose.lead ul, .prose.lead ol { margin-top: 1.1em; }
.prose.lead ul li { padding-left: 1.6em; }
.prose.lead strong { color: var(--ink); }
.mt-7 { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.mt-7 .arrow-link { padding: .35rem 1rem .35rem .35rem; border-radius: 999px; border: 1px solid var(--line-strong); transition: border-color .3s, background .3s; }
.mt-7 .arrow-link:hover { border-color: var(--ink); background: var(--surface); }
.article-layout { align-items: start; }
.article-aside { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.attachment { gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.attachment__nav { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }

/* ---------- product pages: image panel + text, equal rhythm ---------- */
.product { gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); align-items: center; }
.product + .product { margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.product:not(.product--rev) { padding: clamp(.5rem, 1vw, 1rem) 0; }
.product__media { position: relative; top: 0; }
@media (min-width: 1024px) { .product:not(.product--rev) .product__media { position: sticky; top: calc(var(--header-h) + 40px); } }
.product__frame { padding: clamp(1rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); }
.product--rev .product__frame { background: var(--white); border: 0; }
.product__frame img { max-height: 64vh; }
.product__body { display: grid; gap: .25rem; align-content: center; }
.product__body h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: .75rem; text-wrap: balance; }
.product__body.prose p + p { margin-top: .9em; }
.prose .sizes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.prose .sizes li { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .8rem; background: var(--white); color: var(--ink); }
.order-cta { padding: 1rem 1.25rem; margin-top: 1.25rem; }

/* ---------- product index / cards ---------- */
.product-rail { gap: clamp(.9rem, 1vw + .5rem, 1.5rem); }
.p-card { height: 100%; }
.p-card__media { padding: 0; }
.p-card__body { padding: 1.1rem 1.35rem 1.25rem; }
.p-card__body h3 { color: var(--white); }

/* ---------- galleries: even grid, no ragged stagger ---------- */
.gallery--stagger .gallery__item:nth-child(n) { margin-top: 0; }
.gallery--stagger { padding-bottom: 0; }
.gallery { gap: clamp(.6rem, 1.2vw, 1.1rem); }
.gallery-group__head { align-items: baseline; }
.gallery-group__head h2, .gallery-group__head .h3 { max-width: 28ch; }
.gallery-group__count { padding: .25rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.gallery-group + .gallery-group { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); }

/* ---------- news: card grid + list ---------- */
.news-feature { gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.news-card h3 { border-top: 0; padding-top: .25rem; }
.news-card:hover h3 { color: var(--ink); }
.news-card .arrow-link { margin-top: .25rem; }
.news-list { margin-top: clamp(2rem, 1.5rem + 3vw, 4rem); border-top: 1px solid var(--line-strong); }
.news-row { grid-template-columns: 72px 1fr auto; }
.news-row__thumb { flex: none; }

/* ---------- vendor / partner logos ---------- */
.logo-grid { gap: clamp(.9rem, 1vw + .5rem, 1.5rem); }
.logo-card { align-content: start; text-align: center; justify-items: center; }
.logo-card__img { width: 100%; background: var(--white); }
.logo-card h4 { font-size: .95rem; line-height: 1.3; text-wrap: balance; }

/* ---------- testimonials / people / values ---------- */
.t-cards, .people, .values, .career-paths { gap: clamp(1rem, .8rem + 1.2vw, 1.75rem); }
.t-card, .person, .value, .path { height: 100%; }
.t-card__who { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.t-card blockquote { font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.75; }
.value__num { font-family: var(--font-mono); color: var(--amber-deep); }

/* ---------- career rows ---------- */
.rows .row { padding-block: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.split { align-items: start; }
.split__aside .prose { margin-top: 1rem; }

/* ---------- contact + forms ---------- */
.map-frame { overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(0, 0, 0, .45); }
.map-frame iframe { display: block; width: 100%; height: clamp(300px, 40vw, 460px); border: 0; }
.contact-panel { overflow: hidden; border: 0; box-shadow: 0 40px 80px -55px rgba(0, 0, 0, .5); }
.contact-panel__form { background: var(--white); }
.info-list { display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.info-list .ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--amber); }
.info-list .ico svg { width: 1.1rem; height: 1.1rem; }
.info-list p { color: rgba(255, 255, 255, .85); }
.field input, .field select, .field textarea { min-height: 3.25rem; padding: .85rem 1.1rem; background-color: var(--surface); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--white); }
.form .btn { justify-self: start; }
.form-status:empty { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- calculator ---------- */
.calc-wrap { gap: clamp(1rem, .8rem + 1.2vw, 1.75rem); align-items: stretch; }
.calc__fields { gap: 1rem; }
.calc__result { margin-top: .5rem; }

/* ---------- accordion (Resources) ---------- */
.acc summary { padding-block: clamp(1.1rem, 1rem + 1vw, 1.75rem); gap: 1.5rem; cursor: pointer; transition: color .3s; }
.acc summary:hover { color: var(--amber-deep); }
.acc__body { padding-top: .25rem; }
.res-figures { gap: 1rem; align-items: flex-start; }
.plastic-type { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* ---------- shop ---------- */
.shop-card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.shop-card img { width: min(280px, 70%); }

/* ---------- chapter rail: only when it cannot touch the content ---------- */

/* ---------- small screens ---------- */
@media (max-width: 767.98px) {
  .section { padding-block: clamp(2.5rem, 2rem + 3vw, 3.5rem); }
  .product { gap: 1.25rem; }
  .product--rev .product__media { order: 0; }
  .news-row { grid-template-columns: 56px 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-list li { grid-template-columns: 2.5rem 1fr; }
  .form .btn { width: 100%; justify-content: center; }
}

/* Get in Touch CTA: one line on wide desktops (>=1600px) */
@media (min-width: 1600px) {
  .jf__cta-title { text-wrap: nowrap; }
  .jf__bigcta { width: 100%; justify-content: space-between; }
  .jf__bigcta-t { white-space: nowrap; font-size: clamp(5rem, 6vw, 7.5rem); }
}

/* Get in Touch CTA: photo background + light dark overlay (set on the section itself,
   because the [data-spot] spotlight rules take over ::before / ::after) */
.jf__cta {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .68) 60%, rgba(0, 0, 0, .8) 100%),
    var(--bg) center / cover no-repeat;
}
