/* ============================================================================
   MICROCEMENT.LK — Design System
   Architectural / editorial surface-technology brand.
   Palette derived from the supplied logo (deep architectural blue + natural
   mineral green) extended with ivory, warm mineral beige, concrete grey and
   charcoal — never just "blue and green".
   ============================================================================ */

:root {
  /* --- Color tokens --------------------------------------------------- */
  --ink:            #201d1a;   /* primary text, warm near-black */
  --ink-soft:       #55504a;   /* secondary text */
  --ivory:          #f7f4ee;   /* primary light background */
  --ivory-deep:     #efe9df;   /* secondary light background / section band */
  --stone:          #e7e0d3;   /* warm mineral beige surface */
  --concrete:       #a9a196;   /* concrete grey (rules, muted labels) */
  --concrete-dark:  #726b60;
  --charcoal:       #1b1a18;   /* dark section background */
  --charcoal-soft:  #26241f;   /* dark section elevated surface */
  --charcoal-line:  rgba(247, 244, 238, 0.14);

  --blue:           #1d4d73;   /* architectural blue, from logo */
  --blue-deep:      #123249;
  --green:          #4d7c3c;   /* mineral green, from logo */
  --green-deep:     #35592a;

  --line:           rgba(32, 29, 26, 0.12);
  --line-soft:      rgba(32, 29, 26, 0.07);

  /* --- Type -------------------------------------------------------------*/
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Spacing scale ------------------------------------------------- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --container-max: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

/* Never allow any section to force horizontal scroll on the page body. */
main, section { overflow-x: clip; }

/* ---------------------------------------------------------------------- */
/* Typography                                                              */
/* ---------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow.on-dark { color: #9fc2da; }
.eyebrow.green { color: var(--green); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1.15;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46em;
}
.body-text { color: var(--ink-soft); line-height: 1.75; max-width: 60ch; }
.body-text p + p { margin-top: 1em; }

.numeral {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  color: var(--stone);
  line-height: 1;
}
.on-dark .numeral { color: var(--charcoal-line); }
/* On stone/ivory-deep backgrounds the plain --stone tone would be invisible
   (same hue as the surface it sits on) — use a translucent dark tint instead
   so the numeral stays recessive but legible. */
.on-stone .numeral, .on-ivory-deep .numeral { color: rgba(32, 29, 26, 0.16); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-text {
  padding: 0;
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 0.2em;
}
.btn-text.on-dark { color: #fff; }
.btn-text:hover { color: var(--green); }

.btn-arrow::after { content: '\2192'; transition: transform 0.3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                     */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 1.4rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.8rem;
  box-shadow: 0 1px 0 var(--line-soft);
}
.site-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 64px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 50px; }
.brand .logo-on-dark { display: none; }
.site-header:not(.is-scrolled):not(.on-light) .brand .logo-on-light { display: none; }
.site-header:not(.is-scrolled):not(.on-light) .brand .logo-on-dark { display: block; }
/* The mobile menu overlay is always light-colored, regardless of whether
   the header itself has scrolled — force the header into its light/solid
   state while it's open so the (white) dark-hero logo variant never
   renders invisibly against it. */
.nav-open .site-header {
  background: rgba(247, 244, 238, 0.96) !important;
  backdrop-filter: blur(10px);
}
.nav-open .brand .logo-on-light { display: block !important; }
.nav-open .brand .logo-on-dark { display: none !important; }

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
}
.site-header:not(.is-scrolled):not(.on-light) .main-nav a { color: #fff; }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 1.5rem; }
.header-cta .btn { padding: 0.85rem 1.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  border: none; background: none;
  position: relative;
  z-index: 600;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}
.site-header:not(.is-scrolled):not(.on-light) .nav-toggle-bar { background: #fff; }
.nav-open .nav-toggle-bar { background: var(--ink) !important; }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 490;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 6vw, 4rem);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.nav-open .mobile-nav { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-nav .header-cta { margin-top: 2rem; flex-direction: column; align-items: flex-start; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media picture, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 16s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.32) 0%, rgba(20,18,16,0.18) 38%, rgba(15,14,12,0.72) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}
.hero-eyebrow {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: #d9e6ee;
  margin-bottom: 1.3rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero-title { color: #fff; max-width: 18ch; }
.hero-sub { margin-top: 1.4rem; max-width: 42ch; color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: clamp(1.25rem, 4vw, 4rem);
  z-index: 2; color: rgba(255,255,255,0.75);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.7rem;
}
.scroll-indicator .line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); position: relative; overflow: hidden; }
.scroll-indicator .line::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: #fff; animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------------------------------------------------------------------- */
/* Section scaffolding                                                     */
/* ---------------------------------------------------------------------- */
.section { padding-block: var(--space-6); }
.section-sm { padding-block: var(--space-5); }
.section.on-dark { background: var(--charcoal); color: #f2efe9; }
.section.on-stone { background: var(--stone); }
.section.on-ivory-deep { background: var(--ivory-deep); }
.on-dark .body-text { color: rgba(242, 239, 233, 0.72); }
.on-dark .display-1, .on-dark .display-2, .on-dark .display-3 { color: #fdfcf9; }

.section-head { max-width: 60rem; margin-bottom: var(--space-4); }
.section-head + .section-head { margin-top: var(--space-4); }
.rule {
  border: none; height: 1px; background: var(--line);
  margin-block: var(--space-4);
}
.on-dark .rule { background: var(--charcoal-line); }

/* Grid utilities */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------------- */
/* Editorial statement / brand intro                                      */
/* ---------------------------------------------------------------------- */
.statement-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.statement-grid .media-frame { aspect-ratio: 4 / 5; overflow: hidden; }
.statement-grid .media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------- */
/* Technology / product showcase (NOT ecommerce cards)                    */
/* ---------------------------------------------------------------------- */
.tech-showcase { display: flex; flex-direction: column; gap: var(--space-5); }
.tech-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.tech-row.reverse .tech-media { order: 2; }
.tech-row.reverse .tech-copy { order: 1; }
.tech-media { position: relative; aspect-ratio: 5 / 4.2; overflow: hidden; }
.tech-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tech-row:hover .tech-media img { transform: scale(1.045); }
.tech-index {
  position: absolute; top: 1.4rem; left: 1.4rem;
  font-family: var(--font-display); font-size: 1.4rem; color: #fff;
  background: rgba(20,18,16,0.55); backdrop-filter: blur(4px);
  padding: 0.3rem 0.9rem;
}
.tech-copy .product-name { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 0.3rem; }
.tech-copy .product-tagline { color: var(--concrete-dark); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.2rem; }
.tech-copy .feature-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 1.8rem; }
.tech-copy .feature-tags span {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 0.45rem 0.85rem; color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Why us — numbered large-type sections                                  */
/* ---------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.pillar { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.on-dark .pillar { border-top-color: var(--charcoal-line); }
.pillar .numeral { display: block; margin-bottom: 1rem; }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); }
.on-dark .pillar p { color: rgba(242,239,233,0.72); }

/* ---------------------------------------------------------------------- */
/* Applications — asymmetric image blocks                                  */
/* ---------------------------------------------------------------------- */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}
.app-block { position: relative; overflow: hidden; color: #fff; min-height: 22rem; }
.app-block picture, .app-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.app-block:hover img { transform: scale(1.06); }
.app-block::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0) 30%, rgba(15,14,12,0.82) 100%);
  z-index: 1;
}
.app-block .app-content { position: relative; z-index: 2; padding: var(--space-3); align-self: flex-end; margin-top: auto; }
.app-block { display: flex; flex-direction: column; justify-content: flex-end; }
.app-block .app-index { font-family: var(--font-display); font-size: 1rem; opacity: 0.8; margin-bottom: 0.5rem; }
.app-block h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); max-width: 20ch; }
.app-block p { margin-top: 0.6rem; font-size: 0.92rem; max-width: 34ch; color: rgba(255,255,255,0.82); display: none; }

