:root {
  /* Brand palette from the 2026 guidelines and the business card. The page is
     light ivory; the shop video shows through only in the hero and the two bands. */
  --paper: #f1ece4;
  --paper-deep: #e9e2d6;
  --paper-light: #faf7f1;
  --sand: #e6d8c3;
  --ink: #393f2f;
  --muted: rgba(57, 63, 47, 0.72);
  --faint: rgba(57, 63, 47, 0.5);
  --line: rgba(57, 63, 47, 0.16);
  --green: #393f2f;
  --green-deep: #2b3024;
  --copper: #c4875a;
  --copper-text: #b5754a;
  --ivory: #f1ece4;
  /* Jost, the logo's MILLWORKS face, for everything; Cinzel lives only inside the logo */
  --display: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--green-deep);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 300; }
h1 { font-size: clamp(38px, 6.2vw, 78px); letter-spacing: 0.005em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: 0.005em; }
h3 { font-size: 21px; font-weight: 400; }
p { margin: 0; }
p + p { margin-top: 1em; }
img { max-width: 100%; }
figure { margin: 0; }

.eyebrow { font: 500 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.26em; color: var(--copper-text); margin-bottom: 18px; }
.eyebrow-light { color: rgba(241, 236, 228, 0.85); }
.eyebrow-copper { color: var(--copper); }

/* Buttons: tracked uppercase, square corners */
.btn {
  display: inline-block; font: 500 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ivory); background: var(--green); border: 1px solid var(--green);
  padding: 17px 30px 15px; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-light { color: var(--ivory); background: transparent; border-color: rgba(241, 236, 228, 0.8); }
.btn-light:hover { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.text-link {
  font: 500 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 5px;
}
.text-link:hover { color: var(--copper-text); }
.text-link-light { color: var(--ivory); border-bottom-color: rgba(241, 236, 228, 0.6); }
.text-link-light:hover { color: var(--ivory); border-bottom-color: var(--ivory); }
p a.text-link { font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; padding-bottom: 2px; }

/* The pinned video behind the page */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--green-deep); }
.site-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.site-bg video.is-active { opacity: 1; }

/* Announcement bar */
.banner { background: var(--copper); color: var(--green-deep); position: relative; z-index: 3; }
.banner-row { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding-block: 6px; font-size: 14px; letter-spacing: 0.02em; text-align: center; }
.banner-close { flex: none; width: 30px; height: 30px; border: 0; background: transparent; color: inherit; font: 22px/1 var(--body); cursor: pointer; }
.banner-close:hover { background: rgba(5, 5, 4, 0.1); }

