/*
 * MODERN / CLEAN — Design Language
 * ══════════════════════════════════════════════════════════
 *
 * A calm, confident, contemporary studio. The opposite of a boxy
 * template: it earns its premium feel from typographic scale, hairline
 * detailing and generous, deliberate whitespace — not from decoration.
 *
 * COLOR
 *   A warm near-white ground (not clinical grey), near-black warm text,
 *   one accent. The accent appears only on small labels, the primary CTA,
 *   and a few hairline cues. Never floods a surface.
 *
 * TYPOGRAPHY
 *   Outfit throughout. The visual weight is carried by scale and a light
 *   display weight (300) at large sizes with tight tracking — confident,
 *   not loud. Labels are small, uppercase, widely tracked.
 *
 * STRUCTURE
 *   A clean asymmetric split hero. Services are quiet cards with an
 *   oversized ghost numeral and a hover lift — no gimmick top-borders.
 *   Hairline rules and whitespace separate sections; boxes are avoided.
 *
 * IMAGERY
 *   Large, given room, full-bleed at the edges. Never icon-sized.
 *
 * ══════════════════════════════════════════════════════════
 */

/* ─── VARIABLES ────────────────────────────────────────── */

:root {
  --bg:          #FCFBF8;   /* warm near-white — premium, not clinical */
  --bg-alt:      #F3F1EB;   /* quiet alternating surface */
  --text:        #17150F;   /* warm near-black */
  --text-muted:  #6E6A61;   /* secondary text */
  --accent:      #0F766E;   /* deep petrol-teal — water + technical trust, AA with white */
  --white:       #FFFFFF;
  --line:        rgba(23, 21, 15, 0.10);  /* hairline */
  --line-soft:   rgba(23, 21, 15, 0.06);
  --placeholder: #E4E1D9;

  --font:        'Outfit', system-ui, -apple-system, sans-serif;
  --max-w:       1240px;

  /* additive tokens — depth + motion (cool near-black shadows) */
  --shadow-sm:   0 1px 2px rgba(23, 21, 15, 0.04), 0 6px 20px -10px rgba(23, 21, 15, 0.12);
  --shadow-md:   0 14px 34px -18px rgba(23, 21, 15, 0.26), 0 4px 10px rgba(23, 21, 15, 0.05);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── LAYOUT ───────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.75rem;
}

/* ─── SHARED TYPOGRAPHY ────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-label::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
}

/* ─── PLACEHOLDERS ─────────────────────────────────────── */

.img-placeholder {
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-slot);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.55;
}

/* ─── BUTTONS ──────────────────────────────────────────── */

.btn-dark {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--text);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--accent); box-shadow: var(--shadow-md); }
.btn-dark:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.18s;
}
.btn-link:hover { color: var(--text); }

/* ─── NAV ──────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.75rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-right: auto;
}

.nav-links { display: flex; gap: 2.6rem; }

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--text);
  color: var(--text);
  transition: background 0.22s, color 0.22s;
}
.nav-cta:hover { background: var(--text); color: var(--white); }

/* ─── HERO ─────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4.5rem 6rem 0;
  max-width: 600px;
  margin-left: auto;
}
.hero-text .kicker { animation: rise 0.9s var(--ease-out) 0.05s both; }
.hero-text h1      { animation: rise 0.9s var(--ease-out) 0.16s both; }
.hero-text p       { animation: rise 0.9s var(--ease-out) 0.28s both; }
.hero-actions      { animation: rise 0.9s var(--ease-out) 0.4s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.9rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.hero-text p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 2.8rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  background-color: var(--accent);  /* instant paint — degrades to an on-brand colour block, never a grey "broken" box, if the photo is slow or missing */
  transform: scale(1.06);
  animation: kenburns 18s var(--ease-out) both;
}
@keyframes kenburns { to { transform: scale(1); } }

/* ─── SERVICES ──────────────────────────────────────────── */

.services {
  padding: 8rem 0;
  border-top: 1px solid var(--line-soft);
}

.services-head {
  max-width: var(--max-w);
  margin: 0 auto 3.75rem;
  padding: 0 2.75rem;
}

.services-head h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
}

.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-num {
  font-size: 2.4rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.5rem;
  transition: opacity 0.28s var(--ease-out);
}
.service-card:hover .service-num { opacity: 0.9; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.service-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* ─── ABOUT ─────────────────────────────────────────────── */

.about { padding: 0; background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.about-img { width: 100%; height: 100%; min-height: 420px; }

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem 5rem;
}

.about-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  margin-bottom: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 0.35rem; }

.stat-num {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── WORK ──────────────────────────────────────────────── */

.work { padding: 8rem 0; }

.work .container { padding: 0 2.75rem; }

.work .section-label { margin-bottom: 2.25rem; }

.work-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
  gap: 1.25rem;
}

.work-img { width: 100%; }

/* Tall hero image of the section */
.work-img--tall { aspect-ratio: 4 / 5; min-height: 420px; }

/* Right column — holds the optional second image and the pull quote.
   Built as a flex column so it fills cleanly whether or not the optional
   image is present (no empty cell). */
.work-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-img--short { flex: 1; min-height: 200px; }

.work-pull {
  flex: 1;
  background: var(--text);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  min-height: 200px;
}

.work-pull p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.work-pull span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── CONTACT ───────────────────────────────────────────── */

.contact {
  padding: 8rem 0;
  background: var(--bg-alt);
}

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.contact-left p {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 32ch;
}

.contact-right {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.info-key {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
}

/* ─── FOOTER ────────────────────────────────────────────── */

.footer {
  background: var(--text);
  padding: 2.25rem 2.75rem;
}

.footer .container { display: flex; justify-content: center; align-items: center; gap: 0.8rem; }
.footer .container::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.footer p {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 5rem 2rem; margin: 0; max-width: 100%; }
  .hero-img { height: 56vw; min-height: 300px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .about-content { padding: 4rem 2rem; }

  .work-grid { grid-template-columns: 1fr; }
  .work-img--tall { aspect-ratio: 4/3; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 560px) {
  .nav-links, .nav-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
}

/* ─── LAYOUT SAFETY ────────────────────────────────────── */
html, body { overflow-x: hidden; }
[class*="-img"] { min-width: 0; overflow: hidden; }
* { box-sizing: border-box; }

/* MOBILE OVERFLOW SAFETY (2026-07-18) — fixes the two bugs that distorted the
   contact section on phones (bottom of page cut off to the side):
   1) a *-grid that carries its OWN max-width+padding but is ALSO wrapped in
      .container doubles its side padding (88px), squeezing + offsetting mobile
      content — neutralise the inner padding.
   2) a long unbreakable string (an email/URL) forces a `1fr` grid track to its
      min-content, blowing the track past the viewport — let tracks shrink
      (minmax(0,…)) and let such strings wrap. Keep both; they compound. */
.container > .services-grid,
.container > .work-grid,
.container > .contact-grid { max-width: none; padding-left: 0; padding-right: 0; }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.info-row { grid-template-columns: 110px minmax(0, 1fr); }
.info-val, .contact-left p { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
