/* ==========================================================================
   Teoria Notável Logística — "Madeira & Carga"
   Plywood, crate stencils, burnt seals, kraft waybills, charred timber.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --birch: #F1E6D2;
  --birch-2: #E6D5B8;
  --paper: #FBF6EC;
  --pine: #D8BC8E;
  --oak: #B5814F;
  --teak: #8A5A33;
  --walnut: #4A2F1F;
  --char: #1B130E;
  --char-2: #261A13;
  --ink: #22170F;
  --ink-2: #4F3D2F;
  --stamp: #B3361E;
  --stamp-ink: #A12F19;
  --stamp-light: #F08A63;
  --amber: #F4C96B;
  --err: #7A1A0B;
  --moss: #4D5A2B;
  --line: rgba(34, 23, 15, .2);

  --f-stencil: "Big Shoulders Stencil", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --wrap: min(1320px, 100% - 2 * var(--gutter));
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr-h: 72px;
  --focus: var(--stamp-ink);

  --tex-birch: url("../img/tex-birch.webp");
  --tex-oak: url("../img/tex-oak.webp");
  --tex-walnut: url("../img/tex-walnut.webp");
  --tex-char: url("../img/tex-char.webp");
  --tex-kraft: url("../img/tex-kraft.webp");
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 2.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .07 0 0 0 0 .04 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 1rem); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--birch);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { /* paper/wood grain over everything, very subtle */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--grain); opacity: .09;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class], .nav ul, .ftr ul { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--stamp); color: var(--paper); }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ink { -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 260px; mask-size: 260px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--sm { width: .9em; height: .9em; display: inline-block; vertical-align: -.05em; }

.skip {
  position: fixed; top: .6rem; left: .6rem; z-index: 100;
  padding: .7rem 1.1rem; background: var(--char); color: var(--birch);
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-stencil); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--stamp-ink);
}
.label::before { content: ""; width: 2.2em; height: 2px; background: currentColor; }
.label--light { color: var(--stamp-light); }
.sec-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.012em;
  max-width: 17ch; margin-top: 1.1rem; text-wrap: balance;
}
.sec-intro { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--ink-2); text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--f-stencil); font-weight: 700; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
}
.kicker__dot { width: .62em; height: .62em; background: var(--stamp); border-radius: 50%; box-shadow: 0 0 0 4px rgba(179, 54, 30, .18); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .2em 1.45em;
  font-family: var(--f-stencil); font-weight: 800; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--b); border-radius: 2px; background: transparent; color: var(--ink);
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, box-shadow .25s var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(2px) scale(.985); }
.btn--stamp {
  --b: var(--stamp); background: var(--stamp); color: #FFF7EC;
  box-shadow: inset 0 0 0 3px var(--stamp), inset 0 0 0 4.5px rgba(255, 247, 236, .55), 0 6px 0 -2px rgba(60, 20, 8, .35);
}
.btn--stamp:hover { background: var(--stamp-ink); --b: var(--stamp-ink); box-shadow: inset 0 0 0 3px var(--stamp-ink), inset 0 0 0 4.5px rgba(255, 247, 236, .7), 0 9px 0 -2px rgba(60, 20, 8, .35); transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--birch); }
.btn--sm { min-height: 42px; font-size: .95rem; padding-inline: 1.05em; }
.btn--lg { min-height: 58px; font-size: 1.2rem; padding-inline: 1.8em; }
.btn .ico { transition: transform .3s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }

