:root {
  --ink: #10100e;
  --muted: #6e6b61;
  --line: #d6d4cb;
  --paper: #f1f0eb;
  --paper-strong: #fbfaf5;
  --yellow: #c9b65a;
  --yellow-soft: #ded28b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--ink);
  background: rgba(244, 241, 233, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 0.16em;
  align-items: baseline;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0;
}

.brand span:nth-child(2) {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 42px);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: currentColor;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46vw);
  gap: clamp(28px, 5vw, 72px);
  padding-inline: clamp(20px, 4vw, 56px);
}

.hero {
  row-gap: clamp(14px, 1.5vw, 18px);
  min-height: calc(86svh - 68px);
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(8px, 1vw, 12px);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  align-self: center;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: clamp(22px, 3vw, 34px);
  font-size: clamp(3rem, 7.8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 0;
  color: #34322d;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  word-break: keep-all;
}

.hero-media {
  align-self: center;
  margin: 0;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-media img {
  display: block;
  width: 100%;
  height: min(53svh, 520px);
  object-fit: cover;
}

.hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-meta span {
  padding: 16px 0;
}

.hero-meta span + span {
  border-left: 1px solid var(--ink);
  padding-left: clamp(16px, 2vw, 28px);
}

.portfolio,
.about,
.contact {
  padding: clamp(56px, 9vw, 118px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--ink);
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.work-list {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  margin-top: clamp(28px, 4vw, 54px);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.work-card {
  min-height: clamp(300px, 35vw, 480px);
  background: var(--paper-strong);
}

.work-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
}

.work-card a::before {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: min(52%, 260px);
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 49%, rgba(16, 16, 14, 0.18) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(16, 16, 14, 0.18) 50%, transparent 51%),
    var(--yellow-soft);
  opacity: 0.8;
  transform: translateY(18%);
  transition:
    transform 240ms ease,
    opacity 240ms ease;
}

.work-card a:hover::before,
.work-card a:focus-visible::before {
  opacity: 1;
  transform: translateY(6%);
}

.work-card.is-featured {
  background: var(--ink);
  color: var(--paper-strong);
}

.work-card.is-featured a::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 28px),
    var(--yellow);
}

.work-index,
.work-tag {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card h3 {
  position: relative;
  z-index: 1;
  max-width: 8ch;
  margin: auto 0 18px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.work-card p {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  color: inherit;
  word-break: keep-all;
}

.about {
  align-items: start;
}

.about-copy {
  align-self: end;
  max-width: 720px;
  font-size: clamp(1.25rem, 2.2vw, 2.25rem);
  line-height: 1.28;
  word-break: keep-all;
}

.capability-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(30px, 5vw, 64px) 0 0;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.capability-list div {
  min-height: 160px;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--paper);
}

.capability-list dt {
  margin-bottom: 34px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-list dd {
  margin: 0;
  color: #34322d;
  word-break: keep-all;
}

.contact {
  padding-bottom: 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 72px);
}

address {
  display: grid;
  gap: 14px;
  align-content: end;
  color: #34322d;
  font-style: normal;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
}

address a {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
}

.map-strip {
  position: relative;
  height: clamp(190px, 25vw, 320px);
  margin-top: clamp(42px, 6vw, 84px);
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 16, 14, 0.16) 1px, transparent 1px) 0 0 / 9vw 100%,
    linear-gradient(0deg, rgba(16, 16, 14, 0.12) 1px, transparent 1px) 0 0 / 100% 58px,
    var(--paper-strong);
}

.map-strip::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 8%;
  top: 52%;
  height: 1px;
  background: var(--ink);
  transform: rotate(-3deg);
}

.map-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  background: var(--yellow);
}

.node-a {
  left: 16%;
  top: 42%;
}

.node-b {
  left: 48%;
  top: 55%;
  background: var(--ink);
}

.node-c {
  right: 14%;
  top: 38%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .section-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    row-gap: 16px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-media {
    border-left: 0;
  }

  .hero-media img {
    height: clamp(220px, 34svh, 360px);
  }

  .work-list,
  .capability-list,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta span + span {
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding-left: 0;
  }

  .work-card {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .hero-media img {
    height: clamp(190px, 28svh, 260px);
  }

  .hero-summary {
    font-size: 0.95rem;
  }

  .hero-meta span {
    padding: 10px 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
