@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: color var(--speed) var(--ease); }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  box-sizing: border-box;
}

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

/* ---------- Eyebrow / Tag ---------- */
.eyebrow-row { display: flex; align-items: center; gap: 8px; }
.eyebrow-row img { height: 14px; width: auto; }

.tag {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  display: inline-block;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--tracking-cta);
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn-lg { font-size: 15px; padding: 16px 32px; }
.btn-md { font-size: 14px; padding: 14px 26px; }

.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: #0A0E45; color: var(--ivory); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--ivory); }

.btn-inverse { background: var(--ivory); color: var(--navy); }
.btn-inverse:hover { background: var(--red); color: #fff; }

/* ---------- Swatch dots ---------- */
.swatch-dots { display: flex; gap: 6px; align-items: center; }
.swatch-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.swatch-dots span.light { border: 1px solid var(--border-strong); }

/* ---------- Floating nav (fixed/sticky, used on every page) ---------- */
.nav-float {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: min(280px, calc(100% - 32px));
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-sizing: border-box;
}
.nav-float img.logo { height: 28px; width: auto; }

/* Detail pages (tile / portfolio / blog detail) graft a red back-square
   onto the left edge of the same floating nav, as one fixed unit. */
.nav-float-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.nav-float-wrap .nav-float {
  position: static;
  transform: none;
  box-shadow: none;
}
.nav-back-square {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transition: background var(--speed) var(--ease);
}
.nav-back-square:hover { background: #a11f24; color: #fff; }

/* Space for the fixed nav so first-fold content never sits underneath it.
   Not needed on the homepage: the hero already reserves that space. */
.page-top-pad { padding-top: 100px; }
.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a:hover { color: var(--red); }
.nav-links a.is-active { color: var(--red); }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--navy);
  padding: 10px 22px;
  box-sizing: border-box;
}
.nav-links a.nav-cta:hover { background: #1a1d3d; color: #fff; }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); }

@media (min-width: 768px) {
  .nav-float { top: 20px; width: min(560px, calc(100% - 64px)); padding: 12px 22px; }
  .nav-float img.logo { height: 32px; }
  .nav-float-wrap { top: 20px; }
  .nav-back-square { width: 52px; font-size: 18px; }
  .page-top-pad { padding-top: 120px; }
}

@media (min-width: 1200px) {
  .nav-float { top: 28px; width: 720px; padding: 14px 28px; }
  .nav-float img.logo { height: 38px; }
  .nav-float-wrap { top: 28px; }
  .nav-back-square { width: 60px; font-size: 20px; }
  .page-top-pad { padding-top: 150px; }
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--speed) var(--ease), visibility var(--speed) var(--ease);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu::after {
  content: "";
  position: absolute;
  right: -50px; bottom: -50px;
  height: 340px; width: 340px;
  background: url("../images/mark-white.png") no-repeat center / contain;
  opacity: .14;
  pointer-events: none;
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; box-sizing: border-box; position: relative; z-index: 2;
}
.mobile-menu-head img { height: 30px; width: auto; }
.mobile-menu-close {
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 30px; line-height: 1; padding: 4px 6px;
}
.mobile-menu-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; box-sizing: border-box; position: relative; z-index: 2; overflow-y: auto;
}
.mobile-menu-primary a {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.55;
  color: #fff;
}
.mobile-menu-secondary {
  border-top: 1px solid rgba(255, 255, 255, .3);
  margin-top: 20px; padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu-secondary a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.mobile-menu-social {
  display: flex; gap: 22px;
  padding: 28px 32px 40px; box-sizing: border-box;
  position: relative; z-index: 2;
}
.mobile-menu-social a { color: #fff; display: flex; }

@media (min-width: 1200px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 640px;
  background: var(--oxide-cherry);
  overflow: hidden;
  box-sizing: border-box;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3, 6, 42, .86) 0%, rgba(3, 6, 42, .45) 42%, rgba(3, 6, 42, 0) 74%);
}
.hero-photo-label {
  position: absolute;
  top: 88px; left: 20px; right: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 20px 36px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-copy h1 {
  margin: 0 auto;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
}
.hero-copy .btn { margin-top: 24px; }

@media (min-width: 768px) {
  .hero { height: 680px; }
  .hero-photo-label { top: 96px; left: 48px; right: 48px; }
  .hero-copy { padding: 0 48px 56px; }
  .hero-copy h1 { font-size: 52px; line-height: 1.1; max-width: 17ch; }
}

@media (min-width: 1200px) {
  .hero { height: 760px; }
  .hero-photo-label { top: 110px; left: 48px; right: 48px; }
  .hero-copy {
    padding: 0 48px 64px;
    max-width: var(--container);
    margin: 0 auto;
    left: 0; right: 0;
  }
  .hero-copy h1 { font-size: 68px; line-height: 1.08; max-width: 16ch; }
}

/* ---------- Section basics ---------- */
.section { padding: 64px 20px 0; box-sizing: border-box; }
.section:last-of-type { padding-bottom: 64px; }
.section-tight { padding-top: 64px; padding-bottom: 64px; }
.section h2 { font-size: var(--text-section); margin-top: 14px; }
.section p.lede { font-size: 17px; line-height: 1.6; max-width: 34ch; margin: 16px 0 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.section-head h2 { margin-top: 14px; }
.section-link {
  font-size: 14px; font-weight: 500; color: var(--red);
  border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap;
}

@media (min-width: 768px) {
  .section { padding: 96px 48px 0; }
  .section:last-of-type { padding-bottom: 96px; }
  .section-tight { padding-top: 96px; padding-bottom: 96px; }
}

@media (min-width: 1200px) {
  .section { padding: 120px 48px 0; max-width: var(--container); margin: 0 auto; }
  .section:last-of-type { padding-bottom: 120px; }
  .section-tight { padding-top: 120px; padding-bottom: 120px; max-width: var(--container); margin: 0 auto; }
}

/* ---------- Craft section ---------- */
.craft-section { position: relative; overflow: visible; }
.craft-motif {
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: url("../images/mark.png") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.craft-grid { position: relative; z-index: 1; display: flex; flex-direction: column; }
.craft-image {
  aspect-ratio: 4 / 3;
  background: var(--oxide-coffee);
  margin-top: 28px;
  position: relative;
}
@media (min-width: 768px) {
  .craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .craft-image { aspect-ratio: 4 / 5; margin-top: 0; }
  .section p.lede { max-width: 32ch; }
}

@media (min-width: 1200px) {
  .craft-grid { gap: 64px; }
  .section p.lede { max-width: 38ch; font-size: 18px; }
}

/* ---------- Tile grid / card ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 28px;
}
.tile-card { color: var(--ink); display: block; }
.tile-card .tile-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oxide-cherry);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  box-sizing: border-box;
}
.tile-card .tile-image span {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.tile-card .tile-image,
.tile-card .tile-image > * { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.tile-card:hover .tile-image { transform: scale(1.03); box-shadow: 0 16px 36px rgba(28, 26, 23, .18); }
.tile-card .tile-name {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  line-height: 1.15;
  display: inline-block;
  padding-top: 14px;
}
.tile-card .eyebrow { margin: 8px 0 0; display: block; }
.tile-card .swatch-dots { margin-top: 10px; }

@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
}

@media (min-width: 1200px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}
.service-card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.service-card .service-image { aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.service-card .service-body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1;
}
.service-card h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin: 0; }
.service-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); flex: 1; }
.service-cta {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500; letter-spacing: var(--tracking-cta);
  color: var(--ink); background: transparent; border: none; cursor: pointer;
  padding: 14px 0; transition: color var(--speed) var(--ease);
}
.service-cta:hover { color: var(--red); }

@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
}

@media (min-width: 1200px) {
  .service-grid { gap: 32px; margin-top: 48px; }
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 28px;
}
.portfolio-card { color: var(--ink); display: block; }
.portfolio-card .portfolio-image { aspect-ratio: 3 / 2; overflow: hidden; }
.portfolio-card .portfolio-image,
.portfolio-card .portfolio-image > * { transition: transform .45s var(--ease); }
.portfolio-card:hover .portfolio-image { transform: scale(1.03); }
.portfolio-card .portfolio-body {
  padding-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.portfolio-card .portfolio-title { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.portfolio-card .portfolio-location {
  font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
}
.portfolio-card .portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; }

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
}

@media (min-width: 1200px) {
  .portfolio-grid { gap: 32px; margin-top: 48px; }
}

.section-white { background: #fff; }
/* Full-bleed: the white banded sections (Recent work, etc.) must span the
   viewport edge to edge — .section-tight's own max-width would otherwise
   clip the background at 1200px. Inner .container still bounds the content. */
@media (min-width: 1200px) {
  .section-tight.section-white { max-width: none; margin-left: 0; margin-right: 0; }
}

/* ---------- Facts strip ---------- */
.facts-strip { display: flex; flex-direction: column; gap: 16px; }
.facts-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.facts-row:last-child { border-bottom: none; padding-bottom: 0; }
.facts-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.facts-value { font-family: var(--font-display); font-size: 18px; text-align: right; }
.facts-mark { height: 18px; width: auto; margin-bottom: 24px; }
.facts-section { padding-bottom: 64px; }

@media (min-width: 768px) {
  .facts-section { padding-bottom: 96px; }
  .facts-strip { display: flex; border-top: 1px solid var(--border); flex-direction: row; }
  .facts-row {
    flex: 1; flex-direction: column; align-items: flex-start;
    padding: 22px 24px 0 0; border-bottom: none; border-right: 1px solid var(--border);
  }
  .facts-row:last-child { border-right: none; padding-right: 0; }
  .facts-row:not(:first-child) { padding-left: 24px; }
  .facts-value { text-align: left; font-size: 18px; margin-top: 8px; }
  .facts-mark { height: 18px; margin-bottom: 28px; }
}

@media (min-width: 1200px) {
  .facts-section { padding-bottom: 120px; }
  .facts-value { font-size: 20px; }
  .facts-mark { height: 20px; margin-bottom: 32px; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 64px 20px; text-align: center; box-sizing: border-box; }
.cta-band img { height: 40px; margin: 0 auto 20px; }
.cta-band h2 { color: var(--ivory); margin: 0 auto; }
.cta-band p { color: var(--ivory); opacity: .75; margin: 14px auto 26px; font-size: 16px; line-height: 1.6; }

@media (min-width: 768px) {
  .cta-band { padding: 96px 48px; }
  .cta-band img { height: 44px; margin-bottom: 24px; }
  .cta-band h2 { max-width: 20ch; }
  .cta-band p { max-width: 48ch; margin-top: 16px; margin-bottom: 28px; }
}

@media (min-width: 1200px) {
  .cta-band { padding: 120px 48px; }
  .cta-band img { height: 48px; margin-bottom: 28px; }
  .cta-band p { max-width: 52ch; font-size: 17px; margin-top: 18px; margin-bottom: 32px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-body);
  padding: 48px 24px 32px;
  box-sizing: border-box;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
}
.footer-brand img { height: 90px; }
.footer-brand p { max-width: 260px; font-size: 14px; opacity: .6; line-height: 1.6; margin-top: 18px; }
.footer-col-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ivory); font-size: 15px; opacity: .85; margin-bottom: 8px; }
.footer-col span { display: block; color: var(--ivory); font-size: 15px; opacity: .85; margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--container); margin: 48px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(243, 238, 228, .15);
  font-size: 13px; opacity: .5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (min-width: 768px) {
  .site-footer { padding: 72px var(--space-gutter) 40px; }
  .footer-brand img { height: 120px; }
}

/* =====================================================================
   Inner-page layout: header variants, page hero, and shared components
   used by about/tiles/tile/services/portfolio/blog/contact/legal pages.
   ===================================================================== */

/* ---------- Minimal utility header (thank-you / legal / 404) ---------- */
.utility-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; box-sizing: border-box;
}
.utility-header img.logo { height: 24px; width: auto; }

@media (min-width: 768px) {
  .utility-header { padding: 24px 64px; }
  .utility-header img.logo { height: 32px; }
}

@media (min-width: 1200px) {
  .utility-header .hamburger { display: none; }
}

/* ---------- Plain back-link (non-overlay contexts) ---------- */
.back-link {
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.back-link:hover { color: var(--red); }

/* ---------- Page hero (eyebrow + h1 + intro paragraph) ---------- */
.page-hero { padding: 40px 20px 0; box-sizing: border-box; }
.page-hero h1 { font-size: var(--text-hero); line-height: 1.05; margin-top: 14px; }
.page-hero p.lede { font-size: 16px; line-height: 1.6; margin: 14px 0 0; max-width: 36ch; }

@media (min-width: 768px) {
  .page-hero { padding: 56px 48px 0; }
  .page-hero p.lede { max-width: 48ch; }
}

@media (min-width: 1200px) {
  .page-hero { padding: 72px 64px 0; max-width: var(--container-wide); margin: 0 auto; }
  .page-hero p.lede { font-size: 17px; max-width: 56ch; }
}

/* ---------- Filter pills (Tiles Listing) ---------- */
.filter-pills {
  display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap;
  padding: 24px 20px 0; box-sizing: border-box;
}
.filter-pill {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: none;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: all var(--speed) var(--ease);
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.filter-status { padding: 14px 20px 0; box-sizing: border-box; font-size: 13px; color: var(--text-muted); }
.filter-status strong { color: var(--ink); font-weight: 500; }

@media (min-width: 768px) {
  .filter-pills { padding: 0; margin-top: 32px; flex-wrap: wrap; }
  .filter-status { padding: 0; margin-top: 16px; }
}

.tiles-page-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 28px 20px 64px; box-sizing: border-box;
}
@media (min-width: 768px) {
  .tiles-page-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 40px 48px 64px; }
}
@media (min-width: 1200px) {
  .tiles-page-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 64px 96px; max-width: var(--container-wide); margin: 0 auto; }
}

