@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/CormorantGaramond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/CormorantGaramond-Italic-latin.woff2") format("woff2");
}

:root {
  --void: #070706;
  --ink: #0c0b0a;
  --raised: #141210;
  --line: rgba(212, 196, 160, 0.16);
  --line-strong: rgba(212, 196, 160, 0.32);
  --champagne: #d4c4a0;
  --champagne-bright: #ede3cc;
  --champagne-dim: #8f8064;
  --cream: #f3eee4;
  --muted: #b8b0a4;
  --dim: #7d776e;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 1px solid var(--champagne);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  background: var(--champagne);
  color: var(--void);
  font-size: 0.8125rem;
}

.skip:focus {
  top: 1rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: var(--void);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 2.7rem;
  color: var(--champagne);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.brand-suffix {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0;
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--champagne-bright);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header) + 2.5rem) 1.25rem 5.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(212, 196, 160, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 35% at 88% 88%, rgba(212, 196, 160, 0.05), transparent 55%);
  animation: glow-breathe 14s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  text-align: center;
}

.hero-mark {
  width: 5.5rem;
  margin: 0 auto 1.75rem;
  color: var(--champagne);
  filter: drop-shadow(0 0 18px rgba(212, 196, 160, 0.22));
}

.hero .kicker {
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.35rem, 4.2vw + 1.4rem, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.hero .lead {
  margin: 1.6rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.4rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, var(--champagne), transparent);
  animation: line-drop 2.4s var(--ease) infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-strong);
  color: var(--champagne-bright);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--void);
}

.btn-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
}

.section {
  position: relative;
  padding: clamp(5rem, 12vw, 8.75rem) 0;
  scroll-margin-top: calc(var(--header) + 0.35rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 38rem;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1.15rem;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.35;
  color: var(--cream);
  max-width: 24ch;
  text-wrap: pretty;
}

.project-panel {
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(212, 196, 160, 0.06), transparent 50%),
    var(--ink);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-name span {
  color: var(--champagne);
}

.project-tag {
  align-self: flex-start;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}

.pills li {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--champagne);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.values-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.value {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.value-index {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--champagne);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.value p {
  color: var(--muted);
  max-width: 36rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--champagne-bright);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.75rem;
}

.legal-main {
  padding: calc(var(--header) + 3.5rem) 0 5rem;
}

.legal-main h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0.9rem 0 2rem;
}

.legal-content {
  max-width: 40rem;
  color: var(--muted);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--cream);
  margin: 2.2rem 0 0.7rem;
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 1rem;
}

.legal-content ul {
  padding-left: 1.1rem;
  list-style: disc;
}

.legal-content li + li {
  margin-top: 0.4rem;
}

.placeholder {
  color: var(--champagne);
}

.hero-inner > *,
.hero-actions {
  animation: rise 1.05s var(--ease) both;
}

.hero-mark { animation-delay: 0.05s; }
.hero .kicker { animation-delay: 0.16s; }
.hero h1 { animation-delay: 0.28s; }
.hero .lead { animation-delay: 0.42s; }
.hero-actions { animation-delay: 0.56s; }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes line-drop {
  0% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.15; }
}

@media (min-width: 720px) {
  :root {
    --wrap: min(1120px, calc(100% - 4.5rem));
  }

  .section-head {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 3.25rem;
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value {
    padding: 2.2rem 1.6rem 2.2rem 0;
  }

  .value:nth-child(even) {
    padding-left: 1.6rem;
    border-left: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .nav {
    gap: 1.85rem;
  }

  .hero-inner {
    max-width: 48rem;
  }

  .hero .lead {
    font-size: 1.08rem;
  }
}

@media (max-width: 760px) {
  .brand-text {
    display: none;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero h1 {
    max-width: 11.5ch;
    margin-inline: auto;
  }

  .hero .lead {
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 0.72rem;
  }

  .nav a {
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner > *,
  .hero-actions,
  .hero-glow,
  .scroll-hint-line,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
