/* ==========================================================================
   JG Formwork — www.jgformworks.co.uk
   ========================================================================== */

/* --- Fonts (self-hosted: no third-party request, no Google Fonts) --------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand — blue sampled from the JG Formwork logo */
  /* #0072FE is sampled straight from the logo and is used for accents,
     rules, icons and borders — graphic elements, where 3:1 applies.
     --blue-solid is a hair deeper and is used ONLY where white text sits
     on a blue fill (buttons, the CTA card): 4.82:1, clearing WCAG AA. */
  --blue:        #0072FE;
  --blue-solid:  #006BF0;
  --blue-bright: #3B92FF;
  --blue-deep:   #0057C4;

  /* Dark surfaces */
  --ink:    #08090B;
  --ink-2:  #0F1216;
  --ink-3:  #171B21;
  --ink-4:  #212730;

  /* Light surfaces. The page is light-dominant like the reference sites;
     dark is kept only for the hero, the programme band and the footer. */
  --paper:   #F2F3F5;
  --paper-2: #FFFFFF;
  --paper-3: #E4E6EA;
  --shot-bg: #DCDFE4;

  /* Type */
  --on-dark:      #FFFFFF;
  --on-dark-mid:  #A8AFBA;
  --on-dark-dim:  #7C8593;
  --on-light:     #0E1116;
  --on-light-mid: #4A525E;

  --line-dark:  rgba(255, 255, 255, 0.10);
  --line-light: rgba(14, 17, 22, 0.12);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);

  --radius: 4px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: #fff; }

/* --- Layout helpers ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--dark  { background: var(--ink); color: var(--on-dark); }
.section--dark2 { background: var(--ink-2); color: var(--on-dark); }
.section--light { background: var(--paper); color: var(--on-light); }
/* Modifier only — keep .section--light on the element so its child rules
   (eyebrow, section-head) still apply. */
.section--light.section--white { background: var(--paper-2); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue-solid);
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* --- Eyebrow / section headings ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
}
.section--light .eyebrow { color: var(--blue-deep); }

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin-bottom: 20px;
}
.section-head p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--on-dark-mid);
  max-width: 58ch;
}
.section--light .section-head p { color: var(--on-light-mid); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* On narrow phones a long label ("MESSAGE ON WHATSAPP") is wider than the
   card it sits in, and nowrap pushes the whole page sideways. Let it wrap
   and tighten the side padding instead. */
@media (max-width: 460px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding-inline: 18px;
    min-width: 0;
  }
}

.btn--primary { background: var(--blue-solid); color: #fff; border-color: var(--blue-solid); }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--wa { background: #25D366; color: #062613; border-color: #25D366; }
.btn--wa:hover { background: #1FBC59; border-color: #1FBC59; }

.btn--sm { padding: 11px 20px; font-size: 0.75rem; }

/* --- Header --------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-stuck {
  background: rgba(8, 9, 11, 0.95);
  border-bottom-color: var(--line-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo lockup: the boxed JG mark as an image, the wordmark as live text so
   it stays crisp and legible at small sizes. */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px; /* touch target */
}
.brand__mark { height: 34px; width: auto; }
.brand__word {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  white-space: nowrap;
  padding-top: 2px;
}
@media (max-width: 420px) {
  .brand__mark { height: 30px; }
  .brand__word { font-size: 0.78rem; letter-spacing: 0.15em; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-dark-mid);
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }

.header__cta { display: inline-flex; }

/* Reference sites all surface the number in the header — trades enquiries
   come by phone far more than by form. */
.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  margin-right: 4px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.18s var(--ease);
}
.header__tel:hover { background: rgba(255,255,255,0.09); }
.header__tel svg { width: 16px; height: 16px; color: var(--blue-bright); flex: none; }
@media (max-width: 1080px) { .header__tel { display: none; } }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 28px;
  }
  .nav.is-open a {
    padding: 16px 4px;
    font-size: 1.05rem;
    color: #fff;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }
  .nav.is-open .nav__cta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 0;
    padding: 0;
  }
}
@media (min-width: 901px) { .nav__cta { display: none; } }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Tuned for the pump/crane hero, which is a darker, overcast frame than a
     blue-sky shot: the left column stays heavy so the headline holds up, the
     sky and the boom on the right are left much more open. */
  background:
    linear-gradient(to top, rgba(8,9,11,0.94) 0%, rgba(8,9,11,0.60) 32%, rgba(8,9,11,0.16) 62%, rgba(8,9,11,0.38) 100%),
    linear-gradient(to right, rgba(8,9,11,0.86) 0%, rgba(8,9,11,0.64) 30%, rgba(8,9,11,0.16) 72%, rgba(8,9,11,0) 100%);
}

