/* Bab Al Qimah Aluminium & Glass Cont LLC. — site styles (v2)
   Palette and type follow the client's reference screenshots: warm paper and sand
   neutrals, charcoal, one gold accent; Unbounded for display, DM Sans for text.
   Motion (reveals, parallax, carousel autoplay) only runs when html has .motion,
   which is set in <head> unless the visitor prefers reduced motion. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #c29d41;
  --gold-hover: #d2b05a;
  --gold-ink: #7a5c16;      /* gold for small text on light backgrounds (passes AA) */
  --char: #000;          /* black: header once scrolled, footer, dark bands */
  --char-2: #141414;
  --ink: #1f1e1c;
  --body: #4a4741;
  --muted: #6b665d;
  --paper: #f9f7f4;
  --sand: #ece9e3;
  --sand-2: #e1dcd2;
  --line: #d6d0c4;
  --white: #fff;
  --error: #b3261e;

  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --gap: clamp(10px, 1.2vw, 16px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.motion { scroll-behavior: smooth; }
html:has(dialog[open]), body.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -120px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--char);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow--light { color: var(--gold); }
.eyebrow-link { display: inline-block; text-decoration: none; }
.eyebrow-link:hover { text-decoration: underline; color: var(--gold-hover); }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.h2--xl { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.lead { max-width: 62ch; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--ink); }

/* ------------------------------------------------------------------ buttons + links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .975rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { background: var(--gold-hover); color: var(--char); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-square { border-radius: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.text-link .icon-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.text-link:hover { color: var(--gold-ink); }
.text-link:hover .icon-arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  --glass: rgba(0, 0, 0, .45);
  --glass-blur: saturate(180%) blur(10px) brightness(.78);   /* see-through, but dims what's behind so white text keeps 5:1+ contrast */
}
.site-header::before {                     /* smoked glass, shown once the page scrolls */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
  transition: opacity .35s var(--ease);
}
.js .site-header:not(.is-scrolled)::before { opacity: 0; }
.nav-open .site-header::before, .js .nav-open .site-header::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { --glass: rgba(0, 0, 0, .92); }
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-logo { width: 50px; height: 50px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name-main { font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.brand-name-sub { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.is-scrolled .brand-name-sub, .nav-open .brand-name-sub { color: rgba(255, 255, 255, .92); }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute;
  left: 12px;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--white);
  font-size: .975rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"]::after,
.has-sub.is-section > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
}
.site-nav .nav-cta {
  margin-left: 12px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--char);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--gold-hover); color: var(--char); }
.site-nav .nav-cta[aria-current="page"]::after { left: 22px; right: 22px; background: var(--char); }

.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 4px; }
.has-sub.is-section > a::after { right: 4px; }
.sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
}
.sub-toggle .icon-chev { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon-chev { transform: rotate(180deg); }

.sub-list {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: min(660px, 88vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  column-gap: 6px;
  padding: 12px;
  background: var(--glass);                    /* same smoked glass as the header */
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 0;
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.sub-list::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 20px; }
.sub-list a {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 11px 14px;
  color: var(--white);
  font-size: .95rem;
  line-height: 1.3;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav .sub-list a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.site-nav .sub-list a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 var(--white); }
.sub-list a[aria-current="page"]::after { display: none; }
.sub-toggle[aria-expanded="true"] + .sub-list {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) and (min-width: 1000px) {
  .has-sub:hover > .sub-list { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
}

@media (max-width: 999px) {
  :root { --header-h: 72px; }
  .brand-logo { width: 44px; height: 44px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, .62);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, .1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav a, .site-nav a:hover { color: var(--white); }
  .site-nav a { min-height: 58px; padding: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
  .site-nav a[aria-current="page"]::after, .has-sub.is-section > a::after { left: 0; right: auto; width: 28px; bottom: 10px; background: var(--white); }
  .sub-toggle { color: var(--white); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 56px; height: 58px; margin-right: -14px; }
  .sub-toggle .icon-chev { width: 22px; height: 22px; }
  .sub-list {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    padding: 0 0 14px 16px;
    background: none;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, .25);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sub-list::before { display: none; }
  .sub-toggle[aria-expanded="true"] + .sub-list { display: grid; }
  .sub-list a { min-height: 46px; padding: 10px 0; font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; }
  .sub-list a { color: rgba(255, 255, 255, .85); }
  .site-nav .sub-list a:hover { background: none; }
  .site-nav .sub-list a[aria-current="page"] { background: none; box-shadow: none; }
  .site-nav .nav-cta { justify-content: center; margin: 28px 0 0; min-height: 54px; font-family: var(--sans); font-size: 1.0625rem; }
  .nav-list > li:last-child { border-bottom: 0; }
}
@media (max-width: 400px) { .brand-name-sub { display: none; } }

/* ------------------------------------------------------------------ heroes */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--char);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.motion .hero-media { transform: scale(1.12); will-change: transform; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 19, 17, .85) 0%, rgba(20, 19, 17, .62) 55%, rgba(20, 19, 17, .48) 100%),
    linear-gradient(0deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, 0) 45%);
}
.hero-inner { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap)); }