/* ---------- scroll ruler (progress) ---------- */
.ruler {
  position: fixed; inset: 0 0 auto; height: 6px; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(34, 23, 15, .55) 0 1px, transparent 1px 10px) bottom / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(34, 23, 15, .7) 0 1px, transparent 1px 50px) bottom / 100% 6px no-repeat,
    #D9BD8C;
}
.ruler__fill { height: 100%; background: var(--stamp); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); mix-blend-mode: multiply; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 6px 0 auto; z-index: 50; height: var(--hdr-h);
  transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s;
}
.hdr__in { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.hdr.is-solid {
  background: rgba(241, 230, 210, .94) var(--tex-birch) center / 1400px;
  background-blend-mode: soft-light;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(34, 23, 15, .45);
}
@supports (backdrop-filter: blur(1px)) { .hdr.is-solid { background-color: rgba(241, 230, 210, .86); backdrop-filter: blur(10px) saturate(1.1); } }
.hdr.is-hidden { transform: translateY(-115%); }
.page-doc .hdr { background: rgba(241, 230, 210, .94); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--walnut); flex: none; }
.brand__mark { width: 40px; height: 40px; --mark-nail: var(--birch); transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-90deg); }
.brand__word { display: flex; flex-direction: column; line-height: .92; }
.brand__word b { font-family: var(--f-stencil); font-weight: 800; font-size: 1.42rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.brand__word small { font-family: var(--f-serif); font-size: .86rem; color: var(--stamp-ink); letter-spacing: .02em; }

.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: .2rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  font-weight: 600; font-size: .98rem; text-decoration: none; position: relative;
}
.nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 9px; height: 2px; background: var(--stamp); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr__end { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.nav + .hdr__end { margin-left: 0; }
.lang { display: flex; align-items: center; }
.lang a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 44px;
  font-family: var(--f-stencil); font-weight: 800; font-size: 1.02rem; letter-spacing: .08em; text-decoration: none; color: var(--ink-2);
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a[aria-current] { color: var(--stamp-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.lang a:hover { color: var(--ink); }
.hdr__cta { display: none; }

.burger {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
  background: var(--char); color: var(--birch); border: 0; border-radius: 2px;
  font-family: var(--f-stencil); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; white-space: nowrap;
}
.burger__lines { width: 18px; height: 10px; position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger__lines::before { top: 0; } .burger__lines::after { top: 8px; }
.burger[aria-expanded="true"] .burger__lines::before { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 4px; transform: rotate(-45deg); }

.menu {
  --focus: var(--amber);
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  padding: calc(var(--hdr-h) + 40px) var(--gutter) 2.5rem;
  background: linear-gradient(rgba(27, 19, 14, .82), rgba(27, 19, 14, .9)), var(--tex-walnut) center / cover;
  color: var(--birch); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__list li { border-bottom: 1px solid rgba(241, 230, 210, .16); }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; font-family: var(--f-serif); font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; text-decoration: none; }
.menu__no { font-family: var(--f-stencil); font-size: 1rem; color: var(--stamp-light); letter-spacing: .1em; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lang--lg a { color: var(--birch); min-width: 54px; font-size: 1.3rem; }
.lang--lg a + a { border-color: rgba(241, 230, 210, .25); }
.lang--lg a[aria-current] { color: var(--stamp-light); }
.menu-open .hdr { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .hdr .brand, .menu-open .hdr .brand__word b, .menu-open .hdr .lang a { color: var(--birch); }
.menu-open .hdr .brand__mark { --mark-nail: var(--char); }
.menu-open .hdr .burger { background: var(--birch); color: var(--char); }
.menu-open .hdr .lang a + a { border-color: rgba(241, 230, 210, .3); }

@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .burger { display: none; }
  .menu { display: none !important; }
}
@media (max-width: 420px) {
  .brand__word small { display: none; }
  .brand__word b { font-size: 1.2rem; }
  .hdr .lang { display: none; }
}

/* ---------- frames, seals ---------- */
.frame {
  position: relative; padding: clamp(8px, 1vw, 12px);
  background: var(--tex-oak) center / 900px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(40, 20, 8, .35), inset 0 2px 0 rgba(255, 235, 200, .3), 0 24px 40px -24px rgba(34, 18, 8, .6);
}
.frame--dark { background-image: var(--tex-walnut); }
.frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(20, 10, 4, .5); }
.frame figcaption {
  position: absolute; left: 22px; bottom: -16px; z-index: 2;
  padding: .35em .8em .3em 1.2em; background: var(--tex-kraft) center / 400px; color: var(--ink);
  font-family: var(--f-stencil); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); transform: rotate(-2deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.seal { color: var(--stamp); overflow: visible; }
.seal__ring { font-family: var(--f-stencil); font-weight: 800; font-size: 19px; letter-spacing: 1px; fill: currentColor; }
.seal__center { font-family: var(--f-stencil); font-weight: 900; font-size: 50px; fill: currentColor; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--hdr-h) + clamp(2rem, 6vh, 4.5rem));
  background: linear-gradient(180deg, rgba(241, 230, 210, .25), rgba(241, 230, 210, .65) 70%, var(--birch)), var(--tex-birch) center top / 1400px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; flex: 1; padding-bottom: clamp(3rem, 7vh, 5rem); }
.hero__title { margin-top: 1.4rem; font-family: var(--f-stencil); font-weight: 800; text-transform: uppercase; font-size: clamp(3.6rem, min(11vw, 15vh), 10.2rem); line-height: .84; letter-spacing: -.005em; color: var(--ink); }
.hero__line { display: block; overflow: hidden; padding: .12em 0 .04em; margin-top: -.12em; }
.hero__line > span { display: inline-block; }
.hero__line--serif { font-family: var(--f-serif); text-transform: none; font-weight: 400; color: var(--stamp-ink); font-size: .6em; line-height: 1.05; letter-spacing: -.025em; margin-top: .12em; }
.hero__lead { margin-top: 1.8rem; max-width: 44ch; font-size: clamp(1.06rem, 1.3vw, 1.24rem); color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.js .hero__line > span { animation: rise 1.1s var(--ease-out) both; }
.js .hero__line:nth-child(2) > span { animation-delay: .08s; }
.js .hero__line:nth-child(3) > span { animation-delay: .18s; }
.js .hero [data-reveal] { animation: fadeUp .9s var(--ease-out) both; }
.js .hero .kicker[data-reveal] { animation-delay: 0s; }
.js .hero__lead[data-reveal] { animation-delay: .35s; }
.js .hero__cta[data-reveal] { animation-delay: .45s; }
.js .crate { animation: crateIn 1.3s var(--ease-out) .15s backwards; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes crateIn { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* crate window with the video */
.crate { --pad: clamp(22px, 2.6vw, 38px); position: relative; justify-self: center; width: min(100%, 520px); }
.crate__frame {
  position: relative; padding: var(--pad);
  background: var(--tex-oak) center / 700px; border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(50, 25, 10, .5), inset 0 2px 0 rgba(255, 230, 190, .35), inset 0 -3px 0 rgba(40, 20, 8, .35),
    0 40px 70px -30px rgba(40, 20, 8, .6), 0 18px 30px -20px rgba(40, 20, 8, .5);
}
.crate__frame::before { /* mitred joints at corners */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(40, 20, 8, .45) 50%, transparent calc(50% + 1px)) top left / var(--pad) var(--pad) no-repeat,
    linear-gradient(-45deg, transparent calc(50% - 1px), rgba(40, 20, 8, .45) 50%, transparent calc(50% + 1px)) top right / var(--pad) var(--pad) no-repeat,
    linear-gradient(-45deg, transparent calc(50% - 1px), rgba(40, 20, 8, .45) 50%, transparent calc(50% + 1px)) bottom left / var(--pad) var(--pad) no-repeat,
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(40, 20, 8, .45) 50%, transparent calc(50% + 1px)) bottom right / var(--pad) var(--pad) no-repeat;
}
.crate__window { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--char); box-shadow: 0 0 0 2px rgba(30, 15, 5, .7), inset 0 0 30px rgba(0, 0, 0, .6); }
.crate__window::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px rgba(20, 10, 4, .55); pointer-events: none; }
.crate__video { width: 100%; height: 100%; object-fit: cover; }
.crate__ink {
  position: absolute; z-index: 2; white-space: nowrap; pointer-events: none;
  font-family: var(--f-stencil); font-weight: 800; text-transform: uppercase; letter-spacing: .22em;
  font-size: clamp(.78rem, 1.05vw, 1rem); color: rgba(28, 14, 6, .8); mix-blend-mode: multiply;
}
.crate__ink--top { top: calc(var(--pad) / 2); left: 50%; transform: translate(-50%, -50%); }
.crate__ink--bottom { bottom: calc(var(--pad) / 2); left: 50%; transform: translate(-50%, 50%); display: inline-flex; align-items: center; gap: .7em; }
.crate__arrows { width: 1.7em; height: 1.05em; flex: none; }
.crate__ink--side {
  right: calc(var(--pad) / 2); top: 50%; transform: translate(50%, -50%) rotate(90deg);
  color: rgba(150, 30, 12, .9); border: 2px solid currentColor; padding: .05em .5em; letter-spacing: .3em;
}
.bolt { position: absolute; width: 12px; height: 12px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 35%, #E7DCCB, #8A8073 55%, #3E3830); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.bolt::after { content: ""; position: absolute; inset: 5px 2px; background: rgba(40, 35, 30, .7); transform: rotate(35deg); }
.bolt--tl { top: calc(var(--pad) / 2 - 6px); left: calc(var(--pad) / 2 - 6px); }
.bolt--tr { top: calc(var(--pad) / 2 - 6px); right: calc(var(--pad) / 2 - 6px); }
.bolt--bl { bottom: calc(var(--pad) / 2 - 6px); left: calc(var(--pad) / 2 - 6px); }
.bolt--br { bottom: calc(var(--pad) / 2 - 6px); right: calc(var(--pad) / 2 - 6px); }

.tag {
  position: absolute; left: -9%; bottom: 14%; z-index: 3; display: grid; gap: .1rem;
  width: 150px; padding: .9rem .9rem .9rem 2.2rem;
  background: var(--tex-kraft) center / 360px; color: var(--ink);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  transform: rotate(-9deg); transform-origin: 12px 50%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25));
  font-family: var(--f-stencil); text-transform: uppercase; letter-spacing: .1em; line-height: 1.15;
}
.tag__hole { position: absolute; left: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--birch-2); box-shadow: inset 0 0 0 2px rgba(110, 80, 40, .6); }
.tag__title { font-weight: 900; font-size: 1.25rem; color: var(--stamp-ink); }
.tag__city { font-weight: 700; font-size: .95rem; }
.tag__coord { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .02em; text-transform: none; color: var(--ink-2); }
.js .tag { animation: swing 5s ease-in-out 1.4s infinite alternate; }
@keyframes swing { from { transform: rotate(-9deg); } to { transform: rotate(-5deg); } }

