/* ============ tokens ============ */
:root {
  --paper: #f2efe6;
  --paper-dim: #e9e4d5;
  --ink: #14140f;
  --ink-soft: #55534a;
  --ink-faint: #8b8878;
  --line: #d8d2c0;
  --accent: #2c3c2f;
  --accent-soft: #43573f;
  --clay: #a85a34;

  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.btn-solid { background: var(--ink); color: var(--paper); }
.btn.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

/* ============ header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}
.site-header * { color: #fff; }

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 100px var(--pad) 40px;
    background: var(--paper);
    mix-blend-mode: normal;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav.nav-open a {
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 101;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
  }
}

/* ============ hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: 140px var(--pad) 64px;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  background: #d8d2c0 url('/assets/img/hero.jpg') center/cover no-repeat;
  z-index: -2;
}

.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,10,0.15) 0%, rgba(15,16,10,0.35) 55%, rgba(15,16,10,0.72) 100%),
    linear-gradient(90deg, rgba(15,16,10,0.35) 0%, rgba(15,16,10,0) 45%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay);
}
.hero-kicker .eyebrow { color: rgba(242,239,230,0.75); }

.hero h1 {
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: 0.98;
  max-width: 16ch;
  color: var(--paper);
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-sub p {
  max-width: 40ch;
  color: rgba(242,239,230,0.82);
  font-size: 17px;
}

.hero .btn.btn-solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.hero .btn.btn-solid:hover { background: var(--accent-soft); color: var(--paper); border-color: var(--accent-soft); }

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 28px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,239,230,0.65);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue::before {
  content: "";
  width: 1px;
  height: 46px;
  background: rgba(242,239,230,0.5);
}

/* ============ section rhythm ============ */
section { padding: 96px var(--pad); }
.section-tight { padding-top: 48px; padding-bottom: 48px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(30px, 4vw, 48px); max-width: 14ch; }
.section-head .lede { max-width: 34ch; color: var(--ink-soft); }

/* ============ philosophy ============ */
.philosophy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.philosophy .wrap { max-width: 900px; }
.philosophy p.lead {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  font-weight: 500;
}
.philosophy p.lead .accent { color: var(--accent-soft); }

/* ============ category tiles ============ */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 46px;
  min-height: 320px;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,10,0.18) 0%, rgba(15,16,10,0.72) 100%);
  transition: background 0.3s ease;
}
.tile:hover::after { background: linear-gradient(180deg, rgba(15,16,10,0.3) 0%, rgba(15,16,10,0.5) 100%); }
.tile > * { position: relative; z-index: 1; }
.tile .num {
  font-family: var(--serif);
  font-size: 14px;
  color: rgba(242,239,230,0.7);
}
.tile h3 { font-size: 22px; margin-bottom: 8px; color: var(--paper); }
.tile p { color: rgba(242,239,230,0.85); font-size: 14px; }
.tile .go {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ============ project cards / grid ============ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

.card { display: block; }
.card-media {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--paper-dim);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.card:hover .card-media { transform: scale(1.02); }
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,16,10,0.35) 0%, rgba(15,16,10,0) 30%, rgba(15,16,10,0) 60%, rgba(15,16,10,0.25) 100%);
}
.card-media .tag-row {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20,20,15,0.82);
  color: var(--paper);
  backdrop-filter: blur(2px);
}
.pill.status-selling { background: var(--accent); }
.pill.status-sold { background: rgba(20,20,15,0.4); }

.card-index {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--serif);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.card h3 { font-size: 20px; margin-bottom: 6px; }
.card .meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 13px;
}

/* swatches stand in for real project photography */
.swatch-a { background: linear-gradient(150deg,#cdbf9a,#8f9c7c 70%); }
.swatch-b { background: linear-gradient(150deg,#b7c2b0,#59605a 75%); }
.swatch-c { background: linear-gradient(150deg,#a8968a,#4a423c 75%); }
.swatch-d { background: linear-gradient(150deg,#d7cdb8,#a3765a 80%); }
.swatch-e { background: linear-gradient(150deg,#c9c2ad,#767259 80%); }
.swatch-f { background: linear-gradient(150deg,#b0ab97,#3f3d34 80%); }

/* ============ filter bar ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filter-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ============ stats ============ */
.stats {
  background: var(--ink);
  color: var(--paper);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat b {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  display: block;
}
.stat span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,239,230,0.6);
}
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ============ footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px var(--pad) 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.footer-top h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 12ch;
}
.footer-cols {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ generic content pages ============ */
.page-hero {
  padding: 160px var(--pad) 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); max-width: 18ch; }
.page-hero .lede { margin-top: 20px; max-width: 46ch; color: var(--ink-soft); font-size: 17px; }

.prose { max-width: 720px; }
.prose p { color: var(--ink-soft); margin-bottom: 20px; font-size: 16px; }
.prose h2 { font-size: 26px; margin: 40px 0 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 14px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card .avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg,#cdbf9a,#8f9c7c 70%);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(0,0,0,0.55);
}
.team-card h4 { font-size: 15px; margin-bottom: 2px; }
.team-card span { font-size: 12px; color: var(--ink-faint); }

/* ============ forms ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 720px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; min-height: 100px; }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .row h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.contact-info .row p, .contact-info .row a { font-size: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.detail-hero {
  aspect-ratio: 16/7;
  margin: 140px var(--pad) 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background-color: var(--paper-dim);
  background-size: cover;
  background-position: center;
}
@media (max-width: 760px) { .detail-hero { aspect-ratio: 4/5; } }

.spec-list { display: flex; flex-direction: column; gap: 0; }
.spec-list .row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list .row span:first-child { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }

.placeholder-note {
  font-size: 12px;
  color: var(--ink-faint);
  border: 1px dashed var(--line);
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 10px;
}