.hero-copy { position: relative; }
.hero--home { min-height: 100vh; min-height: 100svh; }
.hero--home .hero-inner { padding-block: calc(var(--header-h) + 48px) 80px; }
.hero--home .hero-copy { max-width: 780px; margin-inline: auto; padding-left: clamp(22px, 3vw, 34px); }
.hero--home .hero-copy::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--gold);
  transform-origin: top;
}

.hero-title {
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.005em;
  color: var(--white);
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }
.w--gold { color: var(--gold); }

.hero-tagline {
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, .9);
}
.hero-text { max-width: 56ch; margin: 18px 0 0; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3.4vw, 38px); }

.hero--page { min-height: clamp(360px, 54vh, 540px); align-items: flex-end; }
.hero--page .hero-inner { padding-block: calc(var(--header-h) + 56px) clamp(44px, 6vw, 76px); margin-inline: auto; }
.page-title {
  max-width: 16ch;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
}
.page-title .w { padding-bottom: .2em; margin-bottom: -.2em; }

.hero--grid { min-height: clamp(380px, 50vh, 480px); align-items: flex-end; }
.hero--grid::before { display: none; }
.hero--grid .hero-inner { padding-block: calc(var(--header-h) + 56px) clamp(48px, 6vw, 80px); margin-inline: auto; }
.hero-grid-bg {
  position: absolute;
  inset: -160px 0 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-lead { max-width: 46ch; margin: 22px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .78); }

