/* ==========================================================================
   Track and Tech (TNT Consults)
   Brand system — navy / cornflower blue / pale blue, with the T-mark motif.
   Palette sampled from the TNT brand mood board.
   ========================================================================== */

:root {
  /* Brand core */
  --navy:        #14202E;
  --navy-deep:   #0D1721;
  --navy-raised: #1C2C3E;
  --navy-line:   #2A3D53;

  --blue:        #5E8FCA;
  --blue-lift:   #7FA9D9;
  --blue-ink:    #2F5D93;  /* blue that passes contrast on light surfaces */

  --pale:        #E1EAF9;
  --pale-soft:   #F1F6FC;
  --white:       #FFFFFF;
  --signal:      #ED2027;  /* brand red — hairline markers */
  --red:         #DE1B22;  /* button fill: brand red, deepened to clear AA on white */
  --red-deep:    #C4161C;

  /* Text */
  --ink:         #14202E;
  --ink-soft:    #46586E;
  --on-dark:     #E1EAF9;
  --on-dark-soft:#9DB2CC;

  /* Type */
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body:    "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --sect: clamp(72px, 9vw, 132px);

  /* The 45deg cut lifted from the logo's chamfer */
  --chamf: 20px;
  --chamf-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 0.4vw + 15px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--navy); }

::selection { background: var(--blue); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap.narrow { max-width: 860px; }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 32, 46, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--white);
  flex-shrink: 0;
}
.brand:hover { color: var(--white); }
.brand-mark { width: 38px; height: auto; }

.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-word span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--on-dark);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------- services dropdown -- */
/* Mobile first: inside the stacked panel the submenu is a plain indented list
   that the trigger shows and hides. The desktop rules below turn it into a
   floating panel. Selectors are prefixed with .main-nav so they outrank the
   generic .main-nav ul / .main-nav a rules above. */

.nav-item-has-menu { position: relative; }

.nav-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--white); }

.nav-caret {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.25s var(--ease);
}
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.main-nav .nav-submenu {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-trigger[aria-expanded="true"] + .nav-submenu { display: block; }

@media (min-width: 1041px) {
  .nav-trigger { width: auto; }
  .nav-caret { margin-left: 0; }

  /* same growing underline the sibling links use */
  .nav-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s var(--ease);
  }
  .nav-item-has-menu:hover .nav-trigger::after,
  .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }

  /* keeps the pointer inside the item while it crosses the gap to the panel */
  .nav-item-has-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }

  .main-nav .nav-submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: -22px;
    z-index: 30;
    display: block;
    min-width: 272px;
    padding: 8px 0;
    background: var(--navy-raised);
    border: 1px solid var(--navy-line);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf-sm)), calc(100% - var(--chamf-sm)) 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-item-has-menu:hover .nav-submenu,
  .nav-trigger[aria-expanded="true"] + .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .nav-submenu a {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
  }
  .main-nav .nav-submenu a::after { display: none; }
  .main-nav .nav-submenu a:hover { background: var(--navy); color: var(--white); }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.header-phone {
  color: var(--on-dark-soft);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.header-phone:hover { color: var(--blue); }

/* burger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--navy-line);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--on-dark);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}
.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); }

/* ------------------------------------------------------------- buttons -- */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.012em;
  text-align: center;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf-sm)), calc(100% - var(--chamf-sm)) 100%, 0 100%);
  transition: background-color 0.22s var(--ease), transform 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { --btn-bg: var(--blue-lift); color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--navy); }

.btn-lg { padding: 17px 34px; font-size: 15.5px; }

/* Solid call-to-action: "Get in touch", "Talk to TNT", "Send message". */
.btn-primary { --btn-bg: var(--red); --btn-fg: var(--white); }
.btn-primary:hover { --btn-bg: var(--red-deep); color: var(--white); }
.btn-primary:focus-visible { box-shadow: inset 0 0 0 3px var(--white); outline: 2px solid var(--navy); outline-offset: 0; }

/* Outlined variant. The 2px rule is painted as a clipped backdrop rather than
   a border, so the 45deg cut stays consistent with the solid buttons. */
