:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #16120e;
  --ink-soft: #3b342c;
  --muted: #6f665b;
  --line: rgba(22, 18, 14, 0.1);
  --accent: #9d4a24;
  --accent-2: #c4a574;
  --card: rgba(255, 252, 246, 0.72);
  --shadow: 0 30px 80px rgba(22, 18, 14, 0.08);
  --radius: 28px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/f2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/f3.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/f2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/f3.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/f8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/f9.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/f8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/f9.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/f8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/f9.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(196, 165, 116, 0.22), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(157, 74, 36, 0.08), transparent 55%),
    var(--paper);
  letter-spacing: -0.011em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  z-index: 0;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { left: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.hero { padding: 72px 0 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
h1 {
  margin: 18px 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.lead {
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: transparent; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 64px 0 8px;
}
.stat {
  background: var(--card);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}
.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 84px 0 10px; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.section .intro {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card, .project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.card { padding: 26px 24px 28px; }
.card .n {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent-2);
}
.card h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.96rem; }

.projects { display: grid; gap: 18px; }
.project {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  padding: 22px;
  align-items: center;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.project:hover { transform: translateY(-3px); border-color: rgba(157, 74, 36, 0.28); }
.thumb {
  height: 120px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #2a221c 0%, #16120e 60%),
    radial-gradient(circle at 80% 20%, rgba(196,165,116,.35), transparent 40%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.thumb img { height: 52px; width: auto; filter: brightness(1.05); }
.project h3 { margin: 0 0 6px; font-size: 1.35rem; }
.project .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.project p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(157, 74, 36, 0.1);
  color: var(--accent);
  margin-right: 8px;
}
.arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.note {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 64px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .stats, .grid-3, .project { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .arrow { display: none; }
}
