/* atouchmoment.com — apple-style keynote scroll / nebula tone */

:root {
  --cream: #08050f;        /* page bg */
  --cream-2: #120a22;      /* surface */
  --ink: #f5eefa;          /* text */
  --ink-2: #9b8cb5;        /* muted text */
  --accent: #c084fc;       /* primary accent */
  --accent-2: #7c3aed;     /* deep accent */
  --accent-ink: #08050f;   /* text on accent */
  --rule: rgba(255, 255, 255, 0.10);
  --maxw: 1200px;
  --gutter: 48px;
  --radius-lg: 36px;
  --radius-md: 24px;
  --navh: 56px;

  --f-display: "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --f-serif: "Fraunces", serif;
  --f-sans: "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[lang="th"], .atm-lang-th {
  --f-sans: "IBM Plex Sans Thai", "Noto Sans Thai", "Inter", system-ui, sans-serif;
  --f-display: "IBM Plex Sans Thai", "Noto Sans Thai", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--cream); color: var(--ink); }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: color-mix(in oklab, var(--accent) 40%, transparent); }

/* Suppress transitions during palette swap */
html.theme-swapping, html.theme-swapping *, html.theme-swapping *::before, html.theme-swapping *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

/* ============ TOP BAR — frosted, apple-thin ============ */
.atm-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--navh);
  padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  background: color-mix(in oklab, var(--cream) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
/* scroll progress hairline — connects the whole story */
.atm-top::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--gp, 0));
}
.atm-top__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
}
.atm-top__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 70%, transparent);
}
.atm-top__nav { display: flex; gap: 6px; font-size: 13px; color: var(--ink-2); }
.atm-top__nav a {
  padding: 6px 12px; border-radius: 100px;
  transition: color .2s, background .2s;
}
.atm-top__nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, transparent); }
.atm-top__actions { display: flex; align-items: center; gap: 12px; }
.atm-seg { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 100px; font-size: 12px; }
.atm-seg button { background: none; border: 0; padding: 5px 11px; color: var(--ink-2); border-radius: 100px; font-weight: 600; letter-spacing: 0.04em; transition: color .18s, background .18s; }
.atm-seg button:hover { color: var(--ink); }
.atm-seg button.is-active { color: var(--accent-ink); background: var(--accent); }
.atm-seg button.is-active:hover { color: var(--accent-ink); }

/* ============ SHARED ============ */
.atm-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px var(--gutter);
  position: relative;
}
.atm-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.atm-section__h2 {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.atm-lang-th .atm-section__h2 { font-weight: 600; line-height: 1.16; letter-spacing: -0.01em; }
.atm-section__h2 span { display: block; }
.atm-lead { font-size: 21px; line-height: 1.5; color: var(--ink); }

/* chapter head — centered, keynote style */
.atm-chapter-head { text-align: center; max-width: 880px; margin: 0 auto 72px; }
.atm-chapter-head .atm-eyebrow { margin-bottom: 20px; }
.atm-chapter-head .atm-section__h2 { margin-bottom: 20px; }
.atm-chapter-head .atm-chapter-sub {
  font-size: 19px; line-height: 1.6; color: var(--ink-2);
  max-width: 620px; margin: 0 auto;
}

/* buttons — apple pills */
.atm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s, opacity .2s;
  cursor: pointer;
}
.atm-btn:active { transform: scale(0.97); }
.atm-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px -8px color-mix(in oklab, var(--accent-2) 80%, transparent);
}
.atm-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px color-mix(in oklab, var(--accent-2) 90%, transparent); }
.atm-btn--ghost {
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.atm-btn--ghost:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.atm-link { color: var(--accent); font-weight: 500; }
.atm-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* reveal-on-enter */
.atm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.atm-reveal.is-in { opacity: 1; transform: none; }

/* ============ HERO — pinned, scrubs out as story slides over ============ */
.atm-hero {
  position: relative;
  height: 178vh;
  z-index: 0;
}
.atm-hero__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  /* scrub-out driven by --p (0..1 across the extra 78vh) */
  opacity: calc(1.25 - var(--p, 0) * 1.45);
  transform: scale(calc(1 - var(--p, 0) * 0.08)) translateY(calc(var(--p, 0) * -3vh));
}
.atm-hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 1100px; }
.atm-hero__h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.atm-lang-th .atm-hero__h1 { font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.atm-hero__h1 span { display: block; }
.atm-hero__line3 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, #e9d5ff 50%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.atm-hero__sub {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 36px;
}
.atm-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.atm-hero__scrollcue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
  opacity: calc(1 - var(--p, 0) * 4);
}
.atm-hero__scrollcue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: atm-cue 2.2s var(--ease-out) infinite;
}
@keyframes atm-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* aurora — parallax with scroll */
.atm-hero__mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.atm-mesh { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.atm-mesh--a {
  width: 56vw; height: 56vw; left: -14vw; top: -16vw;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  transform: translateY(calc(var(--p, 0) * 14vh));
}
.atm-mesh--b {
  width: 48vw; height: 48vw; right: -12vw; top: 8vh;
  background: radial-gradient(circle, var(--accent), transparent 62%);
  opacity: 0.32;
  transform: translateY(calc(var(--p, 0) * 26vh));
}
.atm-mesh--c {
  width: 44vw; height: 44vw; left: 26vw; bottom: -26vh;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 50%, var(--accent-2)), transparent 60%);
  opacity: 0.26;
  transform: translateY(calc(var(--p, 0) * -10vh));
}
.atm-grain {
  position: absolute; inset: 0;
  background-image: url("grain.svg");
  opacity: 0.4; mix-blend-mode: overlay;
}

