/* ==========================================================================
   Custovia Security: page-specific styles
   Each page's styles live under its own heading below.
   ========================================================================== */

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; align-items: center; }

/* ---------- Who We Are (home) ---------- */

/* One large photograph with the words written over it. A soft shade behind the words keeps
   them readable while the photo stays clearly visible. Phones come first; larger screens below. */
.hero--photo {
  --focus-ring: var(--steel-300);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  /* Fills the first screen on a phone (window height minus the header and the bottom action bar). */
  min-height: max(34rem, calc(100vh - 8.5rem));
  min-height: max(34rem, calc(100svh - 8.5rem));
  background: var(--navy-900); /* shows for a moment while the photo loads */
  color: var(--white);
}
.hero--photo picture { position: absolute; inset: 0; z-index: -2; }
.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
/* Phones: the words sit at the bottom, shaded from below, with the guard above them. */
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(5, 13, 28, 0.94) 0%,
    rgba(5, 13, 28, 0.8) 26%,
    rgba(5, 13, 28, 0.3) 52%,
    rgba(5, 13, 28, 0) 78%
  );
}
.hero__content { display: grid; justify-items: start; gap: 0.9rem; padding-block: 1.5rem 1.75rem; }
.hero__content .eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--steel-300); }
.hero__content h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 9.2vw, 3.4rem);
  color: var(--white);
  text-shadow: 0 2px 24px rgba(5, 13, 28, 0.55);
}
.hero__content .lead { max-width: 36rem; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 16px rgba(5, 13, 28, 0.6); }
.hero__content .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; margin-top: 0.4rem; }
.hero__content .btn { min-height: 2.9rem; padding-inline: 0.6rem; font-size: 0.86rem; }
.hero--photo .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); background: rgba(5, 13, 28, 0.3); }
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.85); }

/* Small phones: the long intro is hidden to keep the photo in view. It stays for screen readers,
   and its message is repeated in the strip just below. */
@media (max-width: 479px) {
  .hero__content .lead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 480px) {
  .hero__content .actions { display: flex; width: auto; }
  .hero__content .btn { min-height: 3rem; padding-inline: 1.5rem; font-size: 0.95rem; }
  .hero__content .eyebrow { font-size: 0.76rem; letter-spacing: 0.2em; }
}

/* Desktop width: the words sit on the left, over the blurred street, and the guard stays clear on the right. */
@media (min-width: 1024px) {
  .hero--photo {
    align-items: center;
    /* Tall on any screen, but never taller than the window or 60rem, so the whole scene stays in view. */
    min-height: clamp(34rem, 58vw, min(60rem, 88vh));
  }
  .hero--photo::after {
    background: linear-gradient(
      90deg,
      rgba(5, 13, 28, 0.86) 0%,
      rgba(5, 13, 28, 0.72) 30%,
      rgba(5, 13, 28, 0.34) 54%,
      rgba(5, 13, 28, 0) 76%
    );
  }
  .hero__content { gap: 1.5rem; padding-block: 4rem; }
  .hero__content h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
  .hero__content .lead { max-width: min(36rem, 40vw); }
}

.trust { background: var(--white); border-bottom: 1px solid var(--grey-200); }
.trust__grid { display: grid; }
.trust__item { display: flex; align-items: center; gap: 1rem; padding-block: 1.3rem; }
.trust__item + .trust__item { border-top: 1px solid var(--grey-200); }
.trust__title { font-weight: 600; line-height: 1.3; color: var(--navy-900); }
.trust__text { font-size: 0.9rem; color: var(--grey-600); }
@media (min-width: 720px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-top: 0; }
  .trust__item:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--grey-200); }
}
@media (min-width: 1000px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 2rem 1.5rem; border-top: 0; border-left: 1px solid var(--grey-200); }
  .trust__item:first-child { padding-left: 0; border-left: 0; }
}

.story { display: grid; gap: 2.5rem; }
.story__intro { display: grid; align-content: start; gap: 1.25rem; }
.pullquote {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--navy-700);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--navy-900);
}
@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
}

.principle { position: relative; display: grid; align-content: start; gap: 1rem; }
.principle__num {
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--grey-200);
}

