:root {
  --bg: #f3efe7;
  --paper: #faf8f4;
  --ink: #1c1a16;
  --muted: #6d675d;
  --line: #ddd6c8;
  --bronze: #8a7356;
  --white: #ffffff;
  --dark: #141210;
  --nav-h: 92px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1240px;
  --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 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 244, 0.96);
}

.site-header.is-hero {
  position: absolute;
  width: 100%;
  background: transparent;
  color: var(--white);
}

.site-header.is-hero.is-open {
  background: rgba(20, 18, 16, 0.96);
}

.site-header.is-hero.is-scrolled {
  position: sticky;
  background: rgba(250, 248, 244, 0.96);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-header.is-hero.is-scrolled .nav a {
  color: var(--muted);
}

.site-header.is-hero.is-scrolled .nav a:hover,
.site-header.is-hero.is-scrolled .nav a.is-active {
  color: var(--ink);
}

.site-header.is-hero.is-open {
  position: sticky;
  background: rgba(20, 18, 16, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}

.site-header.is-hero .nav a {
  color: rgba(255, 255, 255, 0.78);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.site-header.is-hero .nav a:hover,
.site-header.is-hero .nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 16, 0.72) 0%,
    rgba(20, 18, 16, 0.28) 45%,
    rgba(20, 18, 16, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto 7rem;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

/* Layout */

.section {
  padding: 7.5rem 0;
}

.section-tight {
  padding: 5rem 0;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.prose {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 1.15rem;
}

.page-hero {
  padding: 8.5rem 0 4.5rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
}

/* Statement band */

.band {
  background: var(--dark);
  color: var(--paper);
  padding: 5.5rem 0;
}

.band p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  max-width: 22ch;
}

/* Grids */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.split.flip {
  grid-template-columns: 1.15fr 1fr;
}

.split.flip .split-copy {
  order: 2;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
}

.value {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.value h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.value p {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: 3.5rem;
}

.fact {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}

.fact span {
  color: var(--muted);
  font-size: 1rem;
}

.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.activity {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: flex-end;
}

.activity img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}

.activity:hover img {
  transform: scale(1.04);
  opacity: 0.42;
}

.activity-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.activity h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.activity p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
}

.activity.plain {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.activity.plain p {
  color: var(--muted);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
}

.project {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.project:nth-child(even) {
  grid-template-columns: 1fr 1.35fr;
}

.project:nth-child(even) .project-copy {
  order: -1;
}

.project-visual {
  min-height: 420px;
  background: #e4ddd1;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.project-visual.placeholder {
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(28, 26, 22, 0.04), rgba(28, 26, 22, 0.12)),
    var(--paper);
  border: 1px solid var(--line);
}

.project-visual.placeholder span {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(28, 26, 22, 0.18);
  line-height: 1;
}

.project-copy .status {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.8rem;
}

.project-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.project-copy .place {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.meta li span:first-child {
  color: var(--muted);
}

.home-projects {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.home-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  color: var(--white);
  background: var(--dark);
}

.home-card.tall {
  min-height: 580px;
  grid-row: span 2;
}

.home-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.home-card figcaption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
}

.home-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.home-card p {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.2rem;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-line::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.link-line:hover::after {
  width: 64px;
}

.portrait {
  max-width: 740px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2.8rem 0 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.timeline strong {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--bronze);
}

.timeline span {
  color: var(--muted);
}

.portrait h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 500;
  margin: 0.4rem 0 0.3rem;
}

.portrait .role {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--bronze);
  margin-bottom: 1.8rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-list span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-list a:hover {
  color: var(--bronze);
}

.map {
  margin-top: 4rem;
  height: 420px;
  border: 0;
  width: 100%;
  filter: grayscale(0.35) contrast(0.95);
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.85rem 0;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
}

.btn {
  justify-self: start;
  margin-top: 0.8rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.8rem;
  min-height: 44px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.alert {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.alert.ok {
  color: #2d4a34;
}

.alert.err {
  color: #7a2e24;
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: rgba(250, 248, 244, 0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .logo img {
  height: 38px;
  margin-bottom: 1.2rem;
}

.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.5);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.45);
}

.legal p + p {
  margin-top: 1.1rem;
  color: var(--muted);
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 2.5rem 0 0.8rem;
}

/* Responsive */

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    color: inherit;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-hero .nav {
    background: var(--dark);
  }

  .site-header.is-open .nav {
    display: flex;
    z-index: 60;
  }

  .nav a {
    color: var(--ink);
    font-size: 0.9rem;
  }

  .site-header.is-hero .nav a {
    color: var(--paper);
  }

  .split,
  .split.flip,
  .project,
  .project:nth-child(even),
  .contact-grid,
  .footer-grid,
  .home-projects,
  .activities,
  .values,
  .form-row {
    grid-template-columns: 1fr;
  }

  .split.flip .split-copy,
  .project:nth-child(even) .project-copy {
    order: 0;
  }

  .home-card.tall {
    min-height: 360px;
    grid-row: auto;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-bottom: 4.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
  }

  .nav-wrap,
  .wrap,
  .hero-content {
    width: calc(100% - 1.5rem);
  }

  .logo img {
    height: 32px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    margin-bottom: 3.2rem;
  }

  .hero h1,
  .page-hero h1,
  .display {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-tight,
  .page-hero {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .activity {
    min-height: 240px;
  }

  .project-visual,
  .project-visual img {
    min-height: 220px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nav a {
    padding: 0.45rem 0;
    font-size: 1rem;
  }
}