.vidctl {
  position: absolute; right: calc(var(--pad, 0px) + 10px); bottom: calc(var(--pad, 0px) + 10px); z-index: 4;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(241, 230, 210, .5); background: rgba(27, 19, 14, .62); color: var(--birch);
  --focus: var(--amber);
}
.vidctl .ico { width: 18px; height: 18px; }
.vidctl .ico--play { display: none; }
.vidctl[data-paused="true"] .ico--pause { display: none; }
.vidctl[data-paused="true"] .ico--play { display: block; }
.vidctl--theory { --pad: 0px; right: 1.2rem; bottom: 1.2rem; }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.vidctl:hover { background: var(--stamp); border-color: var(--stamp); }

/* ticker plank */
.ticker {
  position: relative; overflow: hidden; height: 58px; display: flex; align-items: center;
  background: linear-gradient(rgba(42, 26, 16, .55), rgba(42, 26, 16, .55)), var(--tex-walnut) center / 1400px;
  color: var(--birch); box-shadow: inset 0 2px 0 rgba(255, 220, 180, .15), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 -10px 30px -20px rgba(0, 0, 0, .5);
}
.ticker__track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; align-items: center; flex: none; }
.ticker__item { padding: 0 1.4rem; font-family: var(--f-sans); font-size: .85rem; color: rgba(241, 230, 210, .7); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker__item b { font-family: var(--f-stencil); font-weight: 800; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; color: var(--birch); margin-right: .45rem; }
.ticker__sep { color: var(--stamp-light); font-size: .85rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .crate { justify-self: end; }
}
@media (max-width: 959px) {
  .crate { width: min(100%, 440px); margin-top: .5rem; }
  .crate__window { aspect-ratio: 5 / 4; }
  .tag { left: auto; right: -2%; bottom: auto; top: -22px; transform: rotate(7deg); width: 138px; }
  .js .tag { animation: none; }
}

/* ---------- theory (dark, wood-grain video) ---------- */
.theory {
  --focus: var(--amber);
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(5.5rem, 12vw, 10rem);
  background: var(--char) var(--tex-char) center / 1400px; color: var(--birch);
}
.theory__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; filter: sepia(.4) contrast(1.15) brightness(.7); }
.theory::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 10%, rgba(27, 19, 14, .35), rgba(27, 19, 14, .92) 70%); }
.theory__title {
  margin-top: 1.4rem; font-family: var(--f-stencil); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 8.4vw, 8.2rem); line-height: .86; letter-spacing: .005em; max-width: 11ch;
}
.theory__statement {
  margin-top: clamp(2rem, 4vw, 3.4rem); max-width: 30ch;
  font-family: var(--f-serif); font-size: clamp(1.45rem, 2.9vw, 2.65rem); line-height: 1.28; color: #F6ECDC; text-wrap: pretty;
}
.theory__statement .word { display: inline-block; }
.theory__row { display: grid; gap: clamp(3rem, 5vw, 5rem); margin-top: clamp(3.5rem, 8vw, 6.5rem); align-items: end; }
.theory__fig { aspect-ratio: 3 / 2; }
.theory__seal { position: absolute; width: clamp(110px, 12vw, 150px); right: -18px; top: -48px; color: var(--stamp-light); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.theory__seal .seal__center { font-size: 46px; }
.theory__side p { max-width: 44ch; font-size: 1.12rem; color: rgba(241, 230, 210, .88); }
.facts { display: grid; gap: .1rem; margin-top: 2rem; border-top: 1px solid rgba(241, 230, 210, .2); }
.facts li {
  display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid rgba(241, 230, 210, .2);
  font-family: var(--f-stencil); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase;
}
.facts li::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 2.5px solid var(--stamp-light);
  background: linear-gradient(-45deg, transparent calc(50% - 1.5px), var(--stamp-light) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
@media (min-width: 900px) { .theory__row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
@media (min-width: 1000px) {
  .theory__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
  .theory__in > .label, .theory__row { grid-column: 1 / -1; }
  .theory__title { grid-column: 1 / span 8; }
  .theory__statement { grid-column: 6 / -1; max-width: none; margin-top: clamp(2.5rem, 5vw, 4rem); }
  .theory__statement::before { content: ""; display: block; width: 64px; height: 3px; margin-bottom: 1.6rem; background: var(--stamp-light); }
}
.js .seal--spin { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: 0 4rem; align-items: end; }
@media (min-width: 1000px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sec-head .label { grid-column: 1 / -1; }
  .sec-head .sec-intro { justify-self: end; }
}

/* ---------- services: stacked planks ---------- */
.services {
  position: relative; padding-block: clamp(5.5rem, 11vw, 9rem);
  background: linear-gradient(rgba(230, 213, 184, .82), rgba(230, 213, 184, .9)), var(--tex-birch) center / 1400px;
}
.planks { display: grid; gap: 12px; margin-top: clamp(3rem, 6vw, 4.5rem); counter-reset: plank; }
.plank {
  --wood: var(--tex-oak); --veil: rgba(216, 172, 122, .74); --fg: #1E120A; --muted: rgba(30, 18, 10, .78);
  position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .4rem 1.2rem; align-items: start;
  padding: 1.5rem clamp(1.1rem, 3vw, 2.6rem) 1.4rem;
  background: linear-gradient(var(--veil), var(--veil)), var(--wood) center / 1400px;
  color: var(--fg); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 215, .35), inset 0 -2px 0 rgba(30, 15, 5, .25), 0 3px 0 rgba(30, 15, 5, .25), 0 18px 30px -22px rgba(30, 15, 5, .7);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.plank--1 { --wood: var(--tex-birch); --veil: rgba(246, 236, 218, .45); --fg: var(--ink); --muted: var(--ink-2); }
.plank--2 { --wood: var(--tex-walnut); --veil: rgba(52, 32, 20, .5); --fg: #F6ECDC; --muted: rgba(246, 236, 220, .86); --focus: var(--amber); }
.plank::before, .plank::after { /* nail heads */
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D9CFBF, #7D7468 60%, #3B342C); box-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.plank::before { left: 9px; } .plank::after { right: 9px; }
.plank__no { font-family: var(--f-stencil); font-weight: 900; font-size: 2.3rem; line-height: 1; color: var(--fg); opacity: .62; padding-top: .15rem; }
.plank__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.1; }
.plank__text { margin-top: .5rem; max-width: 54ch; color: var(--muted); }
.plank__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.plank__tags li { padding: .18em .62em .12em; border: 1.5px solid currentColor; border-radius: 2px; font-family: var(--f-stencil); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.plank__thumb { grid-column: 1 / -1; margin-top: 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 10, 4, .35); }
.plank__thumb img { width: 100%; height: 100%; object-fit: cover; }
.plank__cta {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .4rem;
  font-family: var(--f-stencil); font-weight: 800; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em;
}
.plank__cta .ico { transition: transform .3s var(--ease-out); }
.plank__cta:hover .ico { transform: translateX(4px); }
@media (min-width: 900px) {
  .plank { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; padding-block: 1.9rem; }
  .plank__thumb { display: none; }
  .plank__cta { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; }
  .plank__no { font-size: 3rem; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .plank:hover { transform: translateX(14px) rotate(-.25deg); box-shadow: inset 0 1px 0 rgba(255, 240, 215, .35), inset 0 -2px 0 rgba(30, 15, 5, .25), 0 3px 0 rgba(30, 15, 5, .25), 0 30px 40px -24px rgba(30, 15, 5, .8); }
}
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 340px; aspect-ratio: 4 / 3; pointer-events: none;
  padding: 9px; background: var(--tex-oak) center / 700px; border-radius: 2px;
  box-shadow: 0 30px 50px -20px rgba(30, 15, 5, .7); opacity: 0; visibility: hidden;
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media not ((hover: hover) and (pointer: fine) and (min-width: 900px)) { .peek { display: none; } }

/* ---------- band (video reveal) ---------- */
.band { --focus: var(--amber); position: relative; background: var(--char); color: #FFF7EC; }
.band__pin { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media video { width: 100%; height: 100%; object-fit: cover; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .55), rgba(20, 12, 8, .35) 45%, rgba(20, 12, 8, .7)); pointer-events: none; }
.band .vidctl { --pad: 1.2rem; }
.band__text { position: relative; z-index: 2; text-align: center; padding: 6rem var(--gutter); }
.band__line { font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 8.6vw, 8.4rem); line-height: .9; letter-spacing: .01em; overflow: hidden; padding-top: .12em; margin-top: -.12em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.band__line > span { display: inline-block; }
.band__line:nth-child(2) { color: var(--stamp-light); }
.band__caption { margin: 2rem auto 0; max-width: 40ch; font-family: var(--f-serif); font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: rgba(255, 247, 236, .92); }

/* ---------- method (carpentry steps on a tape) ---------- */
.method {
  padding-top: clamp(5.5rem, 11vw, 8.5rem); padding-bottom: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(rgba(241, 230, 210, .55), rgba(241, 230, 210, .78)), var(--tex-birch) center / 1400px;
  overflow: hidden;
}
.method__viewport { margin-top: clamp(3rem, 6vw, 4.5rem); }
.method__rail { position: relative; }
.method__track { display: grid; gap: 1rem; width: var(--wrap); margin-inline: auto; }
.step { position: relative; padding: 1.6rem 0 2.2rem 1.6rem; border-left: 2px dashed rgba(74, 47, 31, .45); }
.step::before { content: ""; position: absolute; left: -7px; top: 1.9rem; width: 12px; height: 12px; background: var(--stamp); transform: rotate(45deg); }
.step__tool { width: 58px; height: 58px; color: var(--walnut); }
.step__verb {
  margin-top: .6rem; font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; line-height: .82;
  font-size: clamp(4rem, 12vw, 8.6rem); color: transparent; -webkit-text-stroke: 1.5px rgba(74, 47, 31, .55);
}
.step__title { margin-top: 1rem; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.15; }
.step__no { font-family: var(--f-stencil); font-weight: 800; font-size: .8em; color: var(--stamp-ink); letter-spacing: .06em; margin-right: .2em; }
.step__text { margin-top: .7rem; max-width: 38ch; color: var(--ink-2); }
.tape { display: none; }
@media (min-width: 700px) and (max-width: 999px) { .method__track { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }

/* horizontal mode — enabled by JS on wide screens */
.method.is-horizontal .method__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr-h) + 1rem) 2rem; }
.method.is-horizontal .method__viewport { margin-top: clamp(2rem, 4vh, 3.5rem); overflow: visible; }
.method.is-horizontal .method__rail { width: max-content; padding-left: max(var(--gutter), (100vw - 1320px) / 2); padding-right: 12vw; will-change: transform; }
.method.is-horizontal .method__track { display: flex; gap: clamp(2rem, 4vw, 4rem); width: auto; margin: 0; }
.method.is-horizontal .step { width: clamp(340px, 31vw, 470px); flex: none; padding-bottom: 3rem; }
.method.is-horizontal .step__verb { font-size: clamp(3.6rem, 6.4vw, 7rem); }
.method.is-horizontal .tape { display: block; position: relative; height: 62px; margin-top: .5rem; }
.tape__strip {
  position: absolute; inset: 0; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(34, 23, 15, .75) 0 1.5px, transparent 1.5px 100px) top / 100% 28px no-repeat,
    repeating-linear-gradient(90deg, rgba(34, 23, 15, .6) 0 1px, transparent 1px 50px) top / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, rgba(34, 23, 15, .45) 0 1px, transparent 1px 10px) top / 100% 10px no-repeat,
    linear-gradient(rgba(232, 188, 92, .55), rgba(232, 188, 92, .55)),
    var(--tex-birch) center / 900px;
  box-shadow: inset 0 0 0 1px rgba(80, 50, 20, .35), 0 10px 20px -14px rgba(40, 20, 8, .6);
}
.tape__num { position: absolute; top: 30px; transform: translateX(-50%); font-family: var(--f-stencil); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.tape__num:nth-child(5n + 1) { color: var(--stamp-ink); }

/* ---------- reach (tree rings) ---------- */
.reach {
  --focus: var(--amber);
  position: relative; padding-block: clamp(5.5rem, 11vw, 9rem);
  background: linear-gradient(rgba(27, 19, 14, .7), rgba(27, 19, 14, .82)), var(--tex-walnut) center / 1400px;
  color: var(--birch); overflow: hidden;
}
.reach .label { color: var(--stamp-light); }
.reach .sec-intro { color: rgba(241, 230, 210, .85); }
.reach__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.reach__legend { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; font-family: var(--f-stencil); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--pine); }
.reach__ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pine); box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6.5px rgba(216, 188, 142, .6); }
.reach__lt { font-family: var(--f-stencil); font-weight: 800; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--birch); }
.tally { display: grid; gap: 0 2rem; margin-top: .8rem; font-variant-numeric: tabular-nums; }
.tally li { display: flex; align-items: baseline; gap: .5rem; padding: .42rem 0; border-bottom: 1px solid rgba(241, 230, 210, .12); font-size: .98rem; transition: color .2s; cursor: default; }
.tally__lead { flex: 1; border-bottom: 1.5px dotted rgba(241, 230, 210, .28); transform: translateY(-.3em); }
.tally__km { font-family: var(--f-stencil); font-weight: 700; font-size: 1.08rem; letter-spacing: .04em; color: var(--pine); }
.tally li.is-active { color: var(--stamp-light); }
.tally li.is-active .tally__km { color: var(--stamp-light); }
.reach__note { margin-top: 1.2rem; font-size: .9rem; color: rgba(241, 230, 210, .7); max-width: 52ch; }
.reach .btn { margin-top: 1.8rem; color: var(--birch); --b: var(--birch); }
.reach .btn:hover { background: var(--birch); color: var(--char); }
@media (min-width: 600px) { .tally { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .reach__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; row-gap: 2.4rem; }
  .reach__copy { grid-column: 1; grid-row: 1; }
  .reach__list { grid-column: 1; grid-row: 2; }
  .rings { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--hdr-h) + 2rem); }
}