.btn-ghost {
  position: relative;
  isolation: isolate;
  --btn-bg: var(--navy-line);
  color: var(--on-dark);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf-sm)), calc(100% - var(--chamf-sm)) 100%, 0 100%);
  transition: background-color 0.22s var(--ease);
}
.btn-ghost:hover { --btn-bg: var(--blue); color: var(--white); }
.btn-ghost:focus-visible { box-shadow: inset 0 0 0 3px var(--blue); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(72px, 11vw, 150px) clamp(0px, 2vw, 24px);
  overflow: hidden;
}

/* the T-mark motif, tiled — straight from the brand pattern sheet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/tnt-pattern.svg");
  background-size: 260px;
  opacity: 0.018;
}

/* a wide blue wedge on the same 47deg axis as the logo's shear */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -14%;
  width: 58%;
  height: 150%;
  background: linear-gradient(200deg, rgba(94, 143, 202, 0.20), rgba(94, 143, 202, 0) 62%);
  transform: skewX(-13deg);
  pointer-events: none;
}

/* the skyline sits behind everything and is pulled to the right, then dissolved
   into the navy from the left so the headline never lands on picture detail */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/photos/hero-skyline.webp") center right / cover no-repeat;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, rgba(0, 0, 0, 0.35) 38%, #000 78%);
          mask-image: linear-gradient(100deg, transparent 6%, rgba(0, 0, 0, 0.35) 38%, #000 78%);
}
/* a second scrim over the photo: keeps the bottom edge welded to the next
   section and holds contrast under the fact strip */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--navy) 2%, rgba(20, 32, 46, 0.15) 46%),
    linear-gradient(to right, rgba(20, 32, 46, 0.86), rgba(20, 32, 46, 0.1) 70%);
}

/* stacked hero: the diagonal mask leaves a hard seam in a narrow frame, so the
   photo fades top-to-bottom instead */
@media (max-width: 760px) {
  .hero-photo {
    opacity: 0.3;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.45) 62%, transparent);
            mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.45) 62%, transparent);
  }
}

.hero-inner { position: relative; max-width: 1000px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--signal);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue);
}

.hero-body {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  color: var(--on-dark-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: clamp(52px, 7vw, 84px) 0 0;
  background: var(--navy-line);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
}
.fact-strip > div {
  background: var(--navy);
  padding: 22px 24px 24px;
}
.fact-strip dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.fact-strip dd {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

/* ------------------------------------------------------------ sections -- */

.section { padding-block: var(--sect); }
.section-tint { background: var(--pale-soft); }

.section-dark {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/tnt-pattern.svg");
  background-size: 260px;
  opacity: 0.028;
}

/* --------------------------------------------- decorative photo layers -- */
/* A photograph dropped in at single-digit opacity behind a section: it reads as
   depth and texture rather than as a picture, and never competes with the copy.
   .section-dark already owns ::before for the T-pattern, so these use ::after. */

.has-layer { position: relative; isolation: isolate; overflow: hidden; }
.has-layer > .wrap { position: relative; z-index: 1; }
.has-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}

/* What We Do — marble lobby, a faint architectural wash on the tinted band */
.layer-architecture::after {
  background-image: url("assets/photos/layer-architecture.webp");
  background-size: cover;
  background-position: center 34%;
  opacity: 0.13;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
          mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

/* How We Deliver — network filament, brightening the dark band from the right */
.layer-network::after {
  background-image: url("assets/photos/layer-network.webp");
  background-size: 92% auto;
  background-position: right -6% top 30%;
  opacity: 0.34;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(66% 82% at 76% 66%, #000, transparent 74%);
          mask-image: radial-gradient(66% 82% at 76% 66%, #000, transparent 74%);
}

/* The filaments are bright enough to cut the contrast of the stage copy, so the
   content wrapper lays a navy scrim back over the area the copy occupies. It
   sits inside .wrap's own stacking context, above the layer but below the text. */
.layer-network > .wrap::before {
  content: "";
  position: absolute;
  inset: -8% -10% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 70% at 60% 84%, rgba(20, 32, 46, 0.88), rgba(20, 32, 46, 0) 74%);
}

/* Contact — desaturated auditorium, a soft corner shadow behind the form */
.layer-conference::after {
  background-image: url("assets/photos/layer-conference.webp");
  background-size: 78% auto;
  background-position: right bottom -4%;
  opacity: 0.2;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(78% 104% at 104% 104%, #000 12%, transparent 68%);
          mask-image: radial-gradient(78% 104% at 104% 104%, #000 12%, transparent 68%);
}

/* -------------------------------------------------------- photo framing -- */
/* One treatment for every photograph on the page: the logo chamfer on the
   bottom-right, a hairline, and a soft lift on hover. */

.who-media,
.section-media,
.why-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf)), calc(100% - var(--chamf)) 100%, 0 100%);
  box-shadow: 0 24px 48px rgba(20, 32, 46, 0.16);
}
.who-media img,
.section-media img,
.why-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
/* a thin navy veil pulls every shot onto the brand's cool axis */
.who-media::after,
.section-media::after,
.why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(20, 32, 46, 0.34), rgba(94, 143, 202, 0.12) 55%, rgba(20, 32, 46, 0.3));
  mix-blend-mode: multiply;
}
.who-media:hover img,
.section-media:hover img,
.why-media:hover img { transform: scale(1.04); }

