/* ============================================================================
   Set & Stone :: style.css
   Visual system "Stone & Water". Cool, clean, surface driven.
   Signature motif: the grout line / tile grid. No em or en dashes.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg:      #F4F6F7;   /* soft cool white */
  --ink:     #1E262B;   /* slate */
  --accent:  #4E7C7A;   /* muted stone teal */
  --muted:   #68767C;

  /* derived */
  --bg-panel:   #EBEEF0;   /* faint cool panel */
  --bg-deep:    #161C20;   /* deep slate, for dark sections */
  --line:       #D3D9DC;   /* grout line, light */
  --line-strong:#C2CACE;
  --accent-ink: #3C6260;   /* accent pressed */
  --on-dark:    #E7ECEE;
  --on-dark-mut:#9BA7AC;

  --wrap:   1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --r-sm: 4px;
  --r-md: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);      /* crisp, decisive settle */
  --ease-exact: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-soft: 0 24px 60px -30px rgba(30, 38, 43, 0.35);

  --ff-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --ff-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md);
}
.skip-link:focus { left: 12px; }

/* ---- Layout primitives ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); max-width: 46ch; }

/* Reveal-on-scroll baseline */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Brand mark (2x2 tile grid) --------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 22px; height: 22px;
  flex: none;
}
.brand-mark span {
  background: var(--accent);
  border-radius: 1px;
}
.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) { background: var(--ink); }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --btn-pad-y: 0.85em;
  --btn-pad-x: 1.5em;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-lg { --btn-pad-y: 1.05em; --btn-pad-x: 1.9em; font-size: 1.02rem; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(62, 98, 96, 0.7); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { color: var(--ink); border: 1.5px solid var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 246, 247, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 74px;
}
/* hero is dark; header text starts light until scrolled */
.site-header:not(.is-scrolled) .brand-name { color: #fff; }
.site-header:not(.is-scrolled) .brand-mark span { background: #fff; }
.site-header:not(.is-scrolled) .brand-mark span:nth-child(2),
.site-header:not(.is-scrolled) .brand-mark span:nth-child(3) { background: var(--accent); }
.site-header:not(.is-scrolled) .site-nav a { color: rgba(255,255,255,0.86); }
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

.site-nav { margin-left: auto; display: flex; gap: 2rem; }
.site-nav a {
  font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

.header-cta { padding: 0.6em 1.2em; font-size: 0.9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.mobile-nav .btn { margin-top: 1.25rem; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,18,21,0.92) 0%, rgba(13,18,21,0.72) 34%, rgba(13,18,21,0.30) 62%, rgba(13,18,21,0.12) 82%, rgba(13,18,21,0.40) 100%),
    linear-gradient(105deg, rgba(13,18,21,0.55) 0%, rgba(13,18,21,0.12) 45%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(4rem, 9vh, 8rem);
  padding-top: 120px;
  color: #fff;
}
.hero-eyebrow {
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark); opacity: 0.9; margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.hero-headline .accent { color: var(--accent); }
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > span { display: block; }
.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--on-dark);
  line-height: 1.55;
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scrollhint {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(4rem, 9vh, 8rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  color: rgba(255,255,255,0.7); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scrollhint-line { width: 1px; height: 56px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.hero-scrollhint-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: #fff; animation: scrollpulse 2.2s var(--ease) infinite;
}
@keyframes scrollpulse { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(260%); } }
@media (prefers-reduced-motion: reduce) { .hero-scrollhint-line::after { animation: none; } }
@media (max-width: 720px) { .hero-scrollhint { display: none; } }

/* ============================ STATEMENT (contained, centered) ============================ */
.statement {
  padding: clamp(6rem, 14vh, 11rem) 0;
  background: var(--bg);
}
.statement-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.statement .kicker { justify-content: center; }
.statement-lead {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.statement-body {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--muted);
  max-width: 60ch; margin-inline: auto;
}

/* ============================ TILE DIVIDER (signature) ============================ */
.tile-divider {
  --tile-rows: 2;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 3px;
  background: var(--line);              /* grout showing through */
  padding: 3px 0;
  border-block: 3px solid var(--line);
  height: clamp(70px, 9vw, 116px);
  overflow: hidden;
}
.tile-divider .t-row { display: grid; gap: 3px; }
.tile-divider .tile {
  background: var(--bg-panel);
  opacity: 0;
  transform: scale(0.86);
  transform-origin: center;
}
.tile-divider .tile.is-set {
  opacity: 1;
  transform: none;
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease);
}
.tile-divider .tile.accent { background: var(--accent); }
.tile-divider .tile.ink { background: var(--ink); }
/* reduced motion / no-js: show complete grid */
.no-scrub .tile-divider .tile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tile-divider .tile { opacity: 1 !important; transform: none !important; }
}

/* ============================ GALLERY (full bleed, early) ============================ */
.gallery { padding: clamp(5rem, 10vh, 8rem) 0 clamp(4rem, 8vh, 7rem); }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.concept-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.5em 0.9em; border-radius: 100px;
  white-space: nowrap;
}

.gallery-wide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--bg-panel);
  margin-bottom: 3px;
  cursor: zoom-in;
}
.gallery-wide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-wide:hover img { transform: scale(1.03); }