.rings { position: relative; width: 100%; max-width: 780px; justify-self: center; }
.rings__svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.rings__disc { }
.rings__minor path { fill: none; stroke: rgba(120, 76, 42, .38); stroke-width: 9; }
.rings__major circle, .rings__major path { fill: none; stroke: rgba(88, 50, 26, .9); stroke-width: 24; }
.rings__cracks path { fill: none; stroke: #2E1B10; stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.rings__bark { fill: none; stroke: #3A2416; stroke-width: 150; }
.rings__barkpath { fill: #3A2416; }
.rings__km { font-family: var(--f-stencil); font-weight: 800; font-size: 118px; letter-spacing: 8px; fill: rgba(70, 40, 20, .82); }
.rings__ocean { font-family: var(--f-stencil); font-weight: 700; font-size: 150px; letter-spacing: 46px; text-transform: uppercase; fill: rgba(90, 58, 34, .55); }
.city circle { fill: var(--stamp); stroke: #FFF4E4; stroke-width: 12; transition: transform .3s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.city text { font-family: var(--f-stencil); font-weight: 800; font-size: 132px; letter-spacing: 4px; text-transform: uppercase; fill: #24140A; paint-order: stroke; stroke: rgba(236, 214, 178, .92); stroke-width: 26px; stroke-linejoin: round; transition: opacity .25s; }
.city:not(.city--label) text { opacity: 0; }
.city.is-active circle { transform: scale(1.7); fill: var(--char); }
.city.is-active text { opacity: 1; }
.city--origin circle { fill: var(--char); stroke: var(--stamp); stroke-width: 26; }
.city--origin text { font-size: 170px; fill: var(--char); }
.rings__tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap;
  padding: .45rem .75rem; background: var(--char); color: var(--birch); border-radius: 2px;
  font-family: var(--f-stencil); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .4); opacity: 0; transform: translate(-50%, -140%); transition: opacity .2s;
}
.rings__tip.is-on { opacity: 1; }
.rings__tip b { color: var(--stamp-light); font-weight: 800; }

/* ---------- base (Lisbon + values) ---------- */
.base { padding-block: clamp(5.5rem, 11vw, 9rem); background: var(--birch); }
.base__grid { display: grid; gap: 2.5rem; }
.base__a { aspect-ratio: 4 / 3; }
.base__b { aspect-ratio: 4 / 5; width: 72%; justify-self: end; margin-top: -5rem; }
@media (min-width: 900px) {
  .base__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 1.5rem; }
  .base__head { grid-column: 1 / span 5; grid-row: 1; padding-bottom: 3rem; }
  .base__a { grid-column: 6 / span 7; grid-row: 1 / span 2; }
  .base__b { grid-column: 2 / span 4; grid-row: 2 / span 2; width: auto; justify-self: stretch; margin-top: 0; z-index: 2; }
}
.values { display: grid; gap: 3rem; margin-top: clamp(6rem, 12vw, 10rem); position: relative; z-index: 3; }
.value { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.value__seal { width: 118px; height: 118px; margin-top: -4.2rem; margin-left: auto; color: var(--stamp); background: var(--birch); border-radius: 50%; }
.value__h { margin-top: -1.6rem; font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: .04em; line-height: 1; }
.value p { margin-top: .9rem; max-width: 36ch; color: var(--ink-2); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- contact (waybill on a walnut desk) ---------- */
.contact {
  --focus: var(--amber);
  padding-block: clamp(5.5rem, 11vw, 9rem);
  background: linear-gradient(rgba(36, 22, 14, .5), rgba(36, 22, 14, .62)), var(--tex-walnut) center / 1400px;
  color: var(--birch);
}
.contact .label { color: var(--stamp-light); }
.contact .sec-intro { color: rgba(241, 230, 210, .86); }
.contact__grid { display: grid; gap: clamp(3rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 1050px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.card {
  --focus: var(--stamp-ink);
  position: relative; margin-top: 2.6rem; padding: 1.8rem 1.6rem 1.5rem; max-width: 420px;
  background: var(--paper); color: var(--ink); border-radius: 2px; transform: rotate(-1.2deg);
  box-shadow: 0 20px 34px -18px rgba(0, 0, 0, .65);
}
.card::before { /* masking tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(2deg);
  background: rgba(236, 222, 180, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px)); mask-image: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
}
.card__h { font-family: var(--f-stencil); font-weight: 800; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stamp-ink); }
.card address { margin-top: .6rem; font-size: 1.05rem; line-height: 1.5; }
.card__dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.card__dl dt { font-family: var(--f-stencil); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--ink-2); }
.card__dl dd { margin: 0; overflow-wrap: anywhere; }
.card__map { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .6rem; font-weight: 700; }
.contact__fig { margin-top: 3rem; aspect-ratio: 3 / 2; max-width: 420px; transform: rotate(1.4deg); }
@media (max-width: 1049px) { .contact__fig { display: none; } }

.waybill {
  --focus: var(--stamp-ink);
  position: relative; overflow: clip; padding: clamp(1.3rem, 3vw, 2.6rem) clamp(1.1rem, 3vw, 2.6rem) clamp(1.3rem, 3vw, 2.4rem) clamp(2.1rem, 4vw, 3.6rem);
  background: linear-gradient(rgba(222, 196, 152, .35), rgba(222, 196, 152, .35)), var(--tex-kraft) center / 600px;
  color: var(--ink); border-radius: 2px;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 240, 210, .3) inset;
}
.waybill::before { /* tractor-feed holes */
  content: ""; position: absolute; left: clamp(.6rem, 1.4vw, 1.1rem); top: 14px; bottom: 14px; width: 12px;
  background: radial-gradient(circle, rgba(46, 28, 18, .92) 4.5px, transparent 5.5px) center top / 12px 26px repeat-y;
}
.waybill::after { content: ""; position: absolute; left: clamp(1.6rem, 3vw, 2.6rem); top: 0; bottom: 0; border-left: 1.5px dashed rgba(34, 23, 15, .35); }
.waybill__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: 1rem; }
.waybill__title { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: .06em; }
.waybill__mark { width: 30px; height: 30px; color: var(--stamp-ink); --mark-nail: #D8BE93; }
.waybill__date { font-family: var(--f-stencil); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.waybill__alert { margin-bottom: 1rem; padding: .8rem 1rem; background: var(--err); color: #FFF4EC; font-weight: 600; border-radius: 2px; }
.waybill__set { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.waybill__set legend {
  display: block; margin: 0; padding: .3em .75em .24em; background: var(--ink); color: #E8D3AE;
  font-family: var(--f-stencil); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem;
}
.waybill__grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.cell { display: flex; flex-direction: column; padding: .55rem .8rem .35rem; border-bottom: 1px solid rgba(34, 23, 15, .32); transition: background-color .2s, box-shadow .2s; min-width: 0; }
.cell label { font-family: var(--f-stencil); font-weight: 700; font-size: .86rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.cell abbr { color: var(--stamp-ink); }
.cell input, .cell select, .cell textarea {
  width: 100%; min-height: 44px; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; outline: none;
  font-size: 1.06rem; color: var(--ink);
}
.cell textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.cell select { appearance: none; -webkit-appearance: none; padding-right: 1.6rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2322170F' stroke-width='2.2'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.cell ::placeholder { color: rgba(79, 61, 47, .82); opacity: 1; }
.cell:focus-within { background: rgba(255, 250, 240, .5); box-shadow: inset 0 -3px 0 var(--stamp-ink); }
.cell.is-invalid { box-shadow: inset 0 -3px 0 var(--err); background: rgba(255, 235, 225, .45); }
.cell.is-invalid label { color: var(--err); }
.err { margin: .25rem 0 .15rem; font-size: .9rem; font-weight: 700; color: var(--err); }
.err::before { content: "✕ "; }
@media (min-width: 640px) {
  .waybill__grid { grid-template-columns: 1fr 1fr; }
  .cell:nth-of-type(odd):not(.cell--full) { border-right: 1px solid rgba(34, 23, 15, .32); }
  .cell--full { grid-column: 1 / -1; border-right: 0 !important; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waybill__foot { display: grid; gap: 1rem 2rem; align-items: center; margin-top: .4rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--stamp); cursor: pointer; }
.check label { font-size: .98rem; line-height: 1.5; cursor: pointer; }
.check .err { grid-column: 2; }
.waybill__req { font-size: .88rem; color: var(--ink-2); }
.waybill__req abbr { color: var(--stamp-ink); }
.waybill__submit { justify-self: start; }
.waybill__submit[disabled] { opacity: .7; cursor: progress; }
@media (min-width: 760px) { .waybill__foot { grid-template-columns: 1fr auto; } .waybill__req { grid-column: 1; } .waybill__submit { grid-column: 2; grid-row: 1 / span 2; } }
.waybill__status { margin-top: 1.1rem; font-weight: 700; min-height: 1.5em; }
.waybill__status.is-ok { color: var(--moss); }
.waybill__status.is-bad { color: var(--err); }
.waybill__stamp {
  position: absolute; right: 8%; top: 38%; pointer-events: none; opacity: 0;
  transform: rotate(-14deg) scale(2.2);
}
.waybill__stamp span {
  display: block; padding: .15em .5em; border: 6px double var(--stamp); color: var(--stamp); border-radius: 6px;
  font-family: var(--f-stencil); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .1em; text-transform: uppercase;
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask); -webkit-mask-size: 200px; mask-size: 200px; mix-blend-mode: multiply;
}
.waybill.is-stamped .waybill__stamp { animation: stampIn .5s cubic-bezier(.5, 0, .25, 1.4) forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-14deg) scale(2.2); } 60% { opacity: .95; transform: rotate(-11deg) scale(.94); } 100% { opacity: .9; transform: rotate(-12deg) scale(1); } }

/* ---------- footer (charred timber) ---------- */
.ftr {
  --focus: var(--amber);
  position: relative; overflow: hidden; color: var(--birch);
  background: var(--char) var(--tex-char) center / 1400px; padding-top: clamp(4rem, 8vw, 6rem);
}
.ftr::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(27, 19, 14, .55), rgba(27, 19, 14, .3)); pointer-events: none; }
.ftr > * { position: relative; }
.ftr__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(241, 230, 210, .15); }
.ftr__tag { font-family: var(--f-serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.1; max-width: 20ch; }
.ftr__up { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--f-stencil); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ftr__up:hover { color: var(--stamp-light); }
.ftr__cols { display: grid; gap: 2.4rem 2rem; padding-block: 3rem; }
@media (min-width: 640px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ftr__cols { grid-template-columns: 1.4fr 1fr 1.2fr .8fr; } }
.ftr__h { font-family: var(--f-stencil); font-weight: 800; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stamp-light); margin-bottom: .9rem; }
.ftr address, .ftr li { font-size: .98rem; color: rgba(241, 230, 210, .86); line-height: 1.65; }
.ftr li a { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; text-decoration: none; }
.ftr li a:hover, .ftr address a:hover { color: #FFF7EC; text-decoration: underline; }
.ftr li a[aria-current] { color: var(--stamp-light); }
.ftr__giant {
  display: flex; justify-content: center; gap: .12em; white-space: nowrap; user-select: none;
  font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; line-height: .78;
  font-size: clamp(4rem, 16.2vw, 17rem); letter-spacing: -.005em; margin-bottom: -.06em; padding-top: .16em;
  color: #5E3D26;
  background: linear-gradient(rgba(190, 130, 80, .1), rgba(30, 15, 8, .25)), var(--tex-oak) center / 900px;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, .6));
}
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: 1.3rem; border-top: 1px solid rgba(241, 230, 210, .15); font-size: .88rem; color: rgba(241, 230, 210, .72); }

/* ---------- language hint ---------- */
.lang-hint {
  --focus: var(--amber);
  position: fixed; left: 50%; bottom: 1rem; z-index: 70; transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem; width: max-content; max-width: calc(100% - 2rem);
  padding: .6rem .6rem .6rem 1.1rem; background: var(--char); color: var(--birch); border-radius: 3px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .55);
}
.lang-hint[hidden] { display: none; }
.lang-hint p { font-weight: 600; font-size: .98rem; }
.lang-hint__x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--birch); font-size: 1.6rem; line-height: 1; }
.js .lang-hint:not([hidden]) { animation: fadeUp .5s var(--ease-out) both; }