/* ---------- About hero (story text + interior photo) ---------- */
.about-hero { padding: 40px 20px 0; box-sizing: border-box; }
.about-hero h1 { font-size: var(--text-hero); line-height: 1.06; }
.about-hero-photo {
  margin-top: 32px; width: 100%; aspect-ratio: 4 / 5; background: var(--oxide-thara);
  position: relative; box-sizing: border-box;
}

@media (min-width: 768px) {
  .about-hero { padding: 64px 48px 0; }
  .about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .about-hero-photo { margin-top: 0; }
}

@media (min-width: 1200px) {
  .about-hero { padding: 100px 64px 0; max-width: var(--container); margin: 0 auto; }
  .about-hero-grid { gap: 80px; }
}

/* ---------- Team grid (About) ---------- */
.team-section { padding-bottom: 64px; }
.team-grid { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.team-member { display: flex; align-items: center; gap: 18px; }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 20px;
}
.team-name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.team-role { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (min-width: 768px) {
  .team-section { padding-bottom: 96px; }
  .team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 36px; }
  .team-avatar { width: 72px; height: 72px; font-size: 22px; }
}
@media (min-width: 1200px) {
  .team-section { padding-bottom: 120px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 44px; }
  .team-member { flex-direction: column; align-items: flex-start; gap: 16px; }
  .team-avatar { width: 88px; height: 88px; font-size: 26px; }
}