/* entrance sequence: CSS only, so nothing flashes before scripts load */
.motion .hero-copy::before { animation: bar-grow 1.1s var(--ease-out) .1s both; }
.motion .hero-copy > .eyebrow, .motion .hero-copy > nav { animation: fade-up .8s var(--ease-out) .15s both; }
.motion .w > span { animation: word-in 1.05s var(--ease-out) both; animation-delay: calc(.28s + var(--i) * 75ms); }
.motion .hero-tagline { animation: fade-up .9s var(--ease-out) .85s both; }
.motion .hero-text, .motion .hero-lead { animation: fade-up .9s var(--ease-out) .95s both; }
.motion .hero-actions { animation: fade-up .9s var(--ease-out) 1.05s both; }
@keyframes word-in { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--sand { background: var(--sand); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-foot { margin: clamp(40px, 5vw, 56px) 0 0; text-align: center; }

/* Who we are / About split */
.split-card { display: grid; background: var(--sand); }
@media (min-width: 960px) { .split-card { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.split-media { position: relative; margin: 0; aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .split-media { aspect-ratio: auto; min-height: 520px; } }
.split-media-inner { position: absolute; inset: 0; display: block; overflow: hidden; }
.split-media-inner picture, .split-media-inner img { display: block; width: 100%; height: 100%; }
.split-media-inner img { object-fit: cover; }
.gold-square { position: absolute; right: 0; bottom: 0; z-index: 1; width: clamp(44px, 4.4vw, 64px); aspect-ratio: 1; background: var(--gold); }
.split-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4.5vw, 64px);
}
.split-panel > *:not(.watermark) { position: relative; z-index: 1; }
.split-panel > p:not(.eyebrow):not(.lead) { color: var(--body); }
.split-panel .h2 { margin-bottom: 22px; }
.split-panel .text-link { margin-top: 8px; align-self: flex-start; }
.watermark {
  position: absolute;
  left: -14%;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(5rem, 13vw, 11.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--sand-2);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.watermark > span { display: inline-block; }

.split-card--about { background: transparent; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split-card--about { grid-template-columns: minmax(0, 403px) minmax(0, 1fr); } }
.split-card--about .split-media { aspect-ratio: 403 / 382; min-height: 0; max-width: 403px; }
.split-card--about .split-panel { padding: 0; overflow: visible; }

/* Services bento */
.bento { list-style: none; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.bento-item { min-height: 260px; }
.bento-item--a { min-height: 340px; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px; }
  .bento-item, .bento-item--a { min-height: 0; }
  .bento-item--a { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 21vw, 290px); }
  .bento-item--a { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .bento-item--b { grid-column: 3 / span 2; }
  .bento-item--c { grid-column: 3; }
  .bento-item--d { grid-column: 4; }
  .bento-item--e { grid-column: 1 / span 2; }
  .bento-item--f { grid-column: 3 / span 2; }
}
.bento-card { position: relative; display: block; height: 100%; overflow: hidden; background: var(--char); color: var(--white); text-decoration: none; }
.bento-media, .bento-media picture, .bento-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bento-media img { object-fit: cover; transition: transform 1s var(--ease-out); }
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 19, 17, .8) 0%, rgba(20, 19, 17, .2) 42%, rgba(20, 19, 17, 0) 70%);
  transition: background-color .3s var(--ease);
}
.bento-label {
  position: absolute;
  left: clamp(18px, 2vw, 26px); right: 18px; bottom: clamp(16px, 2vw, 24px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
}
.bento-item--a .bento-label { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.bento-label .icon-arrow { width: 20px; height: 20px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .35s var(--ease-out); }
.bento-card:hover .bento-media img { transform: scale(1.06); }
.bento-card:hover .icon-arrow, .bento-card:focus-visible .icon-arrow { opacity: 1; transform: none; }
.bento-card:focus-visible { outline-offset: -4px; }

/* Recent projects carousel */
.projects { overflow: hidden; }
.carousel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.carousel-head .eyebrow { margin-bottom: 12px; }
.carousel-controls { display: flex; gap: 10px; }
.car-btn {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.car-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.car-btn svg { width: 20px; height: 20px; }
.car-toggle .icon-play, .car-toggle[data-state="paused"] .icon-pause { display: none; }
.car-toggle[data-state="paused"] .icon-play { display: block; }
.car-toggle svg { width: 16px; height: 16px; }

.carousel-viewport { margin-right: calc(50% - 50vw); }
.carousel-track {
  position: relative;
  display: flex;
  gap: var(--gap);
  height: clamp(260px, 32vw, 460px);
  padding-right: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel-track.is-dragging a { pointer-events: none; }
.slide { position: relative; flex: none; height: 100%; aspect-ratio: var(--ar, 1.333); max-width: 86vw; overflow: hidden; background: var(--sand); scroll-snap-align: start; }
.slide-link, .slide-link picture, .slide-link img { display: block; width: 100%; height: 100%; }
.slide-link img { object-fit: cover; transition: transform 1s var(--ease-out); -webkit-user-drag: none; }
.slide-link:hover img { transform: scale(1.04); }
.slide-link:focus-visible { outline-offset: -4px; }
.carousel-progress { position: relative; height: 2px; margin-top: 26px; overflow: hidden; background: var(--line); }
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; background: var(--gold); transition: transform .35s var(--ease-out), width .35s var(--ease-out); }

/* Get in touch band: a plain background image */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--char); color: var(--white); }
.cta-media, .cta-media img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.cta-media img { object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .78) 45%, rgba(20, 19, 17, .9) 100%);
}
.cta-inner { display: flex; justify-content: flex-end; padding-block: clamp(84px, 11vw, 144px); }
.cta-copy { max-width: 540px; text-align: right; }
.cta-title { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; color: var(--white); }
.cta-text { margin: 20px 0 32px; font-size: 1.125rem; color: rgba(255, 255, 255, .82); }
@media (max-width: 719px) {
  .cta-inner { justify-content: flex-start; }
  .cta-copy { text-align: left; }
  .cta-band::before { background: rgba(20, 19, 17, .8); }
}

