@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dmmono.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #FFFBF7;
  --cream-2: #F6EDE4;
  --ink: #2E2723;
  --ink-soft: #6F6055;
  --ink-faint: #A08A79;
  --border: #EFE2D5;
  --border-2: #E6D6C6;
  --clay: #C4633F;
  --clay-dark: #8E4527;

  --heavy: #D9614C;
  --tender: #E68A50;
  --steady: #E3B75F;
  --bright: #93BC86;
  --clear: #5AA396;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', Helvetica, sans-serif;
  color: var(--ink);
  width: 100%;
  overflow-x: hidden;
}

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

::selection { background: var(--border); }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.brand-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-faint);
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 1.15s cubic-bezier(.22,.61,.36,1), transform 1.15s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .swatch { animation: none !important; }
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-text h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(38px, 10.5vw, 52px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.hero-text p {
  margin: 0;
  max-width: 400px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.scale-block { display: flex; flex-direction: column; gap: 12px; padding: 30px 0 6px; }
.swatch-row { display: flex; gap: 10px; align-items: flex-end; height: 74px; }
.swatch { flex: 1; border-radius: 18px; animation: drift 7.5s ease-in-out infinite; }
.swatch.s0 { height: 46px; background: var(--heavy); animation-delay: -0.2s; }
.swatch.s1 { height: 56px; background: var(--tender); animation-delay: -1.4s; }
.swatch.s2 { height: 66px; background: var(--steady); animation-delay: -2.6s; }
.swatch.s3 { height: 56px; background: var(--bright); animation-delay: -3.8s; }
.swatch.s4 { height: 46px; background: var(--clear); animation-delay: -5s; }
@keyframes drift {
  0%   { transform: translateY(0) scale(1); opacity: .88; }
  50%  { transform: translateY(-5px) scale(1.035); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: .88; }
}
.scale-labels {
  display: flex;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scale-labels span { flex: 1; text-align: center; }

/* ---------- story ---------- */
.story { padding: 64px 0; display: flex; flex-direction: column; gap: 22px; }
.story-dots { display: flex; gap: 6px; }
.story-dots span { width: 20px; height: 6px; border-radius: 99px; display: block; }
.story-dots .d0 { background: var(--tender); }
.story-dots .d1 { background: var(--bright); }
.story-dots .d2 { background: var(--clear); }
.story p.lede {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(21px, 5.6vw, 25px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.story p.body {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.story p.punch {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---------- how it works ---------- */
.how { padding: 64px 0; display: flex; flex-direction: column; gap: 28px; }
.how-head { display: flex; flex-direction: column; gap: 14px; }
.how-head h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.how-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.tracker-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--border);
}
.tracker-card-head { display: flex; align-items: center; gap: 10px; }
.tracker-card-head .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--bright); flex: none; }
.tracker-card-head .dot.square { border-radius: 2px; background: var(--ink-soft); }
.tracker-card-head .kind-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.tracker-card-head .kind-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tracker-rows { display: flex; flex-direction: column; gap: 9px; }
.tracker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 18px;
  background: var(--cream-2);
}
.tracker-row.outlined { box-shadow: inset 0 0 0 1.5px var(--border-2); }
.tracker-row .name { font-size: 15.5px; font-weight: 500; }
.tracker-row .name.faint { color: var(--ink-faint); }
.tracker-row .meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
}
.dot-scale { display: flex; gap: 5px; }
.dot-scale i { width: 11px; height: 11px; border-radius: 99px; background: var(--border-2); display: block; font-style: normal; }
.tracker-card p.desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- screens gallery ---------- */
.screens-intro { padding: 64px 0 0; display: flex; flex-direction: column; gap: 24px; }
.gallery-wrap { padding: 24px 0 12px; }
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 24px 22px;
  -webkit-overflow-scrolling: touch;
}
.gallery-item { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; gap: 10px; }
.gallery-frame {
  width: 226px;
  height: 452px;
  border-radius: 32px;
  background: var(--cream-2);
  box-shadow: 0 18px 44px rgba(150,110,80,.14), inset 0 0 0 1px var(--border);
  padding: 10px;
  overflow: hidden;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}
.gallery-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 4px;
}
.swipe-hint {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #C0AB99;
}

/* ---------- restraint list ---------- */
.restraint { padding: 72px 0 64px; display: flex; flex-direction: column; gap: 26px; }
.restraint-head { display: flex; flex-direction: column; gap: 12px; }
.restraint-head h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.restraint-list { display: flex; flex-direction: column; }
.restraint-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  box-shadow: inset 0 -1px 0 var(--border);
  font-size: 17px;
}
.restraint-list li:last-child { box-shadow: none; }
.restraint-list li .tick { width: 14px; height: 2px; border-radius: 99px; background: var(--border-2); flex: none; }
.restraint ul { margin: 0; padding: 0; }

/* ---------- closing ---------- */
.closing { padding: 56px 0 110px; display: flex; flex-direction: column; gap: 20px; }
.closing-bars { display: flex; gap: 7px; }
.closing-bars span { width: 26px; height: 7px; border-radius: 99px; display: block; }
.closing-bars .b0 { background: var(--heavy); }
.closing-bars .b1 { background: var(--tender); }
.closing-bars .b2 { background: var(--steady); }
.closing-bars .b3 { background: var(--bright); }
.closing-bars .b4 { background: var(--clear); }
.closing p {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 6.4vw, 29px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.closing a {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: .01em;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: border-color .4s ease, color .4s ease;
}
.closing a:hover { border-color: var(--clay); }