/* Header: floats over the hero, becomes a solid ivory bar after it */
.site-header { position: sticky; top: 0; z-index: 2; background: transparent; transition: background 0.3s, box-shadow 0.3s; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo-header { display: block; line-height: 0; position: relative; }
.logo-header img { height: 36px; width: auto; display: block; transition: opacity 0.3s; }
.logo-header .logo-green { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid { background: rgba(241, 236, 228, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .logo-ivory { opacity: 0; }
.site-header.is-solid .logo-green { opacity: 1; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { font: 500 12.5px/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none; color: var(--ivory); padding: 8px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover { border-bottom-color: currentColor; }
.nav .nav-cta { color: var(--ivory); }
.site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .nav .nav-cta { color: var(--copper-text); }
.menu-button { display: none; font: 500 12.5px/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em; background: transparent; border: 1px solid currentColor; color: var(--ivory); padding: 11px 16px 9px; cursor: pointer; }
.site-header.is-solid .menu-button { color: var(--ink); }

/* Hero: the video at full strength, one line, one button */
.hero {
  position: relative; min-height: 100svh; margin-top: calc(-1 * var(--header-h));
  display: grid; align-items: end;
  padding-block: clamp(96px, 16vh, 180px) clamp(64px, 12vh, 140px);
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.35) 0%, rgba(10, 14, 10, 0.1) 40%, rgba(10, 14, 10, 0.55) 100%);
  color: var(--ivory);
}
.hero-copy { position: relative; max-width: 820px; margin-inline: auto; width: 100%; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.lede { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; color: rgba(241, 236, 228, 0.92); margin-top: 22px; max-width: 46ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }


/* Sections: solid ivory over the video */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); background: var(--paper); }
.section-tint { background: var(--paper-deep); }
.section-light { background: var(--paper-light); }
.section-sand { background: var(--sand); }
.section-sand .eyebrow { color: #9c6238; }
.section-green { background: var(--green); color: var(--ivory); }
.section-green .eyebrow { color: var(--copper); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 54ch; font-weight: 300; font-size: 18px; }

/* Introduction */
.section-intro-block { text-align: center; }
.section-intro-block .eyebrow { margin-bottom: 22px; }
.statement { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 28px; }
.section-intro-block p:not(.eyebrow) { font-weight: 300; font-size: 18px; color: var(--muted); max-width: 62ch; margin-inline: auto; }
.section-intro-block p + p { margin-top: 1.1em; }

/* Studies: an editorial grid, one tall photo and three wide */
.studies { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.study { grid-column: span 6; }
.study-tall { grid-column: span 5; grid-row: span 2; }
.study-tall + .study, .study-tall + .study + .study { grid-column: span 7; }
.study-wide { grid-column: span 12; }
.study img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-deep); }
.study-tall img { aspect-ratio: 4 / 5; height: 100%; }
.study-wide img { aspect-ratio: 21 / 9; }
.study figcaption { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; margin-top: 14px; font-size: 15px; }
.study figcaption strong { font-weight: 500; letter-spacing: 0.02em; }
.study figcaption span { color: var(--faint); font-weight: 300; }

/* Full-width video bands between sections */
.band { position: relative; min-height: 58vh; display: grid; align-items: center; background: linear-gradient(180deg, rgba(10, 14, 10, 0.3), rgba(10, 14, 10, 0.3)); color: var(--ivory); }
.band-copy { text-align: center; }
.band-line { font: 300 clamp(22px, 3vw, 34px)/1.3 var(--display); max-width: 30ch; margin-inline: auto; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }

/* Services: a photo beside four short blocks */
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.services-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.services { margin: 36px 0 36px; border-top: 1px solid var(--line); }
.services div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.services dt { font: 400 20px/1.3 var(--display); }
.services dd { margin: 8px 0 0; color: var(--muted); font-weight: 300; font-size: 16.5px; }

/* Wall panels in 3D (panels.js draws into .panel-stage) */
.panels-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.panels-solo { max-width: 760px; }
.panel-points { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.panel-points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 300; color: var(--muted); line-height: 1.55; }
.panel-points strong { font-weight: 500; color: var(--ink); }
.panel-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.panel-picker button {
  font: 500 12px var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); background: transparent;
  border: 1px solid var(--line); padding: 10px 14px 9px; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.panel-picker button:hover { border-color: var(--copper); }
.panel-picker button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ivory); }
.panel-caption { margin-top: 20px; color: var(--muted); font-weight: 300; }
.panel-hint { font-size: 14px; color: var(--faint); margin-top: 10px; }
.panel-stage {
  position: relative; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 35%, #fbf8f2, var(--paper-deep) 75%);
}
.panel-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.panel-stage canvas:active { cursor: grabbing; }
.panel-zoom { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 1; }
.panel-zoom button {
  width: 38px; height: 38px; border: 1px solid var(--line);
  background: rgba(241, 236, 228, 0.85); color: var(--ink); font: 400 20px/1 var(--body); cursor: pointer;
}
.panel-zoom button:hover { border-color: var(--copper); color: var(--copper-text); }
.panel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-status[hidden] { display: none; }
.panel-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: 15px; }
.panel-poster:not([hidden]) + .panel-status { inset: auto 0 0 0; background: rgba(241, 236, 228, 0.9); padding: 10px; }

