﻿/* =========================================================
   JG General Building and Construction
   Colours taken from the logo: red #EC0914, white, graphite
   ========================================================= */

:root {
  --red: #ec0914;
  --red-dark: #b8060f;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --ink-3: #262626;
  --line-dark: rgba(255, 255, 255, 0.1);
  --white: #fff;
  --concrete: #f3f1ee;
  --concrete-2: #e6e2dc;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --muted-dark: #a6a6a6;

  --font-head: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 4vw, 40px); /* 24px on phones, same as the header and hero */
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --slant: 12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }
/* on red backgrounds a red highlight would be invisible */
.cta-band ::selection, .btn:not(.btn--glass, .btn--light, .btn--ink, .btn--outline) ::selection, .btn:not(.btn--glass, .btn--light, .btn--ink, .btn--outline)::selection { background: var(--ink); color: var(--white); }
.cta-band .btn--ink::selection, .cta-band .btn--ink ::selection { background: var(--red); }

/* ---------- Preloader ----------
   Home page only, with JS, on every load (nothing is stored in the browser).
   main.js adds .is-loaded on window load; the 6 s animation is a safety net if the script never runs. */
.preloader { display: none; }
.js .preloader {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px;
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  transition: opacity 2s ease, visibility 2s;
  animation: preloader-out 2s 6s forwards;
}
.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader img { width: min(720px, 86vw); height: auto; animation: preloader-in .8s var(--ease) both; }
/* small two-course brick wall that lays itself left to right, like a loading bar (same running bond as the site bricks) */
.preloader__wall { display: flex; flex-direction: column-reverse; gap: 3px; }
.preloader__row { display: flex; gap: 3px; --bw: calc((min(720px, 86vw) - 69px) / 24); } /* 24 bricks + 23 joints = logo width */
.preloader__row i {
  width: var(--bw); height: 9px; border-radius: 1px; background: var(--red); opacity: .8;
  animation: preloader-brick .2s var(--ease) calc(.8s + var(--x) * .85s) both;
}
.preloader__row i.half { width: calc((var(--bw) - 3px) / 2); }
/* phones: a slimmer wall (same length), a little closer to the logo */
@media (max-width: 600px) {
  .js .preloader { gap: 9px; }
  .preloader__wall { gap: 2px; }
  .preloader__row i { height: 5px; }
}
@keyframes preloader-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes preloader-brick { from { opacity: 0; transform: translateX(-6px); } }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .preloader img, .preloader__row i { animation: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--red); color: var(--white); padding: .75rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
.h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1.08; } /* same line spacing as the hero headline */
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
.h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.05; }
.accent { color: var(--red); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 6px; background: var(--red);
  transform: skewX(-30deg);
}