.photo-caption {
  padding-top: 10px;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.photo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid-2 .aspect-tall { aspect-ratio: 3 / 4; }
.photo-grid-2 .mobile-hide-third { display: none; }
@media (min-width: 768px) {
  .photo-grid-2 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .photo-grid-2 .mobile-hide-third { display: block; }
}

/* ---------- Specs table ---------- */
.specs-table { border-collapse: collapse; width: 100%; font-family: var(--font-body); font-size: 15px; }
.specs-table td { padding: 12px 24px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs-table td:first-child {
  color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.specs-table td:last-child { color: var(--ink); padding-right: 0; }

/* ---------- Ingredient list (2x2 grid) ---------- */
.ingredient-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ingredient-list div { display: flex; align-items: baseline; gap: 10px; }
.ingredient-list span.dot { width: 5px; height: 5px; background: var(--red); flex-shrink: 0; }
.ingredient-list span.label { font-size: 15px; line-height: 1.5; }

/* ---------- Tile detail: image slider ---------- */
.tile-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--stone); box-sizing: border-box;
}
.tile-slider-track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.tile-slider-slide { flex: 0 0 100%; height: 100%; position: relative; box-sizing: border-box; }
.tile-slider-slide .slide-label {
  position: absolute; bottom: 14px; left: 20px; right: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: var(--ink);
  transition: background var(--speed) var(--ease);
  z-index: 3;
}
.slider-arrow:hover { background: #fff; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-zoom {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink);
  transition: background var(--speed) var(--ease);
}
.slider-zoom:hover { background: #fff; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .5); border: none; cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.slider-dot.is-active { background: #fff; }

/* ---------- Lightbox (tile + portfolio detail image zoom) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(3, 6, 42, .92);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; box-sizing: border-box; padding: 56px 20px;
  transition: opacity var(--speed) var(--ease), visibility var(--speed) var(--ease);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-inner { position: relative; width: min(90vw, 720px); aspect-ratio: 4 / 5; }
.lightbox-close {
  position: absolute; top: -44px; right: 0; background: none; border: none;
  color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 4px;
}
.lightbox .slider-arrow { background: rgba(255, 255, 255, .16); color: #fff; }
.lightbox .slider-arrow:hover { background: rgba(255, 255, 255, .3); }

.tile-detail-body { padding: 8px 20px 0; box-sizing: border-box; }
.tile-detail-body h1 { font-size: 56px; line-height: 1; margin-top: 12px; }
.tile-detail-body p.intro { margin: 14px 0 0; font-size: 16px; line-height: 1.6; max-width: 36ch; }
.tile-detail-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px; }

.tile-sticky-bar {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--navy); padding: 16px 20px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  z-index: 30; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
}
.tile-sticky-bar .name { color: var(--ivory); font-family: var(--font-display); font-size: 18px; line-height: 1; }
.tile-sticky-bar .spec { font-size: 12px; opacity: .7; margin-top: 3px; color: var(--ivory); }
.tile-sticky-bar a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500; padding: 13px 22px;
  background: var(--ivory); color: var(--navy); border: none; white-space: nowrap; cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.tile-sticky-bar a:hover { background: var(--red); color: #fff; }

@media (min-width: 768px) {
  .tile-detail-grid {
    padding: 0 40px; box-sizing: border-box;
    display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
  }
  .tile-detail-side { position: sticky; top: 24px; padding-top: 8px; }
  .tile-detail-body { padding: 0; }
  .tile-detail-body h1 { font-size: 52px; margin-top: 14px; }
  .tile-detail-body p.intro { font-size: 15px; max-width: none; }
  .tile-sticky-enquire {
    margin-top: 24px; width: 100%; font-family: var(--font-body); font-size: 14px; font-weight: 500;
    padding: 15px 22px; background: var(--navy); color: var(--ivory); border: none; cursor: pointer; box-sizing: border-box;
    transition: background var(--speed) var(--ease);
    position: sticky; bottom: 20px; z-index: 5;
    box-shadow: 0 12px 28px rgba(28, 26, 23, .18);
    display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  }
  .tile-sticky-enquire:hover { background: var(--red); color: var(--ivory); }
}

@media (min-width: 1200px) {
  .tile-detail-grid {
    padding: 0 64px; box-sizing: border-box; max-width: var(--container-wide); margin: 0 auto;
    grid-template-columns: 1fr 480px; gap: 64px;
  }
  .tile-detail-side { top: 32px; padding-top: 12px; }
  .tile-detail-body h1 { font-size: 88px; line-height: .98; margin-top: 16px; }
  .tile-detail-body p.intro { font-size: 17px; max-width: 42ch; }
}

/* ---------- Services page (alternating rows) ---------- */
.service-row { margin-top: 56px; }
.service-row .service-row-media { width: 100%; aspect-ratio: 4 / 3; position: relative; box-sizing: border-box; }
.service-row .service-row-media span {
  position: absolute; bottom: 14px; left: 20px; right: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.service-row .service-row-body { padding: 24px 20px 0; box-sizing: border-box; }
.service-row h2 { font-size: 32px; line-height: 1.15; }
.service-row p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; }
.service-row .service-row-link {
  display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 500;
  color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 2px;
}

@media (min-width: 768px) {
  .service-row { padding: 0 48px; box-sizing: border-box; margin-top: 80px; }
  .service-row .row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .service-row .service-row-media { aspect-ratio: 4 / 3; }
  .service-row .service-row-body { padding: 0; }
  .service-row h2 { font-size: 36px; }
  .service-row.reverse .row-grid > .service-row-media { order: 2; }
  .service-row.reverse .row-grid > .service-row-body { order: 1; }
}

@media (min-width: 1200px) {
  .service-row { padding: 0 64px; max-width: var(--container); margin: 96px auto 0; }
  .service-row .row-grid { gap: 80px; }
  .service-row .service-row-media { aspect-ratio: 5 / 4; }
  .service-row h2 { font-size: 44px; }
  .service-row p { font-size: 17px; max-width: 44ch; }
}

/* ---------- Portfolio detail: stacked full images ---------- */
.pd-grid { padding-bottom: 64px; box-sizing: border-box; }
.pd-stack { display: flex; flex-direction: column; gap: 12px; }
.pd-stack-img {
  width: 100%; position: relative; box-sizing: border-box; cursor: zoom-in;
  transition: opacity var(--speed) var(--ease);
}
.pd-stack-img:hover { opacity: .92; }
.pd-stack-img span {
  position: absolute; bottom: 14px; left: 20px; right: 20px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.pd-body { padding: 20px 20px 0; box-sizing: border-box; }
.pd-body .location { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.pd-body h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.08; margin: 10px 0 0; }
.pd-body p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; }
.pd-tiles-used { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pd-tiles-used a, .pd-tiles-used span {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  border: 1px solid var(--border); padding: 8px 16px; display: inline-block;
}
.pd-tiles-used a:hover { border-color: var(--red); color: var(--red); }
.pd-enquire {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 16px 32px;
  background: var(--navy); color: var(--ivory); border: none; cursor: pointer; box-sizing: border-box;
  transition: background var(--speed) var(--ease);
}
.pd-enquire:hover { background: var(--red); }

@media (min-width: 768px) {
  .pd-grid { padding: 0 40px 96px; box-sizing: border-box; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
  .pd-stack { gap: 16px; }
  .pd-side { position: sticky; top: 24px; }
  .pd-body { padding: 0; }
  .pd-body h1 { font-size: 42px; }
  .pd-enquire { margin-top: 24px; padding: 15px 22px; }
}
@media (min-width: 1200px) {
  .pd-grid { padding: 0 64px 120px; max-width: var(--container-wide); margin: 0 auto; grid-template-columns: 1fr 420px; gap: 64px; }
  .pd-stack { gap: 20px; }
  .pd-side { top: 32px; }
  .pd-body h1 { font-size: 56px; line-height: 1.05; }
  .pd-body p { font-size: 17px; }
  .pd-enquire { margin-top: 28px; padding: 17px 22px; }
}

/* ---------- Blog listing ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 64px; box-sizing: border-box; }
.blog-card { text-decoration: none; color: var(--ink); display: block; }
.blog-card .blog-card-media { width: 100%; aspect-ratio: 4 / 3; }
.blog-card .blog-date { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.blog-card h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin-top: 8px; }
.blog-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; padding: 40px 48px 64px; }
}
@media (min-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 48px 64px 96px; max-width: var(--container-wide); margin: 0 auto; }
}

/* ---------- Blog article ---------- */
.article-header { padding: 32px 20px 0; box-sizing: border-box; }
.article-header h1 { font-size: 36px; line-height: 1.12; margin-top: 14px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px; padding: 9px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: none; color: var(--ink); cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
  position: relative;
}
.share-btn:hover { border-color: var(--red); color: var(--red); }
.share-popup {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 500;
  padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity var(--speed) var(--ease), visibility var(--speed) var(--ease);
}
.share-popup.is-visible { opacity: 1; visibility: visible; }
.article-media { width: 100%; aspect-ratio: 4 / 3; margin-top: 24px; }
.article-body { padding: 24px 20px 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.75; }
.article-body h2 { font-family: var(--font-display); font-size: 1.5em; line-height: 1.2; margin: 4px 0 0; }
.article-body h3 { font-family: var(--font-display); font-size: 1.22em; line-height: 1.25; margin: 4px 0 0; }
.article-body blockquote { margin: 0; padding-left: 20px; border-left: 3px solid var(--red); font-style: italic; color: var(--text-muted); }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.25em; }
.article-body li + li { margin-top: 8px; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-inline-image img { width: 100%; display: block; }
.article-inline-image .photo-caption { margin-top: 8px; }
.article-related { margin-top: 56px; padding: 0 20px 64px; box-sizing: border-box; }
.article-related-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted);
  margin-bottom: 18px; border-top: 1px solid var(--border); padding-top: 24px;
}
.article-related-list { display: flex; flex-direction: column; gap: 28px; }
.article-related-list a { text-decoration: none; color: var(--ink); display: flex; gap: 14px; align-items: center; }
.article-related-thumb { width: 88px; height: 88px; flex-shrink: 0; }
.article-related-title { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.article-related-date { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

@media (min-width: 768px) {
  .article-header { padding: 64px 48px 0; max-width: 620px; margin: 0 auto; text-align: center; }
  .article-header h1 { font-size: 46px; }
  .article-meta { justify-content: center; }
  .article-media { max-width: 738px; margin: 40px auto 0; aspect-ratio: 16 / 9; }
  .article-body { padding: 40px 48px 0; max-width: 600px; margin: 0 auto; font-size: 17px; }
  .article-related { margin-top: 64px; padding: 0 48px 64px; max-width: 738px; margin-left: auto; margin-right: auto; }
  .article-related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .article-related-thumb { width: 96px; height: 96px; }
}
@media (min-width: 1200px) {
  .article-header { padding: 80px 64px 0; max-width: 760px; }
  .article-header h1 { font-size: 56px; line-height: 1.1; }
  .article-media { max-width: 1120px; margin-top: 48px; }
  .article-body { padding: 48px 64px 0; max-width: 720px; font-size: 18px; line-height: 1.8; gap: 22px; }
  .article-related { margin-top: 80px; padding: 0 64px 96px; max-width: 1120px; }
  .article-related-list { gap: 40px; }
  .article-related-thumb { width: 120px; height: 120px; }
  .article-related-title { font-size: 22px; }
}

/* ---------- Contact page ---------- */
.contact-hero { padding: 40px 20px 0; box-sizing: border-box; }
.contact-hero h1 { font-size: var(--text-hero); line-height: 1.05; margin-top: 14px; }
.contact-hero p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; }
.contact-grid { padding: 28px 20px 64px; box-sizing: border-box; }
.contact-info { display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 0; box-sizing: border-box; font-size: 15px; }
.contact-info span.label { color: var(--text-muted); }
.contact-map { width: 100%; aspect-ratio: 4 / 3; background: var(--stone); margin-top: 24px; position: relative; box-sizing: border-box; }
.contact-map span { position: absolute; bottom: 14px; left: 16px; right: 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

@media (min-width: 768px) {
  .contact-hero { padding: 64px 48px 0; }
  .contact-hero h1 { max-width: 16ch; }
  .contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; padding: 32px 48px 96px; align-items: start; }
  .contact-info { padding: 0; }
}
@media (min-width: 1200px) {
  .contact-hero { padding: 88px 64px 0; max-width: var(--container); margin: 0 auto; }
  .contact-grid { max-width: var(--container); margin: 0 auto; grid-template-columns: 1fr 380px; gap: 80px; padding: 40px 64px 120px; }
  .contact-info { font-size: 16px; }
}

/* ---------- Enquiry form ---------- */
.enquiry-form { display: flex; flex-direction: column; gap: 18px; }
.enquiry-field label {
  font-family: var(--font-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 6px;
}
.enquiry-field input, .enquiry-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: transparent;
  border: 1px solid var(--border-strong); border-radius: var(--radius-btn); padding: 13px 14px;
  width: 100%; box-sizing: border-box; outline: none;
}
.enquiry-field textarea { min-height: 110px; resize: vertical; }
.enquiry-form .btn { align-self: flex-start; }
.enquiry-success { padding: 32px 0; text-align: center; }
.enquiry-success h3 { font-family: var(--font-display); font-size: 28px; color: var(--ink); margin: 0 0 8px; }
.enquiry-success p { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); margin: 0; }
.enquiry-tile-tag {
  font-family: var(--font-body); font-size: 13px; color: var(--ink); background: var(--stone);
  padding: 10px 14px; display: flex; gap: 8px; align-items: center;
}
.enquiry-tile-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-body { padding: 36px 20px 64px; box-sizing: border-box; }
.legal-body h1 { font-size: 32px; line-height: 1.15; }
.legal-body .updated { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.legal-sections { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; font-size: 15px; line-height: 1.7; }
.legal-sections h2 { font-size: 16px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; }
.legal-sections p { margin: 0; }

@media (min-width: 1200px) {
  .legal-body { padding: 80px 64px 96px; max-width: 760px; margin: 0 auto; }
  .legal-body h1 { font-size: 44px; }
  .legal-sections { gap: 32px; margin-top: 40px; font-size: 16px; line-height: 1.75; }
  .legal-sections h2 { font-size: 19px; margin-bottom: 10px; }
}

/* ---------- Thank you / 404 (centered utility pages) ---------- */
.center-page { min-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.center-page-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px; box-sizing: border-box;
}
.center-page-body img.mark { height: 32px; margin-bottom: 28px; }
.center-page-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 500; }
.center-page-body h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.15; margin: 14px 0 0; }
.center-page-body p { margin: 14px 0 28px; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 48ch; }

@media (min-width: 1200px) {
  .center-page-body img.mark { height: 40px; margin-bottom: 32px; }
  .center-page-body h1 { font-size: 48px; }
  .center-page-body p { font-size: 17px; margin-bottom: 32px; }
}

.error-mark { position: relative; width: 120px; height: 80px; margin-bottom: 32px; }
.error-mark span { position: absolute; box-sizing: border-box; }
@media (min-width: 1200px) {
  .error-mark { width: 180px; height: 120px; margin-bottom: 40px; }
}

/* ---------- Desktop-only mark icon (replaces hamburger on some detail headers) ---------- */
.mark-icon-desktop { display: none; }
@media (min-width: 1200px) {
  .mark-icon-desktop { display: block; }
}

/* ---------- Launching-soon page ---------- */
/* Height accounts for the brand strip main.js appends after .center-page,
   so the whole page settles into exactly one viewport. */
.soon-page { min-height: calc(100vh - 84px); }
.soon-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  box-sizing: border-box;
}
.soon-logo { height: 40px; width: auto; margin-bottom: 34px; }
.soon-eyebrow { color: var(--red); }
.soon-body h1 { font-size: 42px; margin: 14px 0 0; }
.soon-lede {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 44ch;
}

