/* Spinks Globally Pty Ltd — site styles
   Palette drawn from the flyer: deep navy headings, the logo's roofline blue,
   the green sweep for details, warm off-white backgrounds. */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --navy: #0d2654;         /* headings, primary buttons — 14.9:1 on white */
  --navy-deep: #081a3d;
  --blue: #0a4799;         /* logo roofline blue — 8.4:1 on white */
  --green: #85bd1e;        /* logo sweep — decorative only, never small text on light */
  --green-ink: #3d6b0a;    /* green for text on light backgrounds — 6.2:1 on white */
  --green-soft: #eef6e0;
  --paper: #faf8f4;        /* warm off-white */
  --stone: #f1ede5;
  --white: #ffffff;
  --ink: #1c2433;          /* body text — 15.6:1 on white */
  --muted: #4f5a6b;        /* secondary text — 7.0:1 on white, 6.5:1 on paper */
  --line: #e2ddd2;
  --danger: #a3261b;
  --danger-soft: #fdf0ee;
  --success-soft: #eef6e0;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(13, 38, 84, .06), 0 8px 24px rgba(13, 38, 84, .08);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 40em; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--green); border-radius: 2px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--green-soft); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link {
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .02em;
  color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  border-bottom: 2px solid var(--green); padding-bottom: 2px;
}
.text-link:hover { color: var(--green-ink); }
.text-link svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 70px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) {
  display: block; padding: .55rem .8rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em;
  color: var(--navy); text-decoration: none; position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 3px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--green-ink); }
.main-nav .nav-cta { margin-left: .75rem; }
.header-actions { display: none; align-items: center; gap: .5rem; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.btn-call { min-height: 48px; padding: .6rem 1rem; }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 58px; }
  .header-actions { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(13, 38, 84, .12);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a:not(.btn) { padding: 1rem 0; font-size: 1.25rem; }
  .main-nav a:not(.btn)::after { left: 0; right: auto; width: 32px; bottom: .6rem; }
  .main-nav .nav-cta { margin: 1rem 0 0; }
  .main-nav .nav-cta .btn { width: 100%; }
}
@media (max-width: 380px) {
  .brand img { height: 52px; }
  .btn-call span { display: none; }
}

/* Sections ------------------------------------------------------------------ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-white { background: var(--white); }
.section-stone { background: var(--stone); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Hero --------------------------------------------------------------------- */
.hero { background: var(--white); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: min(calc(100vh - var(--header-h)), 760px);
}
.hero-copy {
  align-self: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem) 0;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy .lead { margin-bottom: 2rem; }
.brand-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 1.25rem;
}
.brand-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-media { position: relative; margin: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover; object-position: 60% center;
  /* shallow diagonal echoing the logo's roofline */
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media::before {
  /* thin green sweep running along the diagonal */
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 14%;
  background: linear-gradient(to bottom right, transparent calc(50% - 2px), var(--green) calc(50% - 2px), var(--green) calc(50% + 2px), transparent calc(50% + 2px));
  pointer-events: none;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); list-style: none; padding-left: 0;
  font-size: .98rem; color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { width: 20px; height: 20px; color: var(--green-ink); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2.5rem var(--gutter) 2.25rem; }
  .hero-media { height: clamp(260px, 62vw, 460px); }
  .hero-media img { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-media::before {
    left: 0; right: 0; width: auto; top: 0; bottom: auto; height: 12%;
    background: linear-gradient(to bottom right, transparent calc(50% - 2px), var(--green) calc(50% - 2px), var(--green) calc(50% + 1px), transparent calc(50% + 1px));
  }
}

/* Page hero (inner pages) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero::after {
  /* roofline motif */
  content: ""; position: absolute; right: -40px; bottom: -1px; width: min(46vw, 520px); height: 120px;
  background: var(--stone);
  clip-path: polygon(0 100%, 50% 18%, 100% 100%);
  opacity: .9;
}
.page-hero .wrap > * { position: relative; z-index: 1; }

/* Audience cards ------------------------------------------------------------ */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.audience-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.audience-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.audience-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.audience-card:hover figure img { transform: scale(1.03); }
.audience-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--green); }
.audience-body p { color: var(--muted); flex: 1; margin-bottom: 1.5rem; }
.audience-body .btn { align-self: flex-start; }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

