@font-face {
  font-family: "Scabber";
  src: url("assets/display.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1b1711;
  --ink-soft: #2c251b;
  --paper: #f1e2bd;
  --paper-deep: #cdb989;
  --moss: #7f884e;
  --moss-bright: #d2b65d;
  --green: #59643e;
  --ember: #b9683f;
  --blue: #7e9586;
  --line: rgba(241, 226, 189, 0.19);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(127, 136, 78, 0.1), transparent 34rem),
    #1b1711;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.08;
  background-image:
    linear-gradient(95deg, rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(5deg, rgba(0,0,0,.45) 1px, transparent 1px);
  background-size: 5px 7px, 11px 13px;
  mix-blend-mode: soft-light;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  background: var(--moss-bright);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: .75rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, min-height .25s ease;
}
.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(27, 23, 17, .91);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 118px; height: 62px; object-fit: contain; }
.brand span { font-size: .78rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a { position: relative; text-decoration: none; font-size: .88rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--moss-bright); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: .7rem 1rem; border: 1px solid rgba(210,182,93,.65); color: var(--moss-bright); }
.nav-cta:hover { background: var(--moss-bright); color: var(--ink); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 8.8rem clamp(1.25rem, 6vw, 7rem) 5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 82% 43%, rgba(178,145,67,.13), transparent 28rem),
    radial-gradient(ellipse at 12% 78%, rgba(89,100,62,.11), transparent 34rem),
    linear-gradient(115deg, #17130e 0%, #1d1912 58%, #252016 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, #1b1711);
  z-index: -1;
}
.hero-copy { position: relative; z-index: 3; min-width: 0; max-width: 910px; }
.eyebrow { margin: 0 0 1.2rem; color: var(--moss-bright); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow strong { color: var(--paper); font-weight: 900; }
h1, h2, h3, p { text-wrap: balance; }
h1, h2 { font-family: "Scabber", "Arial Black", sans-serif; font-weight: 400; line-height: .91; letter-spacing: .015em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(4.4rem, 8vw, 8.8rem); }
h1 em { color: var(--moss-bright); font-style: normal; }
.hero-lede { max-width: 42rem; margin: 2rem 0 0; color: rgba(242,234,215,.78); font-size: clamp(1.05rem, 1.4vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.3rem; text-decoration: none; border: 1px solid transparent; font-size: .82rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--moss-bright); box-shadow: 7px 7px 0 rgba(89,100,62,.62); }
.button-ghost { border-color: rgba(242,234,215,.34); }
.button-ghost:hover { border-color: var(--paper); background: rgba(242,234,215,.06); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 2.6rem 0 0; padding: 0; list-style: none; color: rgba(242,234,215,.56); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-tags li::before { content: ""; display: inline-block; width: 13px; height: 2px; margin: 0 .55rem .2rem 0; background: var(--moss); }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 28px; height: 42px; border: 1px solid rgba(242,234,215,.28); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; border-radius: 4px; background: var(--moss-bright); transform: translateX(-50%); animation: scrollCue 1.8s infinite; }
@keyframes scrollCue { 0% { transform: translate(-50%,0); opacity: 0; } 35% { opacity: 1; } 100% { transform: translate(-50%,14px); opacity: 0; } }

.section { position: relative; padding: clamp(5.5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem); }
.section-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem 6rem; align-items: end; max-width: 1250px; margin: 0 auto 4rem; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -1.4rem; }
h2 { margin: 0; font-size: clamp(3.8rem, 6.3vw, 7rem); }
.section-intro > p:last-child { max-width: 37rem; margin: 0 0 .6rem; color: rgba(242,234,215,.7); font-size: 1.12rem; }
.manifesto { border-top: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1250px; margin: 0 auto; }
.pillar-card { position: relative; min-height: 420px; padding: 2.25rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(49,42,28,.96), rgba(29,25,18,.98)); box-shadow: 8px 9px 0 rgba(8,7,5,.18); overflow: hidden; }
.pillar-number { color: rgba(242,234,215,.32); font-size: .72rem; letter-spacing: .14em; }
.pillar-label { display: inline-block; width: fit-content; margin: 4.2rem 0 2rem; padding: .38rem .72rem .34rem; border-left: 3px solid currentColor; color: var(--moss-bright); background: rgba(210,182,93,.06); font-size: .7rem; font-weight: 900; letter-spacing: .17em; line-height: 1.2; text-transform: uppercase; }
.pillar-card:nth-child(2) .pillar-label { color: var(--blue); background: rgba(126,149,134,.06); }
.pillar-card:nth-child(3) .pillar-label { color: var(--ember); background: rgba(185,104,63,.06); }
.pillar-card h3 { margin: 0 0 1rem; font-size: 1.45rem; line-height: 1.15; }
.pillar-card p { margin: 0; color: rgba(242,234,215,.66); }