/* ============ STORY SHEET — content slides over the pinned hero ============ */
.atm-sheet {
  position: relative; z-index: 2;
  margin-top: -78vh;            /* rides over the hero's pinned tail */
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--rule);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* ============ MANIFESTO — word-by-word scrub (the apple moment) ============ */
.atm-manifesto { position: relative; height: 240vh; }
.atm-manifesto__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.atm-manifesto__text {
  max-width: 980px;
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  margin: 0;
}
.atm-lang-th .atm-manifesto__text { font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.atm-manifesto__text .atm-w {
  /* lights up as --p sweeps across word indices (--i of --n) */
  opacity: clamp(0.13, calc(var(--p, 0) * (var(--n) + 3) - var(--i)), 1);
  transition: opacity .15s linear;
}
.atm-manifesto__text .atm-w--hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.atm-manifesto .atm-eyebrow {
  position: absolute; top: 14vh; left: 50%; transform: translateX(-50%);
  margin: 0;
}

/* ============ ABOUT — bento ============ */
.atm-about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.atm-card {
  background: linear-gradient(160deg, color-mix(in oklab, var(--cream-2) 80%, var(--accent-2)) 0%, var(--cream-2) 40%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.atm-about__body {
  padding: 44px;
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.atm-about__body p { margin: 0; color: var(--ink-2); }
.atm-about__body .atm-lead { color: var(--ink); font-weight: 550; }
.atm-about__visual { position: relative; min-height: 420px; }
.atm-about__visual-inner { position: absolute; inset: 0; }
.atm-about__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: translateY(calc((var(--t, 0.5) - 0.5) * -28px)) scale(1.08);  /* gentle parallax */
}
.atm-about__stats {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.atm-stat { padding: 32px 36px; text-align: left; }
.atm-stat__n {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.atm-stat__l { font-size: 14px; color: var(--ink-2); }

/* ============ BELIEVE — three glass pillars ============ */
.atm-believe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.atm-pillar {
  position: relative;
  padding: 40px 36px 44px;
  background: color-mix(in oklab, var(--cream-2) 72%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}
.atm-pillar:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 24px 60px -24px color-mix(in oklab, var(--accent-2) 55%, transparent);
}
.atm-pillar__n {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.atm-pillar__t {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  line-height: 1.25;
}
.atm-pillar__b { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* ============ PRODUCTS — stacked deck ============ */
.atm-products { padding-bottom: 60px; }
.atm-stack { display: flex; flex-direction: column; gap: 5vh; }
.atm-stack__item {
  position: sticky;
  top: calc(var(--navh) + 4vh);
  transform: scale(calc(1 - var(--cover, 0) * 0.05)) translateY(calc(var(--cover, 0) * -8px));
  opacity: calc(1 - var(--cover, 0) * 0.4);
  will-change: transform, opacity;
}
.atm-prod-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 720px);
  background: linear-gradient(150deg, color-mix(in oklab, var(--cream-2) 75%, var(--accent-2)) 0%, var(--cream-2) 45%, var(--cream-2) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 -16px 60px -30px rgba(0, 0, 0, 0.8);
}
.atm-prod-card--hero {
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent-2) 38%, var(--cream-2)) 0%, var(--cream-2) 55%);
}
.atm-prod-card__body {
  padding: clamp(36px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px;
}
.atm-prod-card__n {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.atm-prod-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.atm-lang-th .atm-prod-card__name { font-weight: 600; line-height: 1.15; letter-spacing: 0; }
.atm-prod-card__kicker { margin: 0; font-size: 15px; font-weight: 550; color: var(--accent); }
.atm-prod-card__line { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 21px; color: var(--ink-2); }
.atm-prod-card__b { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.atm-prod-card__use { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.atm-prod-card__use span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-right: 10px;
}
.atm-prod-card__cta { margin-top: 18px; align-self: flex-start; }
.atm-prod-card__chip {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  margin-bottom: 6px;
}
.atm-prod-card__visual { position: relative; overflow: hidden; min-height: 360px; }
.atm-prod-card__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.atm-stack__item:hover .atm-prod-card__visual img { transform: scale(1.035); }
.atm-prod-card__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream-2) 0%, transparent 18%);
  opacity: 0.5;
  pointer-events: none;
}

/* supporting services */
.atm-also { margin-top: 120px; }
.atm-also__t {
  font-family: var(--f-display); font-weight: 650;
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; margin: 0 0 36px;
}
.atm-also__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.atm-also__item {
  display: grid;
  grid-template-columns: 64px 240px 1fr;
  gap: 20px; align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background .25s, padding-left .25s;
}
.atm-also__item:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); padding-left: 16px; }
.atm-also__n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.atm-also__name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.atm-also__b { font-size: 14.5px; color: var(--ink-2); }
.atm-also__note { margin-top: 20px; font-size: 13px; color: var(--ink-2); font-family: var(--f-mono); }

/* ============ APPROACH — connected steps with drawing line ============ */
.atm-approach__track { position: relative; padding-top: 8px; }
.atm-approach__line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.atm-approach__line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}
.atm-approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 40px; }
.atm-approach__col {
  /* each step fades in as the line reaches it */
  opacity: clamp(0.25, calc(var(--p, 0) * 4 - var(--i)), 1);
  transform: translateY(calc(clamp(0, calc(1 - (var(--p, 0) * 4 - var(--i))), 1) * 24px));
}
.atm-approach__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.atm-approach__t {
  font-family: var(--f-display); font-weight: 650;
  font-size: 22px; letter-spacing: -0.015em; margin: 14px 0 10px; line-height: 1.3;
}
.atm-approach__b { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* ============ CONTACT ============ */
.atm-contact { text-align: center; }
.atm-contact__body { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 auto 48px; }
.atm-contact__mail {
  display: inline-flex; align-items: baseline; gap: 18px;
  padding: 28px 48px;
  border-radius: 100px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  transition: transform .35s var(--ease-out), box-shadow .35s, background .25s;
}
.atm-contact__mail:hover {
  transform: translateY(-3px);
  background: color-mix(in oklab, var(--accent) 13%, transparent);
  box-shadow: 0 24px 70px -24px color-mix(in oklab, var(--accent-2) 80%, transparent);
}
.atm-contact__mail-label { display: none; }
.atm-contact__mail-addr {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: clamp(20px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  background: linear-gradient(100deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.atm-contact__mail-arrow { font-size: clamp(18px, 2.4vw, 30px); color: var(--accent); }
.atm-contact__info {
  margin-top: 80px;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  text-align: left;
  border-top: 1px solid var(--rule);
  padding-top: 44px;
}
.atm-contact__k {
  display: block;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 10px;
}
.atm-contact__v { font-size: 15px; line-height: 1.6; color: var(--ink); }
.atm-contact__v--strong { font-weight: 600; }
.atm-contact__socials { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.atm-social { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.atm-social:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.atm-footer {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: 64px var(--gutter) 40px;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}
.atm-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.atm-footer__mark { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.atm-footer__tag { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.atm-footer__links { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.atm-footer__links a:hover { color: var(--ink); }
.atm-footer__bottom { margin-top: 56px; }
.atm-footer__legal { font-size: 12.5px; color: var(--ink-2); }
.atm-footer__big {
  display: block;
  margin-top: 28px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 130px);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 36%, transparent), color-mix(in oklab, var(--accent-2) 50%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ============ TWEAKS PANEL SWATCHES ============ */
.atm-tweak-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.atm-tweak-sw { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; background: transparent; color: var(--ink); transition: all .18s; }
.atm-tweak-sw:hover { border-color: var(--ink-2); }
.atm-tweak-sw.is-active { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.atm-tweak-sw__swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid; flex-shrink: 0; }
.atm-tweak-sw__name { font-size: 13px; font-weight: 500; }

/* ============ MOBILE CHROME (bezel preview) ============ */
.atm-mobile { padding: 92px 24px 60px; display: grid; place-items: start center; min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--accent-2) 40%, transparent), transparent 60%), var(--cream); }
.atm-mobile__bezel { width: 412px; height: 880px; border-radius: 56px; background: #15101a; padding: 14px; box-shadow: 0 0 0 1.5px #2a2236, 0 40px 80px -20px rgba(0,0,0,0.55); position: relative; overflow: hidden; }
.atm-mobile__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 120px; height: 32px; background: #15101a; border-radius: 100px; z-index: 4; }
.atm-mobile__status { position: absolute; top: 26px; left: 30px; right: 30px; display: flex; justify-content: space-between; color: #efe8f7; font-size: 14px; font-weight: 600; z-index: 3; }
.atm-mobile__status-right { display: flex; gap: 6px; font-size: 12px; }
.atm-mobile__nav { position: absolute; top: 62px; left: 14px; right: 14px; height: 44px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in oklab, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-radius: 44px 44px 0 0; z-index: 3; border-bottom: 1px solid var(--rule); }
.atm-mobile__brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.atm-mobile__viewport { position: absolute; top: 106px; left: 14px; right: 14px; bottom: 14px; border-radius: 0 0 42px 42px; background: var(--cream); overflow: hidden auto; scroll-behavior: smooth; }
.atm-mobile__home { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 5px; background: var(--cream); opacity: 0.9; z-index: 5; }
.atm-root--mobile { --maxw: 100%; --gutter: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .atm-about__grid { grid-template-columns: 1fr; }
  .atm-about__visual { min-height: 360px; }
  .atm-believe__grid { grid-template-columns: 1fr; }
  .atm-prod-card { grid-template-columns: 1fr; min-height: 0; }
  /* show the full portrait product image — no crop on small screens */
  .atm-prod-card__visual { min-height: 0; order: -1; }
  .atm-prod-card__visual img { position: relative; inset: auto; width: 100%; height: auto; }
  .atm-prod-card__visual::after { display: none; }
  /* cards flow normally instead of stacking sticky — avoids tall overlapping cards */
  .atm-stack { gap: 28px; }
  .atm-stack__item { position: relative; top: auto; transform: none !important; opacity: 1 !important; }
  .atm-approach__grid { grid-template-columns: 1fr; gap: 40px; }
  .atm-approach__line { display: none; }
  .atm-approach__col { opacity: 1; transform: none; }
  .atm-contact__info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; --radius-lg: 26px; --radius-md: 18px; }
  body { font-size: 16px; }
  .atm-top__nav { display: none; }
  .atm-section { padding: 88px var(--gutter); }
  .atm-hero { height: 156vh; }
  .atm-sheet { margin-top: -56vh; }
  .atm-hero__h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .atm-manifesto { height: 200vh; }
  .atm-manifesto__text { font-size: clamp(24px, 7vw, 34px); }
  .atm-about__stats { grid-template-columns: 1fr; gap: 14px; }
  .atm-stat { padding: 24px 28px; }
  .atm-also__item { grid-template-columns: 40px 1fr; }
  .atm-also__b { grid-column: 2; }
  .atm-stack__item { top: calc(var(--navh) + 2vh); }
  .atm-contact__mail { padding: 20px 28px; gap: 12px; }
  .atm-footer__big { white-space: normal; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atm-reveal { opacity: 1; transform: none; transition: none; }
  .atm-hero { height: auto; }
  .atm-hero__pin { position: relative; opacity: 1; transform: none; height: 100vh; }
  .atm-sheet { margin-top: 0; }
  .atm-mesh { transform: none !important; }
  .atm-hero__scrollcue::after { animation: none; height: 24px; }
  .atm-manifesto { height: auto; }
  .atm-manifesto__pin { position: relative; height: auto; padding: 140px var(--gutter); }
  .atm-manifesto__text .atm-w { opacity: 1; transition: none; }
  .atm-manifesto .atm-eyebrow { position: static; transform: none; display: block; text-align: center; margin-bottom: 32px; }
  .atm-stack__item { position: relative; top: auto; transform: none !important; opacity: 1 !important; }
  .atm-approach__col { opacity: 1 !important; transform: none !important; }
  .atm-approach__line::after { transform: none; }
  .atm-about__visual img { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
