/* ==========================================================
   Enthusiast Detailing — By an enthusiast, for the enthusiast.
   Palette: ink / bone / one accent. 1px rules, no shadows.
   ========================================================== */

:root {
  --ink: #0d0d0e;
  --bone: #ece8e1;
  --accent: #ff2e93;

  --ink-2: #161618;                         /* tint of ink for layering */
  --rule-dark: rgba(236, 232, 225, 0.16);   /* bone at low alpha on ink */
  --rule-light: rgba(13, 13, 14, 0.16);     /* ink at low alpha on bone */
  --muted-dark: rgba(236, 232, 225, 0.6);
  --muted-light: rgba(13, 13, 14, 0.62);

  --f-display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol, dl { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.container { width: calc(100% - var(--gutter) * 2); max-width: 1320px; margin-inline: auto; position: relative; }
.section { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.section--light { background: var(--bone); color: var(--ink); }
.hide-sm { display: inline; }

/* ---------- Type ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.display em, .hero__title em, .pbreak blockquote em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.section--light .display em { color: var(--ink); }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.4; letter-spacing: -0.015em; }
p + p { margin-top: 1em; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.text-link span { transition: transform 0.4s var(--ease); }
.text-link:hover { background-size: 0% 1px; background-position: right bottom; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 18px 22px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
  white-space: nowrap;
}
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--bone); border-color: var(--bone); }
.btn--line { color: var(--bone); }
.btn--line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--ink:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--bone);
  transition: transform 0.5s var(--ease);
}
/* Background on a pseudo-element: a backdrop-filter on .nav would trap the fixed mobile menu inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 13, 14, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
  opacity: 0; transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav { transform: none; }
.menu-open .nav::before { opacity: 0; }
.nav__brand img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; position: relative; padding: 6px 0; transition: color 0.3s; }
.nav__links a span { color: var(--accent); margin-right: 6px; font-size: 0.66rem; }
.nav__links a:not(.nav__phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { border: 1px solid var(--rule-dark); padding: 10px 14px !important; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.nav__phone:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 210; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.menu-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 680px;
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--ink);
  isolation: isolate;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__layer { position: absolute; left: 0; right: 0; will-change: transform; pointer-events: none; }
.hero__sun-wrap { inset: 0; display: grid; place-items: center; z-index: 1; }
.sun {
  width: min(58vmin, 600px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2vh);
  /* poster-style horizontal cuts across the lower half */
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 52% 54.5%, #000 54.5% 61%, transparent 61% 64.5%, #000 64.5% 70%, transparent 70% 74.5%, #000 74.5% 79%, transparent 79% 84.5%, #000 84.5% 88%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 52% 54.5%, #000 54.5% 61%, transparent 61% 64.5%, #000 64.5% 70%, transparent 70% 74.5%, #000 74.5% 79%, transparent 79% 84.5%, #000 84.5% 88%, transparent 88%);
}
.hero__mtn { left: -3%; right: -3%; width: 106%; max-width: none; bottom: 0; }
.hero__mtn--back { height: 44vh; z-index: 2; bottom: 6vh; fill: var(--ink-2); }
.hero__mtn--front { height: 26vh; z-index: 3; bottom: -1px; fill: var(--ink); }
.hero__mtn--back path { stroke: var(--rule-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }

.hero__meta {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: calc(var(--nav-h) + 18px);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 14px;
}
.hero__content {
  position: relative; z-index: 4;
  align-self: center; justify-self: center;
  text-align: center; width: min(760px, 92vw);
  will-change: transform;
}
.hero__logo img { width: 100%; height: auto; }
.hero__tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 2rem); margin-top: 6px; }

.hero__foot {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  padding: 26px 0 clamp(26px, 4vh, 44px);
  border-top: 1px solid var(--rule-dark);
}
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 4.2rem);
  line-height: 0.98; letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { font-size: 1.08em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Intro: crisp line reveals, no bounce */
.js .hero__title .line > * { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .line:nth-child(2) > * { transition-delay: 0.12s; }
.js .hero__content, .js .hero__ctas, .js .hero__meta { opacity: 0; transition: opacity 1.2s var(--ease) 0.2s; }
.js .sun { opacity: 0; transform: translateY(6vh); transition: opacity 1.4s var(--ease), transform 1.8s var(--ease); }
.is-ready .hero__title .line > * { transform: none; }
.is-ready .hero__content, .is-ready .hero__ctas, .is-ready .hero__meta { opacity: 1; }
.is-ready .sun { opacity: 1; transform: translateY(-2vh); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--rule-dark); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); padding: 0 28px; position: relative; white-space: nowrap; }
.ticker span::after { content: "/"; position: absolute; right: -4px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 48px;
  align-items: start;
}
.about__label { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--rule-light); }
.about__title { grid-column: 1 / 9; grid-row: 2; position: relative; z-index: 2; }
.about__media {
  grid-column: 8 / 13; grid-row: 2 / 4;
  margin-top: clamp(120px, 14vw, 220px);
}
.about__img { overflow: hidden; border: 1px solid var(--ink); aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.about__media figcaption { margin-top: 10px; color: var(--muted-light); }
.about__copy { grid-column: 2 / 7; grid-row: 3; padding-top: 12px; }
.about__copy p:not(.lead) { color: var(--muted-light); max-width: 46ch; }
.about__copy .text-link { margin-top: 32px; }

.specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--ink);
}
.spec { padding: 26px 24px 0 0; }
.spec + .spec { border-left: 1px solid var(--rule-light); padding-left: 24px; }
.spec dt { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.spec dt small { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 0.5em; margin-left: 4px; letter-spacing: 0; }
.spec dd { margin-top: 14px; font-size: 0.92rem; color: var(--muted-light); max-width: 26ch; }

/* ---------- Parallax breaks ---------- */
.pbreak { position: relative; height: clamp(460px, 88vh, 820px); overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.pbreak__media { position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: -1; will-change: transform; }
.pbreak__media img, .pbreak__media picture { width: 100%; height: 100%; object-fit: cover; }
.pbreak::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 13, 14, 0) 40%, rgba(13, 13, 14, 0.85)); }
.pbreak__content { padding-bottom: clamp(40px, 7vw, 90px); }
.pbreak blockquote p {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 6rem); line-height: 0.95; letter-spacing: -0.04em;
  max-width: 14ch;
}
.pbreak--moon .pbreak__media img { object-position: 64% 50%; }
.pbreak__content--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.pbreak__content--split p { max-width: 36ch; color: var(--muted-dark); padding-bottom: 10px; border-top: 1px solid var(--rule-dark); padding-top: 16px; }

