/* Razz Construction and Properties
   Darker than a cream editorial site: warm charcoal, stone type, olive, brass. */

:root {
  --bg: #10120f;
  --bg-2: #171a15;
  --bg-3: #22261e;
  --ink: #ebe6db;
  --muted: #b7b0a2;
  --line: rgba(235, 230, 219, 0.14);
  --olive: #a3ae82;
  --brass: #c6a56b;
  --brass-2: #e6d3ae;
  --deep: #1a160f;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1180px;
  --header: 4.5rem;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

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

p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--brass);
  color: var(--deep);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38rem;
}

.sample-note {
  color: var(--muted);
  font-size: 0.86rem;
  border-left: 2px solid var(--olive);
  padding-left: 0.85rem;
  max-width: 40rem;
}

/* Header */

.nav-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem var(--pad);
  background: rgba(16, 18, 15, 0.94);
  border-bottom: 1px solid transparent;
}

body.has-hero .site-header {
  background: linear-gradient(to bottom, rgba(16, 18, 15, 0.72), rgba(16, 18, 15, 0));
  border-bottom-color: transparent;
}

body.has-hero .site-header.is-solid {
  background: rgba(16, 18, 15, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  z-index: 3;
}

.mark { width: 1.85rem; height: 1.85rem; color: var(--brass-2); flex: none; }

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
  position: relative;
}

.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle > span:first-child::before { top: -6px; }
.nav-toggle > span:first-child::after { top: 6px; }

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

.nav-link,
.nav-sub a,
.site-footer a { text-decoration: none; }

.nav-link {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-link[aria-current="page"] { color: var(--brass-2); }

.nav-drop { position: relative; }

.nav-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.9rem;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: -1rem;
  min-width: 16rem;
  padding: 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-sub a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.25rem 0.4rem;
}

.nav-sub a:hover,
.nav-sub a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--brass);
  color: var(--brass-2);
  padding: 0.55rem 0.85rem;
}

.nav-cta:hover { background: var(--brass); color: var(--deep); }

/* Hero and media */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--ink);
}

.hero img,
.feature img,
.page-hero img,
.split-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.feature-shade,
.page-hero-shade,
.split-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 18, 15, 0.88) 0%, rgba(16, 18, 15, 0.28) 46%, rgba(16, 18, 15, 0.35) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) 4.5rem;
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  max-width: 14ch;
}

.hero-actions,
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--brass);
  color: var(--brass-2);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  background: transparent;
}

.btn:hover { background: var(--brass); color: var(--deep); }

.btn-ghost { border-color: rgba(235, 230, 219, 0.4); color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--deep); border-color: var(--ink); }

/* Sections */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head h2,
.block-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.split-intro img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }

.stack { display: grid; gap: 1.1rem; }

.feature {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: var(--pad);
}

.feature-copy {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(16, 18, 15, 0.78);
  display: grid;
  gap: 0.9rem;
}

.feature-copy h2 { font-size: clamp(3rem, 6vw, 5.2rem); }

.statement { padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--bg-2); }

.statement-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 0.96;
  max-width: 16ch;
}

.statement em { font-style: italic; color: var(--olive); }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  background: var(--bg);
  padding: 1.6rem 1.3rem 1.8rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.principles strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.principles p { color: var(--muted); font-size: 0.95rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filters legend {
  margin-right: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.chip.is-on {
  color: var(--ink);
  border-color: var(--olive);
  background: rgba(163, 174, 130, 0.14);
}

.project-grid,
.news-grid,
.team-grid,
.card-grid,
.pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

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

.card {
  background: var(--bg-2);
  min-width: 0;
}

.card a { display: grid; text-decoration: none; height: 100%; }

.card figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 11; background: var(--bg-3); }

.card img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card a:hover img { transform: scale(1.04); }

.card-body,
.pad { padding: 1.1rem 1.15rem 1.3rem; display: grid; gap: 0.45rem; }

.card h3 { font-size: 2rem; }

.meta { color: var(--muted); font-size: 0.92rem; }

.empty {
  color: var(--muted);
  padding: 2rem 0;
}

.biz {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.85rem;
}

.biz a {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.3rem;
  text-decoration: none;
  overflow: hidden;
  background: var(--bg-3);
}

.biz img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.biz a:hover img { transform: scale(1.04); }

.biz-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 15, 0.88), rgba(16, 18, 15, 0.12));
}

.biz h3,
.biz p,
.biz .kicker { position: relative; z-index: 1; }

