/* The Garrett Company · base: tokens, reset, typography, nav, intro, buttons */

:root {
  --ink: #0f1b2d;
  --ink-2: #16243a;
  --ink-3: #22334d;
  --ivory: #f7f2e8;
  --ivory-2: #efe7d7;
  --ivory-3: #e3d9c4;
  --brass: #b8914f;
  --brass-light: #d9bc7c;
  --brass-deep: #8f6d33;
  --green: #2f5d45;
  --green-light: #4b7d61;
  --text: #1b2431;
  --text-soft: #52607a;
  --text-on-ink: #eee6d6;
  --text-on-ink-soft: #b7b0a2;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 6px;
  --gutter: 16px;
  --container: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(15,27,45,.06); padding: .1em .35em; border-radius: 3px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 16px; }

/* Typography */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.h2 em { font-style: italic; color: var(--brass-deep); }
.section--ink .h2 em { color: var(--brass-light); }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow--brass, .section--ink .eyebrow { color: var(--brass-light); }
.lead { font-size: 1.1rem; color: var(--text-soft); max-width: 58ch; font-weight: 300; }
.lead--light { color: var(--text-on-ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--ivory2 { background: var(--ivory-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 28px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .72rem; }
.btn--brass { background: var(--brass); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(184,145,79,.7); }
.btn--brass:hover { background: var(--brass-light); }
.btn--ghost { border-color: rgba(247,242,232,.55); color: var(--ivory); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(247,242,232,.1); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--ivory); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Intro overlay */
.intro {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
/* One wordmark style everywhere (intro, nav, footer): Cormorant, regular case, no italic */
.intro__wordmark {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1;
  letter-spacing: .01em; display: flex; gap: .28em; flex-wrap: wrap; justify-content: center;
}
.intro__word { display: inline-block; opacity: 0; transform: translateY(18px); }
.intro__rule { width: 0; height: 1px; background: var(--brass-light); }
.intro__est { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-light); opacity: 0; }
.intro.is-done { display: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  color: var(--ivory);
  transition: background .4s, box-shadow .4s, color .4s, height .4s;
}
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15,27,45,.55), rgba(15,27,45,0)); opacity: 1; transition: opacity .4s; pointer-events: none; }
.nav.is-solid { background: rgba(247,242,232,.92); color: var(--ink); box-shadow: 0 1px 0 rgba(15,27,45,.08), 0 10px 30px -20px rgba(15,27,45,.35); backdrop-filter: blur(10px); height: 64px; }
.nav.is-solid::before { opacity: 0; }
.nav.is-open { color: var(--ivory); background: transparent; box-shadow: none; }
.nav__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 36px; height: 36px; }
.nav__wordmark { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.nav__links { display: none; align-items: center; gap: 28px; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a:not(.btn) { position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-solid .btn--brass { box-shadow: none; }
.nav__burger { width: 44px; height: 44px; display: grid; place-items: center; gap: 0; position: relative; }
@media (min-width: 1024px) { .nav__links { display: flex; gap: 20px; font-size: .74rem; } .nav__burger { display: none; } }
@media (min-width: 1200px) { .nav__links { gap: 28px; font-size: .8rem; } }
.nav__burger span { display: block; width: 24px; height: 1.5px; background: currentColor; position: absolute; transition: transform .4s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1) { transform: translateY(-7px); }
.nav__burger span:nth-child(3) { transform: translateY(7px); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 450;
  background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 38px) 38px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 38px) 38px); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.25; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu__foot { margin-top: auto; font-size: .8rem; color: var(--text-on-ink-soft); letter-spacing: .04em; }

/* Reveal helpers (JS sets initial state so content shows without JS) */
.js .reveal, .js .reveal-line { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in, .js .reveal-line.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .word > span { display: inline-block; will-change: transform; }
.js .clip-reveal:not(.is-in) { clip-path: inset(0 100% 0 0); }
[data-magnetic] { will-change: transform; }

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