/* Indesign Studioz — oxblood wordmark, walnut and graphite from the renders, one cove-light line */
:root {
  --oxblood: #53231d;
  --oxblood-deep: #3d1814;
  --walnut: #8a5a36;
  --graphite: #232527;
  --graphite-soft: #2e3134;
  --concrete: #ecebe8;
  --plaster: #f7f6f4;
  --stone: #c9c5be;
  --muted: #5b5d60;
  --cove: #f2c27b;
  --on-dark: #f3f1ee;
  --on-dark-muted: #b9b5ae;

  --serif: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--graphite); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-small { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-solid { background: var(--oxblood); color: #fff; }
.btn-solid:hover { background: var(--oxblood-deep); }
.btn-line { border-color: var(--graphite); color: var(--graphite); }
.btn-line:hover { background: var(--graphite); color: var(--concrete); }
.btn-light { background: var(--on-dark); color: var(--graphite); }
.btn-light:hover { background: #fff; }
.btn-line-light { border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-line-light:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 235, 232, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(35, 37, 39, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand img { width: auto; height: 42px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.site-nav a:not(.btn) {
  font-size: .98rem; text-decoration: none; color: var(--graphite);
  padding: .5rem 0; background: linear-gradient(var(--oxblood), var(--oxblood)) 0 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.site-nav a:not(.btn):hover { background-size: 100% 1px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 4.5vw, 4rem); align-items: end;
}
.hero-copy { padding-bottom: 2.25rem; }
.hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero-lede { margin-top: 1.5rem; max-width: 34ch; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 1000 / 722; object-fit: cover; border-radius: var(--radius); }
.hero-figure figcaption { margin-top: .85rem; font-size: .9rem; color: var(--muted); }

/* The cove line: a lit LED profile, like the ceilings in the studio's renders */
.cove {
  position: absolute; left: 0; right: 0; top: -14px; height: 3px; z-index: 2;
  background: linear-gradient(90deg, rgba(242,194,123,0), var(--cove) 12%, #fff3dc 50%, var(--cove) 88%, rgba(242,194,123,0));
  border-radius: 3px;
  box-shadow: 0 0 18px 3px rgba(242, 194, 123, .55), 0 0 2px rgba(255, 243, 220, .9);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-figure .cove { animation: cove-draw 1.4s cubic-bezier(.65, 0, .35, 1) .2s both; }
  .hero-figure img { animation: hero-lit 1.2s ease 1s both; }
  .hero-copy > * { animation: rise .8s ease both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes cove-draw { from { transform: scaleX(0); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }
@keyframes hero-lit { from { filter: brightness(.55) saturate(.7); } to { filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { max-width: 52ch; color: var(--muted); }

/* About */
.about { background: var(--plaster); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.about-statement { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--oxblood); }
.about-body { max-width: 62ch; }
.about-body p + p { margin-top: 1.1rem; }
.pillars { margin-top: 2.25rem; border-top: 1px solid var(--stone); }
.pillars li { padding: 1.05rem 0; border-bottom: 1px solid var(--stone); color: var(--muted); }
.pillars strong { display: block; color: var(--graphite); font-weight: 500; }
.powered { margin-top: 1.75rem; font-size: .95rem; color: var(--muted); }

/* Work mosaic */
.mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px); gap: clamp(.5rem, 1.2vw, .9rem);
}
.tile {
  position: relative; overflow: hidden; padding: 0; border: 0; margin: 0;
  background: var(--graphite); cursor: zoom-in; border-radius: var(--radius);
  grid-column: span 4; grid-row: span 1;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.035); }
.tile-wide { grid-column: span 8; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.mosaic .tile:nth-child(5) { grid-column: span 4; }
.tile-label {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .3rem .65rem; font-size: .85rem; color: #fff;
  background: rgba(35, 37, 39, .72); border-radius: var(--radius);
}

/* Homes */
.homes { padding-top: 0; }
.homes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.home-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.home-card figcaption { margin-top: 1rem; color: var(--muted); font-size: 1rem; }
.home-card strong { display: block; margin-bottom: .2rem; color: var(--graphite); font-weight: 500; font-size: 1.1rem; }

/* Services schedule */
.services { background: var(--plaster); }
.schedule { border-top: 1px solid var(--graphite); }
.schedule-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: .75rem clamp(2rem, 5vw, 4.5rem); padding: 1.4rem 0; border-bottom: 1px solid var(--stone);
}
.schedule-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
.schedule-row ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 2rem; color: var(--muted); font-size: 1rem; }
.schedule-row li { padding-left: 1rem; position: relative; }
.schedule-row li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--walnut); }

/* Process */
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem);
  counter-reset: step; position: relative; padding-top: 2.75rem;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: .6rem; height: 2px;
  background: linear-gradient(90deg, var(--walnut), var(--cove));
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: -2.75rem; left: 0;
  width: 1.85rem; height: 1.85rem; display: grid; place-items: center;
  font: 500 .9rem/1 var(--sans); color: #fff; background: var(--oxblood); border-radius: 50%;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Contact */
.contact {
  position: relative; background: var(--graphite); color: var(--on-dark);
  padding-block: var(--section) clamp(2.5rem, 5vw, 3.5rem);
}
.cove-static { top: 0; left: 8%; right: 8%; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { color: #fff; }
.contact-copy > p { margin-top: 1rem; color: var(--on-dark-muted); max-width: 40ch; }
.contact-list { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-list dt { font-size: .9rem; color: var(--on-dark-muted); }
.contact-list dd { margin-top: .15rem; font-size: 1.05rem; }
.contact-list a { text-decoration-color: rgba(243, 241, 238, .35); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--cove); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.socials svg .dot { fill: currentColor; }
.map { min-height: 100%; }
.map iframe {
  display: block; width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius);
  filter: grayscale(.85) contrast(1.05);
}
.business { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(243, 241, 238, .14); }
.business p { font-size: .9rem; color: var(--on-dark-muted); max-width: 90ch; }

/* Footer */
.site-footer { background: var(--oxblood-deep); color: var(--on-dark); padding: 2.5rem 0 6rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 3rem; }
.footer-logo { width: auto; height: 38px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--on-dark-muted); font-size: .95rem; padding: .4rem 0; }
.footer-nav a:hover { color: #fff; }
.footer-legal { text-align: right; font-size: .9rem; color: var(--on-dark-muted); }
.footer-legal .credit { margin-top: .2rem; font-size: .85rem; }
.footer-legal a { color: var(--on-dark); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 21, 22, .88); }
.lightbox img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: -3.25rem; right: 0; width: 44px; height: 44px;
  display: grid; place-items: center; background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%; cursor: pointer; color: #fff;
}
.lightbox-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: rise .25s ease both; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 16ch; }
  .schedule-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 3rem; gap: 1.75rem; }
  .steps::before { left: .9rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--walnut), var(--cove)); }
  .steps li::before { top: -.15rem; left: -3rem; }
  .map iframe { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid rgba(35, 37, 39, .25); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 1.5px; background: var(--graphite); position: relative; transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem; background: var(--concrete);
    border-bottom: 1px solid rgba(35, 37, 39, .12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(35, 37, 39, .08); background: none; }
  .site-nav .btn { margin-top: 1rem; }
  .brand img { height: 36px; }

  .hero h1 { font-size: clamp(2.35rem, 10vw, 3rem); }
  .hero-actions .btn { flex: 1 1 100%; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .tile, .mosaic .tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .tile-wide { grid-column: span 2; grid-row: span 1; }
  .tile-tall { grid-row: span 2; }

  .homes-grid { grid-template-columns: 1fr; }
  .schedule-row ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
