/* ==========================================================================
   Comtech Solutions, Inc. (CSI)
   Precision-instrument design system. Navy field, signal amber, one accent.
   Brand tokens carried over from v1 and extended downward for depth.
   ========================================================================== */

:root {
  /* Field (dark) */
  --abyss:      #04101f;
  --navy:       #0b2545;
  --steel:      #13315c;
  --slate:      #134074;
  --sky:        #8da9c4;

  /* Paper (light) */
  --mist:       #eef4fa;
  --paper:      #ffffff;
  --ink:        #16202e;
  --ink-soft:   #4a5a6e;
  --line:       #dbe4ee;

  /* Single locked accent */
  --amber:      #f4a300;
  --amber-deep: #c97f00;

  /* Shape: one radius scale, used everywhere */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(4,16,31,.06);
  --shadow-md: 0 12px 32px rgba(4,16,31,.10);
  --shadow-lg: 0 32px 70px rgba(4,16,31,.22);

  --header-h: 96px;
  --maxw: 1240px;
  --gut:  clamp(20px, 4vw, 40px);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--slate); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--amber-deep); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--navy); padding: 12px 20px;
  font-family: var(--font-head); font-weight: 600; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* Numerals: tabular everywhere a figure is shown. This is a timing company. */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ==========================================================================
   LABEL  (replaces the tracked-out all-caps eyebrow; used twice on the page)
   ========================================================================== */
.label {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head);
  font-size: 14px; font-weight: 500; letter-spacing: .005em;
  color: var(--amber-deep);
  margin: 0 0 14px;
}
.label::before {
  content: ""; width: 22px; height: 1.5px; background: var(--amber); flex: none;
}
.label.on-field { color: var(--amber); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* amber on navy text: 8.4:1 */
.btn-primary { background: var(--amber); color: #14243a; }
.btn-primary:hover { background: #ffb520; color: #14243a; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--mist); }

.btn-ghost.on-field { color: #fff; border-color: rgba(255,255,255,.34); }
.btn-ghost.on-field:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.09); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.90);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: #fff; }
}

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 22px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 42px; height: 42px; flex: none; object-fit: contain; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--navy); letter-spacing: -.025em; line-height: 1.2;
}
.brand-name small {
  display: block; font-family: var(--font-body);
  font-size: 11px; font-weight: 400; color: var(--ink-soft); letter-spacing: .02em;
}

