/* INTEGER Engineering Company Limited — site styles
   Tokens follow the approved design (Revision 2). Navy is the logo's #134B84;
   amber #A65F12 is the single accent and passes AA with white text. */

:root {
  color-scheme: light;
  --navy: #134B84;
  --navy-deep: #0F3D6B;
  --ink: #0B2D50;
  --steel: #7E96B0;
  --pale: #BBCEDE;
  --surface: #EEF3F8;
  --line: #D8E2EC;
  --text: #16202B;
  --muted: #56687C;
  --faint: #5F7085;
  --amber: #A65F12;
  --amber-deep: #844C0E;
  --amber-bright: #E9A94A;
  --on-dark: #C6D6E5;
  --on-dark-muted: #A8C0D6;
  --error: #A3261B;
  --error-bg: #FBEDEB;
  --ok: #1C6B45;
  --ok-bg: #EAF5EF;
  --white: #FFFFFF;

  --font-display: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 60px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 8px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.018em;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 1.7vw, 22px); }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .menu-overlay :focus-visible { outline-color: var(--amber-bright); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber); font-weight: 500;
}
.on-dark .eyebrow { color: var(--amber-bright); }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-sm);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-deep); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.text-link {
  color: var(--navy); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 3px; align-self: flex-start;
}
.text-link:hover { color: var(--amber-deep); }
.on-dark .text-link { color: var(--white); }

