/* ==========================================================================
   O Painting — stylesheet

   Type system: Inter (sans) is the primary/workhorse font — headers, nav,
   logo, service names, buttons, labels, and all body copy. Weight stays
   nearly flat (400) throughout; hierarchy comes from SIZE, CASE and COLOR,
   not weight or a second typeface. Case signals function: ALL-CAPS Inter =
   structure/identity (nav, service names, buttons, labels, badges, logo);
   sentence case Inter = prose (titles, blurbs, descriptions, metadata).
   Mountella (serif) has exactly one job per page — the single large
   brand-statement moment (the breakout section) — always sentence case,
   never in nav/buttons/prices/body.

   Motion system: two ideas only — a damped smooth-scroll feel (Lenis,
   desktop only; native on touch) and opacity-only reveals on scroll.
   No slide-ins, no parallax, no scale/zoom effects. Every easing curve is
   a calm ease-out — never a spring or bounce.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Mountella';
  src: url('../assets/fonts/mountella/Mountella-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Mountella';
  src: url('../assets/fonts/mountella/Mountella-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --putty: #f4f1ec;
  --putty-deep: #e9e6df;
  --black: #14120f;
  --ink: #1c1a16;
  --grey-700: #4a453d;
  --grey-500: #7d7669;
  --grey-400: #a39c8d;
  --line: rgba(20, 18, 15, 0.16);
  --line-soft: rgba(20, 18, 15, 0.1);
  --white: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Mountella', 'Inter', serif;

  --container-w: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-hover: cubic-bezier(.25, 1, .5, 1);
  --ease-snap: cubic-bezier(.215, .61, .355, 1);
  --bar-h: 36px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--putty);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 48px;
}
.container-wide { max-width: 1680px; }

/* ---- type scale ---- */

/* ALL-CAPS Inter label: structure/identity — badges, category tags, field labels */
.label-caps {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey-500);
}
/* backwards-compatible alias used throughout the markup */
.tag { display: inline-block; font-size: 13px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; color: var(--grey-500); }

/* sentence-case Inter metadata: locations, dates — the quietest text on a card */
.meta {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--grey-500);
}

/* the one bold moment: functional section/accordion dividers (reserved for future use) */
.divider-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

p { line-height: 1.75; color: var(--grey-700); margin: 0 0 1em; font-size: 14px; }
p:last-child { margin-bottom: 0; }

/* ---- links & buttons: all-caps Inter, tracked, weight stays flat.
   Hover dims opacity only — never an underline snap or color swap. ---- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: opacity 0.5s var(--ease-hover);
}
.text-link:hover { opacity: 0.55; }
.text-link-light { color: var(--white); border-color: rgba(255,255,255,0.4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: var(--ink);
  color: var(--putty);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-block { width: 100%; }

/* ---- reveal on scroll: opacity only, no translate/scale ----
   Standard blocks fade in quickly with no delay; larger feature blocks
   (case-study-scale modules) fade in slower, with a beat of held delay. */
.reveal { opacity: 0; transition: opacity 0.8s ease; }
.reveal.is-active { opacity: 1; }
.reveal-feature { opacity: 0; transition: opacity 1s ease 0.3s; }
.reveal-feature.is-active { opacity: 1; }

/* ==========================================================================
   Call bar — thin, accent (dark) band. Scrolls away with the page; the
   header below it is what stays permanently visible.
   ========================================================================== */
.call-bar {
  height: var(--bar-h);
  background: var(--black);
}
.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}
.call-bar-short { display: none; }

/* ==========================================================================
   Header — always visible (fixed, never hides). Sits just below the
   non-fixed call bar until the bar scrolls away, then snaps up to top:0
   so it can overlay the hero from the very start of the page.
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background 0.3s var(--ease), top 0.2s var(--ease);
}
.site-header.bar-gone { top: 0; }
.site-header.is-scrolled { background: var(--black); }

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { height: 26px; width: auto; filter: invert(1); }
.brand-text {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.5s var(--ease-hover);
}
.nav-link:hover { opacity: 0.55; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--white);
  transition: opacity 0.5s var(--ease-hover);
}
.header-phone:hover { opacity: 0.55; }
.header-quote { font-size: 13px; color: var(--white); border-color: rgba(255,255,255,0.4); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 101;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars span { width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease-snap), opacity 0.3s var(--ease-snap); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   Hero — sticky panel, not parallax. The text/teaser panel sticks to the
   top of the viewport for a beat while the photo (much taller than the
   viewport) continues scrolling beneath it, then releases naturally.
   ========================================================================== */
.hero {
  position: relative;
  height: 170vh;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: rgba(15, 13, 10, 0.32); }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
}
.hero-inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 72px;
  flex-wrap: wrap;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
}
.hero-headline {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
}
.hero-blurb { color: rgba(255,255,255,0.82); font-size: 15px; margin-top: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; align-items: center; }

.hero-teaser {
  flex: 0 0 auto;
  width: 260px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 13, 10, 0.25);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.hero-teaser:hover { border-color: rgba(255,255,255,0.6); background: rgba(15, 13, 10, 0.4); }
.hero-teaser .tag { color: rgba(255,255,255,0.75); }
.hero-teaser-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 10px 0 4px;
}
.hero-teaser-meta { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.hero-teaser-link {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
}

/* ==========================================================================
   Section rhythm — constant putty background; a thin rule marks each
   section start. Only the breakout section departs from putty.
   ========================================================================== */
section { position: relative; }
.section { padding: 108px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 2.8vw, 38px); text-transform: uppercase; letter-spacing: 0.015em; }
.section-head p { margin-top: 14px; max-width: 52ch; }

