/* ==============================================================
   Seanchus Labs — implemented from "Seanchus Labs v2.dc.html"
   Palette: cream #EDE4D3 · ink #1E1B17 · oxblood #C0341F
   Type: Archivo (display/body) · Space Mono (labels)
   ============================================================== */

:root {
  --cream: #EDE4D3;
  --ink: #1E1B17;
  --red: #C0341F;
  --body-dark: #38332B;
  --sand: #B8AE9C;
  --taupe: #948A78; /* AA-legible on ink at small sizes (5.0:1) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Clips the rotated band's horizontal overhang without creating a
   scroll container on body (overflow on body propagates to the
   viewport and can block page scrolling entirely). */
.page {
  position: relative;
  overflow: clip;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

::selection { background: var(--red); color: var(--cream); }

.mono { font-family: 'Space Mono', ui-monospace, monospace; }
.accent { color: var(--red); }

/* ---------- Keyframes ---------- */

@keyframes slHeart {
  0% { transform: scale(1) rotate(0deg); }
  12% { transform: scale(1.14) rotate(-2deg); }
  24% { transform: scale(1) rotate(0deg); }
  36% { transform: scale(1.1) rotate(2deg); }
  52% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes slRise {
  from { opacity: 0; transform: translateY(40px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Loader ---------- */

.sl-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}

.sl-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.3%;
  background: var(--cream);
  will-change: transform;
}
.sl-panel--top { top: 0; }
.sl-panel--bot { bottom: 0; }

.sl-loader-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  animation: slRise 0.9s var(--ease-out) both;
  will-change: transform, opacity;
}

.sl-loader-mark {
  width: clamp(88px, 12vw, 136px);
  height: auto;
  animation: slHeart 2s cubic-bezier(0.45, 0, 0.55, 1) 0.9s infinite;
  will-change: transform;
}

.sl-loader-label {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
  animation: slBlink 1.6s ease-in-out infinite;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  white-space: nowrap; /* keep CTA labels on one line */
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}
.btn--ink:hover {
  background: var(--red);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  padding: 0;
  transition: padding 0.45s var(--ease-out), background 0.3s ease;
}

.nav-shell {
  background: var(--ink);
  margin: 0 auto;
  max-width: none;
  overflow: hidden;
  transition: max-width 0.45s var(--ease-out), border-radius 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: padding 0.45s var(--ease-out);
}

.nav-brand { display: flex; align-items: center; min-width: 0; }

.nav-logo {
  display: block;
  height: 28px;
  width: auto;
  transition: height 0.45s var(--ease-out);
}

.nav-cta {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  flex-shrink: 0; /* never shrink/wrap the button next to the logo */
}
.nav-cta:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Scrolled state: full bar condenses into a floating pill */
.nav-wrap.is-scrolled {
  padding: 12px clamp(12px, 3vw, 32px) 0;
  background: transparent;
}
.nav-wrap.is-scrolled .nav-shell {
  max-width: 820px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(30, 27, 23, 0.25);
}
.nav-wrap.is-scrolled .nav-inner { padding: 8px 10px 8px 28px; }
.nav-wrap.is-scrolled .nav-logo { height: 20px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 100px);
}

.hero-mark {
  position: absolute;
  bottom: clamp(-40px, -2vw, -10px);
  right: clamp(-40px, 2vw, 60px);
  width: clamp(180px, 24vw, 360px);
  height: auto;
  z-index: 0;
  opacity: 0.1;
  will-change: transform;
}

.hero-content { position: relative; z-index: 3; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 clamp(18px, 2.5vw, 32px);
}

.hero-title {
  font-size: clamp(26px, 8.2vw, 120px);
  line-height: 0.95;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 64px);
}

.hero-lede {
  border-top: 4px solid var(--ink);
  padding-top: 24px;
  max-width: 620px;
}

.hero-copy {
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0 0 28px;
  color: var(--body-dark);
  max-width: 54ch;
}

.hero-cta {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 42px;
}

/* Editorial aside filling the hero's right column: surfaces the brand's
   meaning (pronunciation + heritage) instead of burying it in the footer. */
.hero-aside {
  align-self: end;
  justify-self: end;
  text-align: right;
  max-width: 420px;
  border-top: 4px solid var(--red);
  padding-top: 24px;
}

.hero-pron {
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--red);
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.hero-pron-say {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--body-dark);
  margin: 0 0 18px;
}

.hero-aside-lore {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--body-dark);
  margin: 0 0 0 auto;
  max-width: 34ch;
}

@media (max-width: 720px) {
  .hero-aside { text-align: left; justify-self: start; }
  .hero-aside-lore { margin-left: 0; }
}