/* Interlocking mosaic. Every cell of the grid is filled, so there is no dead space:
   two large blocks span two rows each and mirror left then right, with a stacked pair
   beside each. Cell size comes from the grid and the images cover, so the 16:9 sources
   are never forced into a portrait box. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "a a a a a a a b b b b b"
    "a a a a a a a c c c c c"
    "e e e e d d d d d d d d"
    "f f f f d d d d d d d d";
  grid-template-rows:
    clamp(140px, 13.5vw, 198px)
    clamp(170px, 16.5vw, 242px)
    clamp(165px, 16vw,   235px)
    clamp(135px, 13vw,   192px);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.g-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  cursor: zoom-in;
}
/* row heights differ, so the stacked pairs (b/c and e/f) are not twins.
   Item 4 is the deliberate heavyweight. */
.g-item:nth-child(1) { grid-area: a; }
.g-item:nth-child(2) { grid-area: b; }
.g-item:nth-child(3) { grid-area: c; }
.g-item:nth-child(4) { grid-area: d; }
.g-item:nth-child(5) { grid-area: e; }
.g-item:nth-child(6) { grid-area: f; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
/* crisp grout-line wipe reveal, not a fade */
.g-item .g-caption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1.1rem 1.2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(15,20,23,0.88), rgba(15,20,23,0.20) 55%, transparent);
  clip-path: inset(0 100% 0 0);          /* hidden, wipes in from left along grout */
  transition: clip-path 0.5s var(--ease-exact);
}
.g-item .g-caption span {
  font-weight: 600; font-size: 0.92rem; line-height: 1.35;
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.5s var(--ease) 0.08s, opacity 0.5s var(--ease) 0.08s;
}
.g-item:hover img, .g-item:focus-within img { transform: scale(1.05); }
.g-item:hover .g-caption, .g-item:focus-within .g-caption { clip-path: inset(0 0 0 0); }
.g-item:hover .g-caption span, .g-item:focus-within .g-caption span { transform: none; opacity: 1; }
/* a hard edged grout line struck across the tile, synced to the caption wipe */
.g-item::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-right: 2px solid var(--accent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-exact);
}
.g-item:hover::before, .g-item:focus-within::before { transform: translateX(0); }
/* accent grout accent line that draws along the top on hover */
.g-item::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 2;
  transition: width 0.5s var(--ease-exact);
}
.g-item:hover::after, .g-item:focus-within::after { width: 100%; }

/* ============================ SERVICES ============================ */
.services { padding: clamp(5rem, 11vh, 9rem) 0; background: var(--bg-panel); }

