@font-face {
  font-family: "MAST Serif";
  src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "MAST Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "MAST Sans";
  src: url("/assets/fonts/geist-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "MAST Mono";
  src: url("/assets/fonts/geist-mono-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0b0d0c;
  --paper: #f1f1ee;
  --muted: #a0a29c;
  --signal: #dfff3f;
  --line: rgba(241, 241, 238, 0.18);
  --gutter: clamp(1.4rem, 3.6vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
  font-family: "MAST Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; margin: 0; }

body { background: var(--ink); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }

::selection { background: var(--signal); color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.page-glow {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse 47% 53% at 80% 45%, rgba(87, 95, 67, 0.27), transparent 75%),
    linear-gradient(115deg, #0b0d0c 30%, #161a16 100%);
}

.page-axis {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 1px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top;
  animation: axis-enter 1.4s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-header,
.site-footer { padding-inline: var(--gutter); }

.site-header {
  display: flex;
  align-items: center;
  padding-top: clamp(1.5rem, 3vw, 2.9rem);
}

.brand { display: inline-block; width: clamp(6.2rem, 8vw, 8.5rem); }

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.eyebrow,
.locations,
.legal {
  font-family: "MAST Mono", monospace;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 35rem;
  padding: clamp(5rem, 11vh, 9rem) var(--gutter) clamp(5rem, 11vh, 9rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 70rem;
  animation: copy-enter 1.1s 0.15s both cubic-bezier(0.16, 1, 0.3, 1);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(2.4rem, 4.5vw, 4.5rem);
  color: var(--muted);
  font-size: 0.75rem;
}

.eyebrow span {
  display: block;
  width: 1.8rem;
  height: 1px;
  background: var(--signal);
}

h1 {
  margin: 0;
  font-family: "MAST Serif", Georgia, serif;
  font-size: clamp(5.8rem, 10.8vw, 11.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.79;
}

h1 em { font-weight: 400; }

.mark-field {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -10%;
  width: min(51vw, 48rem);
  aspect-ratio: 1;
  transform: translateY(-48%);
  pointer-events: none;
}

.mark-ring {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(241, 241, 238, 0.08);
  border-radius: 50%;
}

.mark-inner {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  animation: mark-enter 1.8s 0.3s both cubic-bezier(0.16, 1, 0.3, 1);
}

.mark-inner img {
  display: block;
  width: 80%;
  filter: invert(1);
  opacity: 0.25;
  transform: rotate(-8deg);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(1.4rem, 2.6vw, 2.8rem);
}

.footer-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0 1.3rem;
  border-top: 1px solid var(--line);
}

.locations {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.locations span { padding-inline: 0.65rem; color: #5f625b; }

.contact {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: "MAST Serif", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  white-space: nowrap;
}

.contact span {
  color: var(--signal);
  font-family: "MAST Sans", Arial, sans-serif;
  font-size: 0.7em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact:hover span,
.contact:focus-visible span { transform: translate(0.18rem, -0.18rem); }

.legal {
  max-width: 53rem;
  margin: 0;
  color: #73766f;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: none;
}

@keyframes axis-enter { to { transform: scaleY(1); } }

@keyframes copy-enter {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mark-enter {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(2rem) rotate(-5deg); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0) rotate(0); }
}

@media (max-width: 900px) {
  .page-axis { left: 68%; }
  .hero { min-height: 33rem; }
  h1 { font-size: clamp(5.3rem, 11.5vw, 7.5rem); }
  .mark-field { right: -16%; width: 63vw; }
}

@media (max-width: 650px) {
  .site-header { padding-top: 1.3rem; }
  .page-axis { left: 70%; }
  .hero {
    align-items: flex-end;
    min-height: 35rem;
    padding-top: 10rem;
    padding-bottom: 5.4rem;
  }
  .eyebrow { margin-bottom: 2.6rem; font-size: 0.75rem; }
  h1 { font-size: clamp(3.15rem, 13vw, 5.3rem); line-height: 0.85; }
  .mark-field { top: 21%; right: -19%; width: 75vw; opacity: 0.7; }
  .mark-inner img { opacity: 0.18; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .locations { font-size: 0.75rem; }
  .contact { font-size: 1.65rem; white-space: normal; overflow-wrap: anywhere; }
  .legal { max-width: 21rem; margin-top: 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 380px) {
  h1 { font-size: 3.05rem; }
  .locations span { padding-inline: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-axis, .hero-copy, .mark-inner { animation: none; transform: none; }
  .page-axis { transform: scaleY(1); }
  .mark-inner { clip-path: none; }
  .contact span { transition: none; }
}