.app-1 { grid-column: span 7; }
.app-2 { grid-column: span 5; }
.app-3 { grid-column: span 5; }
.app-4 { grid-column: span 7; }

/* ---------------------------------------------------------------------- */
/* Seamless story (full-bleed immersive)                                   */
/* ---------------------------------------------------------------------- */
.seamless-story { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow:hidden; }
.seamless-story .story-media { position: absolute; inset: 0; z-index: 0; }
.seamless-story .story-media img { width: 100%; height: 100%; object-fit: cover; }
.seamless-story::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,14,12,0.82) 0%, rgba(15,14,12,0.42) 55%, rgba(15,14,12,0.08) 100%);
  z-index: 1;
}
.seamless-story .story-content { position: relative; z-index: 2; max-width: 34rem; }

/* ---------------------------------------------------------------------- */
/* Material / texture showcase                                            */
/* ---------------------------------------------------------------------- */
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.material-card { position: relative; }
.material-card .swatch-frame { aspect-ratio: 1 / 1.05; overflow: hidden; }
.material-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.material-card:hover img { transform: scale(1.05); }
.material-card .swatch-meta { padding-top: 1rem; }
.material-card h4 { font-family: var(--font-display); font-size: 1.25rem; }
.material-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.35rem; }

.color-collection { margin-top: var(--space-4); }
.color-collection h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1.2rem; }
.color-swatch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.color-chip { border: 1px solid var(--line); padding: 1.2rem; background: #fff; }
.color-chip .dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; margin-bottom: 0.9rem; border: 1px solid var(--line); }
.color-chip h5 { font-size: 0.95rem; font-weight: 700; }
.color-chip p { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ---------------------------------------------------------------------- */
/* Technical performance                                                   */
/* ---------------------------------------------------------------------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); margin-top: var(--space-4); }
.spec-item { border-top: 1px solid var(--charcoal-line); padding-top: 1.4rem; }
.spec-value { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); color: #fff; }
.spec-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9fc2da; margin-top: 0.5rem; }
.spec-benefit { font-size: 0.88rem; color: rgba(242,239,233,0.65); margin-top: 0.6rem; }

.spec-compare { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.spec-compare th, .spec-compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--charcoal-line); font-size: 0.92rem; }
.spec-compare th { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: #fff; }
.spec-compare td { color: rgba(242,239,233,0.8); }
.spec-compare .row-label { color: #9fc2da; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Below ~760px, three side-by-side columns can't hold this much text
   legibly — reflow the comparison table into one card per requirement,
   with each value labelled, instead of relying on a hidden horizontal
   scroll (which read as "cut off" rather than "swipeable"). */
@media (max-width: 760px) {
  .spec-compare, .spec-compare tbody { display: block; width: 100%; }
  .spec-compare thead { display: none; }
  .spec-compare tr {
    display: block;
    border: 1px solid var(--charcoal-line);
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
  }
  .spec-compare td {
    display: block;
    border-bottom: none;
    padding: 0.5rem 0;
  }
  .spec-compare .row-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    letter-spacing: normal;
    text-transform: none;
    padding-bottom: 0.7rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid var(--charcoal-line);
  }
  .spec-compare td:not(.row-label)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9fc2da;
    margin-bottom: 0.25rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Gallery / masonry                                                       */
/* ---------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: var(--space-4); }
.filter-bar button {
  border: 1px solid var(--line); background: transparent; padding: 0.6rem 1.2rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-soft); transition: all 0.25s var(--ease);
}
.filter-bar button.active, .filter-bar button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.masonry { columns: 3 260px; column-gap: 1.25rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1.25rem; position: relative; cursor: zoom-in; overflow: hidden; }
.masonry-item img { width: 100%; display: block; transition: transform 0.7s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item .tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: rgba(20,18,16,0.65); color: #fff; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.7rem;
}
.masonry-item .caption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1rem;
  background: linear-gradient(180deg, rgba(15,14,12,0) 0%, rgba(15,14,12,0.85) 100%);
  color: #fff; opacity: 0; transform: translateY(8px);
  transition: all 0.35s var(--ease);
}
.masonry-item:hover .caption { opacity: 1; transform: translateY(0); }
.masonry-item .caption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.masonry-item .caption span { font-size: 0.78rem; opacity: 0.8; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(12,11,10,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.lightbox .lb-caption { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: #fff; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: none; color: #fff; font-size: 1.6rem;
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; font-size: 1.8rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------------- */
/* Craftsmanship split section                                            */
/* ---------------------------------------------------------------------- */
.craft-split { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.craft-media { position: relative; min-height: 34rem; }
.craft-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.craft-copy { padding: var(--space-6) clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.process-steps { margin-top: var(--space-3); display: flex; flex-direction: column; }
.process-step { display: flex; gap: 1.2rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.process-step .step-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--concrete-dark); width: 2rem; flex-shrink: 0; }
.process-step h5 { font-weight: 700; font-size: 0.98rem; }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.25rem; }

/* ---------------------------------------------------------------------- */
/* Final CTA                                                              */
/* ---------------------------------------------------------------------- */
.final-cta { position: relative; min-height: 62vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.final-cta .cta-media { position: absolute; inset: 0; z-index: 0; }
.final-cta .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta .cta-scrim { position: absolute; inset: 0; background: rgba(15,14,12,0.6); z-index: 1; }
.final-cta .cta-content { position: relative; z-index: 2; text-align: center; margin-inline: auto; max-width: 40rem; }
.final-cta .btn { margin-top: 2rem; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(247,244,238,0.75); padding-block: var(--space-5) var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-brand img { height: 42px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 30ch; font-size: 0.9rem; }
.footer-col h5 { color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-office-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,244,238,0.5); margin-bottom: 0.4rem; }
.footer-address { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--charcoal-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(247,244,238,0.5);
}
.footer-bottom a { color: rgba(247,244,238,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------------- */
/* Forms (contact / consultation)                                         */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); background: #fff; padding: 0.9rem 1rem; font-size: 0.98rem; color: var(--ink);
  transition: border-color 0.25s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field.file-field input { padding: 0.7rem; background: var(--ivory-deep); }
.form-note { font-size: 0.82rem; color: var(--concrete-dark); }
.form-error { color: #a5352b; font-size: 0.82rem; }
.form-success-banner, .form-error-banner {
  padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; font-size: 0.95rem; border-left: 3px solid;
}
.form-success-banner { background: #eef3ea; border-color: var(--green); }
.form-error-banner { background: #f7e9e7; border-color: #a5352b; }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll animation                                              */
/* ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-media img, .tech-media img, .app-block img, .material-card img, .masonry-item img {
    transition: none !important; animation: none !important; transform: none !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav, .header-cta .btn-outline-dark, .header-cta .btn-outline-light { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }

  .statement-grid, .tech-row, .craft-split { grid-template-columns: 1fr; }
  .tech-row.reverse .tech-media, .tech-row.reverse .tech-copy { order: initial; }
  .pillars, .spec-grid, .material-grid { grid-template-columns: repeat(2, 1fr); }
  .color-swatch-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .craft-media { min-height: 20rem; }
  .masonry { columns: 2 220px; }
  /* Header height (logo + padding) exceeds the hero's default top padding
     once the hamburger nav takes over — give the eyebrow/heading room to
     clear it instead of sitting partly behind the fixed header. */
  .hero-content { padding-top: 8rem; }
}

@media (max-width: 640px) {
  .brand img { height: 48px; }
  .site-header.is-scrolled .brand img { height: 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .pillars, .spec-grid, .material-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .color-swatch-row { grid-template-columns: repeat(2, 1fr); }
  .applications-grid { grid-template-columns: 1fr; }
  .app-1, .app-2, .app-3, .app-4 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; }
  .masonry { columns: 1 100%; }
  .section { padding-block: var(--space-5); }
  .hero { min-height: 92vh; }
  .scroll-indicator { display: none; }
  /* The fixed header (logo + padding) is taller than the hero content's
     default top padding at this width, so the eyebrow/heading text was
     rendering partly underneath it. Force enough clearance regardless of
     content height. */
  .hero-content { padding-top: 6.5rem; }
}