/* ---------- utility bar & header ---------- */
.utility { background: var(--ink); color: #9FB6CC; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 38px; }
.utility-contact { display: flex; gap: 22px; align-items: center; }
.utility-contact .sep { color: #3F5C7D; }
.utility a { color: #9FB6CC; text-decoration: none; }
.utility a:hover { color: var(--white); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 84px; }
.brand img { height: 44px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.primary-nav a {
  display: inline-block; padding: 10px 12px; color: #2A3B4D; text-decoration: none;
  font-weight: 600; font-size: 15.5px; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }
.primary-nav .nav-cta a { background: var(--navy); color: var(--white); border-radius: var(--radius-sm); padding: 12px 22px; margin-left: 10px; border: 0; }
.primary-nav .nav-cta a:hover { background: var(--ink); color: var(--white); }
.primary-nav .nav-cta a[aria-current="page"] { background: var(--amber); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.menu-overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.menu-overlay .menu-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); border-bottom: 1px solid rgba(126,150,176,.3); }
.menu-overlay .menu-top img { height: 36px; width: auto; }
.menu-close { width: 48px; height: 48px; background: transparent; border: 0; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.menu-overlay ul { list-style: none; margin: 0; padding: 12px var(--gutter); }
.menu-overlay li a {
  display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid rgba(126,150,176,.22);
  color: var(--white); text-decoration: none; font: 600 22px/1.2 var(--font-display);
}
.menu-overlay li a[aria-current="page"] { color: var(--amber-bright); }
.menu-overlay .menu-foot { padding: 8px var(--gutter) 28px; display: flex; flex-direction: column; gap: 18px; }
.menu-overlay .menu-foot .mono { font-size: 11px; letter-spacing: .14em; color: var(--steel); }
.menu-overlay .menu-foot p { color: var(--on-dark-muted); font-size: 15px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .utility .address { display: none; }
  .utility .wrap { justify-content: center; }
}
@media (max-width: 560px) {
  .utility .email, .utility .sep { display: none; }
  .site-header .wrap { min-height: 70px; }
  .brand img { height: 36px; }
}

/* ---------- page heads ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(44px, 6vw, 70px) clamp(40px, 5vw, 60px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-hidden] { margin: 0 8px; }

.photo-head { position: relative; overflow: hidden; background: var(--ink); min-height: clamp(320px, 34vw, 440px); display: flex; }
.photo-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,32,56,.93) 0%, rgba(9,32,56,.76) 48%, rgba(9,32,56,.3) 100%); }
.photo-head .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 56px; }
.photo-head h1 { color: var(--white); }
.photo-head .lede, .photo-head .crumbs, .photo-head .crumbs a { color: var(--on-dark); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); min-height: clamp(540px, 46vw, 660px); display: flex; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(9,32,56,.95) 0%, rgba(9,32,56,.82) 44%, rgba(9,32,56,.2) 100%); }
/* the tapering sightline, taken from the logo's beam */
.hero .beam { position: absolute; z-index: 1; left: 0; top: 54%; width: min(62vw, 900px); height: 104px; transform: translateY(-50%);
  background: linear-gradient(95deg, rgba(126,150,176,.42), rgba(126,150,176,0)); clip-path: polygon(0 0, 100% 44%, 100% 56%, 0 100%); }
.hero .beam-line { position: absolute; z-index: 1; left: 0; top: 54%; width: min(43vw, 620px); border-top: 2px solid rgba(194,118,27,.9); }
.hero .wrap { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-block: 72px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.2vw, 66px); max-width: 15ch; }
.hero p { color: var(--on-dark); font-size: clamp(17px, 1.6vw, 20px); max-width: 38em; }
.hero .eyebrow { color: var(--amber-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(0deg, rgba(9,32,56,.96) 20%, rgba(9,32,56,.7) 70%, rgba(9,32,56,.45) 100%); }
  .hero .beam, .hero .beam-line { display: none; }
  .hero .wrap { justify-content: flex-end; padding-block: 40px 44px; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- credentials strip ---------- */
.credentials { background: var(--surface); border-bottom: 1px solid var(--line); }
.credentials ul { list-style: none; margin: 0 auto; padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 13.5px; font-weight: 600; color: #3A4D61; letter-spacing: .03em; }
.credentials li { display: flex; align-items: center; gap: 24px; }
.credentials li + li::before { content: "/"; color: var(--pale); }
@media (max-width: 900px) {
  .credentials ul { justify-content: flex-start; }
  .credentials li + li::before { display: none; }
  .credentials li { flex: 1 1 45%; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.grid-texture::before { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(126,150,176,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(126,150,176,.55) 1px, transparent 1px);
  background-size: 48px 48px; }
.section-dark > .wrap { position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 46px); }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.center { align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
.split-contact { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 860px) { .split, .split-wide, .split-contact { grid-template-columns: 1fr; } }

/* ---------- service tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--white); padding: 32px 30px 36px; display: flex; flex-direction: column; gap: 12px; }
.tile .num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile-wide { grid-column: 1 / -1; }
.tile-wide p { max-width: 70ch; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(126,150,176,.32); border: 1px solid rgba(126,150,176,.32); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.sector-grid div { background: var(--ink); padding: 26px; font: 600 20px/1.25 var(--font-display); color: var(--white); }
@media (max-width: 760px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sector-grid div { font-size: 17px; padding: 20px; } }

.sector-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector-row div { background: var(--white); padding: 24px 18px; border-top: 3px solid var(--navy); font: 700 16px/1.25 var(--font-display); color: var(--ink); }
@media (max-width: 960px) { .sector-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sector-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- project cards ---------- */
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.project-card:hover { border-color: var(--pale); box-shadow: 0 14px 34px rgba(11,45,80,.10); color: inherit; }
.project-card:hover h3 { color: var(--navy); }
.project-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .media img { transform: scale(1.03); }
.project-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.project-card p { color: var(--muted); font-size: 15.5px; }
.spec { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .card-grid, .card-grid.three { grid-template-columns: 1fr; } }

/* placeholder for projects still waiting on photographs */
.photo-pending { position: relative; width: 100%; height: 100%; min-height: 200px; background: var(--ink); display: flex; align-items: flex-end; padding: 20px 22px; overflow: hidden; }
.photo-pending::before { content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(126,150,176,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(126,150,176,.6) 1px, transparent 1px);
  background-size: 28px 28px; }
.photo-pending::after { content: ""; position: absolute; left: 0; top: 42%; width: 78%; height: 70px;
  background: linear-gradient(95deg, rgba(126,150,176,.45), rgba(126,150,176,0)); clip-path: polygon(0 0, 100% 44%, 100% 56%, 0 100%); }
.photo-pending span { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ---------- featured (home) ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.featured .side { display: grid; gap: 28px; }
.featured .side .project-card { flex-direction: row; }
.featured .side .media { aspect-ratio: auto; width: 42%; flex-shrink: 0; }
@media (max-width: 1000px) { .featured { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .featured .side .project-card { flex-direction: column; } .featured .side .media { width: 100%; aspect-ratio: 16/10; } }

/* ---------- philosophy band ---------- */
.philosophy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ink); }
.philosophy .photo { position: relative; min-height: 460px; }
.philosophy .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.philosophy .copy { padding: clamp(48px, 6vw, 84px) clamp(24px, 5.5vw, 80px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.philosophy .statement { color: var(--white); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }
.philosophy .support { color: var(--on-dark-muted); }
.quote { border-left: 2px solid var(--amber); padding-left: 22px; }
.quote p { font-style: italic; font-size: 16.5px; }
.quote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; margin-top: 12px; color: var(--steel); }
.philosophy .quote p { color: var(--text); }
.philosophy .quote cite { color: var(--muted); }
.philosophy.on-dark .quote p { color: #D7E4F0; }
.philosophy.on-dark .quote cite { color: var(--steel); }
.values-inline { border-top: 1px solid rgba(126,150,176,.3); padding-top: 22px; }
.values-inline ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font: 600 16px/1.4 var(--font-display); color: var(--white); }
@media (max-width: 860px) { .philosophy { grid-template-columns: 1fr; } .philosophy .photo { min-height: 280px; } }

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.stats dt { order: 2; font-size: 14px; color: var(--muted); }
.stats dd { order: 1; margin: 0; font-family: var(--font-mono); font-size: 31px; color: var(--navy); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column; }
.rounded-img { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding-block: clamp(52px, 6vw, 76px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 2.8vw, 36px); max-width: 22em; }
.cta-band p { color: #BBD1E5; font-size: 18px; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 64px 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h2 { font: 600 15px/1.3 var(--font-body); color: var(--white); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--on-dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.wordmark { font: 800 20px/1 var(--font-display); color: var(--white); letter-spacing: .02em; }
.wordmark-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--steel); letter-spacing: .17em; margin-top: 10px; }
.footer-base { border-top: 1px solid rgba(126,150,176,.3); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--steel); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.mission-grid .statement { color: var(--white); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; }
.pending-note { border: 1px dashed rgba(169,189,207,.55); border-radius: var(--radius); padding: 22px 24px; color: #8FA8BF; font-size: 15.5px; }
.pending-note .mono { font-size: 11px; letter-spacing: .11em; display: block; margin-bottom: 8px; }
.value-cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value-cards li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(11,45,80,.04); }
.value-cards li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--navy); }
.value-cards li::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left center; }
.value-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.value-cards .emoji { font-size: 26px; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.value-cards .num { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--amber); }
.value-cards h3 { font-size: 22px; }
.value-cards p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.rule-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rule-list > div { border-top: 3px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.rule-list p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .mission-grid, .rule-list { grid-template-columns: 1fr; } .value-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .value-cards { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.service { display: grid; grid-template-columns: .9fr 1.35fr; gap: clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); padding-block: 36px; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--amber); letter-spacing: .1em; }
.service h3 { font-size: clamp(21px, 2vw, 25px); margin-top: 10px; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 34px; }
.service ul.single { grid-template-columns: 1fr; }
.service li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.service li::before { content: ""; width: 7px; height: 7px; background: var(--navy); border-radius: 50%; flex-shrink: 0; margin-top: .6em; }
@media (max-width: 760px) { .service, .service ul { grid-template-columns: 1fr; } }

.image-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--ink); }
.image-band .copy { padding: clamp(48px, 6vw, 76px) clamp(24px, 5.5vw, 80px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.image-band .copy p { color: var(--on-dark-muted); }
.image-band .photo { position: relative; min-height: 400px; }
.image-band .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .image-band { grid-template-columns: 1fr; } .image-band .photo { min-height: 260px; order: -1; } }

/* ---------- projects index ---------- */
.filter-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.filter-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 42px; padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: 600 14.5px/1 var(--font-body); color: #3A4D61; cursor: pointer; }
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.result-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lead-project { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(300px, 40vw, 540px); border-radius: var(--radius); overflow: hidden; }
.lead-project button { padding: 0; border: 0; cursor: zoom-in; background: var(--surface); overflow: hidden; }
.lead-project button:first-child { grid-row: 1 / span 2; }
.lead-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead-project button:hover img { transform: scale(1.03); }
.lead-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; padding-top: 22px; }
.lead-meta > div { display: flex; flex-direction: column; gap: 8px; }
.lead-meta h2 { font-size: clamp(24px, 2.4vw, 30px); }
@media (max-width: 700px) { .lead-project { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; } .lead-project button:first-child { grid-row: auto; grid-column: 1 / -1; } }
.empty-state { border: 1px dashed #8FA6BC; border-radius: var(--radius); padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--faint); }

/* ---------- project detail ---------- */
.project-hero { position: relative; min-height: clamp(360px, 40vw, 540px); background: var(--ink); overflow: hidden; display: flex; }
.project-hero > img, .project-hero > .photo-pending { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,32,56,.92) 0%, rgba(9,32,56,.42) 55%, rgba(9,32,56,.15) 100%); }
.project-hero .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-block: 48px 44px; }
.project-hero h1 { color: var(--white); max-width: 20ch; }
.project-hero .crumbs, .project-hero .crumbs a { color: var(--on-dark); }
.project-hero .place { font-family: var(--font-mono); font-size: 13px; color: var(--amber-bright); letter-spacing: .11em; text-transform: uppercase; }
.spec-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.spec-bar dl { margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; padding-block: 24px; }
.spec-bar dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em; color: var(--faint); text-transform: uppercase; }
.spec-bar dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .spec-bar dl { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .08em; margin-top: 10px; text-transform: uppercase; }
.gallery .pending { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; gap: 11px; font-size: 15.5px; }
.check-list svg { flex-shrink: 0; margin-top: 4px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel-dark { background: var(--navy); border-radius: var(--radius); padding: 28px; color: var(--white); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em; color: var(--faint); text-transform: uppercase; }
.panel-dark .k { color: #9FC0DD; }
.next-project { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; text-decoration: none; }
.next-project h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 8px; }
.next-project:hover h2 { color: var(--navy); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,20,36,.94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 4px; }
.lightbox figcaption { color: var(--on-dark); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(11,45,80,.6); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--navy); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- team ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); padding-top: 40px; }
.profile + .profile { margin-top: 48px; }
.headshot { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface); border: 1px dashed #8FA6BC; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.headshot .initials { font: 700 44px/1 var(--font-display); color: var(--pale); letter-spacing: .02em; }
.headshot .mono { font-size: 10.5px; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; }
.profile .creds { font-family: var(--font-mono); font-size: 12.5px; color: var(--amber); letter-spacing: .11em; margin-top: 8px; }
.profile .role { font-size: 18px; color: var(--navy); font-weight: 600; margin-top: 6px; }
.profile p { color: var(--muted); }
.profile .k { margin-bottom: 12px; }
.def-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 30px; }
.def-list div, .proj-list div { font-size: 15px; color: var(--muted); }
.def-list strong, .proj-list strong { color: var(--ink); }
.proj-list { display: flex; flex-direction: column; gap: 10px; }
.profile-compact { grid-template-columns: 300px 1fr; align-items: center; padding-top: 32px; }
@media (max-width: 800px) { .profile, .profile-compact { grid-template-columns: 1fr; } .headshot { max-width: 260px; } .def-list { grid-template-columns: 1fr; } }
.role-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 52px; }
.role-strip div { background: var(--white); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.role-strip .mono { font-size: 11px; color: var(--amber); letter-spacing: .12em; }
.role-strip strong { color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .role-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .role-strip { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #B9C8D7; border-radius: var(--radius-sm);
  font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356687C' stroke-width='2.4'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,75,132,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border: 2px solid var(--error); }
.field-error { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; color: var(--error); font-weight: 600; }
.field-error svg { flex-shrink: 0; margin-top: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-summary { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--radius); padding: 16px 18px; color: var(--error); font-weight: 600; font-size: 15px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-success { border: 2px solid var(--ok); background: var(--ok-bg); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.form-success h3 { color: var(--ok); }
.form-success p { color: #2C4A3C; }
.demo-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: #4A6357; }

/* ---------- contact details ---------- */
.contact-card { background: var(--ink); border-radius: var(--radius) var(--radius) 0 0; padding: 34px 32px; display: flex; flex-direction: column; gap: 0; }
.contact-card > div { padding-block: 20px; border-top: 1px solid rgba(126,150,176,.3); }
.contact-card > div:first-child { border-top: 0; padding-top: 0; }
.contact-card .k { color: #9FC0DD; }
.contact-card p { color: var(--white); font-size: 17px; margin-top: 8px; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-row span { word-break: break-word; }
.copy-btn { min-height: 36px; padding: 6px 12px; border: 1px solid rgba(169,189,207,.5); background: transparent; color: var(--on-dark); border-radius: var(--radius-sm); font: 600 13px/1 var(--font-body); cursor: pointer; }
.copy-btn:hover { border-color: var(--white); color: var(--white); }
.copy-btn.light { border-color: var(--line); color: var(--navy); }
.copy-btn.light:hover { border-color: var(--navy); }
.map-card { position: relative; height: 280px; background: #DCE5EE; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.map-card .grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(126,150,176,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(126,150,176,.45) 1px, transparent 1px); background-size: 38px 38px; }
.map-card .road-h { position: absolute; left: 0; right: 0; top: 112px; height: 16px; background: #C7D4E1; }
.map-card .road-v { position: absolute; top: 0; bottom: 0; left: 36%; width: 15px; background: #C7D4E1; }
.map-card .pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); }
.map-card .label { position: absolute; left: 50%; top: calc(44% + 8px); transform: translateX(-50%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.map-card .open { position: absolute; left: 14px; bottom: 14px; }
.map-card .open a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ---------- careers ---------- */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; color: var(--muted); font-size: 16px; }
.steps .n { font-family: var(--font-mono); color: var(--amber); font-size: 13px; flex-shrink: 0; margin-top: 3px; }
.email-box { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 18px; }
.email-box strong { color: var(--ink); word-break: break-word; }

/* ---------- 404 ---------- */
.not-found { min-height: 56vh; display: flex; align-items: center; }
.not-found .code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--amber); }

/* =====================================================================
   MOTION
   One orchestrated moment on the homepage hero (the logo's sightline
   drawing across the photograph), then quiet reveals on scroll.
   Everything is visible without JavaScript; site.js only hides content
   that starts below the fold, and skips that entirely for reduced motion.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-draw: cubic-bezier(.65, 0, .35, 1);
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes draw-beam { from { clip-path: polygon(0 0, 0 44%, 0 56%, 0 100%); } to { clip-path: polygon(0 0, 100% 44%, 100% 56%, 0 100%); } }
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* hero: photo settles, sightline draws, copy rises in sequence */
.hero > img { animation: settle 2.2s var(--ease-out) both; }
.hero .beam { animation: draw-beam 1.3s var(--ease-draw) .25s both; }
.hero .beam-line { transform-origin: left center; animation: draw-line 1.1s var(--ease-draw) .55s both; }
.hero .wrap > * { animation: rise .8s var(--ease-out) both; }
.hero .wrap > :nth-child(1) { animation-delay: .35s; }
.hero .wrap > :nth-child(2) { animation-delay: .5s; }
.hero .wrap > :nth-child(3) { animation-delay: .68s; }
.hero .wrap > :nth-child(4) { animation-delay: .84s; }

/* inner page heads and project heroes */
.page-head .wrap > *, .photo-head .wrap > *, .project-hero .wrap > * { animation: rise .7s var(--ease-out) both; }
.page-head .wrap > :nth-child(2), .photo-head .wrap > :nth-child(2), .project-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.page-head .wrap > :nth-child(3), .photo-head .wrap > :nth-child(3), .project-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.photo-head > img, .project-hero > img { animation: settle 1.8s var(--ease-out) both; }
.credentials li { animation: fade .6s ease both; }
.credentials li:nth-child(2) { animation-delay: .1s; } .credentials li:nth-child(3) { animation-delay: .18s; }
.credentials li:nth-child(4) { animation-delay: .26s; } .credentials li:nth-child(5) { animation-delay: .34s; }

/* scroll reveals — the .is-pending state is only ever added by site.js */
.reveal.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-pending { opacity: 0; transform: translateY(26px); }
.reveal-line { transform-origin: left center; transition: transform .9s var(--ease-draw); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-line.is-pending { transform: scaleX(0); }

/* the amber underline on text links grows from the left on hover */
.text-link { border-bottom: 0; background: linear-gradient(var(--amber), var(--amber)) left bottom / 100% 2px no-repeat; transition: background-size .35s var(--ease-out), color .15s; }
.text-link:hover { background-size: 40% 2px; }

/* cards lift; buttons press */
.project-card { transition: border-color .2s, box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.project-card:hover { transform: translateY(-4px); }
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.tile, .role-strip > div { transition: background-color .25s; }
.tile:hover, .role-strip > div:hover { background: #F8FAFC; }
/* value cards lift, the amber rule draws over the navy one, the marker tilts */
.value-cards li { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.value-cards li::after { transition: transform .45s var(--ease-draw); }
.value-cards .emoji { transition: transform .35s var(--ease-out), background-color .3s; }
.value-cards li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,45,80,.10); border-color: var(--pale); }
.value-cards li:hover::after { transform: scaleX(1); }
.value-cards li:hover .emoji { background: #FFF4E6; transform: rotate(-6deg) scale(1.06); }
.sector-grid div { transition: background-color .25s, color .25s; }
.sector-grid div:hover { background: var(--navy-deep); }

/* header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(11,45,80,.10); }

/* project filter: matching cards fade back in */
.is-filtered-in { animation: pop .45s var(--ease-out) both; }

/* mobile menu and photo viewer */
.menu-overlay:not([hidden]) { animation: fade .25s ease both; }
.menu-overlay:not([hidden]) li { animation: slide-down .4s var(--ease-out) both; }
.menu-overlay:not([hidden]) li:nth-child(2) { animation-delay: .04s; } .menu-overlay:not([hidden]) li:nth-child(3) { animation-delay: .08s; }
.menu-overlay:not([hidden]) li:nth-child(4) { animation-delay: .12s; } .menu-overlay:not([hidden]) li:nth-child(5) { animation-delay: .16s; }
.menu-overlay:not([hidden]) li:nth-child(6) { animation-delay: .2s; } .menu-overlay:not([hidden]) li:nth-child(7) { animation-delay: .24s; }
.lightbox:not([hidden]) { animation: fade .25s ease both; }
.lightbox:not([hidden]) img { animation: pop .35s var(--ease-out) both; }
.form-success:not([hidden]) { animation: pop .45s var(--ease-out) both; }
.field-error:not([hidden]) { animation: slide-down .25s var(--ease-out) both; }

/* =====================================================================
   REVISION — "more interesting" pass
   Drawing-office details (gridlines, axis bubbles, title block), emoji
   service markers, angled section edges that echo the logo's beam.
   ===================================================================== */
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }

/* hero drawing: structural gridlines with axis bubbles, drawn on load */
.hero .blueprint { position: absolute; z-index: 1; right: max(2vw, calc((100vw - 1320px) / 2)); top: 50%; width: min(44vw, 600px); height: auto; transform: translateY(-50%); overflow: visible; }
.bp-grid path { stroke: rgba(187,206,222,.42); stroke-width: 1.2; stroke-dasharray: 6 5; fill: none; }
.bp-dim path { stroke: var(--amber-bright); stroke-width: 1.5; fill: none; }
.bp-tags circle { fill: rgba(11,45,80,.72); stroke: var(--pale); stroke-width: 1.4; }
.bp-tags text { fill: var(--white); font: 600 14px var(--font-mono); text-anchor: middle; }
@keyframes draw-path { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tag-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.bp-grid path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-path 1.4s var(--ease-draw) both; }
.bp-grid path:nth-child(n+5) { animation-delay: .35s; }
.bp-grid path:nth-child(2) { animation-delay: .1s; } .bp-grid path:nth-child(3) { animation-delay: .2s; } .bp-grid path:nth-child(4) { animation-delay: .3s; }
.bp-dim path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-path 1s var(--ease-draw) 1.1s both; }
.bp-tags g { transform-box: fill-box; transform-origin: center; animation: tag-in .5s var(--ease-out) both; }
.bp-tags g:nth-child(1) { animation-delay: .9s; } .bp-tags g:nth-child(2) { animation-delay: 1s; } .bp-tags g:nth-child(3) { animation-delay: 1.1s; }
.bp-tags g:nth-child(4) { animation-delay: 1.2s; } .bp-tags g:nth-child(5) { animation-delay: 1.15s; } .bp-tags g:nth-child(6) { animation-delay: 1.25s; } .bp-tags g:nth-child(7) { animation-delay: 1.35s; }

/* title block, as on a drawing sheet */
.title-block { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); bottom: 36px;
  display: grid; min-width: 290px; background: rgba(255,255,255,.96); border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none; color: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,.28); animation: rise .7s var(--ease-out) 1.4s both; transition: transform .25s var(--ease-out); }
.title-block:hover { transform: translateY(-3px); color: var(--ink); }
.tb-row { display: grid; grid-template-columns: 76px 1fr; border-bottom: 1px solid var(--line); }
.tb-k { font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 11px 12px; border-right: 1px solid var(--line); }
.tb-v { font-weight: 600; font-size: 14.5px; padding: 8px 12px; }
.tb-link { padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--amber-deep); background: var(--surface); }
@media (max-width: 1020px) { .hero .blueprint { opacity: .45; width: 70vw; right: -8vw; } }
@media (max-width: 700px) { .title-block, .hero .blueprint { display: none; } }

/* big stats */
.big-stats { margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.big-stats > div { padding: 22px 22px 4px 0; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); padding-left: 22px; }
.big-stats > div:first-child { padding-left: 0; }
.big-stats > div:last-child { border-right: 0; }
.big-stats dd { margin: 0; font: 700 clamp(44px, 5.4vw, 72px)/1 var(--font-display); color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-stats dt { font-size: 15px; color: var(--muted); max-width: 22ch; }
@media (max-width: 760px) { .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .big-stats > div:nth-child(2) { border-right: 0; } .big-stats > div:nth-child(3) { padding-left: 0; } }

/* service tiles: emoji marker, flip to navy on hover */
.tile { text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: background-color .3s var(--ease-out); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile .emoji { font-size: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s, transform .4s var(--ease-out); }
.tile h3, .tile p, .tile .num { transition: color .3s; }
.tile::after { content: "→"; position: absolute; right: 26px; bottom: 22px; font-size: 20px; color: var(--amber-bright); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease-out); }
.tile:hover { background: var(--navy); color: inherit; }
.tile:hover h3 { color: var(--white); }
.tile:hover p { color: var(--on-dark); }
.tile:hover .num { color: var(--amber-bright); }
.tile:hover .emoji { background: var(--amber); transform: rotate(-8deg) scale(1.06); }
.tile:hover::after { opacity: 1; transform: none; }

/* process */
.process-section { background: linear-gradient(var(--white), var(--white)); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; left: 29px; right: 29px; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 16px); transform-origin: left center; transition: transform 1.6s var(--ease-draw); }
.process.is-drawn-pending::before { transform: scaleX(0); }
.process li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.step-emoji { font-size: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; position: relative; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .3s var(--ease-out), background-color .3s; }
.process li:hover .step-emoji { transform: translateY(-4px); background: var(--surface); }
.step-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.process p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before { left: 28px; right: auto; top: 29px; bottom: 29px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--amber) 0 10px, transparent 10px 16px); transform-origin: top center; }
  .process.is-drawn-pending::before { transform: scaleY(0); }
  .process li { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; }
  .process li > :not(.step-emoji) { grid-column: 2; }
  .step-emoji { grid-row: 1 / span 3; margin: 0; }
}

/* sectors with emojis */
.sector-grid div { display: flex; align-items: center; gap: 16px; }
.sector-grid .emoji { font-size: 26px; width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: rgba(126,150,176,.18); display: inline-flex; align-items: center; justify-content: center; transition: transform .35s var(--ease-out), background-color .3s; }
.sector-grid div:hover .emoji { transform: scale(1.1) rotate(-6deg); background: var(--amber); }
.sector-row div { display: flex; flex-direction: column; gap: 14px; transition: background-color .25s; }
.sector-row .emoji { font-size: 28px; }
.sector-row div:hover { background: var(--surface); }

/* angled edges on dark bands, echoing the beam */
.angled { clip-path: polygon(0 0, 100% 48px, 100% 100%, 0 calc(100% - 48px)); margin-block: -24px; position: relative; z-index: 1; }
.angled-top { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 700px) { .angled { clip-path: polygon(0 0, 100% 24px, 100% 100%, 0 calc(100% - 24px)); margin-block: -12px; } }

/* services page */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 36px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.chip span { font-size: 18px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.chip:hover { border-color: var(--navy); background: var(--surface); transform: translateY(-2px); color: var(--navy); }
.service { scroll-margin-top: 110px; transition: background-color .3s; }
.service:target { background: linear-gradient(90deg, var(--surface), transparent 80%); }
.service-title { display: flex; gap: 18px; align-items: flex-start; }
.service-emoji { font-size: 30px; width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .35s var(--ease-out), background-color .3s; }
.service:hover .service-emoji { transform: rotate(-6deg) scale(1.05); background: #FFF4E6; }

/* inner page heads: faint drawing grid and a gridline bubble */
.page-head { position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(19,75,132,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(19,75,132,.07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
.page-head::after { content: ""; position: absolute; right: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); top: 50%; width: min(34vw, 420px); height: 90px; transform: translateY(-50%);
  background: linear-gradient(95deg, rgba(19,75,132,0), rgba(19,75,132,.16)); clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); animation: draw-beam-rev 1.2s var(--ease-draw) .2s both; }
@keyframes draw-beam-rev { from { clip-path: polygon(100% 44%, 100% 0, 100% 100%, 100% 56%); } to { clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); } }
.page-head .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .page-head::after { display: none; } }

/* ---------- Rev 3 (client mark-up, 03 Oct 2026) ---------- */
/* home: image-led service cards; full detail lives on the Services page */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease-out), box-shadow .35s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,45,80,.12); color: inherit; }
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.svc-body .num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.svc-body h3 { font-size: 18px; }
.svc-body p { color: var(--muted); font-size: 15px; }
.svc-more { background: var(--ink); border-color: var(--ink); justify-content: flex-end; }
.svc-more .num { color: var(--amber-bright); }
.svc-more h3 { color: var(--white); }
.svc-more p { color: var(--on-dark-muted); }
.svc-more .svc-body::after { content: "→"; font-size: 22px; color: var(--amber-bright); margin-top: 6px; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* home: values label easier to see; values set three per line */
.values-inline .k { color: var(--amber-bright); font-size: 11.5px; }
.values-inline ul { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 36px; }
@media (max-width: 480px) { .values-inline ul { grid-template-columns: repeat(2, max-content); } }

/* services: industries strip on navy so the page isn't all white */
.sector-row { background: rgba(126,150,176,.35); border-color: var(--ink); }
.sector-row div { background: var(--ink); color: var(--white); border-top-color: var(--amber-bright); }
.sector-row div:hover { background: var(--navy); }

/* services: design and construction photos side by side */
.image-band .photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); min-height: 400px; }
.photo-pair figure { position: relative; margin: 0; overflow: hidden; }
.photo-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pair figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 4px; background: rgba(11,45,80,.82); color: var(--white); font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) { .image-band .photo-pair { min-height: 240px; order: -1; } }