/* "Set field" mosaic: tiles of unequal weight, 3px grout between them. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* minmax so a tile whose copy runs long grows its row instead of overflowing
     and being painted over by the next tile */
  grid-auto-rows: minmax(clamp(170px, 16vw, 235px), auto);
  gap: 3px;                              /* grout, same language as the dividers */
  background: var(--line);               /* grout showing through the joints */
  border: 3px solid var(--line);
}
/* the set: one 2x2 feature, one 2x1, two 1x1, two 2x1 across three rows */
.svc-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }   /* bathroom tile, feature */
.svc-card:nth-child(2),
.svc-card:nth-child(3) { grid-column: span 1; }                     /* backsplash, flooring */
.svc-card:nth-child(4) { grid-column: span 2; }                     /* showers */
.svc-card:nth-child(5),
.svc-card:nth-child(6) { grid-column: span 2; }                     /* stone, mosaic */

.svc-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
  cursor: zoom-in;
}
/* image fills the tile */
.svc-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-panel); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
/* scrim so overlaid copy stays legible on bright stone */
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(13,18,21,0.90) 0%,
    rgba(13,18,21,0.82) 42%,
    rgba(13,18,21,0.42) 68%,
    rgba(13,18,21,0.08) 88%,
    rgba(13,18,21,0) 100%);
}
/* grout line strikes across the top edge on hover */
.svc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; z-index: 3;
  background: var(--accent);
  transition: width 0.5s var(--ease-exact);
}
.svc-card:hover::after, .svc-card:focus-within::after { width: 100%; }

.svc-body {
  position: relative; z-index: 2;
  align-self: end;
  padding: clamp(1.1rem, 1.8vw, 1.7rem);
}
.svc-title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.42rem); letter-spacing: -0.02em;
  color: #fff;
  display: flex; align-items: center; gap: 0.6rem;
}
.svc-title::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: var(--accent);
  box-shadow: 3px 0 0 rgba(255,255,255,0.85);   /* tiny 2-tile grout mark */
}
.svc-copy {
  margin-top: 0.55rem; color: var(--on-dark);
  font-size: clamp(0.88rem, 1vw, 0.98rem); line-height: 1.5;
  max-width: 46ch;
}
/* the feature tile carries slightly more type weight */
.svc-card:nth-child(1) .svc-title { font-size: clamp(1.3rem, 2.1vw, 1.95rem); }

/* ============================ CRAFT (asymmetric split) ============================ */
.craft { background: var(--bg-deep); color: var(--on-dark); overflow: hidden; }
.craft-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;    /* uneven ratio */
  align-items: stretch;
}
.craft-media { position: relative; min-height: clamp(320px, 46vw, 640px); overflow: hidden; background: #0f1417; }
.craft-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.craft-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 55%, rgba(22,28,32,0.85) 100%);
}
.craft-text { padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); align-self: center; }
.craft .kicker { color: var(--accent); }
.craft-heading {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; text-wrap: balance;
}
.craft-body { margin-top: 1.4rem; color: var(--on-dark-mut); font-size: 1.08rem; max-width: 48ch; }
.craft-points { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.craft-points li { padding-left: 1.6rem; position: relative; }
.craft-points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 12px; height: 12px; background: var(--accent);
  box-shadow: 4px 0 0 rgba(255,255,255,0.25), 0 4px 0 rgba(255,255,255,0.25), 4px 4px 0 rgba(255,255,255,0.15);
}
.craft-points h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: #fff; }
.craft-points p { color: var(--on-dark-mut); font-size: 0.98rem; margin-top: 0.25rem; }