/* ---------- legal documents ---------- */
.doc__head {
  padding: calc(var(--hdr-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(rgba(241, 230, 210, .35), rgba(241, 230, 210, .7)), var(--tex-birch) center / 1400px;
  border-bottom: 2px solid var(--ink);
}
.doc__title { margin-top: 1rem; font-family: var(--f-stencil); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 9vw, 7.4rem); line-height: .86; }
.doc__meta { margin-top: 1.3rem; font-family: var(--f-stencil); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.doc__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
@media (min-width: 1000px) { .doc__grid { grid-template-columns: 270px minmax(0, 1fr); gap: 4rem; } .doc__toc { position: sticky; top: calc(var(--hdr-h) + 2rem); align-self: start; } }
.doc__toc-h { font-family: var(--f-stencil); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; color: var(--stamp-ink); }
.doc__toc ol { list-style: none; padding: 0; margin: .8rem 0 0; counter-reset: toc; border-left: 2px solid var(--line); }
.doc__toc li { counter-increment: toc; }
.doc__toc ol a { display: flex; gap: .6rem; padding: .32rem 0 .32rem .9rem; font-size: .95rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.doc__toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-stencil); font-weight: 700; color: var(--stamp-ink); }
.doc__toc ol a:hover { color: var(--ink); text-decoration: underline; }
.doc__others a { color: var(--stamp-ink); }
.doc__others { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); line-height: 2; font-weight: 600; }
.doc__body {
  max-width: 78ch; padding: clamp(1.4rem, 4vw, 3rem); background: var(--paper); border-radius: 2px;
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -40px rgba(34, 23, 15, .6);
}
.doc__body > p, .doc__body section > p, .doc__body li { color: #2E2117; }
.doc__body section { margin-top: 2.6rem; scroll-margin-top: calc(var(--hdr-h) + 1.5rem); }
.doc__body h2 { display: flex; gap: .8rem; align-items: baseline; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; margin-bottom: 1rem; }
.doc__no { font-family: var(--f-stencil); font-weight: 800; font-size: 1.05rem; color: var(--stamp-ink); letter-spacing: .06em; }
.doc__body p + p, .doc__body ul + p, .doc__body p + ul, .doc__body .table-wrap + p, .doc__body p + .table-wrap { margin-top: .9rem; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li + li { margin-top: .4rem; }
.doc__body li::marker { color: var(--stamp-ink); }
.doc__body a { color: var(--stamp-ink); font-weight: 600; overflow-wrap: anywhere; }
.doc__note { padding: .9rem 1.1rem; margin-bottom: 1.6rem; border-left: 4px solid var(--stamp); background: rgba(179, 54, 30, .06); font-size: .95rem; }
.doc__back { margin-top: 3rem; }
.doc__back .btn { color: var(--ink); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 1.5rem; padding: 1rem 1.2rem; background: rgba(216, 188, 142, .18); border: 1px solid var(--line); }
.kv dt { font-family: var(--f-stencil); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--ink-2); padding-top: .5rem; }
.kv dd { margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: 13rem minmax(0, 1fr); } .kv dt, .kv dd { padding-block: .45rem; } .kv dt { padding-top: .55rem; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.doc__body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .96rem; }
.doc__body th { text-align: left; padding: .7rem .9rem; background: var(--ink); color: var(--birch); font-family: var(--f-stencil); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .88rem; }
.doc__body td { padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.doc__body tr:nth-child(even) td { background: rgba(216, 188, 142, .12); }
.doc__body code { white-space: nowrap; font-size: .92em; padding: .1em .35em; background: rgba(34, 23, 15, .07); border-radius: 2px; }
.clear-status { margin-left: .6rem; font-weight: 700; color: var(--moss); }

/* ---------- 404 ---------- */
.page-404 { min-height: 100svh; background: var(--tex-birch) center / 1400px; }
.nf { width: min(980px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 4rem 0; display: grid; gap: 2rem; }
.nf__mark { width: 64px; height: 64px; color: var(--walnut); --mark-nail: var(--birch); }
.nf__code { font-family: var(--f-stencil); font-weight: 900; font-size: clamp(7rem, 30vw, 16rem); line-height: .8; color: var(--stamp); }
.nf__block { padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.nf__h { font-family: var(--f-serif); font-weight: 400; font-size: 1.8rem; }
.nf__block p { margin: .5rem 0 1rem; color: var(--ink-2); }
@media (min-width: 900px) { .nf { grid-template-columns: repeat(3, 1fr); } .nf__mark, .nf__code { grid-column: 1 / -1; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:not(.lenis) { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .js .seal--spin, .js .tag { animation: none; }
}

/* ---------- print ---------- */
@media print {
  body::after, .ruler, .hdr, .menu, .ticker, .band, .lang-hint, video, .vidctl, .peek, .ftr__giant { display: none !important; }
  body { background: #fff; color: #000; }
  .doc__body { box-shadow: none; padding: 0; }
}