.owner-card { position: relative; display: grid; align-content: start; gap: 1.1rem; }
.owner-card .pill { position: absolute; top: 1rem; right: 1rem; }
.owner-card__photo {
  display: block;
  flex: none;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--grey-100);
  /* A thin ring keeps a photo with a white background visible on the white card. */
  box-shadow: 0 0 0 1px var(--grey-200), var(--shadow-md);
}
.owner-card__role {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.service-card { display: grid; align-content: start; gap: 1rem; }
.service-card p { color: var(--grey-300); }
.service-card__more { margin-top: 0.5rem; font-weight: 600; color: var(--steel-300); }
.service-card:hover .service-card__more { color: var(--white); }

.assurance {
  display: grid;
  align-items: center;
  gap: 1.75rem;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--grey-50), var(--white));
  box-shadow: var(--shadow-sm);
}
.assurance__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--steel-300);
}
.assurance__icon svg { width: 2.2rem; height: 2.2rem; }
.assurance__copy { display: grid; gap: 0.75rem; max-width: 40rem; }
.assurance h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
@media (min-width: 820px) {
  .assurance { grid-template-columns: auto 1fr auto; gap: 2.5rem; }
}

/* ---------- Services ---------- */

.jump-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.jump {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-300);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.jump:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }

.service { display: grid; align-items: center; gap: 2.5rem; }
.service__copy { display: grid; justify-items: start; gap: 1.5rem; }
.service__block { display: grid; gap: 0.9rem; }
.block-title {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.86rem;
  color: var(--grey-700);
}
.service__visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 320px at 70% 0%, rgba(90, 127, 179, 0.3), transparent 65%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.service__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.service__visual svg { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .service--flip .service__visual { order: -1; }
}

.steps { display: grid; gap: 2rem; }
.step { display: grid; align-content: start; gap: 0.6rem; padding-top: 1.4rem; border-top: 2px solid var(--navy-700); }
.step__num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--navy-700);
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
}

.faq-layout { display: grid; align-items: start; gap: 2.5rem; }
.faq-layout .section__head { margin-bottom: 0; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 4fr 7fr; gap: 5rem; }
  .faq-layout .section__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq details[open] { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-700);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.4rem 1.3rem; color: var(--grey-600); }


/* ---------- Portfolio (resume layout) ---------- */

.portfolio-section {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(4rem, 3rem + 5vw, 7rem);
  background: var(--grey-50);
}

/* The page is laid out like a printed resume: a header, then Summary, Experience, Credentials. */
.sheet {
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3.5vw, 4rem);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.sheet__head {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--navy-900);
}
.sheet__name { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.sheet__tagline { margin-top: 0.25rem; color: var(--grey-600); }
.sheet__contact { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin-top: 1rem; font-size: 0.92rem; }
.sheet__contact a { font-weight: 500; color: var(--navy-700); text-decoration: none; }
.sheet__contact a:hover { text-decoration: underline; }
.sheet__logo { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--grey-300); }

.sheet__section {
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--grey-200);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.sheet__summary { max-width: 52rem; }

.resume { display: grid; }
.resume__entry { display: grid; gap: 0.6rem 2.5rem; padding-block: 1.9rem; border-top: 1px solid var(--grey-200); }
.resume__entry:first-child { padding-top: 0.5rem; border-top: 0; }
.resume__when { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 0.5rem 0.75rem; }
.resume__dates {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.resume__role {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
}
.resume__org { margin-top: 0.2rem; font-weight: 600; color: var(--navy-700); }
.resume__desc { margin-top: 0.9rem; }
.resume__duties { display: grid; gap: 0.4rem; margin-top: 0.9rem; padding-left: 1.15rem; list-style: disc; }
.resume__duties li::marker { color: var(--navy-700); }
/* Short jobs that came without dates: the client in bold, then what was done. */
.resume__more { display: grid; gap: 1.1rem; }
.resume__more dt { font-weight: 600; color: var(--navy-700); }
.resume__more dd { margin: 0; }
@media (min-width: 720px) {
  .resume__entry { grid-template-columns: 11rem minmax(0, 1fr); }
  .resume__when { display: grid; gap: 0.6rem; justify-items: start; }
}

.sheet__facts { display: grid; gap: 0.9rem; }
.sheet__fact { display: grid; gap: 0.15rem 2.5rem; }
.sheet__fact dt {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.sheet__fact dd { margin: 0; }
.sheet__fact a { font-weight: 600; color: var(--navy-700); }
@media (min-width: 720px) {
  .sheet__fact { grid-template-columns: 11rem minmax(0, 1fr); }
}

/* ---------- Guard certification: what every guard holds, and a pulsing health cross ---------- */

.certified {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: var(--white);
}
.certified__inner { display: grid; align-items: center; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.certified__content { display: grid; justify-items: start; gap: 1.25rem; }
.certified .eyebrow::before { height: 2px; background: var(--health-600); opacity: 1; }

.cert-list { display: grid; gap: 0.85rem; width: 100%; max-width: 34rem; margin-top: 0.5rem; }
.cert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--health-600); box-shadow: var(--shadow-md); }
.cert-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--health-50);
  color: var(--health-600);
  transition: transform 0.4s var(--ease);
}
.cert-card:hover .cert-card__icon { transform: scale(1.08); }
.cert-card__icon svg { width: 1.5rem; height: 1.5rem; }
.cert-card__title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.cert-card__note { margin-top: 0.15rem; font-size: 0.92rem; line-height: 1.45; color: var(--grey-600); }
.cert-card__check {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--health-600);
  color: var(--white);
}
.cert-card__check svg { width: 0.95rem; height: 0.95rem; }

