:root {
  --navy: #0d1640;
  --cobalt-deep: #10208a;
  --cobalt: #1e3bd0;
  --cobalt-2: #2f52e6;
  --sky: #a9bdf5;
  --paper: #f2ebdc;
  --paper-2: #e6dcc6;
  --paper-3: #d9ccb1;
  --amber: #ec9a32;
  --ink: #0d1640;
  --ink-2: #3c456e;
  --ink-3: #6d7497;
  --line: rgba(13, 22, 64, .14);
  --ok: #2c8a5a;
  --warn: #c8662a;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.mono-label { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px;
  font: 500 15px/1 var(--sans);
  border-radius: 2px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--navy); color: var(--paper); }
.btn-ink:hover { background: #050a26; }
.btn-paper { background: var(--paper); color: var(--navy); height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { color: var(--paper); border-color: rgba(242,235,220,.35); height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--paper); }
.btn-link { color: var(--paper); padding: 0 6px; }
.btn-link .play { font-size: 9px; border: 1px solid currentColor; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.btn-cobalt { background: var(--cobalt); color: var(--paper); }
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); }

/* ---------- painted layers ---------- */
.paint, .art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.art { background-size: cover; background-position: center; }

/* ---------- sections ---------- */
.section { position: relative; padding: 128px 0; }
.head-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(13,22,64,.07); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 10px; }
.tag.on-dark { background: rgba(242,235,220,.12); color: var(--paper); }
.tag.on-dark span { background: var(--paper); color: var(--navy); }
h2 { margin-top: 22px; font: 400 clamp(40px, 5.2vw, 68px)/1 var(--serif); letter-spacing: -.02em; }
h2 em { font-style: italic; }
.aside { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 470px; justify-self: end; }

