/* ---------------------------------------------------------------------------
   Ashridge — styles
   Brand system follows the Concrete guidelines.
   Type: Archivo (headlines/body) · DM Mono (eyebrows, numerals), via Google Fonts.
   Palette: White #FFFFFF · Black #000000 · Cement #C6C7C5 · Graphite #444444
            Accent: Morpho-style blue  #3C80FF (default) · #86B1FF (light) · #003185 (midnight)
   Leading: headline ×1.1 · subhead ×1.2 · body ×1.4
--------------------------------------------------------------------------- */


:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #141414;
  --cement: #c6c7c5;
  --blue: #3c80ff;
  --blue-light: #86b1ff;
  --blue-deep: #2b76ff;
  --midnight: #003185;
  --graphite: #444444;
  --sand: var(--blue);
  --grain: var(--blue-light);
  --sandstone: var(--blue);
  --fieldstone: var(--blue-deep);
  --slate: #333333;
  --dim: #666666;
  --gray: #999999;

  --line: rgba(255,255,255,.14);
  --sans: "Archivo", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
h1 { font-size: clamp(34px, 7vw, 92px); overflow-wrap: anywhere; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
h4 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
canvas { display: block; }

/* --- mono eyebrow ---------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 5px 9px 4px;
  line-height: 1;
}

/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 22px; line-height: 1;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--blue-light); }
.btn-sand { background: var(--blue); color: var(--white); }
.btn-sand:hover { background: var(--blue-deep); }
.link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--blue-light); }

/* --- logo: ridge mark + mono wordmark ---------------------------------- */
.wordmark, .footer-mark { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.mark { width: 22px; height: 22px; flex: none; }
.wordmark-text { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .22em; line-height: 1; }
.footer-mark .mark { width: 40px; height: 40px; }
.footer-mark .wordmark-text { font-size: 16px; }

/* --- nav ------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--white);
}
.nav-links { display: flex; gap: clamp(20px, 3.5vw, 48px); font-size: 14px; }
.nav-links a { opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--white); transition: transform .25s; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* --- hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 24px;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
}
.hero-content { position: relative; margin-bottom: 44px; }
/* --- coming soon badge ---------------------------------------------------- */
.coming-soon {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  font-family: var(--mono); font-weight: 500; font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: .18em; text-transform: uppercase; color: var(--white);
  background: var(--blue); padding: 14px 22px 13px; line-height: 1;
}
.coming-soon::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.hero-note { position: relative; align-self: flex-end; font-size: 13px; color: var(--cement); text-align: right; max-width: 100%; }
.hero-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* --- intro ----------------------------------------------------------------- */
.intro { text-align: center; padding: 120px var(--gutter) 100px; background: var(--ink); }
.intro h2 { margin-top: 56px; font-size: clamp(22px, 2.8vw, 36px); max-width: 1000px; margin-inline: auto; }

/* --- flow strip ------------------------------------------------------------ */
.flow {
  min-width: 0;
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.flow-bars { height: 160px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--midnight) 0 22px, transparent 22px 44px, var(--blue) 44px 56px, transparent 56px 84px);
}
.flow-bars-left { mask-image: linear-gradient(90deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); }
.flow-bars-right { mask-image: linear-gradient(270deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); }
.flow-track {
  min-width: 0; max-width: 100%;
  list-style: none; margin: 0; padding: 28px 24px;
  display: flex; align-items: stretch; gap: 0;
}
.flow-track li {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding: 0 28px;
  border-right: 1px solid var(--line);
}
.flow-track li:last-child { border-right: 0; }
.flow-label { font-size: 15px; }
.flow-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; line-height: 1; white-space: nowrap;
  background: rgba(255,255,255,.03);
}
.flow-chip img, .coin { width: 26px; height: 26px; border-radius: 50%; display: block; flex: none; }
.flow-chip-stack { padding-right: 5px; gap: 0; }
.flow-chip-stack img { margin-left: -7px; box-shadow: 0 0 0 2px var(--ink); }
.flow-chip-stack img:first-child { margin-left: 0; }
.coin { display: grid; place-items: center; }
.coin-ash { background: var(--white); color: var(--black); }
.coin-ash svg { width: 20px; height: 20px; }
.flow-chip-canton { padding-left: 12px; gap: 10px; }
.flow-chip img.canton-mark { width: auto; height: 14px; border-radius: 0; }

/* --- products -------------------------------------------------------------- */
.products { position: relative; background: var(--ink); }
.side-index {
  position: sticky; top: 0; float: left; height: 100svh; width: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px 0 40px; border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim);
  z-index: 2;
}
.side-index span { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; transition: color .3s; }
.side-index span.active { color: var(--white); }
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100svh; margin-left: 56px;
  border-bottom: 1px solid var(--line);
}
.product-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 64px; }
.product-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.product-copy p { max-width: 440px; color: var(--cement); }
.product-art { margin: 0; position: relative; min-height: 50vh; border-left: 1px solid var(--line); overflow: hidden; }
.product-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- blue banner ------------------------------------------------------ */
.banner {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: var(--white);
  min-height: 300px;
}
.banner-copy { display: flex; align-items: center; padding: 56px var(--gutter); }
.banner-grid {
  background-image: linear-gradient(var(--midnight) 1px, transparent 1px), linear-gradient(90deg, var(--midnight) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .8;
}

/* --- canton ---------------------------------------------------------------- */
.canton { display: grid; grid-template-columns: 1fr 2fr; background: var(--black); }
.canton-head { padding: 96px var(--gutter); border-right: 1px solid var(--line); }
.canton-head p { color: var(--cement); margin-top: 10px; }
.canton-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.canton-grid li { padding: 48px var(--gutter); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.canton-grid li:nth-child(odd) { border-left: 0; }
.canton-grid li:nth-last-child(-n+2) { border-bottom: 0; }
.canton-grid h4 { margin: 28px 0 12px; }
.canton-grid p { color: var(--cement); max-width: 360px; }

/* --- contact --------------------------------------------------------------- */
.contact { text-align: center; padding: 140px var(--gutter); background: var(--ink); border-top: 1px solid var(--line); }
.contact h2 { margin: 48px auto 40px; }

/* --- footer ---------------------------------------------------------------- */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 56px var(--gutter) 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-cols .eyebrow { margin-bottom: 6px; }
.footer-cols a { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--cement); }
.footer-cols a:hover { color: var(--blue-light); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--gray); margin-top: 40px; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  h1 br, .contact h2 br { display: none; }
  .hero-note { align-self: flex-start; text-align: left; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav .btn { display: none; }
  .nav.open .nav-links { display: flex; position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; align-items: center; gap: 28px; font-size: 24px; z-index: -1; }
  .side-index { display: none; }
  .product { grid-template-columns: minmax(0, 1fr); margin-left: 0; min-height: 0; }
  .product-copy { order: 2; padding: 40px var(--gutter) 56px; }
  .product-art { order: 1; min-height: 56vw; border-left: 0; border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-bars { display: none; }
  .flow-track { overflow-x: auto; padding: 24px 16px; }
  .banner { grid-template-columns: 1fr; }
  .banner-grid { min-height: 160px; }
  .canton { grid-template-columns: 1fr; }
  .canton-head { border-right: 0; border-bottom: 1px solid var(--line); padding: 64px var(--gutter); }
  .canton-grid { grid-template-columns: 1fr; }
  .canton-grid li { border-left: 0; }
  .canton-grid li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .canton-grid li:last-child { border-bottom: 0; }
  .footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .coming-soon::before { animation: none; } }
