/* ==========================================================================
   Connor Griffin: inner pages
   Page header, Services, News, Contact.
   Loaded after main.css.
   ========================================================================== */

/* Page header: same blue gradient as the homepage banner, without the notch */
body:has(.page-head) .site-header { border-bottom-color: transparent; }
body:has(.page-head) .spacer-row { height: var(--s-8); }
@media (max-width: 700px) {
  body:has(.page-head) .spacer-row { height: var(--s-7); }
}

.page-head {
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 90, 0.22) 0%, transparent 10%, transparent 90%, rgba(12, 18, 90, 0.22) 100%),
    linear-gradient(180deg, #232EA6 0%, #1336C2 22%, #0756D6 55%, #0A64E0 80%, #1270E4 100%);
  color: var(--c-white);
}
.page-head .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* Contact banner: cut-out photo standing on the banner's own blue.
   Right edge lines up with the right edge of the page content. */
.page-head--person {
  position: relative;
  overflow: hidden;
}
.page-head--person .page-head__inner {
  position: relative;
  z-index: 3;
}
/* Bubble layers: back sits behind the photo, front in front of it,
   both behind the text */
.bubble-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.bubble-layer--back { z-index: 0; }
.bubble-layer--front { z-index: 2; }
.page-head__person {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  /* Same columns as the form/map grid below */
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-8);
  pointer-events: none;
}
.page-head__person-col {
  grid-column: 2;
  position: relative;
}
.page-head__person picture { display: contents; }
/* Halfway between centered and the map column's right edge */
.page-head__person img {
  position: absolute;
  bottom: 0;
  left: 75%;
  transform: translateX(-75%);
  display: block;
  width: auto;
  height: 83.5%;
  max-width: none;
}
/* Narrow laptops: not enough room beside the text, so she sits at the right edge */
@media (max-width: 1180px) {
  .page-head__person img { left: auto; right: 0; transform: none; height: 73%; }
}
@media (max-width: 1080px) {
  .page-head__person { display: none; }
}
@media (max-width: 600px) {
  .page-head { border-radius: 20px 20px 0 0; }
}
.page-head__inner {
  padding-top: var(--s-9);
  padding-bottom: var(--s-8);
}
.page-head h1 {
  max-width: 18ch;
  margin-top: var(--s-4);
  font-family: var(--f-serif);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.page-head__lede {
  max-width: 60ch;
  margin-top: var(--s-5);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--c-white);
}
@media (max-width: 700px) {
  .page-head__inner { padding-top: var(--s-8); padding-bottom: var(--s-7); }
}

/* Shared section heading */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-7);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--c-navy);
}
.section-head h2 {
  margin-top: var(--s-3);
  font-family: var(--f-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--c-navy);
}
.section-head p { max-width: 52ch; font-size: 15px; color: var(--c-ink-soft); }

.btn--dark { background: var(--c-navy); color: var(--c-white); }
.btn--dark:hover { background: var(--c-white); color: var(--c-navy); border-color: var(--c-navy); }

/* ==========================================================================
   Services
   ========================================================================== */
.svc-list { border-bottom: 1px solid var(--c-line); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-7);
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
}
.svc:first-child { border-top: 0; padding-top: 0; }
.svc__num {
  display: inline-block;
  margin-right: var(--s-3);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-blue);
  vertical-align: 0.35em;
}
.svc h2 {
  font-family: var(--f-serif);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-navy);
}
.svc__abbr {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.svc__body > p { font-size: 17px; line-height: 1.65; color: var(--c-ink); }
.svc__body > p + p { margin-top: var(--s-3); color: var(--c-ink-soft); font-size: 16px; }
.svc__incl-title {
  margin-top: var(--s-5);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.svc__incl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--s-5);
  margin-top: var(--s-2);
}
.svc__incl li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(217, 221, 227, 0.6);
  font-size: 15px;
  color: var(--c-ink-soft);
}

/* Full-width image row between services: same blue gradient as the
   page header banners. 477px tall on desktop, scaling down with the
   screen so the whole row of sample sites stays visible. */