/* ==========================================================================
   Services — even columns, photo + all-caps name + sentence-case line.
   Card hover darkens the photo and dims the caption — never a scale-up.
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}
.service-tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--putty-deep); margin-bottom: 18px; }
.service-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.service-tile-media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.4s ease; }
.service-tile:hover .service-tile-media::after { background: rgba(0,0,0,0.18); }
.service-tile-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s ease;
}
.service-tile p { font-size: 14px; color: var(--grey-700); transition: color 0.4s ease; }
.service-tile:hover .service-tile-tag,
.service-tile:hover p { color: var(--grey-500); }

/* ==========================================================================
   Breakout — the one Mountella moment on the page. Sentence case, never caps.
   ========================================================================== */
.breakout {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.breakout-media { position: absolute; top: -10%; left: 0; right: 0; bottom: -10%; z-index: -1; will-change: transform; }
.breakout-media img { width: 100%; height: 100%; object-fit: cover; }
.breakout-scrim { position: absolute; inset: 0; background: rgba(10, 9, 7, 0.4); }
.breakout-line {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(34px, 6.5vw, 92px);
  line-height: 1.1;
  max-width: 1100px;
  padding: 0 32px;
}

/* ==========================================================================
   Gallery — all-caps project name + sentence-case city. Same darken-on-
   hover treatment as services; captions dim, image never scales.
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}
.gallery-item-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--putty-deep); margin-bottom: 16px; }
.gallery-item-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.4s ease; }
.gallery-item:hover .gallery-item-media::after { background: rgba(0,0,0,0.18); }
.gallery-item-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: color 0.4s ease;
}
.gallery-item-meta { font-size: 13px; color: var(--grey-500); transition: color 0.4s ease; }
.gallery-item:hover .gallery-item-title,
.gallery-item:hover .gallery-item-meta { color: var(--grey-500); }
.gallery-more { margin-top: 56px; text-align: center; }

/* ==========================================================================
   About — two-column feature (a "reveal-feature" scale block)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--putty-deep); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.015em; }
.about-copy .credit-line { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--grey-500); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-top { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; flex-wrap: wrap; }
.reviews-score { font-family: var(--font-sans); font-weight: 400; font-size: 44px; line-height: 1; }
.reviews-top-meta { font-size: 14px; color: var(--grey-700); }
.reviews-top-meta a { border-bottom: 1px solid var(--line); transition: opacity 0.5s var(--ease-hover); }
.reviews-top-meta a:hover { opacity: 0.55; }
.reviews-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.review-card { background: var(--putty); padding: 32px; border: 1px solid var(--line); }
.review-stars { font-size: 13px; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 16px; }
.review-card p { font-size: 13px; line-height: 1.6; color: var(--ink); }
.review-attr { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review-attr-name { font-size: 14px; color: var(--ink); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.015em; }
.contact-detail { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.contact-detail:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-detail .tag { display: block; margin-bottom: 6px; }
.contact-detail a, .contact-detail p { font-size: 15px; margin: 0; }
.contact-detail a { display: inline-block; transition: opacity 0.5s var(--ease-hover); }
.contact-detail a:hover { opacity: 0.55; }
.social-row { display: flex; gap: 16px; margin-top: 8px; }
.social-row a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); transition: opacity 0.5s var(--ease-hover); }
.social-row a:hover { opacity: 0.55; }
.social-row svg { width: 15px; height: 15px; fill: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: 13px; color: var(--grey-400); text-align: center; }
.form-success {
  display: none;
  text-align: center;
  font-size: 15px;
  padding: 18px;
  border: 1px solid var(--line);
}
.contact-form.is-submitted .form-fields,
.contact-form.is-submitted .btn-block,
.contact-form.is-submitted .form-note { display: none; }
.contact-form.is-submitted .form-success { display: block; }

/* ==========================================================================
   Footer — dark band: centered closing statement, then a plain bottom bar
   ========================================================================== */
.site-footer { background: var(--black); color: var(--white); }
.footer-close { padding: 100px 0 72px; text-align: center; }
.footer-close h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  max-width: 640px;
  margin: 0 auto 28px;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: opacity 0.5s var(--ease-hover); }
.footer-nav a:hover { opacity: 0.55; }
.footer-bar .social-row a { border-color: rgba(255,255,255,0.2); }
.footer-bar .social-row svg { fill: var(--white); }
.footer-legal { font-size: 12px; letter-spacing: 0.005em; color: rgba(255,255,255,0.5); display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Full-screen nav overlay — nav links · service-area list in display serif
   ========================================================================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--putty);
  overflow-y: auto;
}
.nav-overlay.is-open { display: block; }
.nav-overlay-inner {
  min-height: 100%;
  padding: calc(var(--header-h) + 36px) 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.nav-overlay-links { display: flex; flex-direction: column; gap: 22px; }
.nav-overlay-links a { font-size: 22px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); transition: opacity 0.5s var(--ease-hover); }
.nav-overlay-links a:hover { opacity: 0.55; }
.nav-overlay-areas .tag { display: block; margin-bottom: 18px; }
.nav-overlay-areas-list { display: flex; flex-direction: column; gap: 10px; }
.nav-overlay-areas-list span { font-family: var(--font-sans); font-weight: 400; font-size: 26px; color: var(--ink); }
.nav-overlay-cta { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .call-bar-full { display: none; }
  .call-bar-short { display: inline; }
  .main-nav { display: none; }
  .header-quote { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle-label { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 12px; }
  .brand-text { font-size: 13px; letter-spacing: 0.045em; }
  .header-phone { font-size: 13px; white-space: nowrap; }
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  .hero { height: 140vh; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-teaser { width: 100%; }
  .section { padding: 76px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .nav-overlay-inner { grid-template-columns: 1fr; gap: 40px; padding-left: 24px; padding-right: 24px; }
  .nav-overlay-areas-list span { font-size: 22px; }
}