/* ---------- Services ---------- */
.services__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.services__head .label { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--rule-dark); }
.services__head .display { grid-column: 1 / 10; }
.services__intro { grid-column: 8 / 13; display: grid; gap: 22px; margin-top: 8px; }
.services__intro p { color: var(--muted-dark); max-width: 42ch; }

.sizer { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--rule-dark); width: max-content; max-width: 100%; }
.sizer button {
  padding: 12px 16px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted-dark);
  transition: background 0.3s var(--ease), color 0.3s;
}
.sizer button + button { border-left: 1px solid var(--rule-dark); }
.sizer button:hover { color: var(--bone); }
.sizer button.is-active { background: var(--bone); color: var(--ink); }

.tabs { display: flex; gap: clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--rule-dark); margin-bottom: 8px; }
.tabs button {
  position: relative; padding: 0 0 16px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: -0.02em;
  color: var(--muted-dark); transition: color 0.3s;
  white-space: nowrap;
}
.tabs button span { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 400; color: var(--accent); margin-right: 8px; vertical-align: super; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.tabs button:hover, .tabs button.is-active { color: var(--bone); }
.tabs button.is-active::after { transform: scaleX(1); }

.panel { animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-dark);
  transition: padding 0.45s var(--ease);
}
.row:hover { padding-left: 12px; }
.row__idx { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted-dark); }
.row__body h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.row__body p { margin-top: 10px; color: var(--muted-dark); max-width: 60ch; font-size: 0.95rem; }
.row--feature .row__idx { color: var(--accent); }
.row__price { text-align: right; display: flex; align-items: baseline; gap: 8px; }
.row__price small { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }
.price__v { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price__quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.tag { font-family: var(--f-mono); font-size: 0.64rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 3px 7px; line-height: 1.2; }
.stages { display: inline-flex; gap: 3px; }
.stages i { width: 14px; height: 6px; border: 1px solid var(--muted-dark); }
.stages i.on { background: var(--accent); border-color: var(--accent); }

.note { margin-top: 28px; padding: 18px 0 0; border-top: 1px solid var(--accent); color: var(--muted-dark); max-width: 70ch; }
.note strong { color: var(--bone); font-weight: 500; }

.protect { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: 26px; }
.protect__title { color: var(--muted-dark); padding-bottom: 12px; border-bottom: 1px solid var(--bone); }
.plist li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); }
.plist li > span:first-child { font-weight: 500; letter-spacing: -0.01em; }
.plist small { display: block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-dark); margin-top: 2px; font-weight: 400; }
.plist .price__v { font-size: clamp(1.3rem, 2vw, 1.7rem); flex: none; }
.plist li.is-feature small { color: var(--accent); }
.protect__note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--accent); }
.protect__note .label { color: var(--accent); margin-bottom: 10px; }
.protect__note p:not(.label) { color: var(--muted-dark); margin-bottom: 18px; font-size: 0.95rem; }

