@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #10201b;
  --forest: #173f31;
  --pine: #092b24;
  --mint: #9fe5d2;
  --sky: #37c9df;
  --paper: #f5f2ea;
  --white: #ffffff;
  --line: rgba(16, 32, 27, .17);
  --radius: 1.4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Manrope", sans-serif; }
.section { padding: 8rem clamp(1.4rem, 5vw, 5rem); }
.eyebrow { margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: .16em; font-size: .73rem; font-weight: 700; color: var(--mint); }
.eyebrow.dark { color: #357160; }

.site-header { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1.15rem clamp(1.4rem, 5vw, 5rem); color: white; transition: background .25s, color .25s, padding .25s; }
.site-header.scrolled { padding-top: .75rem; padding-bottom: .75rem; background: rgba(9, 43, 36, .95); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; letter-spacing: .08em; font-size: .88rem; font-weight: 800; }
.brand-mark { width: 1.5rem; height: 1.3rem; display: inline-block; border-left: 3px solid var(--sky); border-top: 3px solid var(--sky); transform: skew(-22deg) rotate(45deg); }
nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; }
nav a { text-decoration: none; }
.nav-cta { padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.menu-toggle { display: none; color: white; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .55rem .85rem; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 9rem clamp(1.4rem, 6vw, 6rem) 5.5rem; color: white; background: url('public/hero.jpg') center/cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,25,22,.83) 10%, rgba(4,25,22,.26) 65%, rgba(4,25,22,.12)), linear-gradient(0deg, rgba(4,25,22,.52), transparent 45%); }
.hero-content { position: relative; z-index: 1; max-width: 850px; }
.hero h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(3.3rem, 7vw, 7.2rem); line-height: .96; letter-spacing: -.06em; }
.hero-content > p:not(.eyebrow) { max-width: 560px; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; color: rgba(255,255,255,.85); }
.hero-side { position: absolute; right: 2rem; bottom: 4rem; z-index: 1; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; }
.button { display: inline-flex; align-items: center; gap: 2rem; margin-top: 1.3rem; padding: 1rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); }
.button-dark { background: var(--ink); color: white; }

