/* FC Glass — Voss-reference layout, FC Glass brand colors:
   Inter w200 headings, 11px letterspaced uppercase labels, brand blue #1889ca in place of black */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #1889ca;
  --ink: #0d0d0d;
  --muted: #666;
  --line: #e5e5e5;
  --pad: clamp(1.25rem, 6vw, 5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 200; line-height: 1.1; color: var(--brand); }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

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

.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-light { color: rgba(255, 255, 255, 0.8); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  color: #fff;
  transition: background 0.3s, color 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0.6rem var(--pad);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 56px; width: auto; transition: height 0.3s; }
.site-header.scrolled .logo img { height: 44px; }
.logo .logo-dark { display: none; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.nav { display: flex; gap: 2.5rem; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav a:hover { opacity: 1; color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 4px 0; }

/* ---------- hero (white panel + image split) ---------- */
.hero {
  min-height: 100svh;
  background: #fff;
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 7rem var(--pad) 3rem;
}
.hero-panel-logo {
  height: clamp(84px, 11vw, 128px);
  width: auto;
  align-self: flex-start;
  margin-bottom: 0.5rem;
}
.hero-eyebrow { color: var(--brand); }
.hero-title {
  color: var(--ink);
  font-weight: 200;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-rating { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 12px; color: var(--muted); }
.hero-rating .stars { color: #f4b400; letter-spacing: 1px; font-size: 13px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.btn-solid, .btn-outline {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-solid { background: var(--brand); color: #fff; font-weight: 500; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.hero-photo { position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* entrance */
.hero-panel > * { animation: rise 0.75s ease both; }
.hero-panel > :nth-child(2) { animation-delay: 0.1s; }
.hero-panel > :nth-child(3) { animation-delay: 0.2s; }
.hero-panel > :nth-child(4) { animation-delay: 0.3s; }
.hero-panel > :nth-child(5) { animation-delay: 0.4s; }
.hero-photo { animation: rise 0.9s ease 0.15s both; }

/* home header: white bar so it reads over the white panel; corner logo hidden at top, revealed on scroll */
#header { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-header .logo { transition: opacity 0.35s ease; }
#header:not(.scrolled) .logo { opacity: 0; pointer-events: none; }
.logo .logo-light { display: none; }
.logo .logo-dark { display: block; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.section-dark { background: var(--brand); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .label { margin-bottom: 1rem; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; }
.counter { font-weight: 200; color: var(--muted); font-size: 0.9rem; }

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.project-num { font-weight: 200; font-size: 0.85rem; color: var(--muted); }
.project-img { overflow: hidden; margin: 0.75rem 0 1.25rem; aspect-ratio: 4 / 3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project:hover .project-img img { transform: scale(1.04); }
.project h3 { margin-bottom: 0.5rem; }

/* ---------- quote ---------- */
.quote-band { padding: clamp(4rem, 10vw, 7rem) var(--pad); text-align: center; }
.quote-band blockquote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 200;
  letter-spacing: -0.01em;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  color: var(--brand);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-grid .label { margin-bottom: 1rem; }
.about-text p { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.25rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.stat-num { display: block; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 200; margin-bottom: 0.5rem; }

/* ---------- approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.approach-grid h3 { margin: 1rem 0 0.75rem; }
.approach-grid p:not(.label) { color: var(--muted); font-size: 0.95rem; }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s ease;
}
.service-row h3 { transition: color 0.25s ease; }
.service-row:hover { padding-left: 1rem; }
.service-row:hover h3 { color: var(--ink); }

/* ---------- contact ---------- */
.contact-title { margin: 1rem 0 2.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.btn-whatsapp, .btn-ghost {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  transition: opacity 0.2s, transform 0.25s ease;
}
.btn-whatsapp { background: #fff; color: var(--brand); font-weight: 500; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-whatsapp:hover, .btn-ghost:hover { opacity: 0.9; transform: translateY(-2px); }
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-info .label { margin-bottom: 0.75rem; }
.contact-info p, .contact-info a { color: rgba(255, 255, 255, 0.95); }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-logo-img { height: 90px; width: auto; margin-bottom: 1rem; }
.footer-blurb { color: var(--muted); max-width: 22rem; font-size: 0.95rem; }
.footer-grid .label { margin-bottom: 1rem; }
.footer-grid a { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* article entrance (subpages) — staggered fade-up on load */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.article > * { animation: rise 0.6s ease both; }
.article > :nth-child(2) { animation-delay: 0.08s; }
.article > :nth-child(3) { animation-delay: 0.16s; }
.article > :nth-child(4) { animation-delay: 0.24s; }
.article > :nth-child(n+5) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .article > *, .hero-panel > *, .hero-photo { animation: none; }
  .wa-float, .btn-whatsapp, .btn-ghost, .btn-solid, .btn-outline, .service-row { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- article (project subpages, newspaper style) ---------- */
.article { max-width: 1200px; margin: 0 auto; padding: 8rem var(--pad) 2rem; }
.kicker { margin-bottom: 1.25rem; }
.headline { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5.5vw, 4.2rem); max-width: 62rem; }
.article-lead img { width: 100%; max-height: 72vh; object-fit: cover; }
.standfirst { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  margin-bottom: 2.5rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.article figure { margin: 0 0 2.5rem; }
.article figure img { width: 100%; max-height: 75vh; object-fit: cover; }
figcaption {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.fig-row figure { margin: 0; }
.article .fig-row img { width: 100%; aspect-ratio: 4 / 3; max-height: none; object-fit: cover; }
.article-body {
  column-count: 3;
  column-gap: 3.5rem;
  column-rule: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
@media (max-width: 1200px) { .article-body { column-count: 2; } }
.article-body p { margin-bottom: 1.1rem; }
.article-body p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.85;
  font-weight: 200;
  color: var(--brand);
  padding: 0.05em 0.12em 0 0;
}
.article .video-figure { max-width: 420px; margin: 0 auto 2.5rem; }
video { width: 100%; display: block; background: #0d0d0d; }
.more-projects { margin-bottom: 1rem; }
.more-projects .label:first-child { margin-bottom: 0.5rem; }

/* ---------- home video band ---------- */
.video-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.video-grid figure { flex: 1 1 280px; max-width: 360px; margin: 0; }

/* ---------- instagram embeds ---------- */
.insta-grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.insta-grid .instagram-media { margin: 0 !important; flex: 1 1 300px; min-width: 280px !important; max-width: 380px !important; border: 1px solid var(--line) !important; box-shadow: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .article-body { column-count: 1; }
  .fig-row { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { padding: 6rem var(--pad) 2.25rem; justify-content: flex-start; gap: 1.1rem; }
  .hero-panel-logo { height: 74px; }
  .hero-photo { min-height: 44vh; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--brand);
  }
  .nav.open { display: flex; }
  .nav.open a { color: #fff; font-size: 14px; }
  .nav-toggle { display: block; position: relative; z-index: 11; color: inherit; }
  #header:has(.nav.open), .site-header:has(.nav.open) { color: #fff; background: none; border: 0; }
  .nav.open { z-index: 10; }
  .projects { grid-template-columns: 1fr; }
  .stats, .contact-info { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 2.5rem 1fr; }
  .service-row .label:last-child { display: none; }
}