.fineprint { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-dark); }
.fineprint .text-link { color: var(--bone); }

/* ---------- Process ---------- */
.process__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; margin-bottom: clamp(64px, 8vw, 120px); }
.process__head .label { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--rule-light); }
.process__head .display { grid-column: 4 / 13; }
.steps { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(48px, 6vw, 80px); }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step:nth-child(1) { grid-column: 1 / 6; }
.step:nth-child(2) { grid-column: 7 / 12; margin-top: clamp(40px, 8vw, 120px); }
.step:nth-child(3) { grid-column: 2 / 7; }
.step:nth-child(4) { grid-column: 8 / 13; margin-top: clamp(40px, 8vw, 120px); }
.step__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 10vw, 9rem); line-height: 0.85; letter-spacing: -0.06em; margin-bottom: 18px; }
.step:nth-child(odd) .step__num { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.step p { color: var(--muted-light); max-width: 40ch; }

/* ---------- Gallery ---------- */
.gallery__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); align-items: end; }
.gallery__head .label { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--rule-dark); }
.gallery__head .display { grid-column: 1 / 9; }
.gallery__links { grid-column: 10 / 13; display: flex; gap: 24px; justify-content: flex-end; padding-bottom: 12px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(60px, 7vw, 100px);
  gap: 16px;
}
.tile { position: relative; overflow: hidden; cursor: zoom-in; border: 1px solid var(--rule-dark); background: var(--ink-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 14px;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); border-top: 1px solid var(--rule-dark);
  transform: translateY(100%); transition: transform 0.5s var(--ease);
}
.tile figcaption span { color: var(--accent); }
.tile:hover figcaption, .tile:focus-visible figcaption { transform: none; }
.tile--a { grid-column: 1 / 9; grid-row: span 5; }
.tile--b { grid-column: 9 / 13; grid-row: span 4; margin-top: clamp(40px, 6vw, 90px); }
.tile--c { grid-column: 2 / 5; grid-row: span 5; }
.tile--d { grid-column: 5 / 10; grid-row: span 3; margin-top: clamp(30px, 4vw, 60px); }
.tile--e { grid-column: 10 / 13; grid-row: span 5; }
.tile--c img, .tile--e img { object-position: top; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; align-items: start; }
.contact__info { grid-column: 1 / 7; }
.contact__info > .label { padding-bottom: 14px; border-bottom: 1px solid var(--rule-light); margin-bottom: 32px; }
.contact__phone {
  display: inline-block; margin: 40px 0 36px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem); letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(var(--accent), var(--accent)) left 92% / 0% 0.12em no-repeat;
  transition: background-size 0.6s var(--ease);
}
.contact__phone:hover { background-size: 100% 0.12em; }
.clist { border-top: 1px solid var(--ink); }
.clist > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); align-items: baseline; }
.clist dt { color: var(--muted-light); }
.clist dd { word-break: break-word; }
.clist a { transition: color 0.3s; }
.clist a:hover { color: var(--accent); }
.map { margin-top: 32px; height: 240px; border: 1px solid var(--ink); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.qform { grid-column: 8 / 13; margin-top: clamp(0px, 12vw, 180px); border-top: 1px solid var(--ink); padding-top: 18px; }
.qform > .label { margin-bottom: 24px; color: var(--muted-light); }
.field { position: relative; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-light); border-radius: 0;
  color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { cursor: pointer; padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230d0d0e'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field label { position: absolute; left: 0; top: 24px; color: var(--muted-light); pointer-events: none; transition: all 0.3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: 4px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
.field.is-invalid input { border-bottom-color: var(--accent); }
.qform__error { color: #c4005d; font-size: 0.9rem; margin: 10px 0; }
.qform .btn { margin-top: 28px; }
.qform__hint { margin-top: 12px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Footer ---------- */
.footer { padding: clamp(72px, 10vw, 120px) 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-dark); }
.footer__inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.footer__logo { grid-column: 1 / 5; width: 100%; max-width: 280px; height: auto; }
.footer__tag { grid-column: 6 / 13; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.1; align-self: end; }
.footer__cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); }
.footer__cols p { padding: 18px 20px 0 0; word-break: break-word; }
.footer__cols p + p { border-left: 1px solid var(--rule-dark); padding-left: 20px; margin: 0; }
.footer__cols .label { display: block; color: var(--muted-dark); margin-bottom: 6px; }
.footer__cols a { transition: color 0.3s; }
.footer__cols a:hover { color: var(--accent); }
.footer__meta { grid-column: 1 / -1; color: var(--muted-dark); padding-top: 18px; border-top: 1px solid var(--rule-dark); }

/* ---------- Quickbar (mobile) ---------- */
.quickbar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 56px 16px 16px; background: rgba(13, 13, 14, 0.96); animation: fadeIn 0.3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); border: 1px solid var(--rule-dark); }
.lightbox__close { position: absolute; top: 14px; right: var(--gutter); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0; color: var(--bone); }
.lightbox__close:hover { color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive — collapse to a single disciplined column
   ========================================================== */
@media (max-width: 1080px) {
  .about__title { grid-column: 1 / -1; }
  .about__media { grid-column: 7 / 13; grid-row: 3; margin-top: 0; }
  .about__copy { grid-column: 1 / 6; }
  .services__head .display, .services__intro { grid-column: 1 / -1; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--rule-light); margin-top: 26px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 205;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: var(--nav-h) var(--gutter) 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .menu-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.03em; text-transform: none; padding: 10px 0; border-bottom: 1px solid var(--rule-dark); transform: translateY(12px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
  .nav__links a::after { display: none; }
  .nav__links a span { font-family: var(--f-mono); font-weight: 400; font-size: 0.7rem; vertical-align: super; margin-right: 12px; }
  .menu-open .nav__links a { transform: none; opacity: 1; }
  .menu-open .nav__links a:nth-child(2) { transition-delay: 0.04s; }
  .menu-open .nav__links a:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .nav__links a:nth-child(4) { transition-delay: 0.12s; }
  .menu-open .nav__links a:nth-child(5) { transition-delay: 0.16s; }
  .menu-open .nav__links a:nth-child(6) { transition-delay: 0.2s; }
  .nav__phone { margin-top: 28px; font-family: var(--f-mono) !important; font-size: 0.85rem !important; font-weight: 400 !important; text-align: center; border: 1px solid var(--bone) !important; text-transform: uppercase !important; }

  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__ctas { justify-content: stretch; }
  .hero__ctas .btn { flex: 1; }

  .process__head .display { grid-column: 1 / -1; }
  .step:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .step:nth-child(even) { grid-column: 3 / -1; }

  .gallery__head .display, .gallery__links { grid-column: 1 / -1; }
  .gallery__links { justify-content: flex-start; }
  .tile--a { grid-column: 1 / -1; grid-row: span 4; }
  .tile--b { grid-column: 1 / 7; grid-row: span 4; margin-top: 0; }
  .tile--c { grid-column: 7 / -1; grid-row: span 5; }
  .tile--d { grid-column: 1 / -1; grid-row: span 3; margin-top: 0; }
  .tile--e { grid-column: 3 / 11; grid-row: span 6; margin-top: 0; }

  .contact__info, .qform { grid-column: 1 / -1; }
  .qform { margin-top: 0; }
  .pbreak__content--split { grid-template-columns: 1fr; gap: 24px; }

  .footer__logo { grid-column: 1 / -1; max-width: 220px; }
  .footer__tag { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .hide-sm { display: none; }
  .hero { min-height: 600px; }
  .hero__meta { font-size: 0.62rem; }
  .sun { width: 84vmin; }
  .hero__content { width: 94vw; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__mtn--back { height: 34vh; }
  .hero__mtn--front { height: 20vh; }

  .about__grid { row-gap: 36px; }
  .about__media { grid-column: 3 / -1; }
  .about__copy { grid-column: 1 / -1; grid-row: 4; }
  .specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { border-left: 0; padding: 22px 0; border-top: 1px solid var(--rule-light); margin-top: 0; }
  .spec:first-child { border-top: 0; }
  .spec { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
  .spec dd { margin-top: 0; }

  .sizer { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .sizer button:nth-child(3) { border-left: 0; }
  .sizer button:nth-child(n+3) { border-top: 1px solid var(--rule-dark); }
  .tabs { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }

  .row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 24px 0; }
  .row:hover { padding-left: 0; }
  .row__idx { grid-column: 1 / -1; }
  .row__body { grid-column: 1 / -1; }
  .row__price { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .protect { grid-template-columns: 1fr; }

  .step:nth-child(even) { grid-column: 1 / -1; }
  .mosaic { gap: 10px; grid-auto-rows: 56px; }
  .tile figcaption { transform: none; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .clist > div { grid-template-columns: 1fr; gap: 2px; }
  .pbreak { height: 74vh; height: 74svh; min-height: 440px; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__cols p + p { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dark); margin-top: 18px; }

  .quickbar {
    display: grid; grid-template-columns: 1fr 2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink); border-top: 1px solid var(--rule-dark);
    transform: translateY(100%); transition: transform 0.5s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; height: 56px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .quickbar a.is-primary { background: var(--accent); color: var(--ink); }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: 560px; }
  .hero__content { width: min(440px, 60vw); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__content, .js .hero__ctas, .js .hero__meta, .js .sun { opacity: 1; transform: none; }
  .js .hero__title .line > * { transform: none; }
}

/* Hero meta carries the page's keyword h1, styled as a quiet label */
.hero__meta h1 { font: inherit; letter-spacing: inherit; text-transform: inherit; margin: 0; }
@media (max-width: 640px) { .hero__meta h1 { text-align: right; } }
