/* ==========================================================================
   Glazeworks Ltd – Windows and Developments
   Visual language taken from the logo: the charcoal building with its blue
   frame offset behind it (.framed), and the four-pane window (.panes and the
   small pane marker on each eyebrow).
   ========================================================================== */

:root {
  /* Brand – sampled from the supplied logo */
  --blue: #1471b7;
  --blue-dark: #0e5a94;
  --blue-on-dark: #79b9ee;
  --charcoal: #37404a;

  --ink: #17212c;
  --text: #46515e;
  --muted: #65707d;
  --line: #e0e5ea;
  --line-strong: #c8d1da;
  --bg: #ffffff;
  --bg-alt: #f2f5f8;
  --bg-image: #e4e9ee;
  --glass: #f5f9fd;
  --navy: #132030;
  --footer: #0e1823;
  --error: #b42318;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --grid-gap: clamp(16px, 2vw, 24px);
  --header-h: 68px;
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 4px;
  --radius-btn: 6px;
  --frame: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --frame: 14px; }
}

@media (min-width: 1120px) {
  :root { --header-h: 92px; }
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid rgba(20, 113, 183, .5);
  outline-offset: 3px;
}

::selection { background: #cfe3f4; color: var(--ink); }

.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;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

/* Typography
   ========================================================================== */

.h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.95rem, 1.45rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.225rem);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* Section label with a small four-pane window as its marker */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor 0 0) left top / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) right top / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 5px 5px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 5px 5px no-repeat;
}
.eyebrow--on-dark { color: var(--blue-on-dark); }
.eyebrow--on-blue { color: #fff; }

/* The logo's blue frame, offset up and to the right behind a block */
.framed { position: relative; isolation: isolate; }
.framed::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--frame) * -1);
  right: calc(var(--frame) * -1);
  width: 100%;
  height: 100%;
  border-top: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  pointer-events: none;
}

/* Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }

.btn--lg { min-height: 56px; padding-inline: 32px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.link-arrow svg { flex: none; color: var(--blue); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--blue); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled,
.menu-open .site-header { border-bottom-color: var(--line); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(23, 33, 44, .35); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.header__logo { flex: none; margin-right: auto; border-radius: var(--radius); }
.header__logo img { width: auto; height: calc(var(--header-h) - 16px); }

.primary-nav { display: none; }

.header__cta { gap: 0; min-height: 44px; padding: 0 16px; font-size: .9rem; }
.header__cta-long { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 400px) {
  .header__cta-long { display: inline; }
}

@media (min-width: 1120px) {
  .header__inner { gap: 20px; }
  .header__logo img { height: calc(var(--header-h) - 18px); }

  .primary-nav { display: block; }
  .primary-nav ul {
    display: flex;
    gap: clamp(20px, 2.1vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .primary-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color .2s var(--ease);
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 1px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:hover { color: var(--blue); }
  .primary-nav a:hover::after { transform: scaleX(1); }

  .header__cta { min-height: 48px; margin-left: 16px; padding: 0 22px; font-size: .95rem; }
  .menu-toggle { display: none; }
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 15px 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a:active { color: var(--blue); }
.mobile-menu__cta { min-height: 56px; margin-top: 28px; }
.mobile-menu__tag {
  margin-top: auto;
  padding-top: 32px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

html.menu-open { overflow: hidden; }

/* Without JS the menu simply sits below the header on small screens. */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .mobile-menu {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
}
html:not(.js) .mobile-menu__tag { display: none; }

@media (min-width: 1120px) {
  .mobile-menu { display: none; }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 0;
  background: #fff;
}

.hero__inner {
  padding-top: clamp(26px, 5vw, 64px);
  padding-bottom: clamp(48px, 5vw, 64px);
}

.hero__text { display: grid; gap: 16px; }
.hero__aside .lead { max-width: 30em; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__media {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 4px;
  margin-top: 28px;
}
.hero__photo picture {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--bg-image);
  border-radius: var(--radius);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main img { object-position: 64% 45%; }
.hero__photo--side img { object-position: 50% 50%; }

/* Phones: the hero fills the screen beneath the header, photos run edge to
   edge, and (when there is enough height) it is pinned so the card below
   slides up over it. */
@media (max-width: 767px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-bottom: 0;
  }
  .hero__actions .btn { flex: 1 1 140px; min-height: 52px; padding-inline: 14px; font-size: .925rem; }
  .hero__media {
    flex: 1 1 auto;
    min-height: 200px;
    margin-inline: calc(var(--gutter) * -1);
  }
  .hero__photo picture { border-radius: 0; }
  .hero .framed::before { display: none; }
}

@media (max-width: 767px) and (min-height: 520px) {
  .hero {
    position: sticky;
    top: var(--header-h);
  }
  .hero__inner {
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
  }
  .hero__media { min-height: 170px; }
  .stack {
    position: relative;
    z-index: 1;
    margin-top: -26px;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -22px 40px -18px rgba(14, 24, 35, .45);
  }
  .stack > :first-child { border-radius: 24px 24px 0 0; }
}

