/* Otta Digital · page styles. The engine is scrollcraft.css; this file owns the
   brand tokens, the three grounds, and every piece of page markup. */

:root {
  --sc-canvas:      #1F1E1B;
  --sc-surface:     #2B2925;
  --sc-ink:         #F1F0EB;
  --sc-ink-soft:    #B5AE9F;
  --sc-accent:      #E39A16;
  --sc-accent-ink:  #1F1E1B;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, "SF Mono", monospace;
  --sc-r-sm: 4px; --sc-r-md: 6px; --sc-r-lg: 10px;
  --sc-shadow-color: 40 12% 4%;
  --sc-maxw: 90rem;

  --black: #1F1E1B;
  --amber: #E39A16;
  --bone:  #F1F0EB;
  --bar-h: 4rem;
  --dot: var(--amber);
}
@media (max-width: 720px) { :root { --bar-h: 3.5rem; } }

/* ---- the three grounds. Hard cuts, painted per section, no drift. ---------
   `color` is restated wherever the ink token is, because inherited colour is
   computed on the body and does not re-resolve when a subtree redefines the
   token. */
.g-dark  { --sc-canvas:#1F1E1B; --sc-surface:#2B2925; --sc-ink:#F1F0EB; --sc-ink-soft:#B5AE9F; --sc-accent:#E39A16; --sc-accent-ink:#1F1E1B; --dot:#E39A16; background:#1F1E1B; color:#F1F0EB; }
.g-amber { --sc-canvas:#E39A16; --sc-surface:#EDAA33; --sc-ink:#1F1E1B; --sc-ink-soft:#4A3407; --sc-accent:#1F1E1B; --sc-accent-ink:#E39A16; --dot:#1F1E1B; background:#E39A16; color:#1F1E1B; }
.g-bone  { --sc-canvas:#F1F0EB; --sc-surface:#FFFFFF; --sc-ink:#1F1E1B; --sc-ink-soft:#635D52; --sc-accent:#8F5A00; --sc-accent-ink:#F1F0EB; --dot:#E39A16; background:#F1F0EB; color:#1F1E1B; }

/* light on dark gets one step more weight and a touch more tracking */
.g-dark .sc-body, .g-dark .lede { font-weight: 450; letter-spacing: 0.003em; }

/* ---- type ------------------------------------------------------------------ */
.disp {
  font-family: var(--sc-font-display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
.disp--hero { font-size: clamp(2.9rem, 0.6rem + 7.6vw, 8.6rem); }
.disp--xl   { font-size: clamp(2.6rem, 0.8rem + 6.4vw, 7.6rem); }
.disp--lg   { font-size: clamp(2.1rem, 1rem + 3.9vw, 4.9rem); }
.disp--md   { font-size: clamp(1.55rem, 1rem + 1.9vw, 2.75rem); letter-spacing: -0.022em; line-height: 0.98; }
.lede {
  font-size: var(--sc-t-lg);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 44ch;
  text-wrap: pretty;
  margin: 0;
}
.sc-body { max-width: 58ch; }
.sc-label { margin: 0; }

/* ---- layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.cut { position: relative; padding-block: clamp(3.5rem, 7vw, 7rem); scroll-margin-top: var(--bar-h); }
.cut > .wrap > * + *, .svc-lead > * + *, .svc > * + *, .case__copy > * + *, .about__copy > * + * { margin-top: var(--sc-4); }
.svc-lead > h2 + p, .about__copy > h2 + p { margin-top: var(--sc-5); }
.case__copy > .sc-label + h3 { margin-top: var(--sc-3); }

/* ---- the living dot (fixed chrome) ---------------------------------------- */
.dot {
  position: fixed; left: 0; top: 0; z-index: 55;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--amber);
  transform-origin: 50% 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: background-color 220ms var(--sc-ease-out);
}
.dot.is-on { opacity: 1; }
.dot[data-color="ink"]  { background: var(--black); }
.dot[data-color="bone"] { background: var(--bone); }
/* anchors: visible by default (no JS, reduced motion), hidden once the fixed
   dot takes over so there is never a doubled full stop */
.dot-anchor--period {
  display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--dot); margin-left: 0.05em; vertical-align: baseline;
}
.hero__loop .dot-anchor { fill: var(--amber); }
.dot-live .dot-anchor--period { background: transparent; }
.dot-live .hero__loop .dot-anchor { fill: transparent; }

/* ---- bar ------------------------------------------------------------------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-6);
  padding-inline: var(--sc-gutter);
  background: var(--bone); color: var(--black);
  border-bottom: 2px solid var(--black);
}
.bar a { color: inherit; text-decoration: none; }
.bar a.bar__cta { color: var(--bone); }
.bar__mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap;
}
.bar__mark svg { width: 2.5rem; height: auto; }
.bar__nav { display: flex; gap: var(--sc-6); margin-inline-start: auto; }
.bar__nav a {
  font-weight: 600; font-size: var(--sc-t-sm);
  text-underline-offset: 0.3em; text-decoration-thickness: 2px;
  transition: text-decoration-color 140ms var(--sc-ease-out);
}
.bar__nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.bar__cta {
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--black); color: var(--bone);
  padding: 0.6rem 0.95rem; border-radius: var(--sc-r-sm);
  transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.bar__cta:hover { background: #3a3733; }
.bar__cta:active { transform: scale(0.97); }
@media (max-width: 720px) {
  .bar { gap: var(--sc-4); }
  .bar__nav { display: none; }
  .bar__cta { margin-inline-start: auto; }
}

/* ---- buttons and links ---------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: var(--sc-t-base); letter-spacing: -0.01em; white-space: nowrap;
  padding: 0.95rem 1.35rem; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  text-decoration: none;
  box-shadow: var(--sc-e2);
  transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--sc-accent) 86%, white); }
.btn:active { transform: scale(0.97); }
.link {
  font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  transition: text-decoration-color 140ms var(--sc-ease-out);
}
.link:hover { text-decoration-color: currentColor; }

/* ---- 1 hero ---------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--bar-h) + clamp(2rem, 5vh, 4rem));
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  display: grid; align-content: end;
  overflow: clip;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  align-items: end; column-gap: var(--sc-6);
}
.hero__copy > * + * { margin-top: var(--sc-5); }
.hero__copy .lede { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-5); margin-top: var(--sc-6); }
.hero__loop {
  width: 100%; max-width: 46vw; height: auto;
  justify-self: end; align-self: center;
  color: var(--sc-ink);
  margin-bottom: clamp(1rem, 6vh, 5rem);
}
.hero__loop path { transition: stroke-dashoffset 1100ms var(--sc-ease-out); }
@media (max-width: 860px) {
  .hero { align-content: start; padding-top: calc(var(--bar-h) + 1.25rem); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__loop { order: -1; max-width: 100%; width: 100%; margin: 0 0 var(--sc-6); justify-self: stretch; }
  .disp--hero { font-size: clamp(2.6rem, 1.4rem + 7vw, 3.6rem); }
}

/* ---- 2 the jolt ------------------------------------------------------------ */
.lean { min-height: 82svh; display: grid; align-content: center; }
.lean .disp--xl { max-width: 13ch; }
.lean .lede { margin-top: var(--sc-6); max-width: 46ch; }

/* ---- 3 and 4 services ------------------------------------------------------ */
.svc-cut { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.svc-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.svc-grid--flip .svc-lead { order: 2; }
.svc-grid--flip .svc-list { order: 1; }
.svc-lead .disp--lg { max-width: 12ch; }
.svc-list { display: grid; row-gap: var(--sc-6); }
.svc { padding-top: var(--sc-5); border-top: 2px solid var(--sc-hairline-strong); }
.svc:first-child { border-top-color: var(--sc-ink); }
.inc { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; padding: 0; margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.inc li::before { content: ""; display: inline-block; width: 0.4em; height: 0.4em; border-radius: 50%; background: var(--dot); margin-right: 0.5em; vertical-align: 0.1em; }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; row-gap: var(--sc-6); }
  .svc-grid--flip .svc-lead { order: 1; }
  .svc-grid--flip .svc-list { order: 2; }
}

/* ---- 5 the breath ---------------------------------------------------------- */
.breath { min-height: 92svh; display: grid; align-content: center; text-align: center; }
.breath .sc-label { margin-bottom: var(--sc-5); }

/* ---- 6 to 10 cases --------------------------------------------------------- */
.case { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.case__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: var(--sc-6); align-items: center;
}
.case--right .case__copy { grid-column: 1 / 6; }
.case--right .plate      { grid-column: 6 / 13; }
.case--left  .plate      { grid-column: 1 / 6; }
.case--left  .case__copy { grid-column: 7 / 13; }
.case--left  .plate--tall { grid-column: 2 / 6; }
.case__grid--below { margin-top: var(--sc-7); align-items: start; }
.case__grid--below .case__copy:first-child { grid-column: 1 / 7; }
.case__grid--below .case__copy:last-child  { grid-column: 8 / 13; }
.case .disp--md { max-width: 20ch; }
.plate { margin: 0; }
.plate img { width: 100%; height: auto; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); }
.plate__tilt { border-radius: var(--sc-r-md); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; margin-top: var(--sc-5); }
.tags li {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  padding: 0.4rem 0.6rem; border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
  color: var(--sc-ink);
}
@media (max-width: 860px) {
  .case__grid > * { grid-column: 1 / -1 !important; }
  .case--left .plate, .case--right .plate { order: -1; }
  .case--left .plate--tall { max-width: 70%; margin-inline: auto; }
  .case__grid--below { margin-top: var(--sc-6); row-gap: var(--sc-4); }
  .case .disp--md { max-width: none; }
}

/* ---- 11 about -------------------------------------------------------------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about__photo { max-width: 26rem; }
.about__copy .lede { max-width: 46ch; }
.rows { list-style: none; padding: 0; margin: 0; margin-top: var(--sc-7); max-width: 40rem; }
.rows li {
  font-family: var(--sc-font-display); font-weight: 700; font-stretch: 106%;
  font-size: var(--sc-t-lg); letter-spacing: -0.015em; line-height: 1.2;
  padding-block: 0.85rem; border-top: 2px solid var(--sc-hairline-strong);
}
.rows li:first-child { border-top-color: var(--sc-ink); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; row-gap: var(--sc-5); }
  .about__photo { max-width: 44%; }
  .rows { margin-top: var(--sc-6); }
  .rows li { padding-block: 0.6rem; }
}

/* ---- 12 close -------------------------------------------------------------- */
.close { min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--bar-h) + var(--sc-8)); }
.close__inner > * + * { margin-top: var(--sc-5); }
.close__mail {
  display: inline-block; margin-top: var(--sc-7);
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.6rem, 0.6rem + 4.6vw, 5.2rem); letter-spacing: -0.03em; line-height: 1;
  color: var(--sc-accent); text-decoration: none; word-break: break-word;
  transition: color 140ms var(--sc-ease-out);
}
.close__mail:hover { color: color-mix(in oklab, var(--sc-accent) 80%, white); }
.close__li { display: table; margin-top: var(--sc-5); }
.foot {
  display: flex; flex-wrap: wrap; gap: var(--sc-4) var(--sc-6); align-items: center;
  margin-top: clamp(3rem, 10vh, 7rem); padding-top: var(--sc-5);
  border-top: 1px solid var(--sc-hairline-strong);
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.foot__mark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%; }
.foot__mark svg { width: 2rem; height: auto; }
.foot__note { max-width: 52ch; }

