/* Fob — dgtol.co. Light, paper, daylight. Geist. One accent lifted from the case. */
:root {
  --paper: #F4F2EE; --paper-2: #ECE9E3; --card: #FFFFFF; --line: #DDD9D1;
  --ink: #15161A; --ink-2: #4E5058; --ink-3: #8B8D96;
  --accent: #5B6B4F; --accent-ink: #F4F2EE;  /* olive, from the case */
  --radius: 8px; --pill: 999px; --max: 1180px; --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }

header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(244, 242, 238, .8); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.brand small { color: var(--ink-3); font-weight: 500; }
nav { display: flex; gap: 22px; font-size: .95rem; color: var(--ink-2); }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--pill);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-soft { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--ink-3); }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero: photo right, words left, lots of air */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero .words { order: 2; } }
.hero .words h1 { margin: 14px 0 22px; }
.hero .words .lede { margin-bottom: 30px; }
.hero .sub { margin-top: 16px; font-size: .9rem; color: var(--ink-3); }
.photo { border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .photo { aspect-ratio: 5 / 6; }

section { padding: clamp(56px, 8vw, 120px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }

/* a day with less phone */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; } }
.day figure { margin: 0; }
.day figcaption { padding: 16px 2px 0; }
.day figcaption .t { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.day figcaption p { color: var(--ink-2); max-width: 36ch; }

/* works / doesn't */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; }
.list h3 { margin-bottom: 14px; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.list li b { color: var(--ink); font-weight: 600; min-width: 9ch; }
.list.yes li::before { content: "●"; color: var(--accent); font-size: .6rem; }
.list.no li::before { content: "○"; color: var(--ink-3); font-size: .6rem; }

/* the object */
.object { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .object { grid-template-columns: 1fr; } }
.viewer { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; background: linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%); border: 1px solid var(--line); overflow: hidden; }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.viewer canvas:active { cursor: grabbing; }
.viewer .hud { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-3); }
.seg { display: inline-flex; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.seg button { background: transparent; border: 0; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--pill); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; pointer-events: none; transition: opacity .4s; }
.specs dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.specs dt { color: var(--ink-3); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 14px; }
.specs dd { margin: 3px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; color: var(--ink); font-size: .98rem; }

/* fit finder */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .finder { grid-template-columns: 1fr; } }
label.field { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; }
select { width: 100%; height: 52px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; font: inherit; font-size: 1rem;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-height: 160px; }
.result .eyebrow { margin-bottom: 8px; }
.result h3 { font-size: 1.35rem; margin-bottom: 6px; }
.result p { color: var(--ink-2); margin-bottom: 18px; }
.result .cta-row .btn { flex: 1; min-width: 150px; }
table.fits { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: .95rem; }
table.fits th, table.fits td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fits th { color: var(--ink-3); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
table.fits td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
table.fits td { color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; max-width: 70ch; }

.closing { text-align: center; }
.closing h2 { margin: 12px auto 14px; max-width: 20ch; }
.closing p { color: var(--ink-2); margin-bottom: 28px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--ink-3); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: flex-start; }
footer a:hover { color: var(--ink); }
footer .legal { max-width: 62ch; }

.text { padding: 48px 0 80px; max-width: 72ch; }
.text h1 { font-size: 2.2rem; margin-bottom: 8px; }
.text h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.text p, .text li { color: var(--ink-2); margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- motion (Living Interface: movement first, scenes not controls, intent never waits) ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); }

/* hero entrance: photo lands, lines stack up, buttons last */
.js .hero .enter > * { transform: translateY(26px); opacity: 0; }
.js .hero .enter h1 .line { display: inline-block; transform: translateY(110%); opacity: 1; }
.js .hero .enter h1 { overflow: hidden; padding-bottom: .08em; transform: none; opacity: 1; }
.js .hero .hero-photo { transform: translateY(40px) scale(1.04); opacity: 0; }
.js.ready .hero .enter > * { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .7s ease; transition-delay: calc(.12s + var(--i, 0) * .09s); }
.js.ready .hero .enter h1 .line { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(.2s + var(--i, 0) * .08s); }
.js.ready .hero .hero-photo { transform: none; opacity: 1; transition: transform 1.2s var(--ease-out), opacity .8s ease; transition-delay: .05s; }