.certified__promise {
  max-width: 28ch;
  margin-top: 0.75rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--health-600);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.22;
  color: var(--navy-900);
}

/* The stage is a dark, monitor-style panel that holds the pulsing cross. It is decoration only. */
.certified__stage {
  order: -1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 37%, rgba(31, 191, 122, 0.2), transparent 58%),
    linear-gradient(rgba(159, 182, 214, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(159, 182, 214, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(165deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg), inset 0 0 90px rgba(5, 13, 28, 0.55);
}
/* Every layer sits in the same grid cell, centred, and is sized as a share of the stage. */
.health {
  position: absolute;
  inset: 0 0 26% 0;
  display: grid;
  grid-template: 100% / 100%;
  place-items: center;
}
.health > * { grid-area: 1 / 1; border-radius: 50%; }
.health__glow {
  width: 92%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.45), rgba(31, 191, 122, 0.12) 45%, transparent 68%);
  opacity: 0.45;
  animation: health-glow 2.2s ease-in-out infinite;
}
.health__orbit {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  border: 1px dashed rgba(61, 220, 151, 0.35);
  animation: health-orbit 48s linear infinite;
}
.health__orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--health-400);
  box-shadow: 0 0 12px var(--health-400);
}
.health__ring {
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid rgba(61, 220, 151, 0.8);
  opacity: 0;
  animation: health-ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.health__ring--2 { animation-delay: 1.2s; }
.health__ring--3 { animation-delay: 2.4s; }
.health__badge {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(61, 220, 151, 0.6);
  background: radial-gradient(circle at 35% 30%, var(--navy-700), var(--navy-900) 72%);
  box-shadow: 0 0 0 6px rgba(61, 220, 151, 0.07), 0 10px 40px rgba(31, 191, 122, 0.35);
  animation: health-beat 2.2s ease-in-out infinite;
}
.health__cross { width: 56%; height: auto; filter: drop-shadow(0 0 8px rgba(61, 220, 151, 0.6)); }
.health__stop--1 { stop-color: var(--health-300); }
.health__stop--2 { stop-color: var(--health-500); }
.health__stop--3 { stop-color: var(--health-600); }

.health-ecg { position: absolute; left: 0; bottom: 5%; width: 100%; height: auto; }
.health-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.health-ecg__track { stroke: rgba(61, 220, 151, 0.22); stroke-width: 1.5; }
.health-ecg__pulse {
  stroke: var(--health-400);
  stroke-width: 2.4;
  stroke-dasharray: 140 1000;
  stroke-dashoffset: 140;
  filter: drop-shadow(0 0 4px rgba(61, 220, 151, 0.9));
  animation: health-ecg 3.4s linear infinite;
}

/* A heartbeat: two quick beats, then a rest. The plain styles above are the resting state, so
   visitors who ask for reduced motion (base.css stops every loop) see a calm, glowing cross. */
@keyframes health-beat {
  0%, 42%, 100% { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(0.99); }
  30% { transform: scale(1.06); }
}
@keyframes health-glow {
  0%, 42%, 100% { opacity: 0.45; transform: scale(1); }
  10% { opacity: 1; transform: scale(1.12); }
  30% { opacity: 0.85; transform: scale(1.07); }
}
@keyframes health-ring {
  0% { opacity: 0; transform: scale(0.9); }
  12% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(2.25); }
}
@keyframes health-orbit {
  to { transform: rotate(360deg); }
}
@keyframes health-ecg {
  0% { stroke-dashoffset: 140; }
  86%, 100% { stroke-dashoffset: -1000; }
}

