/* American Energy Guard: design mock
   One ink, like their screen-printed shirt: crest navy on white and shirt-grey stock.
   Thermal colours appear only where hot or cold is the point. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root,
[data-theme="navy"] {
  --ink: #003060;          /* crest navy, sampled from the logo file */
  --ink-soft: #3D5878;
  --field: #003060;        /* the shield's dark half */
  --on-field: #FFFFFF;
  --on-field-soft: rgba(255, 255, 255, .8);
  --paper: #FFFFFF;
  --stock: #EDEEF2;        /* heather-grey shirt stock */
  --rule: #C9CDD3;
  --galv: #868D8D;         /* galvanized duct, sampled from a job photo */
  --heat: #C8361D;
  --cool: #1F56C3;
  --cta: #003060;
  --on-cta: #FFFFFF;
  --field-cta: #FFFFFF;
  --on-field-cta: #003060;
  --deep: #00213F;         /* footer: below grade */
  --strata-1: #1D4A78; --strata-2: #0E3762; --strata-3: #00213F;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 9vw, 128px);
  --dip: clamp(34px, 6.4vw, 92px);  /* depth of the shield's bottom point */
}

/* Alt theme: the older red/blue crest on their business card */
[data-theme="crest"] {
  --ink: #0F1E55;
  --ink-soft: #3E4A75;
  --field: #1434B8;
  --cta: #D7141A;
  --on-cta: #FFFFFF;
  --field-cta: #FFFFFF;
  --on-field-cta: #1434B8;
  --heat: #C8101A;
  --cool: #1434B8;
  --deep: #0E1B57;
  --strata-1: #2B44A8; --strata-2: #1A2F86; --strata-3: #0E1B57;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---- type -------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0 0 .35em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.9rem + 4.6vw, 6.25rem); line-height: .9; }
h2 { font-size: clamp(2.375rem, 1.7rem + 2.6vw, 4rem); line-height: .95; }
h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.02; font-weight: 700; }
h4 { font-size: 1.125rem; margin: 0 0 .4em; line-height: 1.3; }
.lede { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem); line-height: 1.5; }
.measure { max-width: 38em; }
.small { font-size: .9375rem; }
.soft { color: var(--ink-soft); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: 3px;
  background: var(--cta); color: var(--on-cta);
  font: 700 1.0625rem/1 var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn .ico { width: 20px; height: 20px; }
.btn--field { background: var(--field-cta); color: var(--on-field-cta); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); filter: none; }
.textlink { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---- mock bar (not part of the design) -------------------------------- */
.mockbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 7px var(--gut); background: #1E2328; color: #E8EAED; font-size: .8125rem; line-height: 1.35;
}
.mockbar__text { margin: 0; }
.mockbar__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.mockbar__btn {
  padding: 4px 10px; border: 1px solid #5A626B; border-radius: 3px; background: transparent; color: #E8EAED;
  font: 600 .8125rem/1.3 var(--text); text-decoration: none; cursor: pointer;
}
.mockbar__btn[aria-pressed="true"] { background: #E8EAED; color: #1E2328; }

/* ---- header --------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead__in {
  display: flex; align-items: center; gap: 20px;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 10px var(--gut);
}
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; margin-right: auto; }
.brand__crest { grid-row: 1 / 3; width: auto; height: 50px; }
.brand__crest--color { display: none; }
[data-theme="crest"] .brand__crest--navy { display: none; }
[data-theme="crest"] .brand__crest--color { display: block; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: .95; letter-spacing: .01em; }
.brand__sub { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li > a, .nav__parent {
  display: block; padding: 10px 12px; font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 3px;
}
.nav__list a:hover { background: var(--stock); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.nav__group { position: relative; display: flex; align-items: center; }
.nav__parent { padding-right: 4px; }
.nav__more { display: grid; place-items: center; width: 30px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav__more .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.nav__more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 40; min-width: 280px; margin: 6px 0 0; padding: 8px; list-style: none;
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: 0 12px 28px rgba(0, 33, 63, .14);
  display: none;
}
.nav__group.is-open .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; line-height: 1.25; }
.nav__zone { display: block; font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }
.masthead__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 3px;
  background: var(--cta); color: var(--on-cta); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.masthead__call .ico { width: 18px; height: 18px; }
.nav__toggle { display: none; }

@media (max-width: 1100px) {
  .masthead__in { gap: 10px; }
  .nav__toggle {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid var(--ink); border-radius: 3px;
    background: none; color: var(--ink); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 20px; height: 2.5px; background: currentColor; position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; } .nav__bars::after { top: 7px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--ink); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px var(--gut) 20px; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--rule); }
  .nav__list > li > a, .nav__parent { padding: 14px 0; font-size: 1.125rem; }
  .nav__group { flex-wrap: wrap; }
  .nav__parent { flex: 1; }
  .nav__more { width: 46px; height: 46px; }
  .nav__sub { position: static; width: 100%; margin: 0 0 10px; padding: 0 0 0 12px; border: 0; border-left: 3px solid var(--ink); box-shadow: none; min-width: 0; }
}
@media (max-width: 640px) {
  .brand__crest { height: 42px; }
  .brand__name { font-size: 1.3125rem; }
  .brand__sub { display: none; }
  .masthead__call { width: 46px; padding: 0; justify-content: center; }
  .masthead__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---- the pale: hero split down the shield's centre line ------------------- */
.pale {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 760px);
  background: var(--field); color: var(--on-field);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--dip) * 1.000), 95% calc(100% - var(--dip) * 0.889), 90% calc(100% - var(--dip) * 0.779), 85% calc(100% - var(--dip) * 0.670), 80% calc(100% - var(--dip) * 0.563), 75% calc(100% - var(--dip) * 0.459), 70% calc(100% - var(--dip) * 0.358), 65% calc(100% - var(--dip) * 0.261), 60% calc(100% - var(--dip) * 0.169), 55% calc(100% - var(--dip) * 0.082), 50% 100%, 45% calc(100% - var(--dip) * 0.082), 40% calc(100% - var(--dip) * 0.169), 35% calc(100% - var(--dip) * 0.261), 30% calc(100% - var(--dip) * 0.358), 25% calc(100% - var(--dip) * 0.459), 20% calc(100% - var(--dip) * 0.563), 15% calc(100% - var(--dip) * 0.670), 10% calc(100% - var(--dip) * 0.779), 5% calc(100% - var(--dip) * 0.889), 0% calc(100% - var(--dip) * 1.000));
}
.pale__field {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 104px) clamp(24px, 5vw, 72px) calc(clamp(48px, 7vw, 104px) + var(--dip)) max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.pale__field h1 { color: var(--on-field); max-width: 11ch; }
.pale__field .lede { color: var(--on-field-soft); max-width: 30em; }
.pale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.pale__actions .textlink { color: var(--on-field); }
.pale__meta { margin: 26px 0 0; font-size: .9375rem; color: var(--on-field-soft); display: flex; gap: 8px; align-items: center; }
.pale__meta .ico { width: 18px; height: 18px; }
.pale__photo { position: relative; margin: 0; min-height: 320px; background: var(--galv); }
.pale__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pale__photo figcaption {
  position: absolute; right: 0; top: 18px; max-width: 26em;
  padding: 8px 14px; background: rgba(0, 33, 63, .78); color: #fff; font-size: .875rem; line-height: 1.4;
}
.pale__where { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 600; font-size: 1rem; color: var(--on-field-soft); }
.pale__where svg { width: 58px; height: 52px; color: var(--on-field); }
.zone-hot { --z-attic: transparent; }
.pale__crumb { color: var(--on-field-soft); }
.pale--page { min-height: min(62vh, 600px); }
.pale--page h1 { font-size: clamp(2.75rem, 1.9rem + 3.6vw, 5.25rem); max-width: 13ch; }