/* about: credential badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.badges img { height: 84px; width: auto; }
.badges img.wide { height: 56px; }
@media (max-width: 700px) { .badges { justify-content: center; } .badges img { height: 64px; } .badges img.wide { height: 48px; } }

/* footer motto and privacy link */
.footer-motto { margin-top: 12px; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-bright); }
.footer-base a { color: inherit; }
.footer-credit { margin: 18px 0 0; font-size: 11.5px; letter-spacing: .02em; color: var(--steel); opacity: .75; }

/* team: associates list */
.role-strip ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-weight: 600; color: var(--ink); }

/* team: range-of-projects list in even pairs, label in amber */
.profile .k { color: var(--amber); }
.def-list .span { grid-column: 1 / -1; }
.def-list { border-top: 1px solid var(--line); padding-top: 14px; gap: 12px 36px; }

/* privacy statement */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(20px, 2vw, 24px); margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }

/* team: director headshots */
.headshot-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); background: #EDEDED; align-self: start; }
@media (max-width: 800px) { .headshot-photo { max-width: 260px; } }

/* project pages: bullet lists inside the overview */
.overview-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.overview-list li::marker { color: var(--amber); }


/* about: badges pop in one after another, and lift a little on hover */
.badges img { transition: transform .35s var(--ease-out); }
.badges img:hover { transform: scale(1.08); }
.badges img.reveal.is-pending { transform: translateY(14px) scale(.82); }