@media (min-width: 960px) {
  .certified__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .certified__stage { order: 0; width: 100%; max-width: 28rem; justify-self: end; }
}

/* ---------- Free assessment (Portfolio and Services): a navy banner with a clipboard that ticks itself off ---------- */

.assessment {
  padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem);
  background: var(--white);
}
.assessment__panel {
  --focus-ring: var(--steel-300);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  gap: 1.75rem;
  padding: clamp(1.75rem, 1rem + 3.5vw, 4rem);
  border-radius: var(--radius-lg);
  color: var(--grey-300);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(90, 127, 179, 0.28), transparent 65%),
    linear-gradient(165deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.assessment__copy { display: grid; justify-items: start; gap: 1.1rem; }
.assessment__copy h2 { color: var(--white); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
.assessment__copy .eyebrow { color: var(--steel-300); }
.assessment__copy .lead { max-width: 36rem; color: var(--grey-300); }
.assessment__visual { order: -1; justify-self: center; width: 8.5rem; }
@media (min-width: 860px) {
  .assessment__panel { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
  .assessment__visual { order: 0; width: 11rem; }
}

/* The clipboard. Its resting state, which is what people who ask for reduced motion see, is a
   finished checklist: every tick drawn and the scanning bar hidden. */
.assess { width: 100%; height: auto; overflow: visible; animation: assess-float 6.5s ease-in-out infinite; }
.assess__glow-a { stop-color: var(--steel-400); stop-opacity: 0.35; }
.assess__glow-b { stop-color: var(--steel-400); stop-opacity: 0; }
.assess__board { fill: var(--navy-700); stroke: var(--steel-300); stroke-opacity: 0.55; stroke-width: 2; }
.assess__clip { fill: var(--navy-600); stroke: var(--steel-300); stroke-width: 2; }
.assess__box { fill: none; stroke: var(--steel-300); stroke-width: 2; }
.assess__line { fill: var(--steel-300); opacity: 0.32; }
.assess__bar { fill: var(--steel-300); opacity: 0; animation: assess-scan 6.5s ease-in-out infinite; }
.assess__tick {
  fill: none;
  stroke: var(--white);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.assess__tick--1 { animation: assess-tick-1 6.5s ease-out infinite; }
.assess__tick--2 { animation: assess-tick-2 6.5s ease-out infinite; }
.assess__tick--3 { animation: assess-tick-3 6.5s ease-out infinite; }

/* One 6.5 second round: the bar steps down the list and each tick draws as the bar arrives, then all
   fade and the round starts again. Timing lives in the keyframes, not in delays, so nothing is held back. */
@keyframes assess-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes assess-scan {
  0% { transform: translateY(0); opacity: 0; }
  4%, 26% { transform: translateY(0); opacity: 0.22; }
  34%, 58% { transform: translateY(46px); opacity: 0.22; }
  66%, 86% { transform: translateY(92px); opacity: 0.22; }
  94%, 100% { transform: translateY(92px); opacity: 0; }
}
@keyframes assess-tick-1 {
  0%, 6% { stroke-dashoffset: 100; opacity: 1; }
  16%, 90% { stroke-dashoffset: 0; opacity: 1; }
  97% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}
@keyframes assess-tick-2 {
  0%, 36% { stroke-dashoffset: 100; opacity: 1; }
  46%, 90% { stroke-dashoffset: 0; opacity: 1; }
  97% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}
@keyframes assess-tick-3 {
  0%, 68% { stroke-dashoffset: 100; opacity: 1; }
  78%, 90% { stroke-dashoffset: 0; opacity: 1; }
  97% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}

/* Printing the page gives a clean one-document resume. */
@media print {
  .skip-link, .site-header, .site-footer, .mobile-cta, .page-hero, .certified, .assessment, .cta-band { display: none !important; }
  .portfolio-section { padding: 0; background: none; }
  .sheet { max-width: none; padding: 0; border: 0; box-shadow: none; }
}

/* ---------- Get a Quote ---------- */

.quote-layout { display: grid; align-items: start; gap: 2rem; }
@media (min-width: 980px) {
  .quote-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; }
  .quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.quote-card { padding: clamp(1.5rem, 1rem + 2vw, 3rem); box-shadow: var(--shadow-md); }
.quote-form { display: grid; gap: 2.25rem; }
.quote-form[hidden] { display: none; }

.form-group { display: grid; gap: 1.1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-group__title {
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--grey-200);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.req { color: var(--danger); }
.field__hint { font-weight: 400; }

.choice-grid { display: grid; gap: 0.75rem; }
@media (min-width: 560px) {
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__body {
  display: grid;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice:hover .choice__body { border-color: var(--grey-400); }
.choice input:checked + .choice__body {
  border-color: var(--navy-700);
  background: var(--grey-50);
  box-shadow: 0 0 0 1px var(--navy-700);
}
.choice input:focus-visible + .choice__body { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.choice__title { font-weight: 600; color: var(--navy-900); }
.choice__text { font-size: 0.85rem; color: var(--grey-600); }

.form-submit { display: grid; gap: 0.9rem; }
.form-note { font-size: 0.85rem; text-align: center; color: var(--grey-600); }
.form-status {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  font-size: 0.95rem;
  color: var(--grey-700);
}
.form-status--info { margin-bottom: 1.5rem; border-color: var(--steel-400); }
.form-status--error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-ink); }
.form-status--error:focus { outline: none; }
.form-status a { display: inline-block; margin-top: 0.5rem; font-weight: 600; text-decoration: underline; }
.form-status p + p { margin-top: 0.4rem; }

/* Honeypot: invisible to people, tempting to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-success {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2rem, 1rem + 4vw, 4rem) 1rem;
  text-align: center;
}
.quote-success[hidden] { display: none; }
.quote-success:focus { outline: none; }
.quote-success p { max-width: 36ch; color: var(--grey-600); }
.quote-success__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--steel-300);
}
.quote-success__icon svg { width: 2rem; height: 2rem; }

.quote-aside { display: grid; gap: 1.25rem; }
.next {
  --focus-ring: var(--steel-300);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(90, 127, 179, 0.28), transparent 65%),
    linear-gradient(165deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-md);
}
.next__title, .aside-title { margin-bottom: 1.1rem; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.next__title { color: var(--white); }
.next__steps { display: grid; gap: 1.2rem; counter-reset: next; }
.next__steps li { position: relative; padding-left: 2.8rem; color: var(--grey-300); }
.next__steps li::before {
  counter-increment: next;
  content: counter(next);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-300);
}
.next__steps strong { display: block; color: var(--white); }
.aside-contact { display: grid; gap: 0.8rem; }
.aside-contact a { font-weight: 500; color: var(--navy-900); text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }
.aside-contact .contact-row svg { color: var(--navy-600); }
.insurance-note { display: grid; justify-items: start; gap: 0.6rem; }
.insurance-note__title { font-weight: 600; color: var(--navy-900); }
.insurance-note__link { margin-top: 0.25rem; font-weight: 600; color: var(--navy-700); text-decoration: none; }
.insurance-note__link:hover { text-decoration: underline; }


/* ---------- Fast Estimate ---------- */

.estimate-hero { padding-bottom: clamp(7rem, 6rem + 4vw, 9rem); }
.estimator-section { position: relative; z-index: 1; margin-top: -4.5rem; padding-bottom: clamp(4rem, 3rem + 5vw, 7rem); }

.estimator {
  --focus-ring: var(--steel-300);
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  overflow: clip; /* clip (not hidden) keeps the sticky summary bar working on phones */
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 360px at 85% -10%, rgba(90, 127, 179, 0.28), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: var(--grey-300);
}
.estimator::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
}
@media (min-width: 960px) {
  .estimator { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.est-controls { display: grid; align-content: start; gap: 2.75rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }
.est-results {
  display: grid;
  align-content: start;
  gap: 1.75rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
@media (min-width: 960px) {
  .est-results { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); }
}

.est-control { display: grid; gap: 0.35rem; }
.est-control__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.est-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-300);
}
.est-readout { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.est-value {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--white);
}
.est-unit { min-width: 4.5rem; font-size: 0.95rem; color: var(--grey-400); }
.est-note { min-height: 1.5rem; font-size: 0.9rem; color: var(--grey-400); }

/* The slider: a native range input, restyled. Keyboard and touch behaviour stay native. */
.range {
  --f: 0;
  display: block;
  width: 100%;
  height: 2.25rem;
  margin: 0.4rem 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--steel-400) 0,
    var(--steel-300) calc(14px + (100% - 28px) * var(--f)),
    rgba(255, 255, 255, 0.16) calc(14px + (100% - 28px) * var(--f))
  );
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--steel-400), var(--steel-300)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(124, 155, 198, 0.25), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(124, 155, 198, 0.25), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(124, 155, 198, 0.3), 0 8px 18px rgba(0, 0, 0, 0.45); }
.range:hover::-moz-range-thumb { box-shadow: 0 0 0 9px rgba(124, 155, 198, 0.3), 0 8px 18px rgba(0, 0, 0, 0.45); }
.range:active::-webkit-slider-thumb { transform: scale(1.08); }
.range:active::-moz-range-thumb { transform: scale(1.08); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--navy-900), 0 0 0 7px var(--steel-300), 0 8px 18px rgba(0, 0, 0, 0.45); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--navy-900), 0 0 0 7px var(--steel-300), 0 8px 18px rgba(0, 0, 0, 0.45); }