.soon-countdown { display: flex; gap: 10px; margin-top: 38px; }
.soon-unit {
  min-width: 68px;
  padding: 15px 10px;
  background: var(--navy);
  color: var(--ivory);
  box-sizing: border-box;
}
.soon-value {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.soon-label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, .6);
}

/* Post-launch state: the countdown block becomes the way in. */
.soon-countdown.is-launched { flex-direction: column; align-items: center; gap: 20px; }
.soon-launched-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

.soon-note { margin: 26px 0 0; font-size: 14px; color: var(--text-muted); max-width: 42ch; }
.soon-body .btn { margin-top: 26px; }
.soon-body.is-launched .soon-pre,
.soon-body.is-launched .soon-lede { display: none; }

/* .btn is inline-block; the WhatsApp CTA carries a glyph, so it needs
   flex alignment without changing buttons elsewhere on the site. */
.soon-whatsapp { display: inline-flex; align-items: center; gap: 9px; }
.soon-whatsapp svg { flex: 0 0 auto; }

@media (min-width: 768px) {
  .soon-page { min-height: calc(100vh - 100px); }
  .soon-logo { height: 48px; margin-bottom: 40px; }
  .soon-body h1 { font-size: 60px; }
  .soon-lede { font-size: 17px; }
  .soon-countdown { gap: 14px; margin-top: 44px; }
  .soon-unit { min-width: 92px; padding: 20px 14px; }
  .soon-value { font-size: 40px; }
  .soon-label { font-size: 10.5px; }
  .soon-launched-line { font-size: 28px; }
}