/* projects: filter bar sticks under the header so categories are always one tap away */
.filter-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 85px); z-index: 30; transition: box-shadow .25s; }
.filter-bar.is-stuck { box-shadow: 0 8px 20px rgba(11,45,80,.10); }
.filter-bar.is-stuck .wrap { padding-block: 10px; }
.filter-bar .wrap { transition: padding .25s; }
@media (max-width: 760px) {
  .filter-bar .wrap { flex-wrap: nowrap; gap: 12px; padding-block: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%); }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; min-height: 38px; padding: 7px 14px; font-size: 14px; scroll-snap-align: start; }
  .result-count { display: none; }
}
@media (max-width: 560px) { .filter-bar { top: calc(env(safe-area-inset-top, 0px) + 71px); } }
.filter-bar.is-stuck .result-count { display: none; }

/* project pages: way back to the overview (returns to the visitor's last category) */
.back-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(9,32,56,.45); color: var(--white); font: 600 14px/1 var(--font-body); text-decoration: none; backdrop-filter: blur(4px); transition: background-color .25s, border-color .25s; }
.back-pill:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.back-pill svg, .back-card svg { transition: transform .25s var(--ease-out); }
.back-pill:hover svg, .back-card:hover svg { transform: translateX(-3px); }
.project-nav { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 28px; align-items: stretch; }
.project-nav .next-project { margin: 0; }
.back-card { display: flex; align-items: flex-end; gap: 10px; border-top: 2px solid var(--line); padding-top: 24px; font: 600 17px/1.2 var(--font-display); color: var(--navy); text-decoration: none; }
.back-card:hover { color: var(--amber-deep); border-top-color: var(--amber); }
#project-filters { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 85px); }
@media (max-width: 560px) { #project-filters { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 71px); } }
@media (max-width: 700px) { .project-nav { grid-template-columns: 1fr; gap: 20px; } .back-card { order: 2; } }

/* projects: frosted-glass filter bar while pinned; solid again on hover/focus */
.filter-bar { transition: box-shadow .25s, background-color .3s, border-color .3s; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .filter-bar.is-stuck { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: rgba(214,224,235,.6); }
  .filter-bar.is-stuck .filter-btn:not([aria-pressed="true"]) { background: rgba(255,255,255,.55); }
  .filter-bar.is-stuck:hover, .filter-bar.is-stuck:focus-within { background: var(--white); border-bottom-color: var(--line); box-shadow: 0 10px 26px rgba(11,45,80,.14); }
  .filter-bar.is-stuck:hover .filter-btn:not([aria-pressed="true"]), .filter-bar.is-stuck:focus-within .filter-btn:not([aria-pressed="true"]) { background: var(--white); }
}
.filter-btn { transition: background-color .3s, border-color .2s, color .2s; }
.filter-bar.no-stick { position: relative; }

/* team: in-house roles as three balanced cards, associates as tags */
.team-groups { margin-top: 52px; display: flex; flex-direction: column; gap: 16px; }
.team-groups .role-strip { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-groups .role-strip > div { padding: 26px 24px 28px; gap: 8px; }
.team-groups .role-strip p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.role-emoji { font-size: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.team-group-label { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.team-group-label .mono { font-size: 11.5px; color: var(--amber); letter-spacing: .14em; text-transform: uppercase; }
.team-group-label + .associate-tags { margin-top: -2px; }
.team-groups .team-group-label:not(:first-child) { margin-top: 18px; }
.associate-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.associate-tags li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s var(--ease-out); }
.associate-tags li:hover { border-color: var(--navy); transform: translateY(-2px); }
@media (max-width: 760px) { .team-groups .role-strip { grid-template-columns: 1fr; } }
.role-strip .mono { text-transform: uppercase; }

/* team roles: motion */
.team-groups .role-strip > div { position: relative; }
.team-groups .role-strip > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease-out); }
.team-group-label .mono { position: relative; }
.team-group-label::after { content: ""; flex: 1 1 60px; height: 1px; background: var(--line); align-self: center; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  /* cards: icon pops in just after its card rises into view */
  .team-groups .role-strip > div:not(.is-pending) .role-emoji { animation: icon-pop .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + .25s); }
  /* hover: amber edge draws across the top and the icon gives a little nod */
  .team-groups .role-strip > div:hover::before { transform: scaleX(1); }
  .team-groups .role-strip > div:hover .role-emoji { transform: rotate(-10deg) scale(1.1); background: #FBEFDC; }
  /* group labels: a rule draws out to the right of each heading */
  .team-group-label:not(.is-pending)::after { animation: draw-line 1s var(--ease-draw) both; animation-delay: .15s; }
  /* associate tags tilt-pop in, one after another */
  .associate-tags li.reveal.is-pending { transform: translateY(12px) scale(.85); }
  .associate-tags li:hover { background: var(--surface); }
}
.role-emoji { transition: background-color .3s, transform .35s var(--ease-out); }
@keyframes icon-pop { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 60% { opacity: 1; transform: scale(1.15) rotate(6deg); } 100% { opacity: 1; transform: none; } }

/* ---------- drafting cursor (mouse/trackpad only; touch keeps the system default) ---------- */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("../img/cursor/crosshair.svg") 16 16, crosshair; }
  :root :is(a, button, summary, select, label[for], [role="button"], .btn, .gallery button) { cursor: url("../img/cursor/ring.svg") 16 16, pointer; }
  :root :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea) { cursor: text; }
}