.belief { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(0,1.2fr); align-items: center; gap: clamp(4rem,8vw,9rem); overflow: hidden; background: var(--paper); color: var(--ink); }
.belief::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(27,23,17,.4) .75px, transparent .75px); background-size: 7px 7px; }
.belief > * { position: relative; }
.belief .eyebrow { color: var(--green); }
.belief-copy { max-width: 780px; }
.belief-copy > p:not(.eyebrow) { max-width: 44rem; font-size: 1.12rem; color: rgba(16,24,18,.7); }
.belief-art { display: grid; place-items: center; min-height: 620px; }
.belief-art::before { content: ""; position: absolute; width: min(84%, 460px); aspect-ratio: 1; border-radius: 48% 52% 45% 55%; background: rgba(127,136,78,.15); box-shadow: 24px 18px 0 rgba(205,185,137,.32); transform: rotate(-7deg); }
.belief-art img { position: relative; z-index: 2; width: min(78%, 400px); filter: drop-shadow(0 30px 28px rgba(27,23,17,.22)); transform: rotate(-2deg); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(16,24,18,.16); }
.feature-list div { display: grid; gap: .3rem; }
.feature-list strong { font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }
.feature-list span { color: rgba(16,24,18,.63); font-size: .92rem; }

.legend { min-height: 900px; overflow: hidden; background: linear-gradient(180deg, #2a2418, #17130e); }
.legend::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 82% 18%, rgba(126,149,134,.1), transparent 32%), radial-gradient(ellipse at 15% 78%, rgba(185,104,63,.08), transparent 30%); }
.legend-heading { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto 5rem; }
.legend-heading h2 { max-width: 850px; }
.legend-path { position: relative; z-index: 2; display: grid; max-width: 1100px; margin: 0 auto; }
.legend-path::before { content: ""; position: absolute; left: 31px; top: 3rem; bottom: 3rem; width: 2px; background: rgba(210,182,93,.42); }
.legend-beat { display: grid; grid-template-columns: 64px 1fr; gap: 2rem; padding: 2rem 0; }
.beat-index { position: relative; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--ink); background: var(--paper); font-family: Georgia, serif; font-weight: 900; box-shadow: 0 0 0 8px #241e15; }
.legend-beat:nth-child(2) .beat-index { background: var(--blue); }
.legend-beat:nth-child(3) .beat-index { background: var(--ember); }
.beat-kicker { margin: 0 0 .45rem; color: var(--moss-bright); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.legend-beat h3 { margin: 0 0 .55rem; font-size: 1.45rem; }
.legend-beat p:last-child { max-width: 650px; margin: 0; color: rgba(242,234,215,.64); }
.legend-wolf { position: absolute; z-index: 1; width: min(29vw, 420px); right: -3%; bottom: 2%; opacity: .23; filter: saturate(.5) contrast(1.2); transform: rotate(-5deg); }

.studio { background: var(--paper); color: var(--ink); }
.studio-card { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: clamp(2.2rem,5vw,5rem); border: 1px solid rgba(16,24,18,.16); box-shadow: 12px 12px 0 var(--paper-deep); }
.studio .eyebrow { color: var(--green); }
.studio-copy { align-self: end; color: rgba(16,24,18,.7); font-size: 1.1rem; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 1.8rem; }
.text-link { color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-decoration-thickness: 1px; text-underline-offset: .35rem; text-transform: uppercase; }
.text-link:hover { color: var(--ink); }

.follow { text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 50%, rgba(127,136,78,.13), transparent 36rem); }
.follow-inner { position: relative; max-width: 860px; margin: 0 auto; }
.follow-inner > p:not(.eyebrow) { max-width: 640px; margin: 1.7rem auto; color: rgba(242,234,215,.68); font-size: 1.1rem; }
.follow-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }
.follow-note { display: inline-block; max-width: 660px; margin-top: 1.2rem; padding: .9rem 1.1rem; border: 1px solid var(--line); color: rgba(242,234,215,.52); font-size: .82rem; }
.follow-note span { margin: 0 .4rem; color: var(--moss-bright); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2.2rem clamp(1.25rem,6vw,7rem); border-top: 1px solid var(--line); color: rgba(242,234,215,.48); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-brand { color: var(--paper); font-family: "Scabber", sans-serif; font-size: 1.6rem; text-decoration: none; }
.site-footer p { margin: 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--moss-bright); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .hero { padding-top: 9rem; }
  .hero-copy { max-width: 800px; }
  .scroll-cue { display: none; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro .eyebrow { margin-bottom: -1rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 330px; }
  .pillar-label { margin-top: 2.5rem; }
  .belief { grid-template-columns: 1fr; }
  .belief-art { min-height: 430px; order: 2; }
  .studio-card { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding-inline: 1.1rem; background: rgba(27,23,17,.93); backdrop-filter: blur(16px); }
  .brand img { width: 92px; height: 50px; }
  .brand span { display: none; }
  .menu-toggle { display: grid; gap: 5px; padding: .7rem; border: 0; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--paper); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 68px 0 auto; display: grid; gap: 0; padding: 1rem; background: rgba(27,23,17,.98); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 1rem; }
  .nav-cta { margin-top: .4rem; text-align: center; }
  .hero { flex-direction: column; align-items: stretch; min-height: auto; padding: 8.2rem 1.2rem 4rem; }
  .hero-copy { width: 100%; }
  h1 { max-width: 100%; font-size: clamp(2.65rem, 11.5vw, 4.6rem); text-wrap: wrap; }
  h1 em { display: block; }
  .hero .eyebrow { max-width: 100%; font-size: .67rem; letter-spacing: .1em; text-wrap: wrap; }
  h2 { font-size: clamp(3rem, 13vw, 5rem); }
  .hero-actions { display: grid; }
  .follow-actions { display: grid; }
  .hero-tags { gap: .45rem .8rem; font-size: .68rem; letter-spacing: .06em; }
  .section { padding: 5rem 1.2rem; }
  .pillar-card { padding: 1.7rem; }
  .belief-art { min-height: 360px; }
  .feature-list { grid-template-columns: 1fr; }
  .legend-heading { margin-bottom: 3rem; }
  .legend-path::before { left: 23px; }
  .legend-beat { grid-template-columns: 48px 1fr; gap: 1.15rem; }
  .beat-index { width: 48px; height: 48px; box-shadow: 0 0 0 6px #241e15; }
  .legend-wolf { width: 58vw; right: -18%; opacity: .14; }
  .studio-card { padding: 2rem 1.4rem; box-shadow: 7px 7px 0 var(--paper-deep); }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.install-button {
  margin-left: 1rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(210,182,93,.58);
  color: var(--ink);
  background: var(--moss-bright);
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(27,23,17,.45);
}
.install-button:hover { transform: translateY(-2px); }
.install-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(27,23,17,.45); }
.install-button[hidden] { display: none; }

.app-tabs { display: none; }
.app-toast {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: .9rem 1rem;
  border: 1px solid rgba(210,182,93,.52);
  color: var(--paper);
  background: rgba(35,29,20,.96);
  box-shadow: var(--shadow);
  font-size: .86rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
  animation: toast-in .3s ease both;
}
.app-toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (display-mode: standalone) {
  .install-button { display: none; }
  .site-header { padding-top: max(.75rem, env(safe-area-inset-top)); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-header { top: env(safe-area-inset-top); }
  .install-button {
    display: block;
    margin: 0 3.1rem 0 auto;
    padding: .55rem .65rem;
    font-size: .62rem;
  }
  .install-button[hidden] { display: none; }
  .app-tabs {
    position: fixed;
    z-index: 70;
    inset: auto .7rem calc(.7rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: .35rem;
    border: 1px solid rgba(241,226,189,.16);
    border-radius: 18px;
    background: rgba(28,24,18,.93);
    box-shadow: 0 16px 45px rgba(0,0,0,.48);
    backdrop-filter: blur(20px);
  }
  .app-tabs a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .12rem;
    min-width: 0;
    border-radius: 13px;
    color: rgba(241,226,189,.52);
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .app-tabs a:active { transform: scale(.94); }
  .app-tabs a.is-active { color: var(--moss-bright); background: rgba(210,182,93,.1); }
  .app-tabs svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .app-tabs a:first-child svg { fill: currentColor; stroke: none; }
  .app-toast { right: .9rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 2.8rem; }
}

.brand { order: 1; }
.site-nav { order: 2; }
.install-button { order: 3; }
.menu-toggle { order: 4; }

@media (max-width: 760px) {
  .install-button { order: 2; }
  .menu-toggle { order: 3; }
  .site-nav { order: 4; }
}