/* Photo galleries (service pages) */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.pane { position: relative; grid-column: span var(--sm, 6); aspect-ratio: var(--arm, 1); overflow: hidden; background: var(--sand); }
@media (min-width: 720px) { .pane { grid-column: span var(--sd, 4); aspect-ratio: var(--ard, 1); } }
.pane-link, .pane-link picture, .pane-link img { display: block; width: 100%; height: 100%; }
.pane-link img { object-fit: cover; transition: transform 1s var(--ease-out); }
.pane-link::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 17, 0); transition: background-color .3s var(--ease); }
.pane-link:hover::after { background: rgba(20, 19, 17, .16); }
.pane-link:hover img { transform: scale(1.05); }
.pane-link:focus-visible { outline-offset: -4px; }

.motion [data-parallax] { transform: scale(1.14); will-change: transform; }
.motion [data-parallax-x] { transform: scale(1.18); will-change: transform; }

.service-body .lead { margin-bottom: clamp(36px, 5vw, 60px); }

/* Services index */
.quote { margin-bottom: clamp(40px, 6vw, 72px); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.services-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service-nav { position: sticky; top: calc(var(--header-h) + 28px); }
}
.service-list { list-style: none; margin-top: 18px; border-top: 2px solid var(--ink); }
.service-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .35s var(--ease-out);
}
.service-list .icon-arrow { width: 18px; height: 18px; color: var(--gold-ink); transition: transform .35s var(--ease-out); }
.service-list a:hover { padding-left: 8px; color: var(--gold-ink); }
.service-list a:hover .icon-arrow { transform: translateX(4px); }

