:root {
  --ink: #101513;
  --deep: #121817;
  --deep-2: #182120;
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --line: rgba(16, 21, 19, 0.18);
  --line-dark: rgba(244, 241, 235, 0.18);
  --text: #171b19;
  --muted: #66645d;
  --muted-dark: #b7b7ad;
  --white: #fffaf1;
  --accent: #b7a57c;
  --radius: 8px;
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 54px);
  --header-height: 78px;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 21, 19, 0.88);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-cta {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.78);
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 160ms ease, background 160ms ease;
}

.nav-cta:hover {
  background: rgba(255, 250, 241, 0.1);
  border-color: rgba(255, 250, 241, 0.8);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 26px) var(--gutter) 48px;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.72) contrast(1.08);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(12, 17, 16, 0.56) 0%, rgba(12, 17, 16, 0.1) 35%, rgba(12, 17, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 17, 16, 0.72) 0%, rgba(12, 17, 16, 0.18) 52%, rgba(12, 17, 16, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-location {
  margin: 0 0 24px;
  max-width: 230px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 1040px;
  font-family: var(--display);
  font-size: clamp(52px, 8.4vw, 112px);
  line-height: 0.92;
  font-weight: 800;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(260px, 430px) auto;
  align-items: end;
  gap: 32px;
  margin-top: 24px;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(16px, 1.4vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 250, 241, 0.45);
  background: rgba(255, 250, 241, 0.08);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 250, 241, 0.14);
}

.section-pad {
  padding: clamp(74px, 10vw, 132px) var(--gutter);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

.light-section {
  background: var(--paper);
}

.section-grid,
.section-heading,
.contact-grid,
.detail-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(42px, 8vw, 112px);
}

.section-index {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 88px);
  line-height: 0.95;
  font-weight: 720;
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.02;
  font-weight: 650;
}

.editorial-copy {
  max-width: 610px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.28;
}

.editorial-copy p {
  margin: 0;
}

.editorial-copy p + p {
  margin-top: 30px;
  color: var(--muted);
}

.work,
.detail-panel,
.contact {
  background: var(--deep);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 430px);
  align-items: end;
  gap: clamp(36px, 7vw, 86px);
  margin-bottom: clamp(34px, 6vw, 72px);
}

.work .section-index,
.detail-panel .section-index,
.contact .section-index {
  color: var(--muted-dark);
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.work .section-note,
.contact .contact-copy p {
  color: var(--muted-dark);
}

.project-stack {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  min-height: 430px;
  background: var(--deep-2);
  border: 1px solid var(--line-dark);
}

.project-panel-wide {
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
}

.project-panel-wide img {
  order: 2;
}

.project-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
}

.project-meta {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(24px, 4vw, 44px);
  color: rgba(255, 250, 241, 0.86);
  font-size: 12px;
  text-transform: uppercase;
}

.project-meta span {
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
}

.practice-list {
  border-top: 1px solid var(--line);
}

.practice-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 4vw, 54px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.practice-row span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 25px;
}

.practice-row p,
.craft-item p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
}

.detail-shell > * {
  min-width: 0;
}

.detail-copy h2 {
  max-width: 8ch;
  font-size: clamp(36px, 5.6vw, 78px);
  line-height: 0.94;
}

.detail-copy p:not(.section-index) {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted-dark);
  font-size: 17px;
}

.drawing-board {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.05), rgba(255, 250, 241, 0.02)),
    #151d1c;
}

.drawing-grid {
  position: absolute;
  inset: 24px;
  background-image:
    linear-gradient(rgba(255, 250, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 241, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
}

.drawing-line {
  position: absolute;
  background: rgba(255, 250, 241, 0.74);
  transform-origin: left center;
}

.line-one {
  top: 134px;
  left: 72px;
  width: 72%;
  height: 1px;
  transform: rotate(0deg);
}

.line-two {
  top: 108px;
  left: 144px;
  width: 1px;
  height: 270px;
}

.line-three {
  right: 74px;
  top: 240px;
  width: 56%;
  height: 1px;
  transform: rotate(-24deg);
}

.material {
  position: absolute;
  display: grid;
  align-items: end;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
}

.material-stone {
  top: 72px;
  right: 58px;
  width: 132px;
  background: linear-gradient(120deg, #807a70, #b4ab9a);
}

.material-timber {
  top: 234px;
  left: 72px;
  width: 164px;
  background: linear-gradient(120deg, #3a2a1e, #8c6d49);
}

.material-glass {
  right: 112px;
  bottom: 170px;
  width: 190px;
  background: linear-gradient(120deg, rgba(169, 191, 190, 0.7), rgba(236, 241, 232, 0.22));
}

.detail-notes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-dark);
  background: rgba(18, 24, 23, 0.84);
}

.detail-notes div {
  padding: 20px;
  border-right: 1px solid var(--line-dark);
}

.detail-notes div:last-child {
  border-right: 0;
}

.detail-notes dt {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 22px;
}

.detail-notes dd {
  margin: 0;
  color: var(--muted-dark);
  font-size: 13px;
}

.craft-columns {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.craft-item {
  min-height: 250px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(320px, 520px);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.contact-copy p {
  max-width: 500px;
  margin: 30px 0 0;
  font-size: 17px;
}

.direct-contact {
  display: inline-block;
  margin-top: 34px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-dark);
  background: rgba(255, 250, 241, 0.04);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 241, 0.74);
  font-size: 12px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  padding: 10px 0 12px;
  font-size: 16px;
  text-transform: none;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

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

.contact-form .button {
  width: fit-content;
  margin-top: 12px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--gutter);
  background: #0d1211;
  color: rgba(255, 250, 241, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-copy,
  .section-grid,
  .section-heading,
  .detail-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .project-panel,
  .project-panel-wide {
    grid-template-columns: 1fr;
  }

  .project-panel-wide img {
    order: 0;
  }

  .project-panel {
    min-height: 0;
  }

  .project-panel img {
    min-height: 320px;
    aspect-ratio: 16 / 11;
  }

  .craft-columns,
  .detail-notes {
    grid-template-columns: 1fr;
  }

  .detail-notes {
    position: relative;
    margin-top: 360px;
  }

  .detail-notes div {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .detail-notes div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(46px, 17vw, 78px);
  }

  .hero-copy {
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .section-pad {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  h2 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .editorial-copy {
    font-size: 21px;
  }

  .practice-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .drawing-board {
    min-height: 520px;
  }

  .material-stone {
    right: 24px;
  }

  .material-timber {
    left: 24px;
  }

  .material-glass {
    right: 42px;
    width: 154px;
  }

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