/* Process on green */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgba(241, 236, 228, 0.25); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font: 500 12px var(--body); color: var(--copper); letter-spacing: 0.26em; margin-bottom: 14px; }
.steps h3 { color: var(--ivory); }
.steps p { color: rgba(241, 236, 228, 0.75); font-weight: 300; font-size: 16.5px; margin-top: 10px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-copy p:not(.eyebrow) { font-weight: 300; font-size: 18px; color: var(--muted); max-width: 46ch; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy .btn { margin-top: 32px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.about-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); letter-spacing: 0.04em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-copy p:not(.eyebrow) { font-weight: 300; font-size: 18px; color: var(--muted); max-width: 40ch; margin-top: 18px; }
.contact-lines { line-height: 1.9; }
.contact-lines a, .footer-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-lines a:hover { color: var(--copper-text); border-bottom-color: var(--copper); }
.quote-form { display: grid; gap: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; font: 500 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink); }
.optional { font-weight: 400; color: var(--faint); letter-spacing: 0.1em; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"], .quote-form textarea, .quote-form select {
  width: 100%; font: 400 17px/1.4 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink);
  background: #fbf9f5; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px;
}
.quote-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23393f2f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.quote-form select:invalid { color: var(--faint); }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--faint); }
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { outline: none; border-color: var(--copper); }
.quote-form input[type="file"] { font: 300 15px var(--body); text-transform: none; letter-spacing: 0; max-width: 100%; color: var(--muted); }
.quote-form input[type="file"]::file-selector-button {
  font: 500 12px/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em;
  padding: 13px 20px 11px; margin: 0 14px 0 0; border: 1px solid var(--green); border-radius: 0;
  background: var(--green); color: var(--ivory); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.quote-form input[type="file"]::file-selector-button:hover { background: var(--green-deep); }
.quote-form textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); padding: 16px 18px 18px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; min-width: 0; }
legend { font: 500 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.16em; padding: 0 8px; }
.quote-form label.check { display: flex; align-items: center; gap: 10px; font: 300 15.5px/1.4 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.check input { width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.quote-form .btn { justify-self: start; }
.form-note { background: rgba(196, 135, 90, 0.14); border-left: 2px solid var(--copper); padding: 12px 16px; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* The quote form on green */
.section-green .contact-copy p:not(.eyebrow) { color: rgba(241, 236, 228, 0.78); }
.section-green .contact-lines a { color: var(--ivory); border-bottom-color: rgba(241, 236, 228, 0.35); }
.section-green .contact-lines a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.section-green .quote-form label { color: var(--ivory); }
.section-green .optional { color: rgba(241, 236, 228, 0.55); }
.section-green .quote-form input[type="text"], .section-green .quote-form input[type="email"], .section-green .quote-form input[type="tel"], .section-green .quote-form textarea, .section-green .quote-form select {
  background: rgba(241, 236, 228, 0.07); border-color: rgba(241, 236, 228, 0.3); color: var(--ivory);
}
.section-green .quote-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f1ece4' stroke-width='1.5'/%3E%3C/svg%3E");
}
.section-green .quote-form select option { color: var(--ink); background: var(--paper); }
.section-green .quote-form select:invalid, .section-green .quote-form input::placeholder, .section-green .quote-form textarea::placeholder { color: rgba(241, 236, 228, 0.45); }
.section-green .quote-form input:focus, .section-green .quote-form textarea:focus, .section-green .quote-form select:focus { background: rgba(241, 236, 228, 0.12); border-color: var(--copper); }
.section-green .quote-form input[type="file"] { color: rgba(241, 236, 228, 0.75); }
.section-green .quote-form input[type="file"]::file-selector-button { background: transparent; border-color: rgba(241, 236, 228, 0.8); color: var(--ivory); }
.section-green .quote-form input[type="file"]::file-selector-button:hover { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.section-green fieldset { border-color: rgba(241, 236, 228, 0.3); }
.section-green legend { color: var(--ivory); }
.section-green .quote-form label.check { color: rgba(241, 236, 228, 0.8); }
.section-green .check input { accent-color: var(--copper); }
.section-green .quote-form .btn { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.section-green .quote-form .btn:hover { background: #fff; border-color: #fff; }
.section-green .form-note { background: rgba(196, 135, 90, 0.2); color: var(--ivory); }

/* Footer on green */
.site-footer { background: var(--green-deep); color: rgba(241, 236, 228, 0.78); padding-block: clamp(48px, 7vw, 80px); font-size: 15px; font-weight: 300; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 60px; height: auto; }
.footer-name { font: 500 12.5px var(--display); text-transform: uppercase; letter-spacing: 0.26em; color: var(--ivory); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font: 500 12px/1 var(--body); text-transform: uppercase; letter-spacing: 0.2em; color: rgba(241, 236, 228, 0.78); text-decoration: none; }
.footer-nav a:hover { color: var(--ivory); }
.footer-contact { text-align: right; line-height: 1.9; }
.footer-contact a { color: var(--ivory); border-bottom-color: rgba(241, 236, 228, 0.3); }
.footer-contact a:hover { color: var(--copper); }

@media (max-width: 900px) {
  .services-grid, .about-grid, .contact-grid, .panels-grid { grid-template-columns: 1fr; }
  .services-photo img { aspect-ratio: 16 / 10; }
  .about-photo { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-contact { text-align: center; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(0, 0, 0, 0.12); }
  .nav.open { display: flex; }
  .nav a, .site-header .nav a { color: var(--ink); padding: 18px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
  .nav .nav-cta, .site-header .nav .nav-cta { color: var(--copper-text); }
  .menu-button { display: block; }
  .logo-header img { height: 32px; }
  .hero { padding-bottom: 72px; background: linear-gradient(180deg, rgba(10, 14, 10, 0.4) 0%, rgba(10, 14, 10, 0.15) 45%, rgba(10, 14, 10, 0.6) 100%); }
  .hero-actions { gap: 22px; }
  .studies { grid-template-columns: 1fr; gap: 28px; }
  .study, .study-tall, .study-wide, .study-tall + .study, .study-tall + .study + .study { grid-column: span 1; grid-row: auto; }
  .study-tall img { height: auto; aspect-ratio: 4 / 5; }
  .study-wide img { aspect-ratio: 16 / 10; }
  .band { min-height: 46vh; }
  .field-row, fieldset { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-bg video { transition: none; }
}