.svc-showcase {
  height: min(477px, 33.34vw);
  background:
    linear-gradient(90deg, rgba(12, 18, 90, 0.22) 0%, transparent 10%, transparent 90%, rgba(12, 18, 90, 0.22) 100%),
    linear-gradient(180deg, #232EA6 0%, #1336C2 22%, #0756D6 55%, #0A64E0 80%, #1270E4 100%);
  overflow: hidden;
}
.svc-showcase__figure {
  position: relative;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}
.svc-showcase__figure picture { display: contents; }
.svc-showcase__figure img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  /* feather the edges into the banner blue */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-composite: intersect;
}
.svc-showcase__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.svc-list--continued .svc:first-child { padding-top: 40px; }
@media (max-width: 700px) {
  .svc-showcase { height: auto; overflow: visible; background: none; }
  .svc-showcase__figure { display: block; height: auto; }
  .svc-showcase__figure picture { display: block; height: 33.34vw; overflow: hidden;
    background:
      linear-gradient(180deg, #232EA6 0%, #1336C2 22%, #0756D6 55%, #0A64E0 80%, #1270E4 100%); }
  .svc-showcase__figure img { width: 100%; height: 100%; }
  .svc-showcase__caption { position: static; display: block; padding: 8px var(--gutter) 0; font-size: 10px; text-align: right; color: var(--c-ink-faint); }
}

@media (max-width: 960px) {
  .svc { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: 32px 0; }
}
@media (max-width: 700px) {
  .svc__incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .svc__incl { grid-template-columns: minmax(0, 1fr); }
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: var(--s-6);
  counter-reset: step;
}
.process li {
  padding: 0 var(--s-5);
  border-left: 1px solid var(--c-line);
}
.process li:first-child { padding-left: 0; border-left: 0; }
.process li:last-child { padding-right: 0; }
.process__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-blue);
}
.process h3 {
  margin-top: var(--s-2);
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-navy);
}
.process p {
  margin-top: var(--s-2);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-ink-soft);
}
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .process li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { padding: 0 0 var(--s-5); border-left: 0; border-bottom: 1px solid var(--c-line-soft); }
  .process li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5) var(--s-7);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.cta-band h2 {
  font-family: var(--f-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-navy);
}
.cta-band p { margin-top: var(--s-2); color: var(--c-ink-soft); font-size: 16px; }

/* ==========================================================================
   News
   ========================================================================== */
.news-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--c-navy);
}
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.news-filters button {
  min-height: 38px;
  padding: 0 var(--s-4);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  cursor: pointer;
}
.news-filters button:hover { border-color: var(--c-navy); color: var(--c-navy); }
.news-filters button[aria-pressed="true"] { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.news-count {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-ink-faint);
}

.news-list > li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--c-line);
}
.news-list .news-empty {
  display: block;
  padding: var(--s-7) 0;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-ink-faint);
}
.news-item__side {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ink-faint);
}
.news-item__cat {
  display: block;
  color: var(--c-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-item__region {
  display: block;
  color: var(--c-ink-soft);
}
.news-item__title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-ink);
}
.news-item__title a { text-decoration: none; }
.news-item__title a:hover { color: var(--c-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-item__summary {
  max-width: 70ch;
  margin-top: var(--s-2);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.news-item__source {
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink-faint);
}
.news-item__source a { color: var(--c-ink-soft); text-underline-offset: 2px; }

.news-item .intel-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 240px);
  align-items: end;
  gap: var(--s-1) var(--s-4);
  max-width: 420px;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-line);
}
.news-item .intel-metric__value { font-family: var(--f-mono); font-size: 20px; font-weight: 500; line-height: 1; color: var(--c-navy); }
.news-item .intel-metric__label { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11px; color: var(--c-ink-faint); }
.news-item .intel-metric__spark { width: 100%; height: 28px; color: var(--c-blue); }
.news-item .intel-metric__spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.news-more { margin-top: var(--s-6); }
.news-more button {
  min-height: 44px;
  padding: 0 var(--s-6);
  background: var(--c-white);
  border: 1px solid var(--c-navy);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy);
  cursor: pointer;
}
.news-more button:hover { background: var(--c-navy); color: var(--c-white); }

.news-policy {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-ink-faint);
}

@media (max-width: 700px) {
  .news-list > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-5) 0; }
  .news-item__side { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
  .news-item__cat, .news-item__region { display: inline; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
}

.form-status {
  margin-bottom: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--c-blue);
  background: var(--c-paper);
  font-size: 15px;
}
.form-status--error { border-left-color: #9B2C2C; }

.cform { display: grid; gap: var(--s-5); }
.cform__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
@media (max-width: 560px) {
  .cform__row { grid-template-columns: minmax(0, 1fr); }
}
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.field .opt { color: var(--c-ink-faint); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  color: var(--c-ink);
  transition: border-color 140ms ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F2328' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--c-navy); outline: 2px solid var(--c-blue); outline-offset: 0; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-2);
}
.cform__foot p { max-width: 44ch; font-size: 14.5px; color: var(--c-ink-faint); }
.cform button[type="submit"] { cursor: pointer; }

.contact-aside dl > div:first-child { padding-top: 0; }
.contact-aside dl > div {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.contact-aside dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.contact-aside dd {
  margin-top: var(--s-1);
  font-size: 16px;
  color: var(--c-ink);
}
.contact-aside dd a { text-underline-offset: 3px; }
.contact-map {
  margin-top: var(--s-5);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
@media (max-width: 700px) {
  .contact-map iframe { height: 300px; }
}
.contact-aside__note {
  margin-top: var(--s-5);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* Thank-you */
.thanks { max-width: 640px; }
.thanks p { font-size: 17px; color: var(--c-ink-soft); }
.thanks p + p { margin-top: var(--s-4); }
.thanks .btn { margin-top: var(--s-6); }