.hero__inner { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.hero__content { max-width: 40ch; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.033em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--blue-bright); }

.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: #D5D9E0;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #C3C9D2;
}
.hero__tags li { display: flex; align-items: center; gap: 9px; }
.hero__tags li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
  flex: none;
}

/* --- Stat strip ----------------------------------------------------------- */
.stats {
  background: var(--paper-2);
  color: var(--on-light);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--line-light);
  padding-block: clamp(40px, 5vw, 64px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-light);
  margin-bottom: 10px;
}
.stat__num span { color: var(--blue-deep); }
/* The unit word is subordinate to the figure — at full display size it wraps
   and competes with the number it is labelling. */
.stat__num .stat__word {
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0.22em;
  white-space: nowrap;
}
.stat__label { font-size: 0.93rem; color: var(--on-light-mid); }

/* --- Intro split ---------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

.intro__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); margin-bottom: 24px; }
.intro__copy p { color: var(--on-light-mid); margin-bottom: 18px; font-size: 1.04rem; }
.intro__copy p:last-of-type { margin-bottom: 0; }
.intro__copy strong { color: var(--on-light); font-weight: 600; }

.intro__figure { position: relative; }
.intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.intro__figure::after {
  content: "";
  position: absolute;
  left: -14px; bottom: -14px;
  width: 92px; height: 92px;
  border-left: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  pointer-events: none;
}

/* --- Services ------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--paper-2);
  padding: 32px 28px 34px;
  position: relative;
  transition: background-color 0.25s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service:hover { background: #fff; }
.service:hover::after { transform: scaleX(1); }

.service__icon {
  width: 42px; height: 42px;
  margin-bottom: 20px;
  color: var(--blue-deep);
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.service p { font-size: 0.92rem; color: var(--on-light-mid); line-height: 1.6; }

/* 12th cell — turns what would be a dead grid square into a prompt.
   12 divides evenly by 4, 3, 2 and 1, so no gap at any breakpoint. */
.service--cta {
  background: var(--blue-solid);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service--cta::after { display: none; }
.service--cta:hover { background: var(--blue-deep); }
.service--cta h3 { color: #fff; font-size: 1.2rem; }
.service--cta p { color: rgba(255,255,255,0.88); margin-bottom: 18px; }
.service--cta .service__icon { color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.service--cta__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.45);
  padding: 10px 0;
  min-height: 44px; /* touch target */
  align-self: flex-start;
  transition: border-color 0.2s var(--ease);
}
.service--cta__link:hover { border-bottom-color: #fff; }
.service--cta__link svg { width: 15px; height: 15px; }

.services__note {
  margin-top: 36px;
  padding: 26px 30px;
  background: var(--paper-2);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  font-size: 1.02rem;
  color: var(--on-light-mid);
}
.services__note strong { color: var(--on-light); font-weight: 600; }

/* --- Projects ------------------------------------------------------------- */
.project { padding-block: clamp(52px, 7vw, 86px); border-top: 1px solid var(--line-light); }
.project:first-of-type { border-top: 0; padding-top: 0; }

.project__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 46px);
}
@media (max-width: 860px) { .project__head { grid-template-columns: 1fr; align-items: start; } }

.project__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.project__head h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.project__head p { color: var(--on-light-mid); font-size: 1.02rem; }

.project__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}
.project__meta dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-light-mid);
  margin-bottom: 6px;
}
.project__meta dd { margin: 0; font-size: 0.94rem; color: var(--on-light); font-weight: 500; }

/* Sector chips — main contractors scan for sector experience first. */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(34px, 4.5vw, 52px);
}
.sectors li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light);
}
.sectors li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.1vw, 14px);
}
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--shot-bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.shot--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .shot--wide { aspect-ratio: 3 / 2; } }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.055); }

.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(8,9,11,0.94), rgba(8,9,11,0));
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
@media (hover: none) { .shot__cap { opacity: 1; transform: none; } }

.shot__zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  background: rgba(8,9,11,0.7);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; }
.shot__zoom svg { width: 15px; height: 15px; }

/* A two-image project reads as a deliberate pair rather than a half-empty
   four-column row. Declared after the base gallery media queries so it wins. */
.gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--pair .shot { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .gallery--pair { grid-template-columns: 1fr; } }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  background: rgba(4, 5, 7, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(14px, 3vw, 28px);
  color: var(--on-dark-mid);
  font-size: 0.85rem;
}
.lightbox__count { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.lightbox__close {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); }
.lightbox__close svg { width: 17px; height: 17px; }

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(60px, 7vw, 92px);
  min-height: 0;
  overflow: hidden;
}
.lightbox__stage img {
  max-width: 100%;
  /* Belt and braces: the flex track constrains it, and this caps it against
     the viewport too, so a tall portrait shot can never overflow. */
  max-height: min(100%, calc(100svh - 190px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.09);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.lightbox__nav:hover { background: var(--blue-solid); border-color: var(--blue-solid); }
.lightbox__nav svg { width: 19px; height: 19px; }
.lightbox__nav--prev { left: clamp(6px, 1.6vw, 20px); }
.lightbox__nav--next { right: clamp(6px, 1.6vw, 20px); }

.lightbox__foot {
  padding: 16px clamp(14px, 3vw, 28px) 24px;
  text-align: center;
  color: #D4D9E1;
  font-size: 0.95rem;
  min-height: 60px;
}
.lightbox__project {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 6px;
}

/* --- Band ----------------------------------------------------------------- */
.band {
  position: relative;
  padding-block: clamp(88px, 12vw, 150px);
  overflow: hidden;
  isolation: isolate;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,9,11,0.96) 12%, rgba(8,9,11,0.78) 48%, rgba(8,9,11,0.45) 100%);
}
.band__inner { max-width: 56ch; }
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 22px; }
.band p { color: #C9CFD8; font-size: clamp(1rem, 1.7vw, 1.15rem); margin-bottom: 16px; }
.band p:last-of-type { margin-bottom: 0; }

/* --- Values --------------------------------------------------------------- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.value {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.value__no {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.value h3 { font-size: 1.28rem; margin-bottom: 12px; }
.value p { font-size: 0.95rem; color: var(--on-light-mid); }

/* --- Experience ----------------------------------------------------------- */
.exp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .exp__grid { grid-template-columns: 1fr; } }

.exp__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.exp__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); margin-bottom: 22px; }
.exp__copy p { color: var(--on-light-mid); margin-bottom: 18px; font-size: 1.04rem; }

.exp__list { margin-top: 28px; display: grid; gap: 14px; }
.exp__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.exp__list svg { width: 21px; height: 21px; flex: none; color: var(--blue-deep); margin-top: 2px; }

/* --- Contact -------------------------------------------------------------- */
.contact { background: var(--paper); color: var(--on-light); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.contact h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 20px; }
.contact__lead { color: var(--on-light-mid); font-size: 1.08rem; max-width: 46ch; margin-bottom: 34px; }

.contact__card {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px);
}
/* NB: :first-of-type / :last-of-type match per element TYPE, and these rows
   are a mix of <a> and <div> — so position is keyed off :first-child /
   :last-child inside an explicit wrapper instead. */
.contact__rows { display: block; }
.contact__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.2s var(--ease);
}
.contact__rows > .contact__row:first-child { padding-top: 0; }
.contact__rows > .contact__row:last-child { border-bottom: 0; padding-bottom: 0; }
a.contact__row:hover { color: var(--blue-deep); }

.contact__ico {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  background: rgba(0,114,254,0.10);
  border: 1px solid rgba(0,114,254,0.28);
  border-radius: var(--radius);
  color: var(--blue-deep);
}
.contact__ico svg { width: 21px; height: 21px; }
.contact__ico--wa { background: rgba(18,140,74,0.10); border-color: rgba(18,140,74,0.30); color: #0E7C3A; }

.contact__text { display: block; min-width: 0; }
.contact__k {
  display: block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-light-mid);
  margin-bottom: 4px;
  line-height: 1.2;
}
.contact__v {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--on-light);
  overflow-wrap: anywhere;
}
a.contact__row:hover .contact__v { color: inherit; }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.contact__actions .btn { flex: 1 1 210px; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-block: 54px 34px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand .brand { margin: 0 0 18px; }
.footer__brand .brand__mark { height: 38px; }
.footer__brand .brand__word { font-size: 1rem; }
.footer__brand p { color: var(--on-dark-dim); font-size: 0.92rem; max-width: 34ch; }

.footer__links { display: flex; flex-wrap: wrap; gap: 0 14px; margin: -10px 0 0 -10px; }
/* Padding here is for touch: it lifts each link to a ~44px target. */
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--on-dark-mid);
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--on-dark-dim);
}

/* --- Reveal animation -----------------------------------------------------
   Scoped to .js, which is set by an inline script in <head>. If JavaScript
   is off or main.js fails to load, nothing is ever hidden and the whole page
   still reads — the animation is enhancement, never a dependency. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .header, .lightbox, .hero__actions, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .section--dark2, .contact, .footer { background: #fff !important; color: #000 !important; }
}