/* ============================ WHY ============================ */
.why { padding: clamp(5rem, 12vh, 9rem) 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; background: var(--line); border: 3px solid var(--line); }
.why-item {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.2rem);
  position: relative;
  transition: background 0.4s var(--ease);
}
.why-item:hover { background: var(--bg-panel); }
.why-n {
  font-family: var(--ff-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em;
  color: var(--accent); display: block; margin-bottom: 1.1rem;
}
.why-item h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.why-item p { margin-top: 0.8rem; color: var(--muted); }

/* ============================ PROCESS ============================ */
.process { padding: clamp(5rem, 11vh, 9rem) 0; background: var(--bg-panel); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2.4rem); counter-reset: step; }
.process-step { position: relative; padding-top: 2.2rem; border-top: 3px solid var(--ink); }
.process-step .p-n {
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink);
}
.process-step:nth-child(odd) .p-n { color: var(--accent); }
.process-step h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 0.8rem; }
.process-step p { color: var(--muted); margin-top: 0.6rem; font-size: 0.98rem; }

/* ============================ TESTIMONIALS ============================ */
.testimonials { padding: clamp(5rem, 12vh, 9rem) 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.tstm {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--bg);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tstm:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.tstm-quote { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.4; letter-spacing: -0.01em; }
.tstm-mark { color: var(--accent); font-family: var(--ff-display); font-weight: 900; font-size: 2.4rem; line-height: 0.4; height: 1.2rem; display: block; }
.tstm-meta { margin-top: auto; padding-top: 1.6rem; display: flex; flex-direction: column; gap: 0.15rem; }
.tstm-name { font-weight: 600; }
.tstm-role { color: var(--muted); font-size: 0.9rem; }

/* ============================ CONTACT ============================ */
.contact {
  position: relative; padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--bg-deep); color: var(--on-dark); overflow: hidden;
  /* brightened secondary text, scoped to this section, so the scrim can stay light
     enough for the stone to read while sub, note, and field labels still clear AA */
  --on-dark-mut: #D5DCDF;
}
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Directional scrim: density anchored to the two text zones, falling off across the
   rest of the frame so the stone stays visible in the seam, margins, and end bands. */
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 82% at 24% 48%,
      rgba(13,18,21,0.70) 0%, rgba(13,18,21,0.66) 52%, rgba(13,18,21,0.20) 86%, rgba(13,18,21,0) 100%),
    radial-gradient(ellipse 50% 88% at 74% 50%,
      rgba(13,18,21,0.68) 0%, rgba(13,18,21,0.64) 54%, rgba(13,18,21,0.18) 88%, rgba(13,18,21,0) 100%),
    linear-gradient(180deg, rgba(13,18,21,0.16) 0%, rgba(13,18,21,0.07) 45%, rgba(13,18,21,0.18) 100%);
}
.contact-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.contact .kicker { color: var(--accent); }
.contact .section-title { color: #fff; }
.contact-sub { margin-top: 1.3rem; color: var(--on-dark-mut); font-size: 1.1rem; max-width: 42ch; }
.contact-note {
  margin-top: 1.6rem; font-size: 0.82rem; color: var(--on-dark-mut);
  border-left: 2px solid var(--accent); padding-left: 0.9rem;
}

.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-mut); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-md);
  color: #fff;
  padding: 0.85em 1em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-mut) 50%), linear-gradient(135deg, var(--on-dark-mut) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.62); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,0.08);
}
.contact-form .btn { margin-top: 0.4rem; justify-self: start; }
.form-status { font-size: 0.95rem; color: var(--accent); font-weight: 600; min-height: 1.2em; }
.form-status.err { color: #E0A2A2; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(3.5rem, 7vh, 6rem) 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-mark span { background: var(--accent); }
.footer-brand .brand-mark span:nth-child(2), .footer-brand .brand-mark span:nth-child(3) { background: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.footer-brand-row { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-tagline { color: var(--on-dark-mut); max-width: 26ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-nav a { color: var(--on-dark-mut); font-weight: 500; transition: color 0.3s var(--ease); width: max-content; }
.footer-nav a:hover { color: #fff; }
.footer-nap { font-style: normal; color: var(--on-dark-mut); display: grid; gap: 0.5rem; font-size: 0.95rem; }
.footer-nap a:hover { color: #fff; }
.footer-nap strong { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding-top: 2rem; flex-wrap: wrap; }
.footer-disclaimer { color: var(--on-dark-mut); font-size: 0.82rem; max-width: 70ch; line-height: 1.55; }
.footer-credit { color: var(--on-dark-mut); font-size: 0.82rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-credit .soak-mark {
  display: inline-block; width: 20px; height: 20px; flex: none;
  background-color: var(--accent);
  -webkit-mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
          mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
  opacity: .9; transition: opacity .2s ease;
}
.footer-credit:hover .soak-mark { opacity: 1; }
.footer-credit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(13, 18, 21, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  /* visibility flips instantly on open so focus can move into the dialog right away,
     and is deferred on close so the fade out is still visible */
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
}
.lightbox-figure {
  margin: 0; max-width: min(1400px, 94vw);
  display: flex; flex-direction: column; gap: 0.9rem; align-items: center;
  transform: scale(0.96); transition: transform 0.45s var(--ease-exact);
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%; max-height: 84vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--r-sm);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.7);
}
.lightbox-cap {
  color: var(--on-dark-mut); font-size: 0.9rem; text-align: center; max-width: 60ch;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap;
}
.lightbox-count {
  font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}
.lightbox-count:empty { display: none; }

/* prev / next */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center; z-index: 2;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev { left: clamp(0.5rem, 2.5vw, 2rem); }
.lightbox-next { right: clamp(0.5rem, 2.5vw, 2rem); }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
}
.lightbox-close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }
.lightbox-close span { position: absolute; width: 18px; height: 2px; background: #fff; }
.lightbox-close span:first-child { transform: rotate(45deg); }
.lightbox-close span:last-child { transform: rotate(-45deg); }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-figure { transition: opacity 0.2s linear; }
  .lightbox-figure { transform: none; }
  .lightbox-close:hover { transform: none; }
  .lightbox-nav { transition: none; }
}

/* Reduced motion: hovers become simple state changes, no wipes or sweeps. */
@media (prefers-reduced-motion: reduce) {
  /* Selected Work: caption reads statically, no wipe, no travelling grout line */
  .g-item .g-caption { transition: none; clip-path: none; }
  .g-item .g-caption span { transition: none; transform: none; opacity: 1; }
  .g-item img { transition: none; }
  .g-item:hover img, .g-item:focus-within img { transform: none; }
  .g-item::before { display: none; }
  .g-item::after { transition: none; }
  /* Services: no zoom, no struck line */
  .svc-media img { transition: none; }
  .svc-card:hover .svc-media img { transform: none; }
  .svc-card::after { transition: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  /* Services: 2 column set field, feature runs full width */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(clamp(170px, 26vw, 240px), auto);
  }
  .services-grid .svc-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .services-grid .svc-card:nth-child(2),
  .services-grid .svc-card:nth-child(3) { grid-column: span 1; }
  .services-grid .svc-card:nth-child(4) { grid-column: span 2; }
  .services-grid .svc-card:nth-child(5),
  .services-grid .svc-card:nth-child(6) { grid-column: span 1; }

  /* Selected Work: same interlocking mosaic on 6 columns */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "a a a a b b"
      "a a a a c c"
      "e e d d d d"
      "f f d d d d";
    grid-template-rows:
      clamp(115px, 14vw, 160px)
      clamp(140px, 17vw, 195px)
      clamp(135px, 16.5vw, 190px)
      clamp(110px, 13.5vw, 155px);
  }

  .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .craft-inner { grid-template-columns: 1fr; }
  .craft-media { min-height: 56vw; }
}
@media (max-width: 640px) {
  .why-grid, .testimonials-grid, .process-list { grid-template-columns: 1fr; }
  .why-grid { border-width: 3px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-wide { aspect-ratio: 4 / 3; }
  .hero-content { padding-bottom: 3rem; }

  /* Services: single column set field, feature keeps extra height.
     Copy wraps to more lines on a narrow tile, so the tiles are taller and the
     scrim reaches higher to keep the overlaid copy clear of bright stone. */
  .services-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(265px, auto); }
  .services-grid .svc-card:nth-child(1) { grid-column: span 1; grid-row: span 1; min-height: 300px; }
  .svc-card::before {
    background: linear-gradient(to top,
      rgba(13,18,21,0.95) 0%,
      rgba(13,18,21,0.90) 55%,
      rgba(13,18,21,0.74) 72%,
      rgba(13,18,21,0.38) 88%,
      rgba(13,18,21,0.08) 100%);
  }
  .services-grid .svc-card:nth-child(2),
  .services-grid .svc-card:nth-child(3),
  .services-grid .svc-card:nth-child(4),
  .services-grid .svc-card:nth-child(5),
  .services-grid .svc-card:nth-child(6) { grid-column: span 1; }

  /* Selected Work: single column. A single column cannot produce voids, and the
     aspect ratios stay landscape so the 16:9 sources are not cut to a tall box. */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e" "f";
    grid-template-rows: auto auto auto auto auto auto;
  }
  .gallery-grid .g-item:nth-child(1) { aspect-ratio: 3 / 2; }
  .gallery-grid .g-item:nth-child(2) { aspect-ratio: 16 / 9; }
  .gallery-grid .g-item:nth-child(3) { aspect-ratio: 4 / 3; }
  .gallery-grid .g-item:nth-child(4) { aspect-ratio: 5 / 4; }
  .gallery-grid .g-item:nth-child(5) { aspect-ratio: 16 / 9; }
  .gallery-grid .g-item:nth-child(6) { aspect-ratio: 3 / 2; }
}


/* Brand-colored magnifier cursor on click-to-zoom photos (replaces removed on-card badges). */
.gallery-wide, .g-item, .svc-card { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Ccircle cx='13' cy='13' r='8' stroke='%23ffffff' stroke-width='4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%23ffffff' stroke-width='4'/%3E%3Ccircle cx='13' cy='13' r='8' stroke='%234E7C7A' stroke-width='2.4'/%3E%3Cline x1='19' y1='19' x2='29' y2='29' stroke='%234E7C7A' stroke-width='2.4'/%3E%3C/g%3E%3C/svg%3E") 13 13, zoom-in !important; }

/* Mobile reframe: anchor the hero left so the shower tile is visible (not a generic bathroom). */
@media (max-width: 768px) {
  .hero-video { object-position: 0% 50%; }
}

/* Lightbox description under the title (service cards carry a body line). */
.lightbox-desc { margin: .5rem auto 0; max-width: 62ch; color: var(--muted, #68767C); font-size: .95rem; line-height: 1.55; }
.lightbox-desc[hidden] { display: none; }

/* Mobile: two-column footer (list beside contact) to cut height; brand spans full width. */
@media (max-width: 639px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =====================================================================
   Design audit 2026-09-30 (brief B6). Overrides grouped here on purpose.
   ===================================================================== */

/* Eyebrows stand alone: no dash to the left of any label. */
.kicker::before, .hero-eyebrow::before { content: none; display: none; }

/* Line rules */
p, blockquote, li { text-wrap: pretty; }
.section-title { text-wrap: balance; }
.section-head { max-width: none; }

/* The Standard: bigger label and body */
.statement .kicker { font-size: 0.9rem; letter-spacing: 0.18em; }
.statement-body { font-size: clamp(1.12rem, 1.7vw, 1.42rem); max-width: 58ch; }

/* Selected Work + Services: eyebrow and title centered on the page */
.gallery-head { justify-content: center; text-align: center; }
.gallery-head .kicker, .services .section-head .kicker { justify-content: center; }
.services .section-head { text-align: center; margin-inline: auto; }

/* Selected Work: tile-grid depth in the side space beside the mosaic.
   Grout lines on a 48px module with a few set tiles, fading toward the page edge. */
.gallery-grid { position: relative; }
.gallery-grid::before, .gallery-grid::after {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
  width: calc(50vw - 50% + var(--gutter) - 22px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cg fill='%234E7C7A'%3E%3Crect x='50' y='2' width='44' height='44' opacity='.16'/%3E%3Crect x='146' y='98' width='44' height='44' opacity='.10'/%3E%3Crect x='2' y='146' width='44' height='44' fill='%231E262B' opacity='.07'/%3E%3C/g%3E%3Cg fill='none' stroke='%234E7C7A' stroke-width='1.2' opacity='.32'%3E%3Cpath d='M0 .6H192M0 48.6H192M0 96.6H192M0 144.6H192M.6 0V192M48.6 0V192M96.6 0V192M144.6 0V192'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.gallery-grid::before {
  left: calc(50% - 50vw); background-position: right top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 70%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 70%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-composite: intersect;
}
.gallery-grid::after {
  right: calc(50% - 50vw); background-position: left top;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 70%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, transparent 0%, #000 70%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-composite: intersect;
}
@media (max-width: 1200px) { .gallery-grid::before, .gallery-grid::after { display: none; } }

/* Why: headline on one line where the width allows; card text centered */
@media (min-width: 900px) {
  .why .section-title { white-space: nowrap; font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
}
.why-item { text-align: center; }

/* Contact: headline on one line, form on a glass card, no in-section disclaimer */
.contact-note { display: none; }
@media (min-width: 1025px) {
  .contact .section-title { white-space: nowrap; font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
}
.contact-form {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
          backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Footer: concept line on one line */
.footer-disclaimer { white-space: nowrap; max-width: none; }

/* =====================================================================
   Round 2 review (Micah, 10-01). Overrides grouped here on purpose.
   ===================================================================== */

/* One vertical rhythm: every content section uses the same top and bottom padding. */
:root { --sec-y: clamp(5rem, 11vh, 9rem); }
.statement, .services, .why, .gallery, .process, .testimonials, .contact {
  padding-top: var(--sec-y); padding-bottom: var(--sec-y);
}

/* The Standard: setting-out drawings in the side space (tile field with spacers and a
   notched trowel on the left; level, veined slab and hex mosaic on the right) over a
   faint honed-marble wash that clears toward the centered copy. */
.statement { position: relative; overflow: clip; isolation: isolate; }
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/images/marble-grain.jpg") center / cover no-repeat;
  opacity: .06; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 42% 80% at 50% 50%, transparent 55%, #000 100%);
          mask-image: radial-gradient(ellipse 42% 80% at 50% 50%, transparent 55%, #000 100%);
}
.statement-inner { position: relative; z-index: 1; }
.st-art {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: min(250px, calc((100% - 900px) / 2 - 56px)); height: auto;
  pointer-events: none; z-index: 0;
}
.st-art-l { left: max(28px, calc(50% - 450px - 28px - min(250px, calc((100% - 900px) / 2 - 56px)))); }
.st-art-r { right: max(28px, calc(50% - 450px - 28px - min(250px, calc((100% - 900px) / 2 - 56px)))); }
.st-art .ln, .st-art .ln-ac, .st-art .ln-dash, .st-art .ln-v { vector-effect: non-scaling-stroke; stroke-width: 1.4; }
.st-art .ln { stroke: rgba(30, 38, 43, 0.30); }
.st-art .ln-ac { stroke: rgba(78, 124, 122, 0.75); stroke-width: 1.6; }
.st-art .ln-dash { stroke: rgba(30, 38, 43, 0.22); stroke-dasharray: 4 5; }
.st-art .ln-v { stroke: rgba(78, 124, 122, 0.45); }
.st-art .fl-a { fill: rgba(78, 124, 122, 0.24); }
.st-art .fl-a2 { fill: rgba(78, 124, 122, 0.12); }
.st-art .fl-i { fill: rgba(30, 38, 43, 0.10); }
@media (max-width: 1179px) { .st-art { display: none; } }

/* Services: wider field, bigger tiles */
.services > .wrap { max-width: 1440px; }
.services-grid { grid-auto-rows: minmax(clamp(190px, 18.5vw, 290px), auto); }
.svc-copy { max-width: 46ch; }

/* Why Set & Stone: centered opener; cards read as set stone tiles */
.why .section-head, .process .section-head, .testimonials .section-head { text-align: center; margin-inline: auto; }
.why .section-head .kicker, .process .section-head .kicker, .testimonials .section-head .kicker { justify-content: center; }
.why-grid {
  background: var(--line-strong); border-color: var(--line-strong);
  box-shadow: 0 40px 70px -48px rgba(30, 38, 43, 0.45);
}
.why-item {
  --gx: 0%; --gy: 0%;
  isolation: isolate; overflow: hidden;
  background: linear-gradient(155deg, #FAFBFB 0%, #EDF0F2 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.95), inset -1px -1px 0 rgba(30, 38, 43, 0.07),
    inset 0 -26px 40px -30px rgba(30, 38, 43, 0.16);
}
.why-item:nth-child(2) { --gx: 70%; --gy: 20%; }
.why-item:nth-child(3) { --gx: 30%; --gy: 85%; }
.why-item:nth-child(4) { --gx: 100%; --gy: 60%; }
.why-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/images/marble-grain.jpg") var(--gx) var(--gy) / cover no-repeat;
  opacity: .14; mix-blend-mode: multiply;
}
.why-item::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid rgba(78, 124, 122, 0.16);
}
.why-item:hover { background: linear-gradient(155deg, #FFFFFF 0%, #F1F4F5 100%); }
.why-tile {
  width: 68px; height: 68px; margin: 0 auto 1.3rem; display: grid; place-items: center;
  border-radius: 3px; color: #BFD9D7;
  background: linear-gradient(145deg, #2C383E 0%, #161C20 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 0 0 3px #FFFFFF, 0 0 0 4px var(--line-strong), 0 16px 26px -14px rgba(22, 28, 32, 0.55);
  transition: transform 0.5s var(--ease);
}
.why-item:nth-child(2) .why-tile, .why-item:nth-child(3) .why-tile {
  color: #F2F7F6; background: linear-gradient(145deg, #5E8F8C 0%, #3C6260 100%);
}
.why-tile svg { width: 32px; height: 32px; }
.why-item:hover .why-tile { transform: translateY(-3px); }
.why-n { margin-bottom: 0.6rem; }

/* How It Goes: large-format running-bond tile field for depth, steps on raised panels */
.process { position: relative; overflow: clip; isolation: isolate; }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'%3E%3Crect x='82' y='82' width='156' height='76' fill='%234E7C7A' opacity='.07'/%3E%3Crect x='162' y='2' width='156' height='76' fill='%231E262B' opacity='.035'/%3E%3Cpath d='M0 1H320M0 81H320M1 0V80M161 0V80M81 80V160M241 80V160' fill='none' stroke='%234E7C7A' stroke-width='2' opacity='.24'/%3E%3C/svg%3E");
  background-size: 320px 160px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 55%, rgba(0,0,0,.25) 30%, #000 100%);
          mask-image: radial-gradient(ellipse 75% 85% at 50% 55%, rgba(0,0,0,.25) 30%, #000 100%);
}
.process::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/images/marble-grain.jpg") center / cover no-repeat;
  opacity: .06; mix-blend-mode: multiply;
}
.process-step {
  padding: 2rem clamp(1.2rem, 1.8vw, 1.7rem) 1.9rem;
  background: rgba(250, 251, 251, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 30px 50px -36px rgba(30, 38, 43, 0.5), inset 0 -1px 0 rgba(30, 38, 43, 0.06);
}
.process-step p { text-wrap: balance; }

/* Footer bottom row (showcase standard): fiction line left, credit + mark right */
.footer-bottom { justify-content: space-between; flex-wrap: nowrap; }
.footer-credit { margin-left: auto; }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
  .footer-disclaimer { font-size: 0.74rem; }
  .footer-credit { margin-left: 0; }
}