.ticks { position: relative; height: 1.5rem; font-size: 0.75rem; color: var(--grey-400); }
.tick { position: absolute; top: 0; left: calc(14px + (100% - 28px) * var(--f)); transform: translateX(-50%); }

.guard-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.6rem 0.25rem; justify-items: center; margin-top: 1rem; }
.guard-icon {
  width: 1.45rem;
  height: 1.45rem;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.25s, transform 0.25s var(--ease), filter 0.25s;
}
.guard-icon.is-on { color: var(--steel-300); transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(124, 155, 198, 0.5)); }

/* Phones: a summary bar stays at the bottom of the screen while the sliders are used. */
.est-mini {
  position: sticky;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(5, 13, 28, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.est-mini__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-300); }
.est-mini__value { display: inline-flex; flex-wrap: wrap; gap: 0 0.3em; font-family: var(--font-serif); font-size: 1.35rem; font-variant-numeric: lining-nums; color: var(--white); }
@media (min-width: 960px) {
  .est-mini { display: none; }
}

.est-results__top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
.est-results__headline { display: grid; gap: 0.5rem; min-width: 0; }
.est-hero-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35em;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.05;
  color: var(--white);
}
.est-hero-range > span, .est-mini__value > span, .est-tile dd > span { white-space: nowrap; }
.est-hi { display: inline-flex; gap: 0.3em; }
.est-sub { font-size: 0.9rem; color: var(--grey-400); }

.ring { position: relative; flex: none; width: 7.5rem; height: 7.5rem; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__ticks { stroke: rgba(255, 255, 255, 0.3); stroke-width: 3; stroke-dasharray: 0.12 0.88; }
.ring__track { stroke: rgba(255, 255, 255, 0.12); stroke-width: 6; }
.ring__progress {
  stroke: var(--steel-300);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--ring, 0.33));
  transition: stroke-dashoffset 0.25s var(--ease);
  filter: drop-shadow(0 0 6px rgba(124, 155, 198, 0.55));
}
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__value { font-family: var(--font-serif); font-size: 1.9rem; font-variant-numeric: lining-nums; line-height: 1; color: var(--white); }
.ring__label { margin-top: 0.15rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-400); }
@media (max-width: 559px) {
  .est-results__top { grid-template-columns: 1fr; }
  .ring { display: none; }
}

.est-tiles { display: grid; margin: 0; }
.est-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.est-tile dt { flex: none; font-size: 0.92rem; white-space: nowrap; color: var(--grey-400); }
.est-tile dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.3em;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--white);
}
.est-cta { display: grid; gap: 0.9rem; }
.est-disclaimer { font-size: 0.82rem; text-align: center; color: var(--grey-400); }