.biz h3 { font-size: 2.3rem; }

.biz p { color: var(--muted); max-width: 28ch; }

.news-grid article {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.news-grid h3 { font-size: 1.85rem; line-height: 1.05; }

.news-grid figure {
  margin: 0 0 0.2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-3);
}

.news-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-grid article > a {
  display: grid;
  gap: 0.7rem;
  text-decoration: none;
}

.news-grid a:hover h3 { color: var(--brass-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.split-card {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-decoration: none;
  overflow: hidden;
}

.split-card h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); position: relative; z-index: 1; }

.split-card p,
.split-card .kicker { position: relative; z-index: 1; }

.split-card .lede { color: var(--ink); }

/* Interior pages */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + 2rem) 0 3rem;
}

.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 1rem; }

.prose {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.prose p { color: var(--muted); }

.prose strong { color: var(--ink); font-weight: 500; }

.two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.frame { margin: 0; background: var(--bg-3); }

.frame figcaption { color: var(--muted); font-size: 0.85rem; padding-top: 0.55rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.timeline h3 { font-size: 2rem; margin-bottom: 0.45rem; }

.timeline p { color: var(--muted); }

.facts {
  width: 100%;
  border-collapse: collapse;
}

.facts th,
.facts td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}

.facts th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 42%;
  font-weight: 500;
}

.pillars { display: grid; gap: 3rem; }

.pillar {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.pillar:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }

.pillar:nth-child(even) .pillar-copy { order: -1; }

.pillar img { width: 100%; height: 420px; object-fit: cover; }

.pillar-copy { display: grid; gap: 0.8rem; }

.pillar h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.list li {
  padding-left: 1rem;
  border-left: 2px solid var(--olive);
  color: var(--muted);
}

.team-grid article,
.plain-card {
  background: var(--bg-2);
  padding: 1.5rem 1.3rem 1.6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  border-top: 2px solid var(--brass);
}

.team-grid h3,
.plain-card h3 { font-size: 2.1rem; }

.article-body { max-width: 40rem; display: grid; gap: 1.05rem; }

.article-body p { color: var(--muted); font-size: 1.12rem; }

.article-hero img { width: 100%; max-height: 70vh; object-fit: cover; }

/* Forms */

.form {
  display: grid;
  gap: 0.95rem;
  background: var(--bg-2);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.form label { display: grid; gap: 0.35rem; font-size: 0.92rem; color: var(--muted); }

.form input,
.form textarea,
.form select {
  width: 100%;
  background: #12150f;
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  color: var(--ink);
}

.form textarea { min-height: 9rem; resize: vertical; }

.form input:focus,
.form textarea:focus,
.form select:focus { border-color: var(--brass); outline: none; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-note {
  padding: 0.9rem 1rem;
  background: rgba(163, 174, 130, 0.12);
  border: 1px solid var(--olive);
  color: var(--ink);
}

.visit { display: grid; gap: 1.25rem; }

.visit a { color: var(--brass-2); }

.map-hold {
  min-height: 220px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #0c0e0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.site-footer p { color: var(--muted); }

.site-footer nav { display: grid; gap: 0.4rem; align-content: start; }

.site-footer a:hover { color: var(--brass-2); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-base p { color: var(--muted); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .nav-drop::after { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #0c0e0b;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem var(--pad) 2.5rem;
    gap: 0.85rem;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
  }

  .nav-state:checked ~ .site-nav {
    transform: none;
    visibility: visible;
  }

  body:has(.nav-state:checked) { overflow: hidden; }

  .nav-link { font-size: 1.8rem; font-family: var(--serif); }

  .nav-sub {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0.2rem 0 0.4rem 0.2rem;
    min-width: 0;
  }

  .nav-sub a { font-family: var(--sans); font-size: 1rem; }

  .nav-cta { border: 0; padding: 0; }

  .split-intro,
  .two,
  .biz,
  .split,
  .pillar,
  .pillar:nth-child(even) { grid-template-columns: 1fr; }

  .pillar:nth-child(even) .pillar-copy { order: 0; }

  .principles,
  .project-grid,
  .news-grid,
  .team-grid,
  .card-grid,
  .pair,
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }

  .pillar img { height: 280px; }
}

@media (max-width: 680px) {
  .principles,
  .project-grid,
  .news-grid,
  .team-grid,
  .card-grid,
  .pair,
  .footer-grid { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }

  .biz a { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img,
  .frame img,
  .biz img { transition: none; }
}