/* ---------- Position band ---------- */

.band {
  position: relative;
  z-index: 2;
  background: var(--red);
  color: var(--cream);
  transform: rotate(-1.6deg);
  margin: clamp(28px, 4vw, 60px) -3vw;
  padding: clamp(52px, 8vw, 110px) 0;
}

.band-inner {
  transform: rotate(1.6deg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(28px, 7vw, 96px);
}

.band-label {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 28px;
  opacity: 0.75;
}

.band-statement {
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.12;
  font-weight: 500;
  font-style: italic;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ---------- TemporalX anchor ---------- */

.tx-anchor {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px) clamp(8px, 2vw, 24px);
}

.tx-anchor-row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.tx-anchor-label {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

.tx-anchor-title {
  font-size: clamp(40px, 6.5vw, 92px);
  font-weight: 800;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

/* ---------- Three C's — ruled rows ---------- */

.cs {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 96px);
}

.cs-row {
  display: grid;
  grid-template-columns: clamp(90px, 14vw, 200px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 4px solid var(--ink);
}

.cs-num {
  font-size: clamp(56px, 11vw, 150px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--red);
}

.cs-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
}

.cs-title {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cs-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #645C4D; /* AA on cream at 11px (5.2:1) */
  margin: 0;
  line-height: 1.7;
}

.cs-body {
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0;
  color: var(--body-dark);
  max-width: 46ch;
}

.cs-rule-end {
  border-top: 4px solid var(--ink);
}

/* ---------- Guide / evaluate ---------- */

.guide {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
}

.guide-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  background: var(--red);
  transform-origin: top center;
  margin-left: -3px;
  z-index: 1;
}

/* Below ~720px the two columns stack, so the centred thread would cut
   straight through the text — hide it there. */
@media (max-width: 720px) {
  .guide-line { display: none; }
}

.guide-grid {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 100px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
}

.guide-step {
  font-size: 15px;
  font-weight: 700; /* bold >=14px clears AA large-text contrast for oxblood on ink */
  color: var(--red);
  margin: 0 0 16px;
}

.guide-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}

.guide-body {
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0;
  color: var(--sand);
}

/* ---------- Close CTA ---------- */

.close {
  position: relative;
  z-index: 2;
  background: var(--cream);
  overflow: hidden;
}

@keyframes closeRingBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* soft ripple emanating outward from the ring */
@keyframes closeRingPing {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.close-ring {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: clamp(200px, 28vw, 420px);
  height: clamp(200px, 28vw, 420px);
  border-radius: 50%;
  /* faintness carried by border alpha (not element opacity) so the ripple stays visible */
  border: 22px solid rgba(192, 52, 31, 0.16);
  z-index: 0;
  animation: closeRingBreathe 8s ease-in-out infinite;
}

.close-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(192, 52, 31, 0.55);
  animation: closeRingPing 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.close-grid {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 130px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.close-title {
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 900;
  margin: 0 0 24px;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.close-copy {
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 0;
  color: var(--body-dark);
  max-width: 48ch;
}

.close-action { text-align: right; }

.close-cta {
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.03em;
  padding: 18px 42px;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--sand);
  overflow: hidden;
}

.footer-mark {
  position: absolute;
  bottom: -12%;
  right: -4%;
  width: clamp(240px, 30vw, 460px);
  height: auto;
  opacity: 0.05;
  z-index: 0;
}

.footer-grid {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 0 12px;
}

.footer-pron {
  font-size: 12px;
  color: var(--taupe);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}

.footer-lore {
  font-size: 15px;
  margin: 0;
  max-width: 300px;
  text-wrap: balance;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-links-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--taupe);
  margin: 0 0 2px;
}

.footer-links a {
  color: var(--cream); /* cream on ink is legible; red carried by the underline */
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--red); }

.footer-legal {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: right;
}
.footer-legal p { margin: 0; }

/* ---------- Mobile nav ---------- */

@media (max-width: 600px) {
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .nav-logo { height: 20px; }
  .nav-wrap.is-scrolled .nav-inner { padding: 8px 8px 8px 16px; }
  .nav-cta { padding: 10px 18px; font-size: 13px; letter-spacing: 0.04em; }
}

/* Ultra-narrow safety: drop the 14ch cap so a long word can only ever break
   if it exceeds the actual viewport (it fits down to ~320px, so this rarely fires). */
@media (max-width: 380px) {
  .hero-title { max-width: none; overflow-wrap: break-word; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sl-loader { display: none; }
  .sl-loader * { animation: none !important; }
  .nav-wrap, .nav-shell, .nav-inner, .nav-logo { transition: none; }
  .close-ring { animation: none; }
  .close-ring::after { display: none; }
}