/* ---------- figure / isometric ---------- */
.fig {
  position: relative; margin: 0;
  background: #f7f1e4;
  border: 1px solid var(--paper-3);
  padding: 56px 40px;
}
.fig-corner { position: absolute; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fig-corner.tl { top: 18px; left: 22px; }
.fig-corner.tr { top: 18px; right: 22px; }
.fig-corner.bl { bottom: 18px; left: 22px; }
.fig-corner.br { bottom: 18px; right: 22px; color: var(--ink); }
.fig-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 20px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background .2s ease; border-left: 2px solid transparent; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li:hover, .steps li.on { background: rgba(30,59,208,.05); border-left-color: var(--cobalt); }
.steps .n { font: 500 12px var(--mono); color: var(--cobalt); padding-top: 3px; }
.steps b { font: 500 17px var(--sans); }
.steps p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.iso-wrap { position: relative; }
#iso { width: 100%; height: auto; display: block; overflow: visible; }
#iso .layer { transition: opacity .4s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
#iso.focus .layer { opacity: .28; }
#iso.focus .layer.hot { opacity: 1; }

/* ---------- band ---------- */
.band { background: var(--cobalt-deep); color: var(--paper); overflow: hidden; }
.band-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.band h2 { color: var(--paper); }
.band-copy > p { margin-top: 22px; font-size: 18px; color: rgba(242,235,220,.84); max-width: 520px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid rgba(242,235,220,.18); color: rgba(242,235,220,.9); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.trace-card { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,20,.55); }
.trace-head { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.q { margin-top: 16px; padding: 14px 16px; background: rgba(30,59,208,.08); border-radius: 4px 4px 4px 0; font-size: 16px; }
.a { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; }
.big { font: 400 40px/1 var(--serif); }
.big small { font: 400 14px var(--mono); color: var(--ink-3); margin-left: 8px; }
.a .trace { margin-top: 14px; }
.flag { margin-top: 12px; font: 400 12px var(--mono); color: var(--warn); }

/* ---------- accuracy ---------- */
.tech { background:
  radial-gradient(circle at 1px 1px, rgba(13,22,64,.16) 1px, transparent 1.2px) 0 0 / 22px 22px,
  #ece4d2; overflow: hidden; }
.cross { position: absolute; width: 36px; height: 36px; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ink-3); }
.cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.c1 { top: 60px; left: 6%; } .c2 { top: 42%; right: 4%; } .c3 { bottom: 70px; left: 46%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--paper); }
.stat { padding: 26px 24px 28px; border-right: 1px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat .num { margin-top: 26px; font: 400 76px/1 var(--serif); letter-spacing: -.03em; }
.stat .num span { font-size: .5em; margin-left: 2px; }
.stat .sub { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.stat.muted { background: transparent; color: var(--ink-3); }
.stat.muted .sub { color: var(--ink-3); }
.bar { margin-top: 22px; height: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%); border-bottom: 1px solid var(--ink); position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: var(--cobalt); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.stat.muted .bar i { background: var(--ink-3); }
.in .bar i { transform: scaleX(1); }
.footnote { margin-top: 22px; max-width: 720px; color: var(--ink-2); font-size: 15px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cards .card:nth-child(1), .cards .card:nth-child(3) { grid-column: span 3; }
.cards .card:nth-child(2), .cards .card:nth-child(4) { grid-column: span 2; }
.card { position: relative; overflow: hidden; padding: 0 0 30px; background: var(--cobalt-deep); color: var(--paper); border-radius: 3px; }
.card h3 { padding: 0 30px; margin-top: 26px; font: 400 30px/1.1 var(--serif); }
.card > p { padding: 0 30px; margin-top: 8px; color: rgba(242,235,220,.78); max-width: 520px; }
/* ---------- cta ---------- */
.cta { text-align: center; padding: 140px 0 150px; }
.cta-inner > p { max-width: 560px; margin: 22px auto 0; font-size: 18px; color: var(--ink-2); }
.hero-actions.center { justify-content: center; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--cobalt-deep); color: var(--paper); padding: 80px 0 340px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fig-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 48px; }
  .band-copy { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding: 88px 0; }
  .head-split { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .aside { justify-self: start; font-size: 17px; }
  .fig { padding: 52px 14px 56px; }
  .fig-corner.br { left: 22px; right: auto; bottom: 18px; }
  .fig-corner.bl { display: none; }
  .steps li { padding: 16px 10px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--ink); }
  .stat:last-child { border-bottom: 0; }
  .stat .num { font-size: 60px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(n) { grid-column: auto; }
  .card h3 { padding: 0 20px; font-size: 26px; }
  .card > p { padding: 0 20px; }
  .footer { padding-bottom: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .bar i { transition: none; transform: scaleX(1); }
  #iso .layer { transition: none; }
}




/* ================= HERO (framed painting, product spills onto paper) ================= */
.hero { --shot-w: min(1180px, calc(100vw - 64px)); --shot-ratio: .625; --spill: .4;
  position: relative; padding: 12px 12px 0; background: var(--paper); color: var(--paper); }
.hero-art { position: absolute; top: 12px; left: 12px; right: 12px;
  bottom: calc(var(--shot-w) * var(--shot-ratio) * var(--spill));
  border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 50% 80%, #4a6cf0, var(--cobalt-deep) 70%); }
.hero-art .art { position: absolute; inset: 0; background-size: cover; background-position: center 78%; opacity: 0; transition: opacity 1s ease; }
.hero-art .art.on, .art.on { opacity: 1; }
.art { opacity: 0; transition: opacity .8s ease; background-repeat: no-repeat; }

.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px;
  max-width: 1080px; height: 58px; margin: 18px auto 0; padding: 0 7px 0 18px;
  background: var(--paper); color: var(--navy); border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(5,10,50,.55); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 21px/1 var(--sans); letter-spacing: -.01em; }
.brand .mark { width: 31px; height: 22px; }
.nav .brand .mark { color: var(--cobalt); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 0 0 18px; padding: 0; }
.nav-links a { font: 500 14.5px/1 var(--sans); color: var(--ink-2); }
.nav-links a:hover { color: var(--cobalt); }
.nav .btn-sq { margin-left: auto; }

.btn-sq { display: inline-flex; align-items: stretch; height: 44px; border-radius: 3px; overflow: hidden;
  font: 500 15px/44px var(--sans); white-space: nowrap; background: var(--navy); color: var(--paper);
  padding-left: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.btn-sq span { display: grid; place-items: center; width: 44px; margin-left: 16px; background: rgba(242,235,220,.16); font-size: 15px; }
.btn-sq:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(5,10,50,.6); }
.btn-sq.cobalt { background: var(--cobalt); }
.btn-sq.cobalt span { background: var(--paper-2); color: var(--cobalt); }
.btn-sq.paper { background: var(--paper); color: var(--navy); }
.btn-sq.paper span { background: var(--cobalt); color: var(--paper); font-size: 11px; }
.nav .btn-sq { height: 44px; }

.hero-copy { position: relative; z-index: 4; text-align: center; padding-top: 92px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid rgba(242,235,220,.38); border-radius: 999px; background: rgba(8,16,70,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(236,154,50,.25); }
.hero h1 { margin-top: 26px; font: 400 clamp(50px, 8vw, 108px)/.94 var(--serif); letter-spacing: -.025em; text-shadow: 0 2px 30px rgba(5,10,60,.45); }
.hero h1 em { font-style: italic; color: #fff7e6; }
.lede { max-width: 600px; margin: 24px auto 0; font-size: 18px; line-height: 1.55; color: rgba(242,235,220,.9); text-shadow: 0 1px 14px rgba(5,10,60,.6); }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-shot { position: relative; z-index: 3; width: var(--shot-w); margin: 72px auto 0; padding: 8px;
  border-radius: 18px; background: rgba(242,235,220,.16); border: 1px solid rgba(242,235,220,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 50px 100px -30px rgba(4,8,40,.75), 0 0 120px -20px rgba(246,194,122,.35); }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 11px; }

/* format cards, Opero-style */
.formats { padding: 40px 0 0; background: var(--paper); }
.format-cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.fc { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--paper-2); border-radius: 3px; }
.fc b { font: 500 16px var(--sans); color: var(--ink); }

/* real screenshot card in the traceability band */
.shot-card { position: relative; margin: 0; justify-self: center; max-width: 440px; padding: 8px; border-radius: 16px;
  background: rgba(242,235,220,.12); border: 1px solid rgba(242,235,220,.22); box-shadow: 0 40px 80px -24px rgba(0,0,20,.7); }
.shot-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot-card figcaption { position: absolute; left: 14px; bottom: -28px; color: rgba(242,235,220,.6); }

/* demo block, Opero "why" style */
.why { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center;
  padding: 48px; background: var(--cobalt-deep); color: var(--paper); border-radius: 4px; }
.why > * { position: relative; z-index: 1; }
.why .paint { z-index: 0; }
.why-media { position: relative; padding: 10px; background: var(--paper-2); border-radius: 6px; box-shadow: 0 40px 80px -24px rgba(0,0,20,.7); }
.why-media video { display: block; width: 100%; height: auto; border-radius: 3px; background: #11181b; }
.play-toggle { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border: 0; border-radius: 3px;
  background: rgba(13,22,64,.75); color: var(--paper); font-size: 11px; cursor: pointer; }
.why-copy h2 { color: var(--paper); }
.why-copy p { margin: 20px 0 28px; font-size: 17px; color: rgba(242,235,220,.84); max-width: 440px; }

/* real screenshots in cards */
.card { background: var(--cobalt-deep); }
.card-shot { position: relative; height: 300px; overflow: hidden; padding: 28px 28px 0;
  background: radial-gradient(circle at 1px 1px, rgba(242,235,220,.14) 1px, transparent 1.3px) 0 0 / 20px 20px,
    linear-gradient(180deg, var(--cobalt) 0%, var(--cobalt-deep) 100%); }
.card-shot img { display: block; width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 24px 50px -20px rgba(0,0,30,.8); }
.phone-card .card-shot { display: flex; justify-content: center; }
.phone-card .card-shot img { width: 200px; border-radius: 22px 22px 0 0; border: 6px solid var(--navy); border-bottom: 0; }

/* footer painting */
.footer > .art { background-size: cover; background-position: center bottom; }
.footer { padding: 80px 0 400px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .format-cards { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr; padding: 28px; gap: 36px; }
}
@media (max-width: 760px) {
  .hero { --shot-w: min(280px, 72vw); --shot-ratio: 2.164; --spill: .38; padding: 8px 8px 0; }
  .hero-art { top: 8px; left: 8px; right: 8px; }
  .nav { margin: 10px 0 0; height: 54px; padding-left: 14px; }
  .nav .btn-sq { font-size: 14px; padding-left: 14px; }
  .nav .btn-sq span { width: 38px; margin-left: 10px; }
  .hero-copy { padding-top: 56px; }
  .lede { font-size: 16px; }
  .hero-shot { margin-top: 48px; padding: 6px; border-radius: 30px; }
  .hero-shot img { border-radius: 24px; }
  .format-cards { display: flex; overflow-x: auto; scrollbar-width: none; }
  .fc { flex: 0 0 auto; }
  .card-shot { height: 240px; padding: 20px 20px 0; }
  .shot-card { max-width: 100%; }
  .why { padding: 16px 16px 28px; }
  .footer { padding-bottom: 240px; }
  .footer > .art { background-size: 240% auto; top: auto; height: 520px;
    -webkit-mask-image: linear-gradient(transparent 0, #000 45%); mask-image: linear-gradient(transparent 0, #000 45%); }
}

/* dark bands: quiet engraved dot grid instead of strokes */
.band, .why { background:
  radial-gradient(circle at 1px 1px, rgba(242,235,220,.10) 1px, transparent 1.3px) 0 0 / 22px 22px,
  radial-gradient(90% 70% at 20% 30%, #1b36b8 0%, var(--cobalt-deep) 70%); }

@media (max-width: 760px) { .pill { font-size: 9.5px; letter-spacing: .03em; } }

/* ================= Fig. 02: anatomy planimeter ================= */
#anatomy.iso[data-theme="light"] {
  --anatomy-card:#f7f1e4; --anatomy-paper:#f7f1e4; --anatomy-face:#fffaf0; --anatomy-top:#fdf8ee;
  --anatomy-shade-0:#d9cfb8; --anatomy-shade-1:#e3dac5; --anatomy-shade-2:#ece4d2; --anatomy-shade-3:#f4eee0;
  --anatomy-lit-top:#ffffff; --anatomy-lit-shade:#eef0fb;
  --anatomy-hi:#0d1640; --anatomy-mid:#6c7398; --anatomy-lo:#aeb0c0; --anatomy-faint:#d6d2c6; --anatomy-lit:#1e3bd0;
  --anatomy-halo:#6d6450; --anatomy-halo-opacity:.3; --anatomy-dot:#0d1640;
  padding: 52px 24px 56px; }
#anatomy .iso-stage { outline: none; cursor: crosshair; }
#anatomy .iso-stage:focus-visible { box-shadow: 0 0 0 2px var(--cobalt); }
#anatomy .iso-svg { max-width: 1040px; margin: 0 auto; }
.fig-legend { display: grid; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.fig-legend .key { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; }
.fig-legend p { max-width: 760px; }
.sw { display: inline-block; width: 16px; height: 2px; background: var(--ink-3); }
.sw.lit { background: var(--cobalt); height: 3px; }
.sw.hi { background: var(--navy); }
.steps-row { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps-row li { border-top: 1px solid var(--ink); padding-top: 16px; }
.steps-row .n { font: 500 12px var(--mono); color: var(--cobalt); }
.steps-row b { display: block; margin-top: 8px; font: 500 17px var(--sans); }
.steps-row p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr 1fr; } #anatomy.iso[data-theme="light"] { padding: 44px 8px 52px; } }

/* ================= Footer (ported from Ridgeline Dither Footer; painting unchanged) ================= */
.footer { --f-ink: #f2ebdc; --f-muted: rgba(242,235,220,.66); --f-line: rgba(242,235,220,.22); --f-accent: #f6c27a;
  --f-pad: clamp(20px, 3.2vw, 30px); }
.foot-frame { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.foot-frame::before, .foot-frame::after { content: ""; position: absolute; top: -80px; height: calc(100% + 80px + 400px); width: 1px;
  background: linear-gradient(var(--f-line) 60%, transparent); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 1.4s cubic-bezier(.2,.7,.1,1); pointer-events: none; }
.foot-frame::before { left: 0; }
.foot-frame::after { right: 0; transition-delay: .08s; }
.foot-in .foot-frame::before, .foot-in .foot-frame::after { transform: scaleY(1); }

.fr { opacity: 0; transform: translateY(12px); filter: blur(5px);
  transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform 1s cubic-bezier(.2,.7,.1,1), filter .9s ease;
  transition-delay: calc(var(--d, 0) * 1ms); }
.foot-in .fr { opacity: 1; transform: none; filter: none; }

.foot-top { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)); gap: 28px;
  padding: clamp(8px, 2vw, 24px) var(--f-pad) clamp(30px, 4vw, 52px); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--f-ink); font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.foot-mark { width: 42px; height: 30px; display: block; transition: transform .7s cubic-bezier(.2,.7,.1,1); }
.foot-logo:hover .foot-mark { transform: translateY(-2px); }
.foot-tag { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--f-muted); text-wrap: pretty; }
.foot-social { display: flex; gap: 6px; margin: 2px 0 0 -7px; padding: 0; list-style: none; }
.foot-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--f-muted);
  transition: color .3s ease, background-color .3s ease, transform .45s cubic-bezier(.2,.7,.1,1); }
.foot-social a:hover { color: var(--f-ink); background: rgba(242,235,220,.1); transform: translateY(-2px); }
.foot-social svg { width: 15px; height: 15px; display: block; }

.foot-col h3 { margin: 6px 0 18px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--f-muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-link { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--f-ink); font-size: 14.5px; line-height: 1.35;
  transition: color .3s ease, transform .5s cubic-bezier(.2,.7,.1,1); }
.foot-link::before { content: ""; position: absolute; left: -12px; top: 50%; width: 7px; height: 1px; background: var(--f-accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.7,.1,1); }
.foot-link:hover { color: var(--f-accent); transform: translateX(7px); }
.foot-link:hover::before { transform: scaleX(1); }
.foot-badge { font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 99px;
  color: var(--f-accent); background: rgba(246,194,122,.14); }
.foot-link:focus-visible, .foot-logo:focus-visible, .foot-social a:focus-visible { outline: 1px solid var(--f-accent); outline-offset: 4px; border-radius: 3px; }

.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 var(--f-pad);
  padding-top: 18px; border-top: 1px solid var(--f-line); font-size: 12.5px; color: var(--f-muted); }
.foot-bar p { margin: 0; }
.foot-flow { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 760px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-frame::before, .foot-frame::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fr, .foot-frame::before, .foot-frame::after, .foot-link, .foot-link::before, .foot-social a, .foot-mark { transition: none; }
  .fr { filter: none; }
}

.footer.art-ready { background: #012976; }

/* ================= picture cards v2: cream surfaces, tight real crops, bracket hover ================= */
.cards .card { position: relative; overflow: visible; padding: 0 0 28px; border-radius: 3px;
  background: #fbf7ee; color: var(--ink); border: 1px solid var(--paper-3);
  transition: border-color .3s ease, box-shadow .35s ease; }
.cards .card:hover { border-color: #cbbd9f; box-shadow: 0 1px 2px rgba(13,22,64,.05), 0 18px 40px -22px rgba(13,22,64,.35); }
.cards .card h3 { padding: 0 28px; margin-top: 8px; font: 400 28px/1.1 var(--serif); color: var(--ink); }
.cards .card > p:not(.card-k) { padding: 0 28px; margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 520px; }
.card-k { margin: 22px 28px 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.cards .card-shot { position: relative; height: 290px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 26px 26px; margin: 10px 10px 0; border-radius: 2px;
  background: radial-gradient(circle at 1px 1px, rgba(13,22,64,.12) 1px, transparent 1.3px) 0 0 / 18px 18px, #ece4d2; }
.cards .card-shot img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 9px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 20px 40px -18px rgba(13,22,64,.55), 0 0 0 1px rgba(13,22,64,.12); }
.cards .phone-card .card-shot { align-items: flex-start; padding-bottom: 0; }
.cards .phone-card .card-shot img { width: 190px; max-height: none; border-radius: 22px 22px 0 0; border: 6px solid var(--navy); border-bottom: 0; box-shadow: 0 20px 40px -18px rgba(13,22,64,.55); }
/* corner brackets (from Ink Orbit) */
.cb { position: absolute; width: 12px; height: 12px; border: 0 solid #c3b597; pointer-events: none;
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.cb.tl { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cb.tr { top: -6px; right: -6px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cb.bl { bottom: -6px; left: -6px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cb.br { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cards .card:hover .cb { border-color: var(--cobalt); }
.cards .card:hover .cb.tl { transform: translate(-3px,-3px); } .cards .card:hover .cb.tr { transform: translate(3px,-3px); }
.cards .card:hover .cb.bl { transform: translate(-3px,3px); } .cards .card:hover .cb.br { transform: translate(3px,3px); }
.cards { gap: 26px; }
@media (max-width: 760px) {
  .cards .card-shot { height: auto; min-height: 200px; padding: 16px; }
  .cards .card h3, .cards .card > p:not(.card-k) { padding: 0 20px; }
  .card-k { margin: 20px 20px 0; }
  .cards .phone-card .card-shot { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .cb { transition: none; } }
.cards .card .card-k { padding: 0; color: var(--cobalt); margin: 22px 28px 0; }
.cards .card-shot { height: auto; padding: 18px; }
.cards .card-shot img { width: 100%; max-height: none; }
.cards .card:nth-child(3) .card-shot { height: 380px; padding: 0; }
.cards .card:nth-child(3) .card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; border-radius: 0; box-shadow: none; }
.cards .phone-card .card-shot { height: 380px; padding: 22px 0 0; }
.cards .phone-card .card-shot img { width: 200px; }
@media (max-width: 760px) {
  .cards .card .card-k { margin: 20px 20px 0; }
  .cards .card-shot { padding: 10px; }
  .cards .card:nth-child(3) .card-shot, .cards .phone-card .card-shot { height: 300px; }
}

/* ================= footer altimeter (from Ridgeline Dither Footer) ================= */
.foot-alt { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--f-ink); will-change: transform; }
.foot-alt i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #012976; box-shadow: 0 0 0 1.5px var(--f-ink); }
.foot-alt b { position: absolute; left: -.5px; bottom: 6px; width: 1px; height: 26px; background: var(--f-ink); opacity: .6; }
.foot-alt span { position: absolute; left: 0; bottom: 34px; transform: translateX(-50%); white-space: nowrap; padding: 5px 7px 4px;
  border-radius: 5px; background: rgba(1,41,118,.82); box-shadow: 0 0 0 1px var(--f-line);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.footer.alt-on .foot-alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .foot-alt { transition: none; } }
@media (hover: none) { .foot-alt { display: none; } }

/* card images v3: every shot whole, never cropped by the frame */
.cards .card-shot { height: 360px; padding: 22px; }
.cards .card-shot img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.cards .card:nth-child(1) .card-shot img { width: 100%; }
.cards .card:nth-child(3) .card-shot { height: 360px; padding: 22px; }
.cards .card:nth-child(3) .card-shot img { width: auto; height: 100%; object-fit: contain; border-radius: 9px;
  box-shadow: 0 20px 40px -18px rgba(13,22,64,.55), 0 0 0 1px rgba(13,22,64,.12); }
.cards .phone-card .card-shot { height: 360px; padding: 22px 0; align-items: center; }
.cards .phone-card .card-shot img { width: auto; height: 100%; border: 5px solid var(--navy); border-radius: 22px; }
.cards .card h3 { margin-top: 22px; }
@media (max-width: 760px) {
  .cards .card-shot, .cards .card:nth-child(3) .card-shot, .cards .phone-card .card-shot { height: 300px; padding: 14px; }
  .cards .card:nth-child(1) .card-shot { height: auto; }
}

.lede, .aside, .footnote, .card p, .why-copy p, .cta-inner > p { text-wrap: pretty; }
.hero .lede { text-wrap: balance; }

/* ================= recorded videos ================= */
.lazy-vid { display: block; background: #11181b; }
.hero-shot video { width: 100%; height: auto; border-radius: 11px; }
.shot-card video { width: 100%; height: auto; border-radius: 10px; }
.cards .card-shot video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 9px;
  box-shadow: 0 20px 40px -18px rgba(13,22,64,.55), 0 0 0 1px rgba(13,22,64,.12); }
.cards .card:nth-child(1) .card-shot video { width: 100%; }
.cards .card:nth-child(3) .card-shot video { height: 100%; }
.cards .phone-card .card-shot video { height: 100%; border: 5px solid var(--navy); border-radius: 22px; }
@media (max-width: 760px) { .hero-shot video { border-radius: 24px; } }

/* carbon footprint card */
.carbon { position: relative; margin-top: 26px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 36px; background: #fbf7ee; border: 1px solid var(--paper-3); border-radius: 3px; transition: border-color .3s, box-shadow .35s; }
.carbon:hover { border-color: #cbbd9f; box-shadow: 0 18px 40px -22px rgba(13,22,64,.35); }
.carbon:hover .cb { border-color: var(--cobalt); }
.carbon:hover .cb.tl { transform: translate(-3px,-3px); } .carbon:hover .cb.tr { transform: translate(3px,-3px); }
.carbon:hover .cb.bl { transform: translate(-3px,3px); } .carbon:hover .cb.br { transform: translate(3px,3px); }
.carbon h3 { font: 400 34px/1.1 var(--serif); color: var(--ink); }
.carbon-copy p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; max-width: 520px; text-wrap: pretty; }
.carbon-copy .carbon-note { color: var(--ink-3); font-size: 14px; }
.carbon-trace { margin: 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.ct-k { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ct-big { margin-top: 12px; font: 400 48px/1 var(--serif); color: var(--ink); }
.ct-big span { font: 400 14px var(--mono); color: var(--ink-3); margin-left: 6px; }
.carbon-trace ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: t; }
.carbon-trace li { counter-increment: t; position: relative; padding: 4px 0 4px 24px; font: 400 12.5px/1.45 var(--mono); color: var(--ink-2); }
.carbon-trace li::before { content: counter(t); position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: rgba(13,22,64,.08); font-size: 9px; display: grid; place-items: center; }
.carbon-trace code { color: var(--cobalt); }
.ct-flag { margin-top: 10px; font: 400 12px var(--mono); color: var(--warn); }
@media (max-width: 760px) { .carbon { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; } .format-cards .fc:last-child { margin-right: 16px; } }

.foot-top { grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* live demo: the arrow shoots out top-right and comes back in from bottom-left */
.arw { overflow: hidden; }
.arw i { display: inline-block; font-style: normal; line-height: 1; }
.btn .arw { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; vertical-align: -1px; }
a:hover .arw i, a:focus-visible .arw i { animation: arw-shoot .55s cubic-bezier(.5,0,.2,1); }
@keyframes arw-shoot {
  0% { transform: translate(0,0); opacity: 1; }
  42% { transform: translate(1.3em,-1.3em); opacity: 0; }
  43% { transform: translate(-1.3em,1.3em); opacity: 0; }
  100% { transform: translate(0,0); opacity: 1; }
}
/* video: cobalt sweeps in from the play square, text turns cream */
.btn-play { position: relative; isolation: isolate; }
.btn-play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobalt);
  transform: scaleX(0); transform-origin: right center; transition: transform .45s cubic-bezier(.65,0,.25,1); }
.btn-play b { font-weight: inherit; transition: color .3s ease .08s; }
.btn-play span { transition: background-color .3s ease, color .3s ease; }
.btn-play:hover::before, .btn-play:focus-visible::before { transform: scaleX(1); }
.btn-play:hover b, .btn-play:focus-visible b { color: var(--paper); }
.btn-play:hover span, .btn-play:focus-visible span { background: var(--cobalt-deep); }
@media (prefers-reduced-motion: reduce) {
  a:hover .arw i { animation: none; }
  .btn-play::before { transition: none; }
}

.format-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fc { padding: 14px 14px; }
.fc b { white-space: nowrap; }
@media (max-width: 1080px) { .format-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