.manifesto { display: grid; grid-template-columns: minmax(50px, 1fr) minmax(280px, 5fr); gap: 2rem; border-bottom: 1px solid var(--line); }
.section-number { font-size: .78rem; color: #5c6f68; }
.manifesto-copy h2 { max-width: 1050px; margin-bottom: 2.2rem; font-size: clamp(2.4rem, 5vw, 5.3rem); line-height: 1.05; letter-spacing: -.05em; }
.manifesto-copy > p:last-child { max-width: 700px; margin-left: auto; font-size: 1.15rem; line-height: 1.7; color: #4b5e56; }

.code-section { color: white; background: var(--pine); }
.code-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 4rem; }
.code-heading h2 { margin: 0; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.06em; }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.code-card { min-height: 330px; padding: 2rem 2rem 1rem 0; border-right: 1px solid rgba(255,255,255,.18); }
.code-card + .code-card { padding-left: 2rem; }
.code-card:last-child { border-right: 0; }
.code-card span { color: var(--mint); font-size: .75rem; }
.code-card h3 { max-width: 270px; margin: 5rem 0 1.5rem; font-size: 1.6rem; line-height: 1.15; }
.code-card p { max-width: 330px; color: rgba(255,255,255,.67); line-height: 1.65; }

.brands-intro { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; margin-bottom: 5rem; }
.brands-intro h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .98; letter-spacing: -.06em; }
.brands-intro > p { line-height: 1.65; color: #566760; }
.brand-list { border-top: 1px solid var(--line); }
.brand-card { display: grid; grid-template-columns: .4fr 2fr; min-height: 410px; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: color .3s, background .3s, padding .3s; }
.brand-card:hover { color: white; padding-left: 2rem; padding-right: 2rem; }
.brand-card.sovage:hover { background: #74121c; }
.brand-card.oregon:hover { background: #20312b; }
.brand-card.outwild:hover { background: #315f4f; }
.brand-card-index { font-size: .78rem; opacity: .6; }
.brand-card-content { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 4rem; align-content: center; }
.brand-type { grid-column: 1 / -1; text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; opacity: .68; }
.brand-card h3 { margin: .4rem 0; font-size: clamp(2.7rem, 6vw, 6.2rem); letter-spacing: -.07em; line-height: 1; }
.brand-card-content > p:not(.brand-type) { align-self: center; line-height: 1.65; opacity: .78; }
.brand-card a { grid-column: 2; justify-self: start; padding-bottom: .25rem; border-bottom: 1px solid currentColor; text-decoration: none; font-weight: 700; }

.team { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 760px; padding: 0; color: white; background: var(--forest); }
.team-photo { min-height: 620px; background: var(--pine) url('public/founders.jpg') center/contain no-repeat; }
.founder-carousel { display: none; }
.team-copy { align-self: center; padding: 5rem clamp(1.5rem, 6vw, 7rem); }
.team-copy h2 { font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.team-copy > p:not(.eyebrow) { color: rgba(255,255,255,.73); line-height: 1.7; }
.team-copy ul { margin: 2rem 0 0; padding: 0; list-style: none; }
.team-copy li { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.16); }

.contact { min-height: 630px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--mint); }
.contact .eyebrow { color: #255c4e; }
.contact h2 { margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 6.4rem); line-height: 1; letter-spacing: -.06em; }
.contact-email { margin-top: 1.25rem; color: #255c4e; font-weight: 700; text-underline-offset: .25rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem clamp(1.4rem, 5vw, 5rem); color: rgba(255,255,255,.7); background: var(--pine); font-size: .8rem; }
.footer-brand { color: white; }
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: .3rem; padding: 1rem; border-radius: 1rem; background: var(--pine); }
  nav.open { display: flex; }
  nav a { padding: .8rem; }
  .nav-cta { border: 0; }
  .hero { min-height: 850px; }
  .hero-side { display: none; }
  .manifesto, .brands-intro, .team { grid-template-columns: 1fr; }
  .code-heading { display: block; text-align: left; }
  .code-heading .eyebrow { margin-bottom: 1rem; }
  .code-heading h2 { margin: 0; }
  .section-number { display: none; }
  .manifesto-copy > p:last-child { margin-left: 0; }
  .code-grid { grid-template-columns: 1fr; }
  .code-card, .code-card + .code-card { min-height: 0; padding: 2rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .code-card h3 { margin-top: 2.5rem; }
  .brand-card { grid-template-columns: 40px 1fr; min-height: 0; }
  .brand-card-content { grid-template-columns: 1fr; gap: 1rem; }
  .brand-card a { grid-column: 1; }
  .brand-card:hover { padding-left: 1rem; padding-right: 1rem; }
  .team-photo { min-height: 0; background: none; }
  .founder-carousel { position: relative; display: block; width: 100%; aspect-ratio: .68; overflow: hidden; background: #122e26; }
  .founder-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
  .founder-slide { flex: 0 0 100%; height: 100%; background-image: url('public/founders.jpg'); background-repeat: no-repeat; background-size: auto 100%; }
  .founder-one { background-position: left center; }
  .founder-two { background-position: center center; }
  .founder-three { background-position: right center; }
  .founder-arrow { position: absolute; z-index: 2; top: 50%; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: white; background: rgba(9,43,36,.58); font-size: 1.1rem; transform: translateY(-50%); backdrop-filter: blur(8px); }
  .founder-prev { left: 1rem; }
  .founder-next { right: 1rem; }
  .founder-dots { position: absolute; z-index: 2; bottom: 1.2rem; left: 50%; display: flex; gap: .55rem; transform: translateX(-50%); }
  .founder-dots button { width: .55rem; height: .55rem; padding: 0; border: 1px solid white; border-radius: 50%; background: transparent; }
  .founder-dots button.active { background: white; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