/* Service overview cards ------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card {
  background: var(--white); padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: background-color .25s var(--ease);
}
.service-card:hover { background: var(--paper); color: inherit; }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.service-card .more { font-family: var(--font-head); font-weight: 600; color: var(--navy); display: inline-flex; gap: .35rem; align-items: center; }
.service-card .more svg { width: 1em; height: 1em; color: var(--green-ink); transition: transform .2s var(--ease); }
.service-card:hover .more svg { transform: translateX(3px); }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* Split feature -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 40%; height: 40%;
  border-left: 4px solid var(--green); border-bottom: 4px solid var(--green); border-radius: 0 0 0 var(--radius);
  pointer-events: none;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media::after { left: -8px; bottom: -8px; } }

.qualities { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.qualities li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.qualities .q-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.qualities .q-icon svg { width: 22px; height: 22px; }
.qualities strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); font-weight: 600; line-height: 1.3; }
.qualities span { color: var(--muted); font-size: 1rem; }

/* Steps ------------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--navy); counter-increment: step; }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; letter-spacing: .12em; color: var(--green-ink); margin-bottom: .5rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Image strip / gallery ----------------------------------------------------------- */
.image-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.image-strip figure, .gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.image-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .8s var(--ease); }
.image-strip figure:first-child img { aspect-ratio: auto; height: 100%; }
.image-strip figure:hover img, .gallery figure:hover img { transform: scale(1.03); }
.image-strip figcaption, .gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(8, 26, 61, .86), rgba(8, 26, 61, 0));
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em;
}
@media (max-width: 760px) {
  .image-strip { grid-template-columns: 1fr 1fr; }
  .image-strip figure:first-child { grid-column: 1 / -1; }
  .image-strip figure:first-child img { aspect-ratio: 16 / 10; }
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 22vw, 310px); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.gallery picture { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery figcaption small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .92rem; opacity: .9; margin-top: .15rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery .wide { grid-column: auto; }
  .gallery .tall { grid-row: auto; }
  .gallery img { aspect-ratio: 4 / 3; height: auto; }
  .gallery .tall img { aspect-ratio: 4 / 5; }
}
.site-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.site-gallery figure { margin: 0; }
.site-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.site-gallery figcaption { margin-top: .75rem; font-size: .98rem; color: var(--muted); }
.site-gallery figcaption strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 900px) { .site-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note {
  margin-top: 2rem; padding: 1rem 1.25rem; background: var(--white); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 1rem;
}

/* Service detail rows -------------------------------------------------------------- */
.service-rows { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.service-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { margin: 0; position: relative; }
.service-row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.service-row-media .service-icon { position: absolute; top: -26px; left: 24px; border: 4px solid var(--paper); width: 60px; height: 60px; }
.service-row-body .num { font-family: var(--font-head); font-weight: 700; color: var(--green-ink); letter-spacing: .12em; font-size: 1rem; display: block; margin-bottom: .5rem; }
.service-row-body p { color: var(--muted); font-size: 1.1rem; }
.service-row-body ul { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.service-row-body li { display: flex; gap: .65rem; align-items: baseline; }
.service-row-body li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
}

/* About / registration table ---------------------------------------------------------- */
.reg-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 1rem; }
.reg-table caption { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); padding-bottom: 1rem; }
.reg-table th, .reg-table td { padding: .9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.reg-table tr:last-child th, .reg-table tr:last-child td { border-bottom: 0; }
.reg-table th { width: 38%; font-weight: 600; color: var(--navy); background: var(--paper); }
@media (max-width: 560px) {
  .reg-table th, .reg-table td { display: block; width: 100%; }
  .reg-table th { padding-bottom: .2rem; border-bottom: 0; }
  .reg-table td { padding-top: .2rem; }
}

/* CTA band --------------------------------------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; padding-top: clamp(4rem, 9vw, 6.5rem); padding-bottom: clamp(4rem, 9vw, 6.5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem 3rem; align-items: end; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255, 255, 255, .86); font-size: 1.125rem; max-width: 36em; margin: 0; }
.cta-band .slogan {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; display: block;
}
.cta-band::before {
  content: ""; position: absolute; right: -6%; top: -30%; width: 70%; height: 160%;
  background: radial-gradient(ellipse at 100% 100%, transparent 58%, rgba(133, 189, 30, .9) 58.3%, rgba(133, 189, 30, .9) 59.6%, transparent 60%);
  opacity: .55;
}
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--green);
}
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; align-items: start; } }

/* Contact ----------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-list li { background: var(--white); padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.contact-list .c-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-list .c-icon svg { width: 19px; height: 19px; }
.contact-list .label { display: block; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list address { font-style: normal; font-size: 1.08rem; font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-list address { font-weight: 500; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; order: 2; } }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 5px solid var(--navy); }
.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.form-intro { color: var(--muted); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; font-size: 1rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { display: block; font-size: .92rem; color: var(--muted); margin-top: -.2rem; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 50px; padding: .7rem .9rem;
  background: var(--white); border: 1.5px solid #b9b2a4; border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230d2654' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 71, 153, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 38, 27, .12); }
.field .error { display: none; color: var(--danger); font-size: .95rem; margin-top: .35rem; font-weight: 500; }
.field .error.show { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.1rem;
  border: 1.5px solid #b9b2a4; border-radius: var(--radius); cursor: pointer; font-weight: 500; background: #fff;
  transition: border-color .15s, background-color .15s, color .15s;
}
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8a8375; flex: none; transition: all .15s; }
.choice input:checked + span { border-color: var(--green-ink); background: var(--green-soft); color: var(--navy); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--green-ink); background: var(--green-ink); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn { min-width: 220px; }
.form-actions small { color: var(--muted); font-size: .92rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { display: none; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); border-left: 5px solid; }
.form-status.show { display: block; }
.form-status h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.form-status p { margin: 0 0 .5rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status.success { background: var(--success-soft); border-color: var(--green-ink); }
.form-status.error { background: var(--danger-soft); border-color: var(--danger); }
.form-status.error h3 { color: var(--danger); }
.form-status.info { background: #eef3fb; border-color: var(--blue); }
.form-status a { font-weight: 600; }

.map-link-card { margin-top: 1rem; }

/* Footer ------------------------------------------------------------------------------ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .82); font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3.5rem; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2.5rem; align-items: start; }
.footer-logo { background: #fff; border-radius: var(--radius); padding: .9rem 1.1rem; display: inline-block; }
.footer-logo img { height: 112px; width: auto; }
.footer-about p { margin: 0 0 .5rem; max-width: 30em; }
.footer-about .brand-line { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.footer-links h2 { font-size: 1.1rem; color: #fff; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; padding-top: 1.5rem; padding-bottom: 1.75rem; }
.footer-bottom p { margin: 0; }
.footer-company p + p { margin-top: .25rem; }
.footer-credit { text-align: right; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom .wrap { flex-direction: column; align-items: flex-start; }
  .footer-credit { text-align: left; }
}

/* Mobile action bar ------------------------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(13, 38, 84, .08);
  }
  .mobile-bar .btn { min-height: 48px; padding: .6rem .8rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.no-mobile-bar { padding-bottom: 0; }
  .header-actions .btn-call { display: none; }
}

/* Reveal animation ----------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide img { animation: none !important; transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.steps.plain li::before { display: none; }
.lead-strong { color: var(--ink); }
.btn-row.spaced { margin-top: 2rem; }
.wrap.narrow { max-width: 860px; }
.section-head.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; max-width: none; }
.section-head.split-head > div { max-width: 40rem; }
.section-head.split-head h2 { margin-bottom: 0; }

/* 24-hour service bar ------------------------------------------------------------------- */
.service-bar { background: var(--navy-deep); color: #fff; font-size: .95rem; }
.service-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px; flex-wrap: wrap; }
.service-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 0; }
.service-bar a:hover { color: var(--green); }
.service-bar svg { width: 18px; height: 18px; flex: none; }
.service-line svg { color: var(--green); }
.service-line strong { font-weight: 600; letter-spacing: .02em; }
.service-wa svg { color: #25d366; }
@media (max-width: 560px) {
  .service-bar-inner { justify-content: center; }
  .service-wa { display: none !important; }
}

/* WhatsApp ----------------------------------------------------------------------------- */
.btn-whatsapp { background: #25d366; color: #0b2e17; }
.btn-whatsapp:hover { background: #1ebe5b; color: #062010; }
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 45;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 60px; min-width: 60px; padding: 0 1.2rem 0 1rem; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(8, 26, 61, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  animation: wa-in .6s var(--ease) .8s both;
}
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float:hover { color: #fff; background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(8, 26, 61, .32); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366;
  animation: wa-pulse 2.6s ease-out 2s infinite; pointer-events: none;
}
.wa-float-label { color: #0b2e17; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 760px) {
  .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); right: 1rem; padding: 0; width: 56px; height: 56px; min-width: 0; justify-content: center; }
  .wa-float-label { display: none; }
}

/* Footer and contact additions */
.footer-247 { display: flex; align-items: center; gap: .5rem; }
.footer-247 svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.contact-list .c-247 { background: var(--green-soft); }
.contact-list .c-247 .c-icon { background: var(--green-ink); }
.contact-list .c-note { display: block; font-size: .92rem; color: var(--muted); }
.contact-list .c-wa { background: #25d366; }
.contact-list .c-wa svg { width: 22px; height: 22px; }

/* Dark section */
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #b9e07a; }
.section-dark .text-link { color: #fff; }
.section-dark .text-link:hover { color: #b9e07a; }

/* Slideshow (hero and showcase) -------------------------------------------------------- */
.slider { position: relative; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.slider-track { position: relative; height: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease), visibility 0s; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.slide.is-active img { animation: kb-0 9s ease-out both; }
.slide.kb-1.is-active img { animation-name: kb-1; }
.slide.kb-2.is-active img { animation-name: kb-2; }
.slide.kb-3.is-active img { animation-name: kb-3; }
.slider.is-paused .slide.is-active img { animation-play-state: paused; }
@keyframes kb-0 { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kb-1 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -1.5%); } }
@keyframes kb-2 { from { transform: scale(1.16) translate(-2%, 2%); } to { transform: scale(1.03) translate(1%, 0); } }
@keyframes kb-3 { from { transform: scale(1.04) translate(1.5%, -1%); } to { transform: scale(1.18) translate(-1%, 1.5%); } }
.slide figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 2;
  padding: 3rem 1.5rem 4.25rem; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  background: linear-gradient(to top, rgba(8, 26, 61, .85), transparent);
  transform: translateY(12px); opacity: 0; transition: transform .9s var(--ease) .5s, opacity .9s var(--ease) .5s;
}
.slide.is-active figcaption { transform: none; opacity: 1; }
.slider-controls {
  position: absolute; z-index: 3; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(8, 26, 61, .55); backdrop-filter: blur(6px); border-radius: 999px; padding: .3rem;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s;
}
.slider-btn:hover { background: rgba(255, 255, 255, .3); }
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn .i-play { display: none; }
.slider.is-paused .slider-btn .i-play { display: block; }
.slider.is-paused .slider-btn .i-pause { display: none; }
.slider-dots { display: flex; gap: .15rem; padding: 0 .25rem; }
.slider-dot { width: 24px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.slider-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: translate(-50%, -50%); transition: width .3s var(--ease), background-color .3s, border-radius .3s; }
.slider-dot[aria-current="true"]::before { width: 20px; border-radius: 6px; background: var(--green); }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .15); }
.slider-progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }
.slider.is-running .slider-progress span { animation: slider-progress var(--interval, 6000ms) linear both; }
.slider.is-paused .slider-progress span { animation-play-state: paused; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Home hero */
.hero-slider { background: var(--navy-deep); min-height: min(calc(100svh - var(--header-h) - 40px), 820px); display: grid; }
.hero-slider > .slider, .hero-slider > .hero-overlay { grid-area: 1 / 1; }
.hero-slider .slider { min-height: 560px; }
.hero-slider .slider::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 26, 61, .9) 0%, rgba(8, 26, 61, .72) 38%, rgba(8, 26, 61, .15) 75%, rgba(8, 26, 61, .05) 100%),
              linear-gradient(to top, rgba(8, 26, 61, .55), transparent 40%);
}
.hero-slider .slider-controls { left: 50%; right: auto; transform: translateX(-50%); }
.hero-overlay { position: relative; z-index: 3; display: flex; align-items: center; pointer-events: none; }
.hero-overlay .wrap { pointer-events: none; }
.hero-slider .hero-copy { max-width: 40rem; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(6rem, 9vw, 7rem); color: #fff; pointer-events: auto; }
.hero-slider .hero-copy h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-slider .hero-copy .lead { color: rgba(255, 255, 255, .9); }
.brand-line-light { color: #b9e07a; }
.hero-slider .hero-badges { border-top-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .92); }
.hero-slider .hero-badges svg { color: var(--green); }
.hero-slider .hero-copy > * { animation: hero-rise .9s var(--ease) both; }
.hero-slider .hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-slider .hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-slider .hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-slider .hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero-slider .slider::after { background: linear-gradient(to top, rgba(8, 26, 61, .95) 0%, rgba(8, 26, 61, .78) 55%, rgba(8, 26, 61, .35) 100%); }
  .hero-slider .hero-copy { padding: 3rem 0 6rem; }
  .hero-slider .slider-controls { bottom: .9rem; }
  .hero-slider .slider-dots { display: none; }
}

