/* Fonts are served from this site (assets/fonts): no third-party requests. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/jost-roman.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/newsreader-roman.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('../fonts/newsreader-italic.woff2') format('woff2'); }

/* Eyegasmic — shared foundation. Colour names follow the Eyekonic Brands palette. */
:root {
  --obsidian: #0b0908;
  --char: #120e0c;
  --oak: #1d150f;
  --walnut: #2a1d14;
  --hair: rgba(201, 160, 99, 0.16);
  --hair-strong: rgba(201, 160, 99, 0.34);
  --bone: #ece3d1;
  --bone-2: #b9ad9b;
  --bone-3: #8f8574;
  --brass: #c4995f;
  --brass-deep: #8f6f43;
  --ember: #b5482a;
  --ember-lit: #d0623f;
  --midnight: #1f2c4d;
  --midnight-lit: #8093c7;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --gut: clamp(20px, 4.6vw, 76px);
  --nav-h: 76px;
  --k: 1; /* motion time scale; JS lowers it for returning visitors */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: opacity 0.4s ease;
}
body.leaving { opacity: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: 'opsz' 72; letter-spacing: -0.012em; line-height: 1.05; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--brass); color: var(--obsidian); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain: a material texture for the whole page, not a wash. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }

/* ---------- Wordmark: the horn stands in for the Y ---------- */
.wm {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
}
.wm .l { display: inline-block; }
.wm .wm-y { display: inline-block; position: relative; width: 0.86em; height: 0.7em; margin-right: 0.2em; }
.wm .wm-y svg { position: absolute; left: 50%; top: -0.02em; height: 0.94em; width: auto; transform: translateX(-50%); overflow: visible; color: currentColor; }
.wm .l:last-child { margin-right: -0.2em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gut);
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(11, 9, 8, 0.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--hair); }
.nav.hide { transform: translateY(-100%); }
.nav-brand { display: inline-flex; align-items: center; gap: 14px; }
.nav-brand .nav-mark { height: 30px; width: auto; color: var(--brass); }
.nav-brand .wm { font-size: 0.95rem; letter-spacing: 0.3em; color: var(--bone); }
.nav-links { display: none; gap: clamp(20px, 3vw, 44px); font-size: 0.95rem; color: var(--bone-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cta { display: none; font-size: 0.9rem; padding: 10px 20px; border: 1px solid var(--hair-strong); color: var(--bone); transition: background 0.4s, border-color 0.4s, color 0.4s; }
.nav-cta:hover { background: var(--bone); color: var(--obsidian); border-color: var(--bone); }
.nav-bag { display: none; position: relative; font-size: 0.9rem; color: var(--bone-2); }
.nav-bag.on { display: inline-flex; gap: 8px; align-items: center; }
.nav-bag b { font-weight: 400; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brass); color: var(--obsidian); font-size: 0.75rem; display: inline-grid; place-items: center; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle i { display: block; width: 26px; height: 1px; background: var(--bone); transition: transform 0.5s var(--ease), opacity 0.3s; }
body.menu-open .nav-toggle i:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-toggle { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gut) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
body.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-io); }
body.menu-open { overflow: hidden; }
.menu a { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.25; display: block; }
.menu .menu-sub { margin-top: 28px; font-size: 0.95rem; color: var(--bone-3); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 32px; font-size: 0.98rem; font-weight: 400; letter-spacing: 0.02em;
  background: var(--bone); color: var(--obsidian); border: 1px solid var(--bone);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--hair-strong); }
.btn.ghost:hover { border-color: var(--bone); background: var(--bone); color: var(--obsidian); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: var(--obsidian); }
.btn.brass:hover { background: transparent; color: var(--brass); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--bone); padding-bottom: 6px; border-bottom: 1px solid var(--hair-strong); transition: border-color 0.4s, gap 0.5s var(--ease); }
.link:hover { border-color: var(--brass); gap: 20px; }
.link svg { width: 18px; height: 10px; }

/* ---------- Reveal (used sparingly) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--obsidian); border-top: 1px solid var(--hair); padding: 88px 0 0; }
.foot-top { display: grid; gap: 56px; }
.foot-tag { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 18ch; line-height: 1.15; color: var(--bone); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.foot-cols .fh { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--bone-3); margin-bottom: 16px; letter-spacing: 0.02em; }
.foot-cols a { display: block; padding: 4px 0; color: var(--bone-2); transition: color 0.3s; }
.foot-cols a:hover { color: var(--brass); }
.foot-legal { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: 0.8rem; line-height: 1.7; color: var(--bone-3); display: grid; gap: 10px; max-width: 78ch; }
.foot-giant { margin-top: 56px; display: flex; justify-content: center; color: var(--oak); font-size: clamp(2rem, 10.6vw, 12.5rem); user-select: none; padding-bottom: 0.08em; height: 0.92em; overflow: hidden; align-items: flex-start; }
.foot-giant .wm { letter-spacing: 0.2em; }
@media (min-width: 900px) {
  .foot-top { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ink-mark sizing helpers */
svg[data-ink] { color: var(--brass); overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; }
}

/* ---------- Access, spam guard, consent ---------- */
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--bone); color: var(--obsidian); transition: top 0.3s; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linklike { margin-left: 4px; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--brass); }
.consent { position: fixed; z-index: 250; left: 16px; right: 16px; bottom: 16px; max-width: 640px; padding: 20px 22px; background: var(--oak); border: 1px solid var(--hair-strong); display: grid; gap: 16px; font-size: 0.95rem; color: var(--bone-2); }
.consent a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.consent > div { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 12px 24px; min-height: 44px; }
@media (min-width: 700px) { .consent { left: 24px; right: auto; bottom: 24px; } }

/* ---------- Launch list signup ---------- */
.foot-lead { display: grid; gap: 36px; align-content: start; }
.list { display: grid; gap: 8px; max-width: 30rem; }
.list-h { font-family: var(--serif); font-size: 1.5rem; color: var(--bone); }
.list-p { font-size: 0.95rem; color: var(--bone-2); }
.list-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.list input[type=email] { flex: 1 1 200px; min-width: 0; min-height: 52px; background: none; border: 1px solid var(--hair-strong); padding: 0 16px; font: inherit; color: var(--bone); border-radius: 0; }
.list input[type=email]:focus { outline: none; border-color: var(--brass); }
.list .btn { min-height: 52px; padding: 0 26px; white-space: nowrap; }
.list .msg { min-height: 1.4em; font-size: 0.95rem; color: var(--bone-2); }
.list .msg.ok { color: var(--brass); } .list .msg.bad { color: var(--ember-lit); }
