:root {
  --chalk: #f4f1ea;
  --paper: #fcf9f2;
  --graphite: #1e2321;
  --green: #2f5d50;
  --oak: #b9824a;
  --red: #c94b3c;
  --line: rgba(30, 35, 33, 0.2);
  --muted: #5f6863;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--graphite);
  font-family: "Inter Tight", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--green);
  color: white;
  padding: 10px 14px;
  font-weight: 900;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 93, 80, 0.5);
  outline-offset: 3px;
}

.craft-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.craft-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 20px 42px;
}

.craft-brand {
  display: grid;
  gap: 4px;
  font-size: 23px;
  font-weight: 900;
}

.craft-brand span,
.craft-kicker,
.measure,
.project-spec span,
dt {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.craft-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.craft-cta,
.craft-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.craft-cta:hover,
.craft-secondary:hover {
  transform: translateY(-1px);
}

.craft-secondary:hover {
  background: var(--graphite);
  color: white;
}

.craft-secondary {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}

.craft-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(520px, 1.16fr);
  gap: 42px;
  align-items: center;
  min-height: 84vh;
  padding: 54px 42px 72px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-plan,
.board-heading,
.material-heading,
.proof-block {
  max-width: 720px;
}

.hero-plan h1,
.board-heading h2,
.material-heading h2,
.proof-block h2,
.craft-form h2 {
  margin: 0;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 900;
}

.hero-plan p,
.board-heading p,
.material-heading p,
.proof-block p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.craft-scope {
  display: grid;
  gap: 1px;
  margin: 26px 0 0;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.craft-scope div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(252, 249, 242, 0.92);
}

.craft-scope dt,
.craft-scope dd {
  margin: 0;
}

.craft-scope dd {
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.annotated-image {
  position: relative;
  margin: 0;
  border: 1px solid var(--graphite);
  background: var(--paper);
}

.annotated-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.annotated-image figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--graphite);
  color: var(--muted);
}

.measure {
  position: absolute;
  padding: 7px 9px;
  background: var(--paper);
  border: 1px solid var(--red);
}

.m1 {
  top: 12%;
  left: 9%;
}

.m2 {
  top: 43%;
  right: 8%;
}

.m3 {
  bottom: 16%;
  left: 13%;
}

.project-board,
.material-studio,
.process-section,
.proof-inquiry {
  padding: 96px 42px;
  border-bottom: 1px solid var(--line);
}

.board-heading,
.material-heading {
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.project-tile {
  min-height: 330px;
  background: var(--paper);
  display: grid;
}

.project-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-tile.wide {
  grid-column: span 2;
}

.project-tile img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--graphite);
}

.plan-drawing {
  position: relative;
  min-height: 320px;
  border-bottom: 1px solid var(--graphite);
  background:
    linear-gradient(rgba(30, 35, 33, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 35, 33, 0.12) 1px, transparent 1px),
    #f8f4ec;
  background-size: 36px 36px;
  overflow: hidden;
}

.project-tile.large .plan-drawing {
  min-height: 460px;
}

.line,
.block,
.cabinet,
.label {
  position: absolute;
}

.horizontal {
  left: 10%;
  right: 10%;
  top: 42%;
  height: 2px;
  background: var(--green);
}

.vertical {
  top: 16%;
  bottom: 16%;
  left: 38%;
  width: 2px;
  background: var(--green);
}

.block {
  background: rgba(185, 130, 74, 0.22);
  border: 1px solid var(--oak);
}

.b1 {
  left: 14%;
  top: 18%;
  width: 26%;
  height: 30%;
}

.b2 {
  right: 14%;
  bottom: 18%;
  width: 34%;
  height: 26%;
}

.label {
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.cabinet {
  top: 22%;
  bottom: 22%;
  border: 1px solid var(--green);
  background: rgba(47, 93, 80, 0.08);
}

.c1 { left: 12%; width: 22%; }
.c2 { left: 39%; width: 22%; }
.c3 { left: 66%; width: 22%; }

.project-tile.large img {
  height: 460px;
}

.project-spec {
  align-self: end;
  padding: 22px;
}

.project-spec h3 {
  margin: 10px 0;
  font-size: 28px;
}

.project-spec p {
  color: var(--muted);
  line-height: 1.55;
}

.project-tile {
  transition: background 180ms ease;
}

.project-tile:hover {
  background: #fffdf8;
}

.swatch-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--graphite);
  background: var(--graphite);
  gap: 1px;
}

.swatch {
  min-height: 210px;
  padding: 18px;
  background: var(--paper);
  display: grid;
  align-content: end;
  gap: 8px;
}

.swatch::before {
  content: "";
  display: block;
  height: 74px;
  background: var(--swatch);
  border: 1px solid rgba(30, 35, 33, 0.24);
}

.swatch span {
  font-size: 22px;
  font-weight: 900;
}

.swatch small {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.process-list li {
  min-height: 260px;
  padding: 22px;
  background: var(--paper);
}

.process-list span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process-list strong {
  display: block;
  font-size: 24px;
}

.process-list p {
  color: var(--muted);
  line-height: 1.55;
}

.proof-inquiry {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.75fr);
  gap: 64px;
  align-items: start;
  background: var(--paper);
}

.proof-block dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.proof-block div {
  padding: 24px;
  background: var(--chalk);
}

dt {
  margin-bottom: 10px;
}

dd {
  margin: 0;
  font-weight: 900;
  font-size: 24px;
}

.craft-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--chalk);
  border: 1px solid var(--graphite);
}

.craft-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.craft-form input,
.craft-form select,
.craft-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--graphite);
  background: transparent;
  color: var(--graphite);
  padding: 11px 0;
}

.craft-form textarea {
  min-height: 96px;
  resize: vertical;
}

.craft-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 42px;
}

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

.craft-footer a {
  color: var(--green);
  font-weight: 900;
}

.craft-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1120px) {
  .craft-links {
    display: none;
  }

  .craft-nav,
  .craft-hero,
  .proof-inquiry,
  .craft-footer {
    grid-template-columns: 1fr;
  }

  .craft-hero {
    min-height: auto;
  }

  .project-grid,
  .swatch-row,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-tile.large,
  .project-tile.wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .craft-nav,
  .craft-hero,
  .project-board,
  .material-studio,
  .process-section,
  .proof-inquiry {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-plan h1,
  .board-heading h2,
  .material-heading h2,
  .proof-block h2,
  .craft-form h2 {
    font-size: 38px;
  }

  .annotated-image img {
    height: 420px;
  }

  .craft-scope div {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .swatch-row,
  .process-list,
  .proof-block dl {
    grid-template-columns: 1fr;
  }

  .project-tile.large,
  .project-tile.wide {
    grid-column: span 1;
  }
}