/* Showcase slider on the projects page */
.showcase-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.showcase { aspect-ratio: 16 / 8; border-radius: calc(var(--radius) * 2); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
@media (max-width: 760px) { .showcase { aspect-ratio: 4 / 5; } .showcase .slider-dots { display: none; } }

/* Carousel ----------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-track {
  list-style: none; margin: 0; padding: .5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 380px); gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }
.carousel-item { scroll-snap-align: start; }
.carousel-controls { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .75rem; }
.carousel-controls .slider-btn { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
.carousel-controls .slider-btn:disabled { opacity: .35; cursor: default; }
.work-card { display: block; position: relative; border-radius: calc(var(--radius) * 1.5); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.work-card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.work-card:hover .work-card-media img, .work-card:focus-visible .work-card-media img { transform: scale(1.12); }
.work-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.1rem 1rem; background: linear-gradient(to top, rgba(8, 26, 61, .92), transparent); display: grid; gap: .1rem; }
.work-card-cat { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #b9e07a; font-weight: 600; }
.work-card-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.work-card-zoom { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.work-card-zoom svg { width: 20px; height: 20px; }
.work-card:hover .work-card-zoom, .work-card:focus-visible .work-card-zoom { opacity: 1; transform: none; }
.carousel.is-entering .carousel-item { animation: card-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes card-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }

/* Project gallery ------------------------------------------------------------------------ */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  min-height: 44px; padding: .45rem 1rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-count { font-size: .8rem; background: var(--stone); color: var(--muted); border-radius: 999px; padding: .05rem .5rem; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .18); color: #fff; }
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1.2vw, 1rem); }
.tile { position: relative; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tile.is-hidden { display: none; }
.tile.is-showing { animation: tile-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes tile-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.tile a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--stone); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.14); }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .7rem; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.15;
  background: linear-gradient(to top, rgba(8, 26, 61, .88), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.tile a:hover .tile-caption, .tile a:focus-visible .tile-caption { opacity: 1; transform: none; }
@media (hover: none) { .tile-caption { opacity: 1; transform: none; font-size: .95rem; } }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.video-card { margin: 0; }
.video-card video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: calc(var(--radius) * 1.5); background: var(--navy-deep); display: block; }
.video-card figcaption { margin-top: .75rem; color: var(--muted); }
.video-card figcaption strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.25rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Lightbox ------------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 14, 33, .94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 14, 33, .7); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-fade .3s ease both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { display: grid; place-items: center; padding: 4.5rem clamp(.5rem, 6vw, 5.5rem) 0; min-height: 0; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-img.is-zoom-in { animation: lb-zoom .55s var(--ease) both; }
.lb-img.is-next { animation: lb-next .5s var(--ease) both; }
.lb-img.is-prev { animation: lb-prev .5s var(--ease) both; }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes lb-next { from { opacity: 0; transform: translateX(6%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lb-prev { from { opacity: 0; transform: translateX(-6%) scale(.96); } to { opacity: 1; transform: none; } }
.lb-caption { margin: 0; padding: 1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.lb-title { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.lb-count { color: rgba(255, 255, 255, .7); align-self: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 4.5rem; transform: none; } }
body.lb-open { overflow: hidden; }