@media (min-width: 768px) {
  .hero__media {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    height: clamp(360px, 40vw, 560px);
    margin-top: clamp(36px, 4vw, 56px);
  }
  .hero__photo--main { grid-column: 1 / 9; }
  .hero__photo--side { grid-column: 9 / 13; }
  .hero__photo--main img { object-position: 50% 30%; }
}

@media (min-width: 1024px) {
  .hero__text {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .hero__text .h1 { grid-column: 1 / 8; }
  .hero__aside { grid-column: 8 / 13; padding-bottom: 6px; }
}

/* Service strip – the top of the card on phones */

.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  list-style: none;
}
.strip__list li {
  padding: 20px 8px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--charcoal);
}
.strip__list li:nth-child(odd) { border-right: 1px solid var(--line); }
.strip__list li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

@media (min-width: 768px) {
  .strip { border-top: 1px solid var(--line); }
  .strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip__list li { padding: 26px 8px; font-size: .76rem; border: 0 !important; }
  .strip__list li + li { border-left: 1px solid var(--line) !important; }
}

/* Introduction / About
   ========================================================================== */

.intro__grid { display: grid; gap: 52px; }

.intro__lead { margin-top: 22px; max-width: 34em; }

.intro__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.intro__list li {
  padding: 14px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.intro__media { margin-right: var(--frame); }
.intro__media picture {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-image);
  border-radius: var(--radius);
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: center;
  }
  .intro__content { grid-column: 1 / 7; }
  .intro__media { grid-column: 8 / 13; margin-right: 0; }
  .intro__media picture { aspect-ratio: 4 / 5; }
}

/* Section heading (shared)
   ========================================================================== */

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head__aside { max-width: 26em; color: var(--muted); }

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
  }
  .section-head__aside { text-align: right; }
}

/* Services – white panels overlapping each photograph
   ========================================================================== */

.services__grid {
  display: grid;
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service { display: flex; flex-direction: column; }

.service__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-image);
  border-radius: var(--radius);
}
.service__media picture,
.service__media img { width: 100%; height: 100%; }
.service__media img {
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform .7s var(--ease);
}
.service:hover .service__media img { transform: scale(1.03); }

.service__panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin: -64px 20px 0 0;
  padding: 24px 24px 28px;
  background: #fff;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 20px 40px -28px rgba(14, 24, 35, .4);
}
.service__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.025em; }
.service__link { margin-top: auto; padding-top: 6px; align-self: flex-start; }

@media (min-width: 640px) and (max-width: 959px) {
  .services__grid { gap: 36px; }
  .service {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
  .service__media { aspect-ratio: 4 / 5; }
  .service__panel { flex: none; margin: 0 0 0 -56px; }
}

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
  }
  .service__media { aspect-ratio: 4 / 5; }
  .service__panel { margin: -76px 24px 0 0; padding: 28px 28px 30px; }
}

/* Projects – dark band, captions under each photograph
   ========================================================================== */

.projects { color: rgba(255, 255, 255, .75); background: var(--navy); }
.projects .h2 { color: #fff; }
.projects .section-head__aside { color: rgba(255, 255, 255, .62); }

.gallery { container-type: inline-size; }

.gallery__grid {
  display: grid;
  gap: 22px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "ext ext"
    "navy dark"
    "flint flint"
    "green black"
    "bifold bifold"
    "house house";
  grid-template-rows: 76vw 84vw 92vw 84vw 78vw 76vw;
  grid-template-rows: 80cqw 90cqw 100cqw 90cqw 84cqw 80cqw;
}

.g-ext { grid-area: ext; }
.g-flint { grid-area: flint; }
.g-navy { grid-area: navy; }
.g-dark { grid-area: dark; }
.g-bifold { grid-area: bifold; }
.g-house { grid-area: house; }
.g-green { grid-area: green; }
.g-black { grid-area: black; }

.gallery__item { min-width: 0; min-height: 0; }

.gallery__trigger {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery__trigger:focus-visible { outline-color: rgba(121, 185, 238, .9); }

.gallery__frame {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #1f2e3e;
  border-radius: var(--radius);
}
.gallery__frame picture,
.gallery__frame img { width: 100%; height: 100%; }
.gallery__frame img {
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform .7s var(--ease);
}
.gallery__trigger:hover img { transform: scale(1.035); }

.gallery__caption {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.gallery__caption::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--blue-on-dark);
}

@media (min-width: 640px) {
  .gallery__grid {
    gap: 26px 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "ext ext ext ext flint flint"
      "navy navy dark dark green green"
      "house house house house black black"
      "bifold bifold bifold bifold bifold bifold";
    grid-template-rows: 50vw 58vw 50vw 62vw;
    grid-template-rows: 54cqw 64cqw 54cqw 66cqw;
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    gap: 30px 20px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "flint flint flint flint ext ext ext ext ext ext ext ext"
      "navy navy navy house house house house house house dark dark dark"
      "bifold bifold bifold bifold bifold green green green black black black black";
    grid-template-rows: 43vw 38vw 41vw;
    grid-template-rows: 46cqw 40cqw 44cqw;
  }
  .gallery__caption { font-size: .7rem; }
}

/* Why Glazeworks – a four-pane window
   ========================================================================== */

.why__grid { display: grid; gap: 52px; }

.panes {
  display: grid;
  gap: 2px;
  margin: var(--frame) var(--frame) 0 0;
  padding: 0;
  list-style: none;
  background: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: 3px;
}
.pane {
  padding: 28px 24px 30px;
  background: var(--glass);
}
.pane__title {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pane p { max-width: 26em; }

@media (min-width: 640px) {
  .panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pane { padding: 36px 32px 40px; }
}

@media (min-width: 960px) {
  .why__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
  .panes { margin: 0; }
  .pane { min-height: 210px; padding: 40px 36px; }
}

/* Statement – navy panel laid over the photograph
   ========================================================================== */

.statement__grid { display: grid; }

.statement__media picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-image);
  border-radius: var(--radius);
}
.statement__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