.nav-links { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--ink);
  padding: 8px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-links .nav-contact { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO  —  the instrument field
   One bold moment on the page. Everything else stays quiet.
   ========================================================================== */
.field {
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 72% 12%, #1b4a80 0%, transparent 58%),
    linear-gradient(168deg, #071c34 0%, var(--navy) 44%, #061729 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Concentric instrument dial: 60 minor ticks, 12 major ticks, one sweep. */
.dial {
  position: absolute;
  top: 50%; left: 74%;
  width: clamp(640px, 66vw, 1020px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.dial > * { position: absolute; inset: 0; border-radius: 50%; }

.dial-ring { border: 1px solid rgba(158,192,224,.26); }
.dial-ring.r2 { inset: 9%;  border-color: rgba(158,192,224,.17); }
.dial-ring.r3 { inset: 24%; border-color: rgba(158,192,224,.13); }
.dial-ring.r4 { inset: 40%; border-color: rgba(244,163,0,.30); }
.dial-ring.r4::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,163,0,.10), transparent 68%);
}

/* 60 second ticks */
.dial-ticks {
  background: repeating-conic-gradient(from 0deg,
    rgba(196,218,242,.50) 0deg .26deg, transparent .26deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 47.2%, #000 47.2% 50%, transparent 50%);
          mask: radial-gradient(circle, transparent 0 47.2%, #000 47.2% 50%, transparent 50%);
}
/* 12 major ticks */
.dial-ticks.major {
  inset: 2.5%;
  background: repeating-conic-gradient(from 0deg,
    rgba(255,184,40,.72) 0deg .55deg, transparent .55deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 44% 50%, transparent 50%);
          mask: radial-gradient(circle, transparent 0 44%, #000 44% 50%, transparent 50%);
}

/* The sweep. 60s linear, one transform, GPU only. */
.dial-sweep {
  inset: 4%;
  background: conic-gradient(from 0deg,
    rgba(255,193,64,.16) 0deg, rgba(244,163,0,.09) 8deg, rgba(244,163,0,.03) 22deg,
    rgba(244,163,0,0) 46deg, rgba(244,163,0,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 18% 50%, transparent 50%);
          mask: radial-gradient(circle, transparent 0 18%, #000 18% 50%, transparent 50%);
  will-change: transform;
  animation: sweep 60s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* Scrim: guarantees the copy column always sits on a clean field, whatever
   the dial is doing behind it. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(98deg,
    #071c34 0%, rgba(8,28,52,.95) 26%, rgba(10,34,62,.62) 46%, rgba(11,37,69,0) 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 8vw, 92px) var(--gut) clamp(56px, 6vw, 76px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.05vw, 2.7rem);
  letter-spacing: -.028em;
  margin: 0 0 20px;
  max-width: 30ch;
}
.hero .lead {
  font-size: clamp(1.03rem, 1.25vw, 1.17rem);
  color: #c4d4e6;
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1f3a;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.09);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Signal strip: the four figures, welded to the hero, not a separate band ---- */
.signal {
  position: relative;
  border-top: 1px solid rgba(141,169,196,.16);
  background-image: linear-gradient(180deg, #061729 0%, #05162a 100%);
}
.signal .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: 26px; padding-bottom: 28px;
}
.signal-item { display: flex; flex-direction: column; gap: 2px; }
.signal-item .signal-fig {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  color: var(--amber); line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: 4px;
}
.signal-item b { color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.signal-item .note { color: #93aac4; font-size: 13px; line-height: 1.4; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.tint { background: var(--mist); }

.section-head { max-width: 66ch; margin-bottom: clamp(36px, 4vw, 54px); }
.section-head h2 { font-size: clamp(1.7rem, 2.85vw, 2.35rem); margin: 0 0 14px; max-width: 24ch; }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }

/* ==========================================================================
   SOLUTIONS BENTO  —  six items, six cells, alternating rhythm
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.tile:hover { border-color: #b9cbe0; box-shadow: var(--shadow-md); }
.tile.wide { grid-column: span 2; }

.tile-media {
  background: linear-gradient(160deg, #f6f9fc, #e9f0f8);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 22px;
  min-height: 170px;
}
.tile.wide .tile-media { min-height: 210px; }
.tile-media img {
  max-height: 150px; width: auto; max-width: 78%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.tile.wide .tile-media img { max-height: 190px; }
.tile:hover .tile-media img { transform: scale(1.035); }

.tile-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.tile-body h3 { font-size: 1.22rem; }
.tile.wide .tile-body h3 { font-size: 1.34rem; }
.tile-body p { color: var(--ink-soft); font-size: 15.2px; flex: 1; }

.tile-link {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--amber-deep);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(201,127,0,.3);
  transition: border-color .2s var(--ease);
}
.tile:hover .tile-link { border-bottom-color: var(--amber-deep); }

/* Whole tile clickable without nesting interactive elements */
.tile-link::before { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   HERITAGE  —  full-bleed media breaking the container on one side
   ========================================================================== */
.bleed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.bleed-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  overflow: hidden;
  margin-left: calc(-1 * max(var(--gut), (100vw - var(--maxw)) / 2 + var(--gut)));
  box-shadow: var(--shadow-md);
}
.bleed-media img { width: 100%; height: 100%; object-fit: cover; }
.bleed-body { padding: 8px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bleed-body h2 { font-size: clamp(1.65rem, 2.9vw, 2.25rem); }
.bleed-body p { color: var(--ink-soft); max-width: 54ch; }
.bleed-body .btn { margin-top: 6px; }

/* ==========================================================================
   SERVICES  —  type and rule only. No decorative icons.
   ========================================================================== */
.svc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.svc-item {
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
.svc-item h3 { font-size: 1.24rem; }
.svc-item p { color: var(--ink-soft); font-size: 15.5px; max-width: 48ch; }

/* ==========================================================================
   PROJECT MOSAIC
   ========================================================================== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(120px, 15.5vw, 210px);
  gap: 12px;
}
.mosaic a {
  display: block; overflow: hidden;
  border-radius: var(--r-md);
  background: #dce6f1;
  height: 100%;
}
.mosaic a.tall { grid-row: span 2; }
.mosaic a.wide { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }

.section-foot { display: flex; justify-content: center; margin-top: 34px; }

/* ==========================================================================
   PARTNERS  —  real logos
   ========================================================================== */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.partner:hover { border-color: #b9cbe0; box-shadow: var(--shadow-sm); }
.partner-mark { height: 44px; display: flex; align-items: center; }
.partner-mark img { max-height: 40px; max-width: 150px; width: auto; object-fit: contain; }
.partner-mark .wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.32rem;
  color: var(--navy); letter-spacing: -.025em;
}
.partner h3 { font-size: 1.05rem; }
.partner p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.partner.more {
  background: var(--navy);
  border-color: var(--navy);
  display: grid; place-items: center; text-align: center;
}
.partner.more a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #fff;
  border-bottom: 1.5px solid rgba(244,163,0,.55); padding-bottom: 3px;
}
.partner.more a:hover { border-bottom-color: var(--amber); color: var(--amber); }

/* ==========================================================================
   SECTOR TAGS
   ========================================================================== */
.sectors {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px;
}
.sectors span {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--slate); background: var(--paper);
}

/* ==========================================================================
   CLOSING CTA  —  the field returns
   ========================================================================== */
.close-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(ellipse 62% 105% at 94% 2%, rgba(120,176,236,.24) 0%, rgba(120,176,236,0) 55%),
    linear-gradient(118deg, #061a31 0%, #0d2c52 60%, #143f70 100%);
}
.close-band::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--amber), rgba(244,163,0,0));
}
.close-band h2 { color: #fff; font-size: clamp(1.6rem, 2.9vw, 2.3rem); margin: 0 0 14px; max-width: 18ch; }
.close-band p { color: #c4d4e6; font-size: 1.08rem; max-width: 56ch; margin: 0 0 28px; }
.close-band .hero-actions { position: relative; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--abyss); color: #9db2c9; padding: clamp(52px, 6vw, 72px) 0 26px; font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px); margin-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8da9c4; max-width: 34ch; margin: 0 0 20px; font-size: 14.5px; }

.footer-col h4 {
  color: #fff; font-family: var(--font-head); font-size: 14.5px; font-weight: 600;
  margin: 0 0 15px; letter-spacing: -.005em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col li { color: #9db2c9; font-size: 14.5px; }
.footer-col a:hover { color: var(--amber); }

.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #9db2c9;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--amber); border-color: var(--amber); color: #14243a; }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  font-size: 13.5px; color: #728aa3;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .clients { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1260px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px var(--gut) 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a::after { display: none; }
  .nav-links.open .nav-contact { display: block; }
  .nav-links.open .nav-contact a { color: var(--amber-deep); font-weight: 600; border-bottom: 0; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px var(--gut) 60px; }
  .hero h1 { max-width: 20ch; }
  .hero-visual { max-width: 620px; }
  .dial { left: 50%; top: 38%; opacity: .5; }

  .bleed { grid-template-columns: 1fr; }
  .bleed-media {
    margin-left: calc(-1 * var(--gut));
    margin-right: calc(-1 * var(--gut));
    border-radius: 0;
    aspect-ratio: 16 / 10;
  }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }

  .svc { grid-template-columns: 1fr; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; }
  .mosaic a.tall { grid-row: span 1; }
  .mosaic a.wide { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px var(--gut) 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-contact { display: block; }
  .nav-links.open .nav-contact a { color: var(--amber-deep); font-weight: 600; border-bottom: 0; }
  .nav-links.open a::after { display: none; }
}

@media (max-width: 620px) {
  :root { --header-h: 74px; }
  body { font-size: 16px; }
  .section { padding: 56px 0; }

  .signal .container { grid-template-columns: 1fr 1fr; gap: 24px 18px; }

  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .tile { min-height: 0; }
  .tile-media, .tile.wide .tile-media { min-height: 150px; }
  .tile-media img, .tile.wide .tile-media img { max-height: 130px; }

  .partners { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .footer-grid { grid-template-columns: 1fr; }

  .brand-name small { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn { padding: 15px 26px; }

  .dial { width: 150vw; opacity: .38; }
}

@media (max-width: 400px) {
  .clients { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION  —  everything collapses to static
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dial-sweep { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .nav-toggle, .close-band, .social { display: none; }
  .field { background: #fff; color: #000; }
  .hero h1, .signal-fig { color: #000; }
}

/* ==========================================================================
   BRAND MARK
   ========================================================================== */
.brand-mark { height: 62px; width: auto; flex: none; display: block; }
.footer-brand .brand-mark { height: 58px; }
.brand-text {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--navy); letter-spacing: -.02em; line-height: 1.3;
  padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--line);
}
.brand-text small {
  display: block; font-family: var(--font-body);
  font-size: 11.8px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0;
  margin-top: 1px;
}
.footer-brand .brand-text { color: #fff; border-left-color: rgba(255,255,255,.18); }

/* ==========================================================================
   INTERIOR PAGE HERO
   ========================================================================== */
.page-hero { padding: clamp(48px, 6vw, 78px) 0 clamp(44px, 5vw, 66px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(98deg, #071c34 0%, rgba(8,28,52,.94) 30%, rgba(11,37,69,.45) 58%, rgba(11,37,69,0) 78%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 3.3vw, 2.85rem); margin: 0 0 14px; max-width: 22ch; }
.page-hero p { color: #c4d4e6; font-size: clamp(1rem, 1.2vw, 1.13rem); max-width: 58ch; }
.page-hero .dial { top: 46%; left: 80%; width: clamp(520px, 56vw, 880px); }

.breadcrumb { font-family: var(--font-head); font-size: 13.5px; color: #8da9c4; margin-bottom: 18px; }
.breadcrumb a { color: #8da9c4; }
.breadcrumb a:hover { color: var(--amber); }

/* ==========================================================================
   SPEC ROWS  —  option with a diagram
   ========================================================================== */
.specs { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.spec {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.spec:hover { border-color: #b9cbe0; box-shadow: var(--shadow-md); }
.spec-media {
  background: linear-gradient(160deg, #f6f9fc, #e9f0f8);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 16px;
}
.spec-media img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.spec-media.ink { background: #0b1b2e; }
.spec-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.spec-body h3 { font-size: 1.12rem; }
.spec-body p { color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   FEATURE PANEL  —  copy beside a wide diagram or photo
   ========================================================================== */
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.panel.flip .panel-media { order: 2; }
.panel-media {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #f6f9fc, #e9f0f8); padding: 22px;
  display: grid; place-items: center;
}
.panel-media.plain { padding: 0; background: none; border: 0; box-shadow: var(--shadow-md); }
.panel-media img { max-width: 100%; height: auto; }
.panel-body { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.panel-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.panel-body p { color: var(--ink-soft); max-width: 56ch; }
.panel-body .btn { margin-top: 6px; }

/* ==========================================================================
   PARTNER PANELS
   ========================================================================== */
.p-list { display: flex; flex-direction: column; gap: 16px; }
.p-row {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 3vw, 44px);
  align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px clamp(24px, 3vw, 34px);
}
.p-row-mark { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.p-row-mark img { max-height: 46px; max-width: 190px; width: auto; object-fit: contain; }
.p-row-mark .wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--navy); letter-spacing: -.025em; }
.p-row-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.p-row-body p { color: var(--ink-soft); font-size: 15.5px; }
.p-row-shot { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.p-row-shot img { width: 100%; height: auto; display: block; }
.p-row.with-shot { grid-template-columns: 260px 1fr 300px; }

/* ==========================================================================
   PRINCIPLES / STATEMENT CARDS
   ========================================================================== */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 9px;
}
.principle h3 { font-size: 1.12rem; }
.principle p { color: var(--ink-soft); font-size: 14.5px; }

.statements { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.statement {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.statement h3 { font-size: 1.05rem; color: var(--amber-deep); font-weight: 600; }
.statement p { color: var(--ink-soft); }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.figure {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  background: var(--paper); display: flex; flex-direction: column; gap: 8px;
}
.figure b {
  font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; line-height: 1;
  color: var(--navy); letter-spacing: -.035em;
}
.figure p { color: var(--ink-soft); font-size: 14.5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); }
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: var(--font-head); font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--navy);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink); background: var(--paper);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(19,64,116,.13);
}
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

.info-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block:last-of-type { border-bottom: 0; }
.info-block h4 { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.info-block p { color: var(--ink-soft); font-size: 15px; }
.info-block a { color: var(--slate); }
.info-block a:hover { color: var(--amber-deep); }

.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 22px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ==========================================================================
   CLIENT LOGO WALL
   ========================================================================== */
.clients {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  list-style: none; margin: 0; padding: 0;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.clients li { background: var(--paper); display: grid; place-items: center; padding: 18px 14px; }
.clients img {
  width: 100%; max-width: 96px; aspect-ratio: 1; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .28s var(--ease), opacity .28s var(--ease);
}
.clients li:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   RESPONSIVE  (interior components)
   ========================================================================== */
@media (max-width: 1080px) {
  .clients { grid-template-columns: repeat(5, 1fr); }
  .p-row.with-shot { grid-template-columns: 200px 1fr; }
  .p-row.with-shot .p-row-shot { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; }
  .panel.flip .panel-media { order: 0; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .figures { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .p-row, .p-row.with-shot { grid-template-columns: 1fr; gap: 20px; }
  .page-hero .dial { left: 62%; opacity: .55; }
}
@media (max-width: 620px) {
  .specs { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .statements { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .brand-text small { display: none; }
  .brand-mark { height: 46px; }
  .brand-text { font-size: 14px; padding-left: 10px; }
}
@media (max-width: 400px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Partner invitation ---- */
.invite {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
}
.invite h3 { font-size: 1.2rem; margin-bottom: 8px; }
.invite p { color: var(--ink-soft); font-size: 15.5px; max-width: 58ch; }
.invite .btn { flex: none; }

/* three-up variant of the services list */
.svc.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .svc.three { grid-template-columns: 1fr; } }

/* ---- Even bento: every cell the same size, rows matched to each other ---- */
.bento.even { grid-auto-rows: 1fr; }
.bento.even .tile { grid-column: span 1; }
.bento.even .tile-media {
  min-height: 0;
  height: clamp(190px, 18vw, 260px);
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.bento.even .tile-media img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center center;
}
@media (max-width: 960px) { .bento.even .tile-media { height: 220px; } }
@media (max-width: 620px) {
  .bento.even .tile-media { height: 190px; }
}

/* ==========================================================================
   HEADER CLOCK  —  live Manila time in a Sapling 406 display
   ========================================================================== */
.hdr-clock {
  position: relative; flex: none; display: none;
  height: 42px; width: 111px;          /* frame is 512x194, a 2.64 ratio */
  order: 0;
  line-height: 0;
}
.hdr-clock > img {
  width: 100%; height: 100%; display: block;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(4,16,31,.18);
}
.clk-digits {
  position: absolute;
  left: 8.98%; top: 24.03%; width: 82.23%; height: 50.65%;
  overflow: visible;
}
.clk-digits polygon, .clk-digits circle {
  fill: #f50407;
  opacity: 0;
  transition: opacity .09s linear;
}
.clk-digits .on {
  opacity: 1;
  filter: drop-shadow(0 0 1.5px rgba(245,4,7,.6));
}
@media (prefers-reduced-motion: reduce) {
  .clk-digits polygon, .clk-digits circle { transition: none; }
}
/* The clock stays on at every width. On narrow screens it sits immediately
   left of the hamburger, shrinking as space tightens. */
.hdr-clock { display: block; }
@media (max-width: 1260px) { .hdr-clock { height: 38px; width: 100px; margin-left: auto; } }
@media (max-width: 620px)  { .hdr-clock { height: 34px; width: 90px; } }
@media (max-width: 470px) {
  .brand-text { display: none; }          /* the mark carries the brand here */
  .hdr-clock { height: 32px; width: 85px; }
}

/* very narrow phones: the brand lockup needs to give way */
@media (max-width: 430px) {
  .nav { gap: 12px; }
  .brand-mark { height: 40px; }
  .brand-text { font-size: 13.5px; padding-left: 10px; line-height: 1.2; }
}
@media (max-width: 340px) {
  .brand-text { font-size: 12.5px; padding-left: 8px; }
  .brand-mark { height: 34px; }
}