@media (max-width: 860px) {
  .pale { grid-template-columns: 1fr; min-height: 0; }
  .pale__field { padding: 44px var(--gut) 40px; }
  .pale__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .pale__photo figcaption { top: 10px; max-width: 80%; }
}

/* the shield's white half holding content instead of a photo */
.pale__panel { display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--stock); color: var(--ink);
  padding: clamp(40px, 6vw, 88px) max(var(--gut), calc((100vw - var(--wrap)) / 2)) calc(clamp(40px, 6vw, 88px) + var(--dip)) clamp(24px, 5vw, 72px); }
.pale__panel .callcard { background: var(--paper); }
.pale__panel .hours { margin: 0; }
.pale__panel p { margin: 0; }
.pale__art { display: flex; flex-direction: column; justify-content: center; background: var(--stock); color: var(--ink);
  padding: clamp(32px, 5vw, 72px) max(var(--gut), calc((100vw - var(--wrap)) / 2)) calc(clamp(32px, 5vw, 72px) + var(--dip)) clamp(24px, 4vw, 56px); }
@media (max-width: 860px) {
  .pale__panel, .pale__art { padding: 32px var(--gut) calc(32px + var(--dip)); }
}

/* ---- sections ----------------------------------------------------------- */
.sec { padding: var(--sec) 0; }
.sec--stock { background: var(--stock); }
.sec--tight { padding: clamp(40px, 6vw, 72px) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec__head p { margin: 0; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* facts ledger under the hero */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ledger li { padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.ledger li:last-child { border-right: 0; margin-right: 0; }
.ledger strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; margin-bottom: 8px; }
.ledger span { display: block; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 960px) {
  .ledger { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .ledger li:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; gap: 0; }
  .ledger li { border-right: 0; margin-right: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
}

/* creed: their own words, big */
.creed { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.creed__quote { margin: 0; }
.creed__quote { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); line-height: .95; margin: 0; text-wrap: balance; }
.creed__body { margin-top: 28px; max-width: 34em; }
@media (max-width: 860px) { .creed { grid-template-columns: 1fr; } }

/* photos with plain captions */
.shot { margin: 0; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--stock); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: var(--ink-soft); }
.shot figcaption b { color: var(--ink); font-weight: 700; }
.work img[src*="tech-metal-shop"] { object-position: 70% 72%; }

.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 20px; }
.work .shot:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work .shot:nth-child(1) .shot__btn { aspect-ratio: 1 / 1.02; }
.work .shot:nth-child(n+2) { grid-column: span 5; }
.work .shot:nth-child(2) .shot__btn, .work .shot:nth-child(3) .shot__btn { aspect-ratio: 16 / 10; }
.work .shot:nth-child(n+4) { grid-column: span 4; }
.work .shot:nth-child(n+4) .shot__btn { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .work { grid-template-columns: 1fr 1fr; }
  .work .shot:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .work .shot:nth-child(1) { grid-column: span 2; }
  .work .shot:nth-child(n) .shot__btn { aspect-ratio: 4 / 5; }
  .work .shot:nth-child(1) .shot__btn { aspect-ratio: 4 / 3; }
}

/* plan: what the yearly contract covers */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border: 2px solid var(--ink); background: var(--paper); }
.plan__price { padding: clamp(28px, 4vw, 52px); background: var(--field); color: var(--on-field); }
.plan__price h2, .plan__price h3 { color: var(--on-field); }
.plan__num { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); line-height: .85; margin: 6px 0 10px; }
.plan__num small { font-size: .32em; font-weight: 700; margin-left: .2em; letter-spacing: .01em; }
.plan__per { color: var(--on-field-soft); margin-bottom: 26px; }
.plan__list { padding: clamp(28px, 4vw, 52px); }
.plan__list ul, .ticks { list-style: none; margin: 0; padding: 0; }
.plan__list li, .ticks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.plan__list li:last-child, .ticks li:last-child { border-bottom: 0; }
.plan__list li::before, .ticks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5 10-11' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5 10-11' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}
.seasons { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border-top: 1px solid rgba(255, 255, 255, .35); }
.seasons div { padding: 14px 14px 0 0; }
.seasons div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .35); }
.seasons b { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.seasons .ico { width: 22px; height: 22px; }
.seasons span { font-size: .9375rem; color: var(--on-field-soft); line-height: 1.4; display: block; }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .seasons { grid-template-columns: 1fr; }
  .seasons div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); margin-top: 14px; }
}