/* project cards: blueprint corner marks and a dimension line draw in on hover */
.project-card .media { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .project-card .media::before, .project-card .media::after { content: ""; position: absolute; z-index: 1; pointer-events: none; opacity: 0; --c: rgba(255,255,255,.92); filter: drop-shadow(0 0 1.5px rgba(6,20,36,.55)); }
  .project-card .media::before {
    inset: 12px; transform: scale(1.06);
    background:
      linear-gradient(var(--c), var(--c)) left top / 18px 2px, linear-gradient(var(--c), var(--c)) left top / 2px 18px,
      linear-gradient(var(--c), var(--c)) right top / 18px 2px, linear-gradient(var(--c), var(--c)) right top / 2px 18px,
      linear-gradient(var(--c), var(--c)) left bottom / 18px 2px, linear-gradient(var(--c), var(--c)) left bottom / 2px 18px,
      linear-gradient(var(--c), var(--c)) right bottom / 18px 2px, linear-gradient(var(--c), var(--c)) right bottom / 2px 18px;
    background-repeat: no-repeat;
    transition: opacity .25s, transform .45s var(--ease-out);
  }
  .project-card .media::after {
    top: 22px; left: 40px; right: 40px; height: 9px; transform: scaleX(0);
    background:
      linear-gradient(var(--c), var(--c)) center / 100% 1px, linear-gradient(var(--c), var(--c)) left center / 1px 100%,
      linear-gradient(var(--c), var(--c)) right center / 1px 100%;
    background-repeat: no-repeat;
    transition: opacity .2s, transform .55s var(--ease-draw) .08s;
  }
  .project-card:hover .media::before { opacity: 1; transform: none; }
  .project-card:hover .media::after { opacity: 1; transform: scaleX(1); }
}

/* click: a small target mark rings out from the point clicked */
.click-mark { position: fixed; z-index: 200; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; }
.click-mark::before, .click-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--navy); box-shadow: 0 0 0 1px rgba(255,255,255,.8), inset 0 0 0 1px rgba(255,255,255,.8); animation: click-ring .45s var(--ease-out) forwards; }
.click-mark::after { animation-delay: .07s; opacity: 0; }
@keyframes click-ring { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(1); } }