/* ---- reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__loop path { transition: none; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .dot { display: none; }
}

/* ---- four offerings in the "what" cut ------------------------------------ */
.svc-list--four { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: var(--sc-6); }
.svc-list--four .svc:nth-child(2) { border-top-color: var(--sc-ink); }
@media (max-width: 860px) { .svc-list--four { grid-template-columns: 1fr; } .svc-list--four .svc:nth-child(2) { border-top-color: var(--sc-hairline-strong); } }

/* ---- galleries: native scroll-snap, arrows, dots -------------------------- */
.gal { position: relative; }
.gal__track {
  display: flex; gap: var(--sc-4);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--sc-r-md);
  -webkit-overflow-scrolling: touch;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
.gal__track > img {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  width: 100%; height: auto; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3);
}
.gal--tall .gal__track > img { flex-basis: 100%; }
.gal__nav { display: flex; align-items: center; gap: var(--sc-4); margin-top: var(--sc-4); }
.gal__btn {
  width: 2.5rem; height: 2.5rem; border-radius: var(--sc-r-sm);
  border: 2px solid var(--sc-ink); background: transparent; color: var(--sc-ink);
  cursor: pointer; position: relative;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.gal__btn::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.6rem; height: 0.6rem;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translate(-35%, -50%) rotate(45deg);
}
.gal__btn--next::before { transform: translate(-65%, -50%) rotate(-135deg); }
.gal__btn:hover { background: var(--sc-ink); color: var(--sc-canvas); }
.gal__btn:active { transform: scale(0.95); }
.gal__btn[disabled] { opacity: 0.3; cursor: default; background: transparent; color: var(--sc-ink); }
.gal__dots { display: flex; gap: 0.45rem; }
.gal__dots i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sc-ink); opacity: 0.25; transition: opacity 140ms var(--sc-ease-out); }
.gal__dots i.is-on { opacity: 1; background: var(--dot); }
.g-amber .gal__dots i.is-on { background: var(--sc-ink); }
.gal__count { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: var(--sc-track-wide); color: var(--sc-ink-soft); margin-inline-start: auto; }

/* ---- what clients say ----------------------------------------------------- */
.said .disp--lg { max-width: 12ch; }
.said__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(2rem, 6vw, 6rem); row-gap: var(--sc-7); align-items: start;
  margin-top: var(--sc-7);
}
.quote { margin: 0; padding-top: var(--sc-5); border-top: 2px solid var(--sc-ink); }
.quote__text {
  margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-stretch: 104%;
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2rem); line-height: 1.22; letter-spacing: -0.02em; text-wrap: pretty;
}
.quote__who { margin-top: var(--sc-5); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
@media (max-width: 860px) { .said__grid { grid-template-columns: 1fr; row-gap: var(--sc-6); } }

/* about rows: five now, slightly tighter */
.rows li { padding-block: 0.7rem; }

/* keep the wide plate inside the cut budget */
.plate--wide { max-width: 68rem; margin-inline: auto; }
@media (max-width: 860px) { .about__photo { max-width: 36%; } }

/* four-up headings sit on one or two lines; the phone gallery stays a phone */
.svc-list--four .disp--md { font-size: clamp(1.4rem, 1rem + 1.35vw, 2.2rem); }
.gal--tall { max-width: 22rem; }
@media (max-width: 860px) { .case--left .plate--tall { max-width: 60%; } }