.section-kicker {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--navy);
}
.section-kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.4em;   /* optical centre of the first line, not of the block */
  flex-shrink: 0;
  background: var(--blue);
  /* echo of the logo chamfer */
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}
.section-kicker-light { color: var(--white); }

.section-intro {
  max-width: 62ch;
  margin-bottom: clamp(38px, 5vw, 62px);
  font-size: clamp(1.02rem, 1.2vw, 1.16rem);
  color: var(--ink-soft);
}
.section-intro-light { color: var(--on-dark-soft); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.72;
  color: var(--ink-soft);
}

/* --------------------------------------------------------- who we are -- */

.who-wrap { display: grid; gap: clamp(34px, 5vw, 68px); align-items: center; }
.who-copy .lead { max-width: 62ch; }
.who-media { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .who-wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .who-media { aspect-ratio: 5 / 4; }
}

/* -------------------------------------------------------- what we do ---- */

.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  background: var(--white);
  border: 1px solid #D5E0EF;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf)), calc(100% - var(--chamf)) 100%, 0 100%);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); }

.pillar-number {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.pillar-card h3 {
  margin: 16px 0 12px;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--navy);
}
.pillar-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.pillar-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue-ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}
.pillar-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------- practice-area deep dives -- */

/* header row: kicker and intro on the left, the practice photograph on the
   right. Below 980px the photo drops under the text at a wider crop. */
.section-lede {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(38px, 5vw, 64px);
}
.section-head .section-intro { margin-bottom: 0; }
.section-media { aspect-ratio: 16 / 9; }

@media (min-width: 980px) {
  .section-lede { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .section-media { aspect-ratio: 3 / 2; }
}


.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card {
  padding: clamp(26px, 3vw, 34px);
  background: var(--pale-soft);
  border-left: 3px solid var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf)), calc(100% - var(--chamf)) 100%, 0 100%);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover { background: var(--pale); transform: translateY(-4px); }

/* the card fill and the tinted section fill are the same colour, so on a tinted
   section the cards flip to white to stay readable as cards */
.section-tint .service-card { background: var(--white); }
.section-tint .service-card:hover { background: var(--pale-soft); }

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  color: var(--navy);
}
.service-card p { font-size: 0.96rem; color: var(--ink-soft); }

.service-card-wide { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  /* sits alongside the fourth card so row two closes cleanly */
  .service-card-wide { grid-column: span 2; }
}

.service-note {
  margin-top: clamp(28px, 3.5vw, 42px);
  padding: 22px 26px 22px 24px;
  max-width: 92ch;
  background: var(--white);
  border-left: 3px solid var(--signal);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- process -- */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.process li {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--navy-line);
}
.process-step {
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--blue);
  overflow: hidden;
  text-indent: -999em;
}
.process h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--white);
}
.process p { font-size: 0.94rem; color: var(--on-dark-soft); }

/* stagger the steps into an ascending diagonal on wide screens: Discover sits
   lowest and each stage steps up, so the row climbs left to right */
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .process li:nth-child(1) { transform: translateY(72px); }
  .process li:nth-child(2) { transform: translateY(54px); }
  .process li:nth-child(3) { transform: translateY(36px); }
  .process li:nth-child(4) { transform: translateY(18px); }
  .process li:nth-child(5) { transform: none; }
  .process { margin-bottom: 72px; }
}

