:root {
  --ink: #171512;
  --muted: #6f665d;
  --paper: #f4efe6;
  --surface: #fffaf2;
  --surface-strong: #fbf5ec;
  --line: #d8caba;
  --line-soft: rgba(216, 202, 186, 0.64);
  --wood: #9a673d;
  --olive: #3f5144;
  --sage: #84927f;
  --charcoal: #252421;
  --brass: #d4ac75;
  --shadow: 0 26px 70px rgba(37, 36, 33, 0.12);
  --radius: 8px;
  --page-pad: clamp(20px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body:not(.admin-body) {
  animation: pageFade 520ms ease both;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--page-pad);
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #49443d;
  font-size: 14px;
  font-weight: 700;
}

nav a,
.header-cta,
.button,
.contact-form button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

nav a:hover {
  color: var(--wood);
}

.header-cta,
.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.header-cta {
  padding: 0 20px;
  color: var(--surface);
  background: var(--charcoal);
  white-space: nowrap;
}

.header-cta:hover,
.button:hover,
.contact-form button:hover {
  transform: translateY(-2px);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(34px, 5vw, 70px) var(--page-pad) clamp(42px, 6vw, 86px);
}

.hero-copy {
  max-width: 640px;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 6.4vw, 112px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(36px, 4.9vw, 72px);
  line-height: 0.96;
}

.hero-text {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
}

.button-primary {
  color: var(--surface);
  background: var(--charcoal);
}

.button-secondary {
  color: var(--charcoal);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(37, 36, 33, 0.06);
}

.hero-media {
  position: relative;
  min-height: clamp(520px, 58vw, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  content: "";
  background: linear-gradient(to top, rgba(23, 21, 18, 0.5), rgba(23, 21, 18, 0));
  pointer-events: none;
}

.media-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: min(360px, calc(100% - 44px));
  padding: 22px;
  color: var(--surface);
  background: rgba(23, 21, 18, 0.82);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.media-panel strong,
.media-panel span {
  display: block;
}

.media-panel strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.media-panel span {
  color: rgba(255, 250, 242, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--page-pad);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-strip article {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
}

.proof-strip span,
.section-label,
.system-list span {
  display: block;
  color: var(--wood);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  margin-top: 22px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.proof-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.studio,
.systems,
.photo-led,
.process,
.contact {
  padding: clamp(82px, 8vw, 128px) var(--page-pad);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: end;
}

.section-label {
  margin: 0 0 18px;
}

.studio > p,
.material-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
}

.image-band {
  height: min(56vw, 700px);
  margin: 0 var(--page-pad);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-heading h2 {
  max-width: 850px;
}

.systems .section-heading {
  display: block;
}

.systems .section-heading h2 {
  max-width: 1120px;
  font-size: clamp(46px, 6.8vw, 92px);
  line-height: 0.94;
}

.section-heading.compact {
  align-items: start;
}

.system-list {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  max-width: 980px;
  margin: 0;
  padding: 0 0 0 1.35em;
  border-top: 1px solid var(--line);
  list-style: disc;
}

.system-list li {
  padding: clamp(26px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.system-list li::marker {
  color: var(--wood);
  font-size: 1.35em;
}

.system-list h3 {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.system-list p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.photo-led {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  background: var(--surface-strong);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.photo-led-copy {
  position: sticky;
  top: 112px;
}

.photo-led-copy p:not(.section-label) {
  max-width: 460px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  display: grid;
  gap: 12px;
  margin: 0;
}

.photo-card img {
  aspect-ratio: 1.1 / 1;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(37, 36, 33, 0.08);
}

.photo-card.wide {
  grid-column: 1 / -1;
}

.photo-card.wide img {
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.photo-card.product img {
  padding: clamp(16px, 2.4vw, 30px);
  object-fit: contain;
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(64px, 8vw, 118px) var(--page-pad);
  color: var(--surface);
  background: var(--charcoal);
}

.material-image {
  height: clamp(420px, 42vw, 620px);
  overflow: hidden;
  border-radius: var(--radius);
}

.material-copy .section-label {
  color: var(--brass);
}

.material-copy p {
  max-width: 520px;
  margin-top: 28px;
  color: rgba(255, 250, 242, 0.72);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-steps article {
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface-strong);
}

.process-steps span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
}

.process-steps p {
  margin: 72px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-copy p {
  max-width: 560px;
  margin-top: 26px;
}

.contact-mini {
  display: grid;
  gap: 8px;
  max-width: 430px;
  margin-top: 42px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-mini span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: #5f574f;
  font-size: 13px;
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d3c3b2;
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(63, 81, 68, 0.18);
  border-color: var(--olive);
}

.contact-form button {
  width: fit-content;
  min-height: 52px;
  padding: 0 24px;
  color: var(--surface);
  background: var(--olive);
  border-color: var(--olive);
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-status.success,
.lead-save-status.success {
  color: #3f6748;
}

.form-status.error,
.lead-save-status.error {
  color: #9a3f35;
}

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

.js .reveal {
  opacity: 1;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.admin-body {
  min-height: 100vh;
  background: #f6f0e7;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 46px clamp(18px, 4vw, 56px) 28px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.admin-main {
  padding: 28px clamp(18px, 4vw, 56px) 72px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.admin-summary article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-summary span,
.lead-card-top span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
}

.lead-board {
  display: grid;
  gap: 18px;
}

.lead-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(33, 28, 22, 0.08);
}

.lead-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lead-card h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.priority {
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe5da;
  color: var(--charcoal);
  font-size: 12px;
}

.priority-hot {
  color: #7b2e27;
  background: #f4cccc;
}

.priority-warm {
  color: #795325;
  background: #f7dfb9;
}

.priority-cold {
  color: #385b68;
  background: #dcebf0;
}

.lead-card dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 18px;
  background: rgba(246, 240, 231, 0.58);
  border-radius: var(--radius);
}

.lead-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.lead-update-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lead-update-form label {
  display: grid;
  gap: 8px;
  color: #5c554e;
  font-size: 12px;
  font-weight: 800;
}

.lead-update-form .wide {
  grid-column: span 2;
}

.lead-update-form input,
.lead-update-form select,
.lead-update-form textarea {
  width: 100%;
  border: 1px solid #d5c6b4;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.lead-update-form textarea {
  min-height: 74px;
  resize: vertical;
}

.lead-update-form button {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--surface);
  background: var(--olive);
  font-weight: 800;
  cursor: pointer;
}

.lead-save-status {
  align-self: center;
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    display: none;
  }

  .hero,
  .studio,
  .photo-led,
  .material-story,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 560px;
  }

  .proof-strip,
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .photo-led-copy {
    position: static;
  }

  .admin-summary,
  .lead-update-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    gap: 16px;
    padding: 14px var(--page-pad);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.98;
  }

  .hero-text {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 410px;
  }

  .media-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 16px;
  }

  .proof-strip,
  .process-steps,
  .contact-form,
  .admin-summary,
  .lead-update-form {
    grid-template-columns: 1fr;
  }

  .studio,
  .systems,
  .photo-led,
  .process,
  .contact {
    padding: 76px var(--page-pad);
  }

  .image-band {
    height: 84vw;
  }

  .system-list li {
    padding: 32px 0;
  }

  .system-list h3 {
    font-size: 28px;
  }

  .material-story {
    padding: 68px var(--page-pad);
  }

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

  .photo-card.wide {
    grid-column: auto;
  }

  .photo-card.wide img,
  .photo-card img {
    aspect-ratio: 1.25 / 1;
  }

  .material-image {
    height: 360px;
  }

  .process-steps article {
    min-height: auto;
  }

  .process-steps p {
    margin-top: 38px;
  }

  .contact-form .full,
  .lead-update-form .wide {
    grid-column: auto;
  }

  .contact-form button {
    width: 100%;
  }

  .admin-header {
    align-items: start;
    flex-direction: column;
  }

  .lead-card dl {
    grid-template-columns: 1fr;
  }
}