/* Contact */
.contact-grid { display: grid; gap: clamp(48px, 6vw, 88px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.detail-list { list-style: none; display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.detail { display: flex; align-items: flex-start; gap: 18px; }
.detail-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; background: var(--sand); color: var(--gold-ink); }
.detail-icon .icon { width: 20px; height: 20px; }
.detail-label { margin: 2px 0 6px; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.detail-value { list-style: none; margin: 0; }
.detail-value li + li { margin-top: 2px; }
.detail-value a { color: var(--ink); font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.detail-value a:hover { color: var(--gold-ink); text-decoration: underline; }
.social { list-style: none; display: flex; gap: 12px; }
.social a { display: block; border-radius: 10px; }
.social img { width: 42px; height: 42px; border-radius: 10px; transition: transform .25s var(--ease-out); }
.social a:hover img { transform: translateY(-2px); }
.gold-rule { display: block; width: 64px; height: 3px; margin-top: 40px; background: var(--gold); }

.form-card { padding: clamp(28px, 4vw, 44px); background: var(--sand); }
.form-card .h3 { margin-bottom: 28px; }
.field-row { display: grid; column-gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 9 12 14.6 17.6 9' fill='none' stroke='%231f1e1c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field ::placeholder { color: #736e65; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(194, 157, 65, .35); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 500; color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.form-note { max-width: 36ch; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.form-status { margin: 18px 0 0; font-weight: 600; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-trap { display: none !important; }
.contact-form .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

.visit-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.visit-copy .h2 { margin-bottom: 20px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; background: var(--sand-2); }
@media (min-width: 960px) { .map-frame { aspect-ratio: 16 / 11; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Services index: a card for every service */
.svc-grid { list-style: none; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.svc-card:hover, .svc-card:focus-within { border-color: var(--gold); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .3); }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.svc-media picture, .svc-media img { display: block; width: 100%; height: 100%; }
.svc-media img { object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-num { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; background: var(--gold); color: var(--char); font-family: var(--display); font-size: .7rem; font-weight: 700; }
.svc-body { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.svc-title { margin-bottom: 10px; font-size: 1.02rem; line-height: 1.3; }
@media (max-width: 639px) {
  .svc-card { flex-direction: row; }
  .svc-media { flex: none; width: 38%; aspect-ratio: auto; min-height: 150px; }
  .svc-body { padding: 16px 16px 18px; }
  .svc-body p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 12px; font-size: .9rem; }
  .svc-num { top: 8px; left: 8px; }
}
.svc-link { color: var(--ink); text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-body p { margin: 0 0 16px; font-size: .95rem; line-height: 1.6; color: var(--body); }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--gold-ink); }
.svc-more .icon-arrow { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.svc-card:hover .svc-more .icon-arrow { transform: translateX(4px); }

/* About: our story + values */
.story-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .story-grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }
.story-media { position: relative; margin: 0; aspect-ratio: 403 / 382; max-width: 460px; }
.story-copy .h2 { margin-bottom: 22px; }
.story-copy p:not(.eyebrow) { max-width: 62ch; }
.story-copy .text-link { margin-top: 6px; }

.values-grid { list-style: none; display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card { padding: clamp(24px, 2.6vw, 32px); background: var(--white); border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.value-card:hover { border-color: var(--gold); }
.value-num { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1; color: #a98530; }
.value-num .icon { width: 20px; height: 20px; color: var(--gold-ink); }
.value-title { margin-bottom: 10px; font-size: 1.05rem; }
.value-card p { margin: 0; font-size: .95rem; line-height: 1.65; }

/* Closing call to action on a plain dark background */
.cta-dark { background: var(--char); color: rgba(255, 255, 255, .8); text-align: center; }
.cta-dark-inner { display: flex; flex-direction: column; align-items: center; padding-block: clamp(72px, 9vw, 112px); }
.cta-dark-title { max-width: 22ch; font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--white); }
.cta-dark p { max-width: 52ch; margin: 18px 0 30px; font-size: 1.0625rem; }

.detail-text { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }

/* Every photo is cropped from its centre; motion only translates and scales, never tilts */
.hero-media img, .split-media-inner img, .bento-media img, .slide-link img, .pane-link img,
.svc-media img, .cta-media img { object-position: 50% 50%; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--char); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; gap: 44px; padding-block: clamp(64px, 8vw, 96px) clamp(44px, 6vw, 64px); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.footer-logo { display: inline-block; margin-bottom: 22px; padding: 6px; background: var(--white); }
.footer-logo img { width: 52px; height: 52px; }
.footer-company { margin-bottom: 22px; font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--white); }
.footer-contact, .footer-col ul { list-style: none; }
.footer-contact li + li, .footer-col li + li { margin-top: 10px; }
.footer-contact a, .footer-col a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s var(--ease); }
.footer-contact .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, .6); }
.footer-contact a:hover, .footer-col a:hover { color: var(--gold); }
.footer-title { margin-bottom: 22px; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-base p { margin: 0; padding-block: 22px; font-size: .85rem; color: rgba(255, 255, 255, .58); text-align: center; text-wrap: balance; }

/* ------------------------------------------------------------------ lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .95);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox[open] { display: block; }
.lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 72px 16px 56px; }
.lightbox-img { width: auto; height: auto; max-width: min(100%, 1600px); max-height: 100%; object-fit: contain; }
.lightbox-count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: .9375rem; color: rgba(255, 255, 255, .78); }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: var(--white);
  cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }
.lb-close { top: 14px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-btn[hidden] { display: none; }

/* ------------------------------------------------------------------ scroll reveals */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal="rise"] { transform: translate3d(0, 60px, 0) scale(.98); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion [data-reveal="wipe"] { opacity: 1; transform: none; }
/* the photo strip slides in as one piece (moving each photo would also move its snap point) */
.motion [data-reveal="slide"] { transform: translate3d(90px, 0, 0); transition-duration: .9s, 1.2s; }
.motion [data-reveal="wipe"] .split-media-inner { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal="wipe"].is-in .split-media-inner { clip-path: inset(0 0 0 0); }
.motion [data-reveal="wipe"] .gold-square { transform: scale(0); transform-origin: bottom right; transition: transform .8s var(--ease-out) .85s; }
.motion [data-reveal="wipe"].is-in .gold-square { transform: none; }
.motion .gold-rule[data-reveal] { transform: scaleX(0); transform-origin: left; }
.motion .gold-rule[data-reveal].is-in { transform: none; }

/* failsafe if the script never runs */
.reveal-all [data-reveal] { opacity: 1; transform: none; }
.reveal-all [data-reveal] .split-media-inner { clip-path: none; }
.reveal-all [data-reveal] .gold-square { transform: none; }

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

@media print {
  .site-header, .nav-toggle, .lightbox, .map-frame, .hero-media, .cta-media, .carousel-controls { display: none !important; }
  .hero, .cta-band, .site-footer { background: none; color: var(--ink); }
  .hero::before, .cta-band::before { display: none; }
  .hero-title, .page-title, .cta-title, .hero-tagline, .hero-text { color: var(--ink); }
}