/* ---------- Buttons (parallelogram like the logo underline) ---------- */
.btn {
  --bg: var(--red); --fg: var(--white); --bg-hover: var(--red-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.75rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 0;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn--glass { --bg: rgba(255, 255, 255, .12); --bg-hover: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--light { --bg: var(--white); --fg: var(--ink); --bg-hover: var(--concrete-2); }
.btn--ink { --bg: var(--ink); --bg-hover: #000; }
.btn--sm { min-height: 44px; padding: .55rem 1.25rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; text-decoration: none; color: var(--red);
}

/* ---------- Header ---------- */
/* header stays at the top of the page and scrolls away with it (not sticky);
   while the mobile menu is open it is pinned so the close button stays reachable */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white);
}
.site-header.menu-open { position: fixed; }
/* backdrop lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 20, 20, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-header.is-scrolled::before, .site-header.menu-open::before { opacity: 1; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__link {
  position: relative; padding: .5rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  color: var(--white); transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0) skewX(-30deg); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1) skewX(-30deg); }

.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  background: none; border: 0; padding: 12px; position: relative;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--white); margin: 5px 0;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 1rem 0; font-size: 2rem; font-weight: 700; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--red); }
  .nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, .94) 0%, rgba(20, 20, 20, .78) 42%, rgba(20, 20, 20, .25) 100%),
    linear-gradient(0deg, rgba(20, 20, 20, .95) 0%, rgba(20, 20, 20, 0) 40%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Home hero slideshow: cross-fade + slow zoom. The leaving slide keeps the same
   animation-name so its zoom continues while it fades out instead of jumping back. */
.hero__slides img { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity 2s ease; }
.hero__slides img.is-active { opacity: 1; }
.hero__slides img.is-active, .hero__slides img.is-leaving { animation: ken-burns 9s linear forwards; }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero__content { max-width: 760px; padding-bottom: clamp(3rem, 8vh, 5.5rem); }
.hero__content .lead { margin-top: 1.5rem; max-width: 600px; color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* Header (same solid bar on every page) + home: diagonal project photography and the reference's bold headline. */
:root { --header-h: 76px; --expertise-h: 74px; }
.site-header::before { opacity: 1; background: #101010; backdrop-filter: none; }
.site-header .brand img { height: 46px; }
.site-header .container, .hero--split > .container, .expertise .container {
  max-width: 1600px; padding-inline: clamp(24px, 5.8vw, 96px);
}
.nav__link { font-size: 1.1rem; }
.nav .btn { min-height: 44px; padding-inline: 1.5rem; font-size: 1.1rem; }
@media (min-width: 961px) {
  .nav__link { font-size: .95rem; }
  .nav .btn { min-height: 40px; padding-inline: 1.25rem; font-size: .95rem; }
}
.hero--split {
  margin-top: var(--header-h); padding: 0; background: var(--ink);
  min-height: min(760px, calc(100svh - var(--header-h) - var(--expertise-h))); justify-content: center;
}
.hero--split::before { display: none; }
.hero--split .hero__media {
  inset: 0 0 0 39%; z-index: -1;
  will-change: transform; /* keeps the slanted photo on its own layer so the clip never flickers */
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero--split .hero__media::after {
  content: ""; position: absolute; inset: 0; background: var(--red); pointer-events: none;
  clip-path: polygon(16.9% 0, 20.3% 0, .8% 100%, 0 100%, 0 94%);
}
.hero--split .hero__media img { object-position: 58% center; }
.hero--split .hero__content { width: 46%; max-width: 640px; padding-block: clamp(24px, 4svh, 44px); }
/* same size as the section headings (.h2), capped so "Quality Workmanship." still fits the text column on one line */
.hero__title { font: 800 min(clamp(2.2rem, 4.6vw, 3.6rem), 3.9vw)/1.08 var(--font-head); letter-spacing: .005em; text-transform: uppercase; }
.hero__title span { color: #ec0914; white-space: nowrap; }
.hero--split .lead { margin-top: 10px; max-width: 54ch; font-size: clamp(.9rem, 1vw, 1rem); line-height: 1.5; color: #e5e5e5; }
.hero--split .hero__actions { flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
.hero--split .btn {
  clip-path: none; min-height: 44px; padding: 8px 16px; white-space: nowrap; gap: 10px;
  font-size: clamp(.82rem, .9vw, .95rem); letter-spacing: .045em;
}
.hero--split .btn span { font-family: var(--font-body); font-size: 1.3rem; line-height: 1; transition: transform .2s var(--ease); }
.hero--split .btn:hover span { transform: translateX(4px); }
.hero--split .btn--outline { background: transparent; border: 1px solid #e5e5e5; }
.hero--split .btn--outline:hover { background: #fff; color: #101010; }
.expertise { background: #101010; color: #fff; border-block: 1px solid #ffffff14; }
/* label and links sit as one centred row; every item has the same padding, so each divider is evenly spaced */
.expertise__inner { min-height: calc(var(--expertise-h) - 2px); display: flex; justify-content: center; align-items: center; }
.expertise__label, .expertise a { padding-inline: clamp(24px, 4vw, 72px); }
.expertise__label {
  font: 700 clamp(.95rem, 1.1vw, 1.1rem) var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark);
}
.expertise a {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px;
  padding-block: 6px; border-left: 1px solid #ffffff30; text-decoration: none;
  font: 600 clamp(.95rem, 1.1vw, 1.1rem) var(--font-head); letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
}
.expertise a:hover { color: #ec0914; }
.expertise svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.expertise__accent { stroke: #ec0914; }
/* Filled (non-outline) icon variant */
.expertise svg.expertise__solid { fill: currentColor; stroke: none; }
.expertise__solid .expertise__accent { fill: #ec0914; stroke: none; }
.expertise__house { transform: scale(.85); }
.expertise__digger { transform: scale(1.15); }
.expertise__plant { transform: scale(.85); }@media (max-width: 1200px) and (min-width: 961px) {
  .site-header .brand img { height: 44px; }
  .nav, .nav__list { gap: 1.4rem; }
  .hero__title { font-size: 3.6vw; } /* the narrow text column can't fit .h2 size on three lines here */
  .hero--split .btn { padding-inline: 16px; gap: 12px; }
  .hero--split .hero__actions { flex-wrap: wrap; max-width: 290px; gap: 10px; }
  .hero--split .hero__actions .btn { flex: 1 1 100%; min-height: 44px; justify-content: center; }
  .hero--split .hero__content { width: 48%; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; --expertise-h: 112px; }
  .site-header .brand img { height: 48px; }
  .hero--split .hero__content { width: 53%; padding-block: clamp(20px, 4svh, 36px); }
  .hero__title { font-size: clamp(1.6rem, min(3.6vw, 6svh), 2.5rem); }
  .hero--split .lead { max-width: 310px; }
  .hero--split .hero__actions { flex-wrap: wrap; max-width: 300px; gap: 10px; margin-top: 24px; }
  .hero--split .btn { flex: 1 1 100%; min-height: 44px; justify-content: center; }
  .hero--split .hero__media { left: 44%; }
  .expertise__inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 12px; gap: 8px 0; }
  .expertise__label { grid-column: 1 / -1; justify-self: center; padding-inline: 0; font-size: 1.1rem; }
  .expertise a { gap: 12px; padding-inline: 12px; font-size: 1.1rem; }
  .expertise a:first-of-type { border-left: 0; }
  .expertise svg { width: 36px; height: 36px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; --expertise-h: 112px; }
  .site-header .brand img { height: 44px; }
  /* photo first, straight under the header line, then the text */
  .hero--split { min-height: 0; height: auto; display: grid; grid-template-rows: clamp(338px, 60svh, 598px) auto; }
  .hero--split > .container { order: 1; }
  .hero--split .hero__content { width: 100%; padding-block: clamp(16px, 2.5svh, 24px); }
  /* same sizes as the rest of the page on mobile: .h2 headings, body copy, .btn--sm buttons */
  .hero__title { font-size: min(2.2rem, calc((100vw - 48px) / 9.5)); } /* shrinks only below ~390px so "Quality Workmanship." stays on one line */
  .hero--split .lead { margin-top: 12px; max-width: 54ch; font-size: 1.0625rem; line-height: 1.6; }
  .hero--split .hero__actions { max-width: none; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .hero--split .btn { flex: 1 1 100%; min-height: 44px; padding: 8px 16px; gap: 8px; font-size: 1rem; letter-spacing: .045em; }
  .hero--split .btn span { font-size: 1.1rem; }
  /* flat top against the header, slanted cut and red edge at the bottom */
  .hero--split .hero__media { position: relative; inset: auto; order: 0; z-index: 0; width: 100%; height: 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .hero--split .hero__media::after { clip-path: polygon(0 calc(100% - 5px), 100% calc(100% - 33px), 100% calc(100% - 28px), 0 100%); }
  .expertise__inner { padding-inline: 16px !important; padding-block: 10px; }
  .expertise a { flex-direction: column; gap: 6px; padding: 4px 8px; min-height: 62px; font-size: .85rem; letter-spacing: .035em; }
  .expertise__label { font-size: .85rem; }
  .expertise__label, .expertise a { line-height: 1.2; }
  .expertise svg { width: 32px; height: 32px; }
}
@media (max-width: 359px) {
  .hero--split .hero__content { padding-block: 12px; }
}

.page-hero { min-height: min(62svh, 620px); justify-content: center; }
.page-hero .hero__content { padding-bottom: 3rem; } /* matches the 3rem gap under the header so the text sits midway */

@media (max-width: 720px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Red rule under the hero ---------- */
/* hidden at first, draws in left to right once the visitor starts scrolling (main.js adds .is-drawn) */
.red-rule { height: 4px; background: var(--red); transform-origin: left; }
.js .red-rule { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .red-rule.is-drawn { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .red-rule { transform: none; transition: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
@media (max-width: 600px) { .section { padding-top: 3rem; } } /* phones: a little less air above the eyebrow */
.section--dark { background: var(--ink); color: var(--white); }
.section--dark-2 { background: var(--ink-2); color: var(--white); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--muted-dark); }
.section--dark .section-head p, .section--dark-2 .section-head p { color: var(--muted-dark); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  display: flex; flex-direction: column; background: var(--ink-3);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__num {
  position: absolute; left: 0; bottom: 0;
  padding: .3rem 1.1rem .3rem .9rem; background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.service-card__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.service-card__list { display: grid; gap: .4rem; font-size: .98rem; color: var(--muted-dark); line-height: 1.45; }
.service-card__list li { position: relative; padding-left: 1.1rem; }
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  background: var(--red); transform: skewX(-20deg);
}
.service-card .link-arrow { margin-top: auto; padding-top: .25rem; font-size: .95rem; }

.service-card--cta { background: var(--ink); color: var(--white); border: 1px solid var(--line-dark); padding: 3rem 1.5rem 1.75rem; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.service-card--cta::before {
  /* bricks in running bond, one half-brick shorter per row, so the edge steps down like a staircase */
  content: ""; position: absolute; right: 0; top: 0; width: 158px; height: 192px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 247.05 300.50'%3E%3Cg fill='%23ec0914' fill-opacity='.8'%3E%3Crect x='2.62' y='2.64' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='52.03' y='2.64' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='101.44' y='2.64' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='150.85' y='2.64' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='200.26' y='2.64' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='27.32' y='32.69' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='76.73' y='32.69' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='126.14' y='32.69' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='175.55' y='32.69' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='224.96' y='32.69' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='52.03' y='62.74' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='101.44' y='62.74' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='150.85' y='62.74' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='200.26' y='62.74' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='76.73' y='92.79' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='126.14' y='92.79' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='175.55' y='92.79' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='224.96' y='92.79' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='101.44' y='122.84' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='150.85' y='122.84' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='200.26' y='122.84' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='126.14' y='152.89' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='175.55' y='152.89' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='224.96' y='152.89' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='150.85' y='182.94' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='200.26' y='182.94' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='175.55' y='212.99' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='224.96' y='212.99' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='200.26' y='243.04' width='44.17' height='24.78' rx='1.71'/%3E%3Crect x='224.96' y='273.09' width='44.17' height='24.78' rx='1.71'/%3E%3C/g%3E%3C/svg%3E") right top / 157.5px 191.6px no-repeat;
}
.service-card--cta p { color: var(--muted-dark); }
.service-card--cta .btn { width: 100%; min-height: 44px; padding: .55rem 1.25rem; font-size: 1rem; }
/* side by side with other cards: drop the heading level with theirs (photo is 4:3 of the card width, then body padding) */
@media (min-width: 601px) { .service-card--cta { padding-top: calc(75% + 1.4rem - 1px); } }
/* stacked on phones: start the content below the 192px brick corner so the two never overlap */
@media (max-width: 600px) { .service-card--cta { padding-top: calc(192px + 1.5rem); } }.service-card--cta .cta-actions { display: grid; gap: .6rem; }

@media (max-width: 1140px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Featured projects ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 20vw, 270px); gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); display: block; text-decoration: none; color: var(--white); }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, 0) 55%); }
.tile__caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; }
.tile__tag { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.tile__title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.15; text-transform: uppercase; margin-top: .2rem; }
.tile:first-child .tile__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.featured-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; color: var(--muted-dark); }
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .tile:first-child { grid-row: span 1; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
/* the section ends flush with the bottom of the portrait; the text is centred top-to-bottom
   between the section edges (equal space above and below it) */
#about { padding-block: 0; }
.about__side { align-self: end; padding-top: calc(var(--section) * .5); }
.about__text { align-self: center; padding-block: calc(var(--section) * .5); }
/* left column: cut-out portrait of Jakub at its natural ratio (transparent background, no crop) */
.about__media { position: relative; }
.about__media img { position: relative; width: 100%; height: auto; }
.about__badge {
  position: absolute; left: -1px; bottom: 2rem; z-index: 1;
  background: var(--ink); color: var(--white); padding: 1rem 1.5rem 1rem 1.25rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.about__badge strong { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--red); }
.about__badge span { font-size: .9rem; color: var(--muted-dark); }
/* Portrait composition: outlined experience figure and the logo's red diagonal. */
.about__media--portrait { isolation: isolate; max-width: 445px; margin-inline: auto; }
.about__media--portrait::before {
  content: ""; position: absolute; z-index: 1; inset: 26% -2% 0 8%;
  background: var(--red);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
/* small "Founder" label sitting on the red panel's top edge, ending at the panel's right corner */
.about__role {
  position: absolute; z-index: 1; right: -2%; bottom: calc(74% + .55rem);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1; text-transform: uppercase; letter-spacing: .14em; margin-right: -.14em; white-space: nowrap;
  color: var(--muted-dark); opacity: .8; pointer-events: none; user-select: none;
}
.about__media--portrait img {
  z-index: 2; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .24));
}
/* black name bar under the portrait, single-column layout only */
.about__name { display: none; }
@media (max-width: 960px) {
  .about__name {
    /* full bleed: runs from one screen edge to the other, name centred */
    display: block; position: relative; z-index: 3; margin: 0 calc(50% - 50vw);
    background: var(--ink); color: var(--white); padding: 1.15rem 1.25rem; text-align: center;
    border-bottom: 4px solid var(--red);
    font-family: var(--font-head); font-weight: 700; font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1; /* same size as the "Founder" label */
    text-transform: uppercase; letter-spacing: .14em;
  }
}
.about__media--portrait .about__badge { z-index: 3; left: auto; right: 0; bottom: 0; }
/* text badge instead of a number: smaller, uppercase heading */
.about__media--portrait .about__badge strong { font-family: var(--font-head); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .2rem; color: var(--white); } /* same type as the "Founder" label */
.about__media--portrait .about__badge span { display: block; line-height: 1.35; }
/* entrance: the red panel unrolls upward from the bottom edge along its slant, then the name slides in */
.js .about__media--portrait::before { clip-path: polygon(0 100%, 82% 100%, 82% 100%, 0 100%); transition: clip-path 1.1s var(--ease) .3s; }
.js .about__media--portrait.is-visible::before { clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.js .about__media--portrait .about__role { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) 1.3s, transform .6s var(--ease) 1.3s; }
.js .about__media--portrait.is-visible .about__role { opacity: .8; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .about__media--portrait::before { clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); transition: none; }
  .js .about__media--portrait .about__role { opacity: .8; transform: none; transition: none; }
}
@media (min-width: 961px) { .about__eyebrow { display: none; } } /* the pill only shows in the single-column layout */
.about__text p { color: var(--muted-dark); }
.about__text .lead { color: var(--white); }
/* right column slightly smaller, so the qualifications fit underneath next to the portrait */
.about__text > * + * { margin-top: 1rem; }
.about__text .lead { font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.about__text p:not(.lead):not(.eyebrow) { font-size: 1rem; line-height: 1.6; }
.about__text .sub-title { padding-top: .5rem; font-size: 1.3rem; } /* a step above the card titles (1.05rem) */
.about__text .qual-grid { gap: .6rem; }
.about__text .qual { padding: .7rem 1rem; }
.about__text .qual strong { font-size: 1.05rem; }
.about__text .qual span { font-size: .85rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.75rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.45; }
.check-list .icon { color: var(--red); margin-top: .15em; stroke-width: 3; }
.sub-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; color: var(--white); padding-top: .75rem; }
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.qual { background: var(--ink-3); padding: .9rem 1.1rem; border-radius: var(--radius); border-left: 4px solid var(--red); }
.qual strong { display: block; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.qual span { font-size: .92rem; color: var(--muted-dark); line-height: 1.4; display: block; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  /* single column: heading, then the portrait, then the rest of the text */
  .about { display: flex; flex-direction: column; align-items: stretch; gap: 0; } /* stretch: qualification cards run the full text width */
  .about__text { display: contents; }
  .about__text > * { order: 2; }
  .about__text > :first-child { order: 0; }
  .about__side { order: 1; align-self: stretch; padding-top: 0; margin-block: 1.5rem .5rem; }
  .about__text > :last-child { margin-bottom: 3rem; }
  #about { padding-top: calc(var(--section) * .55); }
}
@media (max-width: 560px) { .check-list, .qual-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.why { padding: 2rem 1.5rem 0 0; }
.why + .why { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.why__num { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.why h3 { margin: 1rem 0 .6rem; font-size: 1.35rem; }
.why p { color: var(--muted-dark); font-size: .98rem; line-height: 1.55; }
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 2rem; }
  .why, .why + .why { padding: 1.75rem 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--ink-3); padding: 1.75rem 1.5rem; border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; margin-bottom: 1rem; padding: .2rem 1rem .2rem .7rem;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.step h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.step p { color: var(--muted-dark); font-size: .98rem; line-height: 1.55; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--red); color: var(--white);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  clip-path: polygon(0 clamp(20px, 3vw, 44px), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(clamp(20px, 3vw, 44px) * -1);
}
.cta-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: -5%; width: 45%;
  background: repeating-linear-gradient(-60deg, rgba(0, 0, 0, .12) 0 14px, transparent 14px 34px);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band .h2 { max-width: 720px; }
.cta-band p { margin-top: .9rem; font-size: 1.15rem; color: rgba(255, 255, 255, .9); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 600px) {
  .cta-band__actions .btn { flex: 1 1 100%; }
  /* the band is tall here, so the slanted clip cut the stripes off mid-way: span the full band and
     mask along the stripe angle instead, so every stripe runs edge to edge */
  .cta-band::after {
    left: 0; right: 0; width: auto; clip-path: none;
    -webkit-mask-image: linear-gradient(-60deg, #000 50%, transparent 50%);
    mask-image: linear-gradient(-60deg, #000 50%, transparent 50%);
  }
}
/* home page on phones: services come straight after the hero, then about, why us, projects */
@media (max-width: 720px) {
  .home #main { display: flex; flex-direction: column; }
  .home #services { order: 1; }
  .home #about { order: 2; }
  .home #about ~ section:not(#services) { order: 3; }
  /* swap the last two backgrounds so they still alternate in the new order: services, about, why us, projects */
  .home #about ~ .section--dark-2 { background: var(--ink); }
  .home #projects { background: var(--ink-2); }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--muted-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .98rem; }
/* red rule along the top edge, drawn left to right when the footer scrolls into view (same as the one under the hero) */
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); transform-origin: left; }
.js .site-footer::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .site-footer.is-visible::before { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .site-footer::before { transform: none; transition: none; } }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
.footer-brand img { width: 260px; height: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 320px; }
.footer-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--white); margin-bottom: 1rem; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact a { display: inline-flex; align-items: center; gap: .6rem; }
.footer-contact .icon { color: var(--red); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a {
    /* the bar sits on the screen's bottom edge; each button's colour fills the strip under the iPhone home indicator */
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    /* the labels sit 28px into the safe area, just clear of the home indicator */
    min-height: calc(56px + max(0px, env(safe-area-inset-bottom) - 28px)); padding-bottom: max(0px, env(safe-area-inset-bottom) - 28px);
    font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--white); text-decoration: none;
  }
  .action-bar a:first-child { background: var(--red); }
  body { padding-bottom: calc(56px + max(0px, env(safe-area-inset-bottom) - 28px)); }
}

/* ---------- Gallery (projects page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1.2rem;
  border: 0; background: var(--ink-3); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background-color .2s, color .2s;
}
.chip:hover { background: #333; }
.chip[aria-pressed="true"] { background: var(--red); color: var(--white); }
.chip__count { font-size: .85rem; opacity: .6; }
@media (max-width: 760px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; white-space: nowrap; }
}

.gallery { columns: 3 300px; column-gap: 1rem; }
.gallery__item {
  position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0;
  break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--ink-3);
  animation: fade-in .5s var(--ease) both;
}
.gallery__item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; text-align: left;
  background: linear-gradient(0deg, rgba(20, 20, 20, .88), rgba(20, 20, 20, 0));
  color: var(--white); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item figcaption strong { display: block; font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; line-height: 1.15; }
.gallery__item figcaption span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
@media (hover: none) { .gallery__item figcaption { opacity: 1; transform: none; } }
@media (max-width: 520px) { .gallery { columns: 2; column-gap: .6rem; } .gallery__item { margin-bottom: .6rem; } .gallery__item figcaption { display: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Project cards (projects index + related projects) ---------- */
.loc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: -1rem 0 1.5rem; }
.loc-filters__label { margin-right: .4rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); }
.loc {
  min-height: 36px; padding: .3rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px;
  background: transparent; color: var(--white); font: 500 .95rem var(--font-body);
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.loc:hover:not(:disabled) { border-color: rgba(255, 255, 255, .45); }
.loc[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.loc:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) {
  .loc-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .loc-filters::-webkit-scrollbar { display: none; }
  .loc, .loc-filters__label { flex-shrink: 0; white-space: nowrap; }
}
.post-results { margin-bottom: 1.25rem; font-size: .95rem; color: var(--muted-dark); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.post-card { animation: fade-in .5s var(--ease) both; }
.post-card[hidden] { display: none; }
.post-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3); color: var(--white); text-decoration: none;
  border-bottom: 3px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.post-card__link:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); border-color: var(--red); }
.post-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__count {
  position: absolute; right: .75rem; bottom: .75rem; padding: .2rem .65rem; border-radius: 999px;
  background: rgba(14, 14, 14, .78); font-size: .82rem; font-weight: 500;
}
.post-card__body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .88rem; color: var(--muted-dark); }
.post-card__tag { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.post-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
.post-card__excerpt { font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.post-card .link-arrow { margin-top: auto; padding-top: .35rem; }

/* ---------- Project page ---------- */
/* the meta line sits on the hero's bottom edge so its gap to the red rule matches the gap below it */
.post-hero { min-height: min(56svh, 560px); justify-content: flex-end; }
.post-hero .hero__content { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.post-hero + .red-rule + .section, .section--after-hero { padding-top: clamp(2.5rem, 5vw, 4rem); }
.post-hero__title { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs a:last-child { color: var(--red); }
.crumbs span { color: rgba(255, 255, 255, .4); }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1rem; color: rgba(255, 255, 255, .82); }
.post-hero__meta span + span::before { content: "·"; margin-right: 1.25rem; color: var(--red); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.post-body { max-width: 760px; }
.post-body > p { color: rgba(255, 255, 255, .8); }
.post-body > p + p { margin-top: 1rem; }
.post-body .lead { color: var(--white); }
.post-body h2 { margin: 2.5rem 0 .9rem; }
.post-body h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: .9rem; background: var(--red); }
.gallery--post { columns: 3 200px; margin: 2rem 0 .5rem; }
.gallery--few { columns: 1; }
.gallery--post figure { margin: 0; }
.gallery--post .gallery__item { cursor: zoom-in; }
.post-cta { margin-top: 2.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--red); background: var(--ink-3); color: var(--white); font-weight: 500; }

.post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.6rem; background: var(--ink-3); border-radius: var(--radius); }
.post-facts { margin: 0 0 1.5rem; }
.post-facts div { padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.post-facts div:first-child { padding-top: 0; }
.post-facts dt { font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); }
.post-facts dd { margin: .15rem 0 0; font-weight: 500; }
.post-facts a { color: var(--white); }
.post-aside__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; margin-bottom: .9rem; }
.post-aside__actions { display: grid; gap: .6rem; }
.post-aside__actions .btn { justify-content: center; width: 100%; }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
}

.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.post-pager__link { display: flex; flex-direction: column; gap: .25rem; color: var(--white); text-decoration: none; }
.post-pager__link span { font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.post-pager__link strong { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; }
.post-pager__link:hover strong { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.post-pager__link--next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-pager { grid-template-columns: 1fr; } .post-pager__link--next { grid-column: auto; text-align: left; } }
.post-more { justify-self: end; }
.lightbox--single .lb-prev, .lightbox--single .lb-next { display: none; }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 14, 14, .97); color: var(--white);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-family: var(--font-head); letter-spacing: .1em; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(0px, 6vw, 96px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; touch-action: pan-y; }
.lightbox__caption { padding: 1rem var(--gutter) 1.5rem; text-align: center; }
.lightbox__caption strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; }
.lightbox__caption span { color: var(--muted-dark); font-size: .95rem; }
.lb-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0;
  background: rgba(255, 255, 255, .1); color: var(--white); border-radius: 50%;
  transition: background-color .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: -64px; translate: none; }
  .lightbox__caption { padding-bottom: calc(1.5rem + 64px); }
  .lightbox__stage { padding: 0; }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card {
  display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem;
  background: var(--ink-3); border-radius: var(--radius); text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); border-color: var(--red); }
.contact-card__icon {
  display: grid; place-items: center; width: 60px; height: 60px; background: var(--red); color: var(--white);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card__label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); font-size: .95rem; }
.contact-card__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; color: var(--white); overflow-wrap: anywhere; }
.contact-card p { color: var(--muted-dark); font-size: .98rem; }
.contact-card .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.panel { background: var(--ink-3); color: var(--white); padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: var(--radius); }
.panel p { color: var(--muted-dark); }
.panel .check-list { grid-template-columns: 1fr; margin-top: 1.5rem; }
.area-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 100%; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.75rem, 3.5vw, 2.75rem); isolation: isolate; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.area-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 20, 20, .95) 10%, rgba(20, 20, 20, .35) 100%); }
.area-card .icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 1rem; }
.area-card p { color: rgba(255, 255, 255, .8); margin-top: .75rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .area-card { min-height: 360px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Legal links */
.legal-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; font-size: .95rem; color: #c5c5c5; }
.legal-footer a { padding-block: .5rem; text-decoration: none; transition: color .2s; }
.legal-footer a:hover { color: #fff; }
.legal-footer + .footer-bottom { margin-top: 1.25rem; }
.contact-privacy { margin-top: 1.5rem; max-width: 72ch; color: #c5c5c5; font-size: .95rem; }
.contact-privacy a { text-underline-offset: .2em; }
