/* ==========================================================================
   Stone Crafters
   Quiet, type-led system: pale stone-grey ground, light Hanken Grotesk headings,
   hairline rules, framed imagery, monochrome palette.
   ========================================================================== */

:root {
  --bg: #f0f2f1;
  --paper: #f7f8f7;
  --ink: #1c1c1a;
  --text: #4b5352;
  --muted: #8b9392;
  --line: #d3d9d7;
  --dark: #1e2323;
  --accent: #1c1c1a;        /* stone black: top strip, closing band */
  --accent-deep: #000;
  --orange: #d0633a;        /* buttons and small accents */
  --orange-deep: #b5532f;
  --orange-text: #a84b28;   /* orange for small text on the grey ground */
  --on-accent: #eef1ee;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 120px; }

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 400; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: 1.15rem; max-width: 620px; }

section { padding: 96px 0; }

/* Links & buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  font: 500 0.74rem var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover,
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.arrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.arrow::after { content: " →"; }
.arrow:hover { border-color: var(--ink); }

/* Top strip --------------------------------------------------------------- */
.top-strip {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.top-strip .container { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.top-strip a { color: var(--on-accent); text-decoration: none; white-space: nowrap; }
.top-strip a:hover { text-decoration: underline; }
.strip-sep { opacity: 0.6; }
.strip-short { display: none; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 242, 241, 0.95);
  backdrop-filter: blur(6px);
}
.nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 104px;
  border-bottom: 1px solid var(--line);
}
.nav-left { justify-self: start; }
.nav > .logo { justify-self: center; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 36px; }
.nav-cta { padding: 14px 24px; white-space: nowrap; }
.btn.nav-cta { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.nav-cta:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 56px; }
.logo-stacked img { width: auto; height: 80px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-color: var(--ink); }
.mobile-menu { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* Imagery (stone textures stand in for photography) ----------------------- */
.frame { position: relative; overflow: hidden; background: #d9dcda; }
.frame > .texture,
.frame > video,
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-wide { aspect-ratio: 16 / 8; }
.ratio-land { aspect-ratio: 4 / 3; }
.ratio-port { aspect-ratio: 4 / 5; }
.ratio-sq { aspect-ratio: 1; }
.portrait > img { object-position: 50% 25%; }
.hero-photo > img { object-position: 50% 66%; }

.t-marble {
  background:
    linear-gradient(115deg, transparent 40%, rgba(150, 150, 145, 0.35) 41%, transparent 43%),
    linear-gradient(60deg, transparent 62%, rgba(120, 120, 115, 0.25) 63%, transparent 64.5%),
    linear-gradient(150deg, transparent 20%, rgba(170, 170, 165, 0.3) 21%, transparent 22.5%),
    radial-gradient(ellipse at 30% 30%, #fbfbfa, #e6e7e5 70%);
}
.t-granite {
  background:
    radial-gradient(circle at 20% 30%, #1c1e1e 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, #8a8f8e 1.4px, transparent 1.8px) 0 0 / 13px 11px,
    radial-gradient(circle at 40% 80%, #c6cac8 1px, transparent 1.4px) 0 0 / 7px 8px,
    linear-gradient(135deg, #6b6f6e, #464a49);
}
.t-quartz {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.9) 0.8px, transparent 1.2px) 0 0 / 6px 6px,
    radial-gradient(circle at 60% 70%, rgba(170, 175, 172, 0.6) 1px, transparent 1.4px) 0 0 / 11px 9px,
    linear-gradient(160deg, #f0f1ef, #d9dcd9);
}
.t-quartzite {
  background:
    linear-gradient(170deg, transparent 30%, rgba(140, 120, 95, 0.16) 34%, transparent 40%),
    linear-gradient(175deg, transparent 55%, rgba(100, 100, 95, 0.18) 58%, transparent 63%),
    linear-gradient(180deg, #e6e2db, #cdc8bf);
}
.t-soapstone {
  background:
    linear-gradient(125deg, transparent 45%, rgba(200, 205, 200, 0.18) 46%, transparent 47.5%),
    linear-gradient(40deg, transparent 65%, rgba(180, 190, 185, 0.12) 66%, transparent 67%),
    radial-gradient(ellipse at 60% 40%, #4b504e, #313534 75%);
}
.t-dark-marble {
  background:
    linear-gradient(120deg, transparent 38%, rgba(200, 200, 195, 0.35) 39%, transparent 40.5%),
    linear-gradient(70deg, transparent 58%, rgba(240, 240, 235, 0.2) 59%, transparent 60%),
    radial-gradient(ellipse at 30% 40%, #2e3231, #1a1d1d 80%);
}
.t-oak {
  background:
    repeating-linear-gradient(92deg, transparent 0 9px, rgba(90, 70, 45, 0.12) 9px 10px, transparent 10px 23px),
    linear-gradient(180deg, #c9b49a, #b39c80);
}
.t-painted {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(0, 0, 0, 0.08) calc(25% - 1px) 25%),
    linear-gradient(180deg, #7d8a86, #6c7874);
}
.t-portrait {
  background:
    radial-gradient(circle at 50% 38%, #b9bebc 0 17%, transparent 17.5%),
    radial-gradient(ellipse at 50% 100%, #b9bebc 0 40%, transparent 40.5%),
    linear-gradient(180deg, #d8dcda, #cbd0ce);
}

/* Icons ------------------------------------------------------------------ */
.icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page intro -------------------------------------------------------------- */
.page-intro { padding: 90px 0 70px; }
.page-intro h1 { max-width: 820px; }

/* Home: hero -------------------------------------------------------------- */
.hero { padding: 48px 0 0; }
.hero-text {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  padding: 48px 0 0;
}
.hero-text h1 { margin: 0; }
.hero-place {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.place {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-column intro (Carpenter-style) -------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.intro h2 { margin: 0; }

/* Audience doorways ------------------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.door {
  display: flex;
  flex-direction: column;
  padding: 44px 36px 48px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
}
.door + .door { border-left: 1px solid var(--line); }
.door:hover .arrow { border-color: var(--ink); }
.door h3 { font-size: 1.6rem; font-weight: 300; }
.door p { flex: 1; font-size: 0.98rem; margin-bottom: 28px; }
.door .arrow { align-self: flex-start; }
.aside-link { margin-top: 26px; font-size: 0.95rem; color: var(--muted); }
.aside-link a { color: var(--ink); }

/* Founder ----------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.founder blockquote {
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
}
.signature { font-size: 0.95rem; color: var(--muted); margin-bottom: 30px; }
.signature strong { display: block; font-weight: 500; color: var(--ink); }

/* Process ----------------------------------------------------------------- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step-row::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.step-row h3 { margin: 0; }
.step-row p { margin: 0; font-size: 0.98rem; }

.step-detail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.step-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 18px;
}
.step-detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.checklist { list-style: none; margin: 18px 0 22px; padding: 0; columns: 2; column-gap: 32px; }
.checklist li {
  break-inside: avoid;
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
}
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.note {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--ink);
  font-size: 0.96rem;
  color: var(--ink);
}

/* Why Stone Crafters ------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why > div { padding: 40px 28px 44px; }
.why > div + div { border-left: 1px solid var(--line); }
.why h3 { font-size: 1.25rem; margin-bottom: 10px; }
.why p { font-size: 0.95rem; }
.stats .stat {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

/* Process flow ------------------------------------------------ */
.flow {
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow li { position: relative; padding: 38px 20px 0 0; }
.flow li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.flow li:last-child::before { display: none; }
.flow li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}
.flow li:last-child::after { background: var(--orange); border-color: var(--orange); }
.flow-num {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.flow h3 { margin: 0 0 4px; font-size: 1.1rem; }
.flow p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Feature list (audience pages) ------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; border-top: 1px solid var(--line); }
.feature { padding: 34px 0; border-bottom: 1px solid var(--line); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.98rem; }

/* Work grid --------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.work-item { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.work-item .frame > .texture { transition: transform 0.6s; }
.work-item:hover .frame > .texture { transform: scale(1.03); }
.work-caption { padding-top: 14px; }
.work-caption strong { display: block; font-weight: 400; color: var(--ink); }
.work-caption span { font-size: 0.85rem; color: var(--muted); }
.work-item.hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 48px; }
.filter-btn {
  padding: 4px 0;
  font: 500 0.72rem var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); border-color: var(--ink); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(240, 242, 241, 0.97);
}
.lightbox.open { display: flex; }
.lightbox-inner { width: min(960px, 100%); }
.lightbox-img { aspect-ratio: 16 / 10; }
.lightbox-text { margin-top: 18px; }
.lightbox-text h3 { margin-bottom: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

/* Closing CTA band ------------------------------------------------------- */
.cta-band { padding: 80px 0; background: var(--accent); color: var(--on-accent); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; color: var(--on-accent); }
.cta-band p { margin: 0; color: rgba(238, 241, 238, 0.78); }
.cta-band .actions { margin-top: 0; }
.btn-light { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.btn-light:hover { background: transparent; color: var(--on-accent); }
.btn-ghost-light { border-color: rgba(238, 241, 238, 0.6); color: var(--on-accent); }
.btn-ghost-light:hover { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.site-footer.after-band .footer-top { border-top: 0; }

/* Service area ------------------------------------------------------------ */
.areas { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px 0; }
.area-list li { font-size: 1.15rem; font-weight: 300; color: var(--ink); }
.area-list li:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--muted); }

/* Materials --------------------------------------------------------------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; }
.jump-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.material {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.material-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 22px; }
.material-meta h4, .care strong {
  display: block;
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.material-meta ul { list-style: none; margin: 0; padding: 0; font-size: 0.96rem; }
.material-meta li { padding: 3px 0; }
.care { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.96rem; }

.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 12px 16px 0; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare tbody th { font-weight: 400; color: var(--ink); font-size: 1.05rem; }
.dots { letter-spacing: 3px; color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; }

/* Forms ------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 90px; align-items: start; }

.form-card { background: #fff; border: 1px solid var(--line); padding: 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 32px; border: 1px solid var(--line); }
.tab {
  padding: 14px 10px;
  font: 500 0.74rem var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); }
.form-panel[hidden] { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.form-row:has(> .field[hidden]) { grid-template-columns: 1fr; }
.field { margin-bottom: 26px; }
.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
.field select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23222828'/%3E%3C/svg%3E") no-repeat right 14px center var(--paper);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 400;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

.btn-accent { width: 100%; padding: 17px 28px; background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 16px; }
.inline-link { color: var(--orange-text); font-weight: 500; text-underline-offset: 3px; }
.phone-big { font-size: 1.8rem; font-weight: 300; line-height: 1.2; }
.info-note { margin-top: 6px !important; font-size: 0.88rem; color: var(--muted) !important; }
.fact-list li { padding: 2px 0; color: var(--ink); }
.form-success { display: none; padding: 30px 0; }
.form-success.show { display: block; }

.info-block { padding: 22px 0; border-top: 1px solid var(--line); }
.info-block p { margin: 0; color: var(--ink); }
.info-block a { text-decoration: none; }
.hours { width: 100%; font-size: 0.96rem; color: var(--ink); border-collapse: collapse; }
.hours td { padding: 2px 0; }
.hours td:last-child { text-align: right; }

/* Footer ------------------------------------------------------------------ */
.site-footer { padding: 0 0 36px; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 56px; border-top: 1px solid var(--line); }
.site-footer .label { margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { text-decoration: underline; }
.footer-tagline { margin-top: 20px; max-width: 260px; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; justify-self: start; }
  .nav-left, .nav-right .nav-links { display: none; }
  .nav-cta { padding: 11px 16px; }
  .mobile-menu {
    position: absolute;
    top: 104px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    list-style: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a[aria-current="page"] { color: var(--muted); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-text, .intro, .founder, .areas, .contact-layout, .step-detail { grid-template-columns: 1fr; gap: 32px; }
  .founder .frame { max-width: 360px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: 60px 1fr; row-gap: 8px; }
  .flow { grid-template-columns: 1fr; }
  .flow li { padding: 0 0 30px 40px; }
  .flow li::before { top: 15px; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .flow li::after { top: 2px; }
  .flow-num { display: inline-block; margin: 0 12px 0 0; }
  .flow h3 { display: inline-block; }
  .step-row p { grid-column: 2; }
  .material { grid-template-columns: 220px 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .page-intro { padding: 60px 0 40px; }
  .ratio-wide { aspect-ratio: 4 / 3; }
  .work-grid, .features, .form-row, .material-meta { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .material { grid-template-columns: 1fr; }
  .material .frame { aspect-ratio: 16 / 9; }
  .footer-top { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .nav { gap: 12px; }
  .cta-long { display: none; }
  .nav > .logo img { height: 44px; }
  .strip-long { display: none; }
  .strip-short { display: inline; }
  .top-strip { font-size: 0.66rem; letter-spacing: 0.08em; }
  .top-strip .container { gap: 8px; }
  .cta-band { padding: 60px 0; }
  .cta-band .actions, .cta-band .btn { width: 100%; text-align: center; }
  .nav-cta { padding: 10px 12px; font-size: 0.68rem; letter-spacing: 0.16em; }
}

/* ==========================================================================
   Cube theme (from the logo): one line rule, shared-edge cell grids

   ONE LINE RULE for the whole site:
   every divider, cell, field and photo border is --rule (1px, stone black).
   Whole pixels only, so lines render identically at every size.

   CELL GRIDS share edges instead of doubling them:
   the grid draws its top + left edge, each cell draws its right + bottom.
   Works at any column count and any breakpoint without special cases.
   ========================================================================== */

:root {
  --line: #1c1c1a;                 /* existing hairlines now use the same black */
  --rule-w: 1px;
  --rule: var(--rule-w) solid var(--ink);
}

/* Shared cell-grid pattern */
.cells-grid,
.doors, .why, .features, .flow, .area-list, .place-cells {
  border: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.cells-grid > *,
.doors > .door, .why > div, .features > .feature, .flow > li, .area-list > li, .place-cells > li {
  border: 0;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

/* Photos: flat, same border as everything else */
.frame { border: var(--rule); }

/* Location label: four cells in a row, 2 x 2 on phones */
.place-cells {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.place-cells li {
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Audience columns and Why Stone Crafters */
.door, .door:first-child, .door:last-child { padding: 36px 32px 40px; }
.door + .door { border-left: 0; }
.door:hover { background: #fff; }
.why > div, .why > div:first-child, .why > div:last-child { padding: 32px 28px 36px; }
.why > div + div { border-left: 0; }

/* Numbers in their own square cell */
.num-cell, .flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 0 18px;
  border: var(--rule);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.door .num-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.door .num-row .num-cell, .door .num-row .icon { margin: 0; }

/* Feature grid (two columns of cells); an odd last cell spans the row */
.features { gap: 0; }
.feature { padding: 30px 28px; }
.features > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Process flow: a wall of cells, last step in orange */
.flow { display: grid; grid-template-columns: repeat(var(--steps, 6), 1fr); }
.flow li { padding: 22px 20px 26px; }
.flow .flow-num { display: flex; margin: 0 0 18px; }
.flow h3 { display: block; }
.flow li::before, .flow li::after { content: none; }
.flow li:last-child { background: var(--orange); }
.flow li:last-child h3, .flow li:last-child p { color: #fff; }
.flow li:last-child .flow-num { border-color: #fff; color: #fff; }

/* Towns: a wall of equal cells; the last one is solid black */
.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; }
.area-list li { padding: 12px 16px; font-size: 1rem; font-weight: 400; }
.area-list li:not(:last-child)::after { content: none; }
.area-list li.state { background: var(--ink); color: var(--bg); }

/* Closing band: the master logo, reversed (white) */
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "text art" "actions art";
  align-items: center;
  gap: 24px 60px;
}
.cta-band-inner > div:first-child { grid-area: text; }
.cta-band-inner > .actions { grid-area: actions; }
.band-art { grid-area: art; width: 280px; height: auto; display: block; }

/* Responsive */
@media (max-width: 960px) {
  .doors, .why { grid-template-columns: 1fr 1fr; }
  .doors > .door:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .cta-band-inner { grid-template-columns: 1fr; grid-template-areas: "art" "text" "actions"; }
  .band-art { width: 220px; }
}
@media (max-width: 600px) {
  .place-cells { grid-template-columns: repeat(2, auto); }
  .doors, .why, .features, .flow { grid-template-columns: 1fr; }
  .features > .feature:last-child:nth-child(odd) { grid-column: auto; }
  .area-list { grid-template-columns: 1fr 1fr; }
}

/* ---- Contact page --------------------------------------------------------- */
.form-card { background: #fff; border: var(--rule); }

/* Choices as a wall of flush cells */
.chips { display: grid; gap: 0; margin-top: 8px; border-top: var(--rule); border-left: var(--rule); }
.chips.type-chips { grid-template-columns: 1fr 1fr; }
.chips.project-chips { grid-template-columns: repeat(5, 1fr); }
.field .chip { display: flex; margin: 0; border-right: var(--rule); border-bottom: var(--rule); }
.chip span { display: flex; flex: 1; align-items: center; justify-content: center; padding: 13px 10px; border: 0; text-align: center; background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -4px; }

/* Sidebar as one stack of cells */
.contact-layout aside { border-top: var(--rule); border-left: var(--rule); }
.contact-layout .info-block,
.contact-layout .info-block[style] { padding: 22px 24px !important; border: 0 !important; border-right: var(--rule) !important; border-bottom: var(--rule) !important; }
.contact-layout .info-block .area-list { margin-top: 10px; grid-template-columns: 1fr 1fr; }
.contact-layout .info-block .area-list li { padding: 9px 12px; font-size: 0.92rem; }

@media (max-width: 600px) {
  .chips.project-chips { grid-template-columns: 1fr 1fr; }
  .chips.project-chips .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.features.one-col { grid-template-columns: 1fr; }

/* ---- Phone alignment fixes ---------------------------------------------------- */
.intro-link { text-align: right; }
@media (max-width: 960px) {
  .intro-link { text-align: left; }
}
@media (max-width: 600px) {
  /* Location cells span the full content width, aligned with the photo above */
  .place-cells { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .why > div, .why > div:first-child, .why > div:last-child { padding: 28px 24px 30px; }
  .door, .door:first-child, .door:last-child { padding: 30px 24px 34px; }

  /* Comparison table becomes a stack of cells: one cell per material */
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tbody { border-top: var(--rule); border-left: var(--rule); }
  .compare tr { padding: 18px 20px 14px; border-right: var(--rule); border-bottom: var(--rule); }
  .compare tbody th { padding: 0 0 8px; border: 0; font-size: 1.15rem; }
  .compare td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; }
  .compare td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---- Video ------------------------------------------------------------------- */
.media { margin: 0; }
.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-caption span:first-child { color: var(--ink); }
/* Pause/play control: a small square cell, like the logo's grid */
.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--rule-w) solid #fff;
  background: rgba(28, 28, 26, 0.55);
  cursor: pointer;
}
.video-toggle span { display: block; width: 10px; height: 12px; margin: auto; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.video-toggle[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; margin-left: 15px; }
.video-toggle:hover { background: rgba(28, 28, 26, 0.8); }
.video-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 600px) {
  .media-caption { flex-direction: column; gap: 4px; }
}

/* ---- Projects: square tiles + project gallery pages ------------------------ */
.work-item .frame > img { transition: transform 0.6s; }
.work-item:hover .frame > img { transform: scale(1.03); }
.project-intro .back-link { display: inline-block; margin-bottom: 28px; }
.project-intro .back-link::after { content: none; }
.project-intro .back-link::before { content: "← "; }
.project-intro h1 { margin-bottom: 24px; }
.project-desc { margin: 48px 0 56px; align-items: start; }
.project-desc p { margin: 0; font-size: 1.1rem; }

/* Gallery rows: one wide, a pair, three squares (repeating) */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.g-item .frame { width: 100%; }
.g-full { grid-column: span 6; }
.g-full .frame { aspect-ratio: 16 / 9; }
.g-half { grid-column: span 3; }
.g-half .frame { aspect-ratio: 4 / 3; }
.g-third { grid-column: span 2; }
.g-third .frame { aspect-ratio: 1; }

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .g-full { grid-column: span 2; }
  .g-half { grid-column: span 2; }
  .g-third { grid-column: span 1; }
  .g-third:nth-child(6n) { grid-column: span 2; }
  .g-third:nth-child(6n) .frame { aspect-ratio: 16 / 9; }
  .project-desc { margin: 32px 0 40px; }
}

/* Drawing figure (Designers, Builders) */
.media.drawing { margin-top: 56px; }
.media-caption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.media-caption a:hover { color: var(--ink); }

/* Designers title photo: keep the slabs in frame when cropped wide */
.designers-photo > img { object-position: 50% 72%; }

/* ---- Homeowners dropdown ---------------------------------------------------- */
.has-menu { position: relative; display: flex; align-items: center; gap: 6px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); }
.sub-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.15s; }
.sub-menu {
  position: absolute;
  top: calc(100% + 35px);   /* top edge sits on the header's bottom line */
  left: -1px;
  min-width: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border-top: var(--rule);
  border-left: var(--rule);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 36px; } /* keeps hover alive across the gap */
.sub-menu li { border-right: var(--rule); border-bottom: var(--rule); }
.nav-links .sub-menu a { display: block; padding: 16px 18px; border: 0; }
.nav-links .sub-menu a:hover { background: #fff; }
.nav-links .sub-menu a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.has-menu:hover .sub-menu, .has-menu:focus-within .sub-menu, .has-menu.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover .sub-toggle svg, .has-menu.open .sub-toggle svg { transform: rotate(180deg); }
.has-menu.shut .sub-menu { opacity: 0; visibility: hidden; }
.has-menu.shut .sub-toggle svg { transform: none; }
.mobile-menu .sub { list-style: none; margin: 0; padding: 0 0 0 20px; }
.mobile-menu .sub a { font-size: 0.72rem; color: var(--muted); }
.mobile-menu .sub a[aria-current="page"] { color: var(--ink); }

/* ---- About: Our standard ---------------------------------------------------- */
.standard { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); border-left: var(--rule); }
.standard > div { padding: 30px 28px 34px; border-right: var(--rule); border-bottom: var(--rule); }
.standard h3 { margin: 0 0 8px; }
.standard p { margin: 0; }

/* ---- Planning resources ----------------------------------------------------- */
.jump { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: var(--rule); border-left: var(--rule); }
.jump li { border-right: var(--rule); border-bottom: var(--rule); }
.jump a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 500; }
.jump a:hover { background: #fff; }
.jump .num-cell { margin: 0; flex: none; }
.plan-block { scroll-margin-top: 130px; }
.bring { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: var(--rule); border-left: var(--rule); }
.bring li { padding: 22px 22px 24px; border-right: var(--rule); border-bottom: var(--rule); }
.bring h3 { margin: 0 0 6px; font-size: 1rem; }
.bring p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.partner .media { margin: 0; }
.partner .frame { aspect-ratio: 4 / 3; }
.partner .frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.faq-topic { margin: 0 0 10px; }
.faq-group + .faq-group { margin-top: 40px; }

@media (max-width: 960px) {
  .standard { grid-template-columns: 1fr; }
  .jump, .bring { grid-template-columns: 1fr 1fr; }
  .partner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .jump, .bring { grid-template-columns: 1fr; }
  .jump a { padding: 12px 16px; }
  .jump .num-cell { width: 32px; height: 32px; }
}

/* ---- Phone footer: tighter, link lists side by side ------------------------- */
@media (max-width: 600px) {
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 48px 0 32px; }
  .footer-top > div:first-child, .footer-top > div:last-child { grid-column: 1 / -1; }
  .site-footer li:last-child { margin-bottom: 0; }
  .footer-bottom { gap: 4px 12px; padding-top: 20px; }
}

/* ---- Projects: other work, as ruled rows ------------------------------------ */
.client-list { margin: 0; padding: 0; list-style: none; border-top: var(--rule); }
.client-list li { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 16px; padding: 16px 0; border-bottom: var(--rule); color: var(--muted); }
.client-list .client-name { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) {
  .client-list li { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; }
  .client-list .client-name { grid-column: 1 / -1; }
  .client-list li span:nth-child(2), .client-list li span:nth-child(3) { font-size: 0.88rem; }
  .client-list li span:nth-child(3) { text-align: right; }
}

/* ---- Planning: partner showroom logo wall ----------------------------------- */
.showrooms { margin: 0 0 56px; }
.showroom-group + .showroom-group { margin-top: 28px; }
.showroom-group .label { display: block; margin-bottom: 12px; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; border-top: var(--rule); border-left: var(--rule); }
.logo-wall.tile { grid-template-columns: repeat(4, 1fr); }
.logo-wall li { border-right: var(--rule); border-bottom: var(--rule); background: var(--paper); }
.logo-wall a { display: flex; align-items: center; justify-content: center; height: 104px; padding: 16px; transition: background 0.15s; }
.logo-wall a:hover { background: #fff; }
.logo-wall img { display: block; height: var(--h); max-width: 78%; width: auto; object-fit: contain; }
.showroom-note { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 960px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall.tile { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .logo-wall, .logo-wall.tile { grid-template-columns: repeat(2, 1fr); }
  .logo-wall a { height: 88px; }
  .logo-wall img { height: calc(var(--h) * 0.85); }
}

/* ---- Nav: every link uses the same box, so the dropdown item lines up -------- */
.nav-links a { display: block; }

/* ---- Homepage town cells: five across; on phones Greater Triangle takes a full row */
.place-cells.towns { grid-template-columns: repeat(5, auto); }
@media (max-width: 600px) {
  .place-cells.towns { grid-template-columns: 1fr 1fr; }
  .place-cells.towns li:last-child { grid-column: 1 / -1; }
}
