/* Alta - shared styles (nav, buttons, sheet, dock). */
@font-face { font-family: "Haffer XH"; src: url("../fonts/Haffer-XH-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Haffer"; src: url("../fonts/Haffer-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Haffer Mono"; src: url("../fonts/Haffer-Mono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unica"; src: url("../fonts/NeueHaasUnicaRegular.75b765d.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unica"; src: url("../fonts/NeueHaasUnica-Light.7e1e3a1.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --paper: #f5f3ed;
  --ink: #111111;
  --ink-2: #55534d;
  --rule: rgba(17,17,17,.14);
  --yellow: #fcff00;            /* their tote dot, sampled */
  --nav-h: 78px;
  --tick-h: 54px;
  --gut: clamp(24px, 3.4vw, 64px);
  --ease: cubic-bezier(.22,1,.36,1);
  --mono: "Haffer Mono", ui-monospace, monospace;
  --sans: "Unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Haffer XH", "Haffer", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body { font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 20; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gut); border-bottom: 1px solid var(--rule); background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.brand__mark { width: 66px; height: auto; transform: translateY(-1px); }
.brand__sub { font: 400 10.5px/1.25 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding-left: 14px; border-left: 1px solid var(--rule); }
.links { display: flex; gap: 30px; font: 400 14.5px/1 var(--sans); }
.links a { position: relative; padding: 9px 0; display: inline-block; }
.links a .clip { display: block; overflow: hidden; line-height: 1.2; height: 1.2em; }
.links a span span { display: block; position: relative; transition: transform .45s var(--ease); }
.links a span span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.links a:hover span span { transform: translateY(-100%); }
.links a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.links a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.phone { font: 400 13px/1 var(--mono); letter-spacing: .06em; display: inline-flex; gap: 8px; align-items: center; }
.phone small { font-size: 10.5px; color: var(--ink-2); letter-spacing: .14em; text-transform: uppercase; }
.phone:hover b { background: var(--yellow); }
.phone b { font-weight: 400; padding: 3px 2px; transition: background .25s ease; }
.burger { display: none; }

/* buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px 0 20px;
  border-radius: 999px; background: var(--bg); color: var(--fg); font: 500 15px/1 "Haffer", var(--sans); letter-spacing: .005em;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border-radius: inherit;
  clip-path: circle(0 at 26px 50%); transition: clip-path .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at 26px 50%); }
.btn:hover, .btn:focus-visible { color: var(--ink); background-color: var(--yellow); transition: color .35s var(--ease), background-color 0s linear .32s; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--yellow); transition: color .35s var(--ease), background-color 0s linear .32s, box-shadow 0s linear .32s; }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; transition: background .35s var(--ease), transform .5s var(--ease); }
.btn:hover .dot { background: var(--ink); transform: scale(.7); }
.btn .arr { width: 16px; height: 10px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 18px 0 15px; font-size: 14px; gap: 10px; }
.btn--sm::before { clip-path: circle(0 at 20px 50%); }
.btn--sm:hover::before { clip-path: circle(150% at 20px 50%); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost .dot { background: var(--ink); }
.btn--ghost:hover .dot { background: var(--ink); }


/* ---------- shop sheet (cut-settle-menu + stretch-pill-nav) ---------- */
.csm { --csm-bg: var(--paper); --csm-ink: var(--ink); --csm-pad: 28px var(--gut) 60px; --csm-cols: minmax(1px, .55fr) minmax(1px, 1fr); }
.sheet-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sheet-top img { width: 66px; }
.spill-nav { --spill-bg: var(--ink); --spill-ink: var(--paper); --spill-ink-hover: rgba(245,243,237,.55); --spill-back-bg: var(--yellow);
  --spill-size: clamp(26px, 2.6vw, 40px); --spill-min: 260px; --spill-max: 360px; --spill-gap: 8px;
  --spill-font: 400 var(--spill-size)/1.35 var(--display); }
.spill--back { color: var(--ink) !important; }
.sheet-list h2 { font: 400 10.5px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); padding: 10px 0 14px; border-bottom: 1px solid var(--rule); }
.sheet-list ul { list-style: none; columns: 2; column-gap: 40px; }
.sheet-list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.sheet-list li a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font: 400 clamp(20px, 1.9vw, 28px)/1.1 var(--display); letter-spacing: -.02em; transition: padding .4s var(--ease); }
.sheet-list li a::after { content: "\2197"; font: 400 15px var(--sans); opacity: 0; transition: opacity .3s ease; }
.sheet-list li a:hover { padding-left: 10px; }
.sheet-list li a:hover::after { opacity: 1; }
.sheet-foot { margin-top: 26px; font: 400 13px/1.6 var(--mono); color: var(--ink-2); }

/* ---------- phone dock ---------- */
.dock { display: none; }
.show-s { display: none; }

@media (max-width: 1180px) {
  .links { display: none; }
  .burger { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); }
  .burger i { width: 14px; height: 7px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; --gut: 20px; }
  .brand__mark { width: 54px; }
  .brand__sub { font-size: 9px; padding-left: 11px; }
  .nav__end .phone, .nav__end .btn { display: none; }
  .hide-s { display: none; }
  .show-s { display: inline; }
  .dock { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; padding: 8px; border-radius: 999px; background: rgba(17,17,17,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .dock a { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; font: 500 15px/1 "Haffer", var(--sans); color: var(--paper); }
  .dock a:last-child { background: var(--yellow); color: var(--ink); }
  .dock svg { width: 16px; height: 16px; }
  .csm { --csm-cols: 1fr; }
  .sheet-list ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