@media (min-width: 1200px) {
  .soon-logo { height: 56px; }
  .soon-body h1 { font-size: 76px; }
  .soon-countdown { gap: 16px; }
  .soon-unit { min-width: 110px; padding: 24px 16px; }
  .soon-value { font-size: 50px; }
}

/* ---------- Brand pattern strip (after the footer, every page) ---------- */
.brand-strip {
  width: 100%;
  height: 84px;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
.brand-strip-pattern {
  width: 100%;
  height: 60px;
  background: url("../images/tile-strip.svg") repeat-x center / auto 100%;
}
@media (min-width: 768px) {
  .brand-strip { height: 100px; }
  .brand-strip-pattern { height: 72px; }
}

/* ---------- Scroll-triggered reveal (restrained fade + rise) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav back-square: entrance peek-in + hover peek-out/in ---------- */
.nav-float-wrap .nav-back-square {
  animation: nav-back-peek-in .5s var(--ease) .15s both;
  overflow: hidden;
}
.nav-back-arrow { display: inline-block; transition: transform .3s var(--ease); }
.nav-back-square:hover .nav-back-arrow,
.nav-back-square:focus-visible .nav-back-arrow {
  animation: nav-back-peek-hover .6s var(--ease);
}

@keyframes nav-back-peek-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes nav-back-peek-hover {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(-4px); }
  70%  { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-float-wrap .nav-back-square { animation: none; }
  .nav-back-square:hover .nav-back-arrow,
  .nav-back-square:focus-visible .nav-back-arrow { animation: none; }
}

/* ---------- Page load / navigation transition (brand mark) ---------- */
html.grham-loading body { visibility: hidden; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.page-transition.is-visible { opacity: 1; pointer-events: all; }
.page-transition-mark {
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.page-transition.is-visible .page-transition-mark { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .page-transition-mark { transition: none; }
}