/* hero photo rides with the scroll; tilt toward the pointer */
.hero-photo img { transform: translateY(var(--py, 0)) scale(1.06); will-change: transform; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease-out); transform-style: preserve-3d; }
.photo.tilt img, .strip .tilt img { transition: transform .9s var(--ease-out); }
.photo.tilt:hover img { transform: scale(1.035); }
.hero-photo.tilt:hover img { transform: translateY(var(--py, 0)) scale(1.09); }

/* scroll reveal: each child rises into place, staggered */
.js [data-reveal] > * { transform: translateY(28px); opacity: 0; }
.js [data-reveal].in > * { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .6s ease; transition-delay: calc(var(--i, 0) * .08s); }
.js .section-head[data-reveal] .eyebrow { position: relative; padding-left: 0; }
.js .section-head[data-reveal] .eyebrow::before { content: ""; display: inline-block; width: 0; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 0; transition: width .6s var(--ease-out), margin-right .6s var(--ease-out); }
.js .section-head[data-reveal].in .eyebrow::before { width: 22px; margin-right: 10px; }
.list li { transform: translateX(-8px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s ease; }
[data-reveal].in .list li { transform: none; opacity: 1; }
[data-reveal].in .list li:nth-child(n) { transition-delay: calc(.25s + var(--n, 0) * .05s); }
.list li:nth-child(1) { --n: 1 } .list li:nth-child(2) { --n: 2 } .list li:nth-child(3) { --n: 3 } .list li:nth-child(4) { --n: 4 }
.list li:nth-child(5) { --n: 5 } .list li:nth-child(6) { --n: 6 } .list li:nth-child(7) { --n: 7 } .list li:nth-child(8) { --n: 8 }

/* header compacts once you leave the hero */
header .wrap { transition: height .35s var(--ease-out); }
.scrolled header .wrap { height: 52px; }
header .btn { transform: translateY(-6px); opacity: 0; transition: transform .4s var(--spring), opacity .3s ease; pointer-events: none; }
.scrolled header .btn { transform: none; opacity: 1; pointer-events: auto; }
.reduce header .btn { transform: none; opacity: 1; pointer-events: auto; }

/* buttons: lift on hover, press on touch, the arrow nudges */
.btn { transition: transform .25s var(--spring), background .15s ease, border-color .15s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21, 22, 26, .12); }
.btn.pressed, .btn:active { transform: scale(.97); box-shadow: none; }
.btn .arrow { display: inline-block; transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }

/* fit finder: the result card swaps its content with a slide */
.result .inner { transition: transform .45s var(--ease-out), opacity .3s ease; }
.result .inner.out { transform: translateX(-16px); opacity: 0; transition-duration: .18s; }
.result .inner.in { animation: slideIn .5s var(--ease-out) both; }
@keyframes slideIn { from { transform: translateX(22px); opacity: 0; } }
.result .cta-row .btn { animation: rise .6s var(--ease-out) both; }
.result .cta-row .btn:nth-child(2) { animation-delay: .07s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
select { transition: border-color .2s ease, box-shadow .2s ease; }
select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(91, 107, 79, .18); }

/* FAQ: height animates, the sign turns */
.faq details .body { overflow: hidden; transition: height .45s var(--ease-out); }
.faq summary::after { transition: transform .35s var(--spring); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }

/* studio strip: horizontal, snap, drag */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 0 8px; cursor: grab; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); pointer-events: none; }
.strip figcaption { padding: 12px 2px 0; font-size: .9rem; color: var(--ink-2); }
.strip figure:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .strip { grid-auto-columns: 72%; } }

/* closing photo */
.closing .photo.wide { aspect-ratio: 16 / 9; margin-top: 44px; }

/* viewer: the model swap is handled in app.js (drop out, rise in) */

@media (prefers-reduced-motion: reduce) {
  .js .hero .enter > *, .js .hero .enter h1 .line, .js .hero .hero-photo, .js [data-reveal] > *, .list li { transform: none !important; opacity: 1 !important; transition: none !important; animation: none !important; }
  .tilt, .photo.tilt img, .hero-photo img { transform: none !important; transition: none !important; }
  .result .inner, .result .cta-row .btn { animation: none !important; transition: none !important; }
  .faq details .body { transition: none; }
}