.statement__panel {
  position: relative;
  margin: -56px 14px 0;
  padding: 34px 26px 38px;
  color: rgba(255, 255, 255, .8);
  background: var(--navy);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 30px 50px -30px rgba(14, 24, 35, .55);
}
.statement__panel .h2 { color: #fff; max-width: 12em; }
.statement__text {
  margin: 20px 0 30px;
  font-size: clamp(1.02rem, 1rem + .2vw, 1.15rem);
  line-height: 1.65;
}

@media (min-width: 640px) and (max-width: 959px) {
  .statement__media picture { aspect-ratio: 16 / 11; }
  .statement__panel { margin: -96px 40px 0; padding: 44px 40px; }
}

@media (min-width: 960px) {
  .statement__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: center;
  }
  .statement__media { grid-column: 1 / 8; grid-row: 1; }
  .statement__media picture { aspect-ratio: auto; height: clamp(480px, 46vw, 620px); }
  .statement__panel {
    grid-column: 7 / 13;
    grid-row: 1;
    margin: 0;
    padding: clamp(40px, 4vw, 60px);
  }
}

/* Contact / quote – one card, blue details beside a white form
   ========================================================================== */

.contact__card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 40px 70px -50px rgba(14, 24, 35, .5);
}

.contact__info {
  padding: clamp(30px, 4.5vw, 60px);
  color: rgba(255, 255, 255, .9);
  background: var(--blue);
}
.contact__info .h2 { color: #fff; }
.contact__lead { margin-top: 18px; max-width: 24em; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); text-wrap: pretty; }

.contact__details {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.contact__row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}
@media (min-width: 480px) {
  .contact__row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; }
}
.contact__row dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.placeholder {
  display: inline-block;
  padding: 3px 10px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
}
.contact__info .placeholder {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
}

.contact__form {
  padding: clamp(26px, 4.5vw, 60px);
  background: #fff;
}

@media (min-width: 960px) {
  .contact__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Form */

.form-grid { display: grid; gap: 20px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}
.req { color: var(--blue); }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #8a94a0; }
.input:hover { border-color: #a9b5c1; }
.input:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 113, 183, .18);
}
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' fill='none' stroke='%2317212c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field--invalid .input { border-color: var(--error); }
.field--invalid .input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field__error {
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--error);
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.form-actions .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--error); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  .field--full { grid-column: 1 / -1; }
  .form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
  .form-actions .btn { width: auto; }
}

.form-success { padding: clamp(8px, 2vw, 24px) 0; outline: none; }
.form-success__icon { margin-bottom: 20px; color: var(--blue); }
.form-success__title { margin-bottom: 10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.025em; }
.form-success__demo {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: .875rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* Footer
   ========================================================================== */

.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  color: rgba(255, 255, 255, .72);
  background: var(--footer);
}
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: rgba(121, 185, 238, .8); }

.footer__top {
  display: grid;
  gap: 44px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer__logo { display: inline-block; border-radius: var(--radius); }
.footer__logo img { width: 190px; height: auto; }
.footer__tagline { margin-top: 20px; font-size: .95rem; }

.footer__heading {
  margin-bottom: 18px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact dl { display: grid; gap: 16px; }
.footer__contact dt {
  margin-bottom: 4px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.site-footer .placeholder {
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .25);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

@media (min-width: 768px) {
  .footer__top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .footer__nav ul { grid-template-columns: 1fr; }
}

/* Lightbox
   ========================================================================== */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in .25s var(--ease);
}
.lightbox::backdrop { background: rgba(9, 15, 22, .94); }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 72px 12px 96px;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  border-radius: 2px;
  background: #1f2e3e;
}
.lightbox__caption {
  display: flex;
  gap: 16px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lightbox__count { color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.lightbox__btn:focus-visible { outline-color: rgba(121, 185, 238, .9); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { bottom: 24px; left: calc(50% - 56px); }
.lightbox__next { bottom: 24px; right: calc(50% - 56px); }

@media (min-width: 768px) {
  .lightbox__figure { padding: 72px 96px; }
  .lightbox__img { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
  .lightbox__prev,
  .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}

html:has(.lightbox[open]) { overflow: hidden; }

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal
   ========================================================================== */

.can-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.can-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