/* ----------------------------------------------------------------- why -- */

.why-wrap { display: grid; gap: clamp(34px, 5vw, 72px); align-items: center; }
.why-media { aspect-ratio: 4 / 3; }

@media (min-width: 940px) {
  .why-wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .why-media { aspect-ratio: 3 / 4; }
  /* the grid is already sharing the row with the photo, so it stays single
     column here and the two-up rule below is overridden */
  .why-wrap .why-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3vw, 38px); }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(26px, 3.4vw, 48px);
}
@media (min-width: 820px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 6vw, 90px); }
}
.why-item { padding-left: 22px; border-left: 2px solid var(--pale); }
.why-item h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  color: var(--navy);
}
.why-item p { font-size: 0.97rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- contact -- */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

/* the light-background mark, used as a quiet watermark to weight the column */
.contact-info::after {
  content: "";
  display: block;
  width: 124px;
  height: 99px;
  margin-top: clamp(32px, 4.5vw, 60px);
  background: url("assets/tnt-mark-navy.svg") no-repeat left center / contain;
  opacity: 0.13;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}
.contact-list li {
  display: grid;
  gap: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid #D5E0EF;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.contact-list a { font-weight: 600; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--white);
  border: 1px solid #D5E0EF;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamf)), calc(100% - var(--chamf)) 100%, 0 100%);
}

.form-row { display: grid; gap: 7px; }
.form-row label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--pale-soft);
  border: 2px solid #CBDAEC;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 118px; }
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: #A9C3E0; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
}
.contact-form .btn { justify-self: start; }

/* inline validation */
.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea { border-color: var(--signal); background: #FEF4F4; }

.field-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C4161C;
}

.form-note {
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-note.is-ok { color: #1C6B3F; }
.form-note.is-bad { color: #C4161C; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  padding-top: clamp(52px, 6vw, 78px);
  font-size: 0.93rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(38px, 4.5vw, 56px);
}

.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand .brand-mark { width: 32px; height: auto; flex-shrink: 0; }
.footer-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
}
.footer-tag { margin-top: 5px; max-width: 30ch; color: var(--on-dark-soft); }

.footer-nav { display: grid; gap: 11px; align-content: start; }
.footer-nav a {
  color: var(--on-dark-soft);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--blue); }

.footer-contact { display: grid; gap: 9px; align-content: start; }
.footer-contact a { color: var(--on-dark-soft); }
.footer-contact a:hover { color: var(--blue); }

.footer-bottom {
  padding-block: 22px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.85rem;
  color: #6E839C;
}

/* --------------------------------------------------------- reveal / mo -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero-inner > * { animation: rise 0.75s var(--ease) both; }
.hero-inner > .eyebrow      { animation-delay: 0.02s; }
.hero-inner > h1            { animation-delay: 0.09s; }
.hero-inner > .hero-sub     { animation-delay: 0.17s; }
.hero-inner > .hero-body    { animation-delay: 0.24s; }
.hero-inner > .hero-actions { animation-delay: 0.31s; }
.hero-inner > .fact-strip   { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  }
  .main-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 20px;
  }
  .main-nav.is-open a {
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--navy-line);
  }
  .main-nav.is-open a::after { display: none; }

  .main-nav.is-open .nav-trigger {
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--navy-line);
  }
  /* the submenu nests inside the stacked list, so strip the list padding it
     inherits from .main-nav.is-open ul and indent it under its trigger */
  .main-nav.is-open .nav-submenu {
    padding: 0 0 0 16px;
    border-left: 2px solid var(--navy-line);
    margin: 6px 0 10px;
  }
  .main-nav.is-open .nav-submenu a {
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--on-dark-soft);
    border-bottom: 0;
  }
  .main-nav.is-open .nav-submenu a:hover { color: var(--white); }
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --chamf: 14px; }
  .header-cta .btn { padding: 11px 18px; font-size: 13.5px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .header-cta { display: none; }
}

/* ------------------------------------------------------------ a11y prefs */

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

@media print {
  .site-header, .nav-toggle, .hero::before, .hero::after,
  .hero-photo, .has-layer::after { display: none; }
  body { color: #000; background: #fff; }
}