/* area + hours */
.area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.towns { list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1.02; }
.towns li span { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0; }
.hours { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; }
.callcard { padding: 28px; border: 2px solid var(--ink); }
.callcard__num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1; text-decoration: none; margin: 4px 0 12px; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* service pages ---------------------------------------------------------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.cols--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cols--top { align-items: start; }
.cols--mid { align-items: center; }
@media (max-width: 860px) { .cols, .cols--wide { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.split__half { padding: clamp(28px, 4vw, 56px) clamp(0px, 3vw, 48px) 0 0; }
.split__half + .split__half { padding: clamp(28px, 4vw, 56px) 0 0 clamp(20px, 3vw, 48px); border-left: 1px solid var(--rule); }
.split__tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.split__tag .ico { width: 30px; height: 30px; }
.split__half--heat .split__tag .ico { color: #E1462C; }
.split__half--cool .split__tag .ico { color: #3B1F8F; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__half, .split__half + .split__half { padding: 32px 0 0; border-left: 0; }
  .split__half + .split__half { margin-top: 32px; border-top: 1px solid var(--rule); }
}

.problems { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.problems li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.problems b { display: block; font-size: 1.0625rem; }
.problems span { display: block; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; margin-top: 2px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair .shot__btn { aspect-ratio: 4 / 5; }
.pair--land .shot__btn { aspect-ratio: 4 / 3; }

.aside { padding: 28px; background: var(--stock); }
.aside h3 { margin-bottom: .5em; }

.flag { padding: 18px 20px; border-left: 4px solid var(--heat); background: var(--stock); font-size: 1rem; }

/* services index */
.svc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc__row { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 40px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.svc__row h3 a { text-decoration: none; }
.svc__row h3 a::after { content: ""; position: absolute; inset: 0; }
.svc__row:hover h3 a, .svc__row h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.svc__row:hover { background: linear-gradient(90deg, var(--stock), transparent 70%); }
.svc__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stock); }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; }
.svc__row h3 { margin: 0 0 .2em; }
.svc__row p { margin: 0; max-width: 40em; }
.svc__zone { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.svc__zone svg { width: 30px; height: 27px; color: var(--ink); }
@media (max-width: 760px) {
  .svc__row { grid-template-columns: 1fr; }
  .svc__pic { aspect-ratio: 16 / 9; }
}

/* drawn figures (no photo exists for these) */
.art { margin: 0; }
.art svg { display: block; width: 100%; height: auto; }
.art figcaption { margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }
.art__labels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.art__labels b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; }
.art__labels span { font-size: .9375rem; color: var(--ink-soft); line-height: 1.45; display: block; }
.loops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.loops li { border-top: 2px solid var(--ink); padding-top: 16px; }
.loops svg { width: 100%; height: auto; max-width: 220px; margin-bottom: 12px; color: var(--ink); }
.loops b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1; margin-bottom: 6px; }
.loops span { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .loops { grid-template-columns: 1fr 1fr; } }

/* closing call band */
.callband { background: var(--field); color: var(--on-field); }
.callband__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.callband h2 { color: var(--on-field); margin: 0; max-width: 16ch; }
.callband p { margin: 6px 0 0; color: var(--on-field-soft); }

/* gallery page */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery .shot__btn { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .gallery, .gallery--4 { grid-template-columns: 1fr 1fr; }
  .gallery > :last-child:nth-child(odd), .work > :last-child:nth-child(even) { grid-column: 1 / -1; }
  .gallery > :last-child:nth-child(odd) .shot__btn, .work > :last-child:nth-child(even) .shot__btn { aspect-ratio: 16 / 10; }
}
.gallery__group + .gallery__group { margin-top: clamp(56px, 7vw, 96px); }

/* designed empty photo slot */
.slot {
  display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 24px; text-align: center;
  background: var(--stock) url("../img/crest-navy.png") center 38% / 34% auto no-repeat;
  background-blend-mode: luminosity; color: var(--ink-soft); font-size: .9375rem;
  border: 1px dashed var(--galv);
}
.slot span { align-self: end; }

/* contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.form .opt { font-weight: 500; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--galv); border-radius: 3px;
  background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.4 var(--text);
}
.form textarea { min-height: 130px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23003060' stroke-width='2.4'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.form input[type="file"] { padding: 8px; font-size: 1rem; }
.form input[type="file"]::file-selector-button { margin-right: 14px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); color: var(--ink); font: 700 .9375rem var(--text); cursor: pointer; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 48, 96, .18); }
.form__note { grid-column: 1 / -1; margin: 0; padding: 14px 16px; background: var(--stock); font-size: .9375rem; display: none; }
.form.is-sent .form__note { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span { display: inline-block; padding: 10px 14px; border: 2px solid var(--galv); border-radius: 3px; font-weight: 600; cursor: pointer; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--heat); outline-offset: 2px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---- footer: below grade ------------------------------------------------- */
.foot { position: relative; display: flow-root; margin-top: 0; background: var(--deep); color: rgba(255, 255, 255, .86); font-size: 1rem; }
.foot__strata { display: block; width: 100%; height: clamp(48px, 7vw, 110px); background: var(--strata-bg, var(--field)); }
.page-home { --strata-bg: var(--stock); }
.page-contact, .page-guide { --strata-bg: var(--paper); }
.foot__s1 { fill: var(--strata-1); } .foot__s2 { fill: var(--strata-2); } .foot__s3 { fill: var(--strata-3); }
.foot__in {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 40px;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gut) 40px;
}
.foot a { color: #fff; }
.foot p { margin: 0 0 .7em; }
.foot__crest { width: 64px; margin-bottom: 14px; }
.foot__name { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: #fff; }
.foot__div { font-size: .9375rem; color: rgba(255, 255, 255, .78); }
.foot__creed { margin-top: 18px !important; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.1; color: #fff; max-width: 15em; }
.foot__h { font-family: var(--text); font-size: .9375rem; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.foot__h--gap { margin-top: 26px; }
.foot__big { font-family: var(--display); font-weight: 800; font-size: 1.875rem; line-height: 1; text-decoration: none; }
.foot__links { list-style: none; margin: 0; padding: 0; columns: 1; }
.foot__links li { margin-bottom: 6px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 18px var(--gut) 28px;
  border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; color: rgba(255, 255, 255, .66);
}
.foot__base p { margin: 0; }
@media (max-width: 960px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; gap: 28px; } }

/* lightbox */
.lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: #0B0A2A; color: #fff; }
.lightbox::backdrop { background: rgba(0, 20, 40, .82); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox__cap { margin: 0; padding: 12px 16px; font-size: .9375rem; }
.lightbox__close { position: absolute; right: 8px; top: 8px; padding: 8px 12px; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .6); color: #fff; font: 700 .875rem var(--text); cursor: pointer; }

/* ---- designer guide -------------------------------------------------------- */
.ghead { background: var(--field); color: var(--on-field); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.ghead h1 { color: var(--on-field); font-size: clamp(2.75rem, 1.9rem + 3.6vw, 5.25rem); max-width: 14ch; }
.ghead .lede { color: var(--on-field-soft); max-width: 38em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.toc a { display: inline-block; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.toc a:hover { background: rgba(255, 255, 255, .12); }
.gsec { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.gsec:nth-of-type(even) { background: var(--stock); }
.gsec h2 { margin-bottom: .5em; }
.gsec h3 { margin-top: 1.4em; }
.gtable { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.gtable th, .gtable td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.gtable th { font-size: .875rem; font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.gtable code, .gsec code { font-family: ui-monospace, Consolas, monospace; font-size: .875em; background: rgba(0, 48, 96, .07); padding: 1px 5px; border-radius: 3px; }
.gscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gscroll .gtable { min-width: 760px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.swatches li { border: 1px solid var(--rule); background: var(--paper); }
.swatches i { display: block; height: 84px; border-bottom: 1px solid var(--rule); }
.swatches div { padding: 12px 14px; font-size: .9375rem; line-height: 1.4; }
.swatches b { display: block; font-size: 1rem; }
.ramp { display: grid; grid-template-columns: repeat(6, 1fr); height: 56px; margin: 8px 0 6px; }
.marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.marks figure { margin: 0; }
.marks .plate { display: grid; place-items: center; aspect-ratio: 1; padding: 22px; border: 1px solid var(--rule); background: var(--paper); }
.marks .plate--navy { background: #003060; border-color: #003060; }
.marks .plate img { max-height: 100%; width: auto; }
.marks figcaption { font-size: .9375rem; margin-top: 8px; }
@media (max-width: 860px) { .marks { grid-template-columns: 1fr 1fr; } }
.specimen { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: baseline; }
.specimen__meta { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 760px) { .specimen { grid-template-columns: 1fr; } }
.codebox { width: 100%; height: 260px; padding: 14px; border: 2px solid var(--galv); border-radius: 3px; font: 12px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); background: var(--paper); resize: vertical; }
.confirm { counter-reset: c; list-style: none; margin: 0; padding: 0; }
.confirm li { counter-increment: c; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--rule); }
.confirm li::before { content: counter(c); position: absolute; left: 0; top: 10px; font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.confirm b { display: block; }
.confirm .ans { display: block; margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--ink); background: var(--stock); font-size: .9375rem; }
.confirm li.is-done::before { color: var(--ink-soft); }
.donts li::before { background: var(--heat); -webkit-mask: none; mask: none; clip-path: polygon(20% 10%, 50% 40%, 80% 10%, 90% 20%, 60% 50%, 90% 80%, 80% 90%, 50% 60%, 20% 90%, 10% 80%, 40% 50%, 10% 20%); }

/* ---- build notes layer (mock only) ---------------------------------------- */
:where([data-note]) { position: relative; }  /* zero specificity: never beats a component's own position */
.show-notes [data-note]::before {
  content: attr(data-note);
  position: absolute; z-index: 25; left: 8px; top: 8px; max-width: min(460px, calc(100% - 16px));
  padding: 8px 10px 8px 30px; border-radius: 3px;
  background: #FFF4B8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h4l10-10-4-4L4 16zM13 7l4 4' fill='none' stroke='%231E2328' stroke-width='2'/%3E%3C/svg%3E") 8px 9px / 15px no-repeat;
  color: #1E2328; box-shadow: 0 2px 0 #1E2328; border: 1px solid #1E2328;
  font: 600 13px/1.4 var(--text); letter-spacing: 0; text-transform: none; white-space: normal; text-align: left;
  pointer-events: none;
}
.show-notes .masthead[data-note]::before { top: calc(100% + 6px); }
.show-notes .foot[data-note]::before { top: auto; bottom: 8px; }
.show-notes .pale[data-note]::before { left: auto; right: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
@media print {
  .mockbar, .masthead, .callband, .foot__strata { display: none; }
}
