:root {
  color-scheme: dark;
  --bg: #071723;
  --bg-soft: #102533;
  --panel: #102431;
  --line: #284254;
  --text: #f4f3f3;
  --muted: #c1cbd3;
  --gold: #f1c58c;
  --gold-strong: #f8d9a6;
  --blue: #81d7f0;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 950px 580px at 78% 18%, rgba(14, 42, 64, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #040c15 0%, #061421 28%, #081b27 65%, #071722 100%);
  color: var(--text);
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea {
  outline-offset: 4px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
}

.wrap {
  max-width: var(--max);
  padding-inline: clamp(22px, 4vw, 56px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  z-index: 100;
  background: var(--gold);
  color: #10202c;
}

.skip-link:focus {
  top: 12px;
}

/* Global Site Header */
.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 15;
  background: linear-gradient(180deg, rgba(3, 10, 17, 0.75) 0%, rgba(3, 10, 17, 0.35) 60%, transparent 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  flex: none;
  object-fit: contain;
}

.brand-words {
  border-left: 1px solid #9caab3;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(2, 8, 14, 0.95);
}

.brand-name {
  letter-spacing: .26em;
  font-size: clamp(13px, 1.6vw, 21px);
  font-weight: 400;
}

.brand-line {
  font-size: clamp(7px, .75vw, 9px);
  letter-spacing: .25em;
  color: #c5ccd2;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: 14px;
  white-space: nowrap;
}

.primary-nav > a:not(.button) {
  color: #e0e4e8;
  transition: color .2s;
  text-shadow: 0 1px 8px rgba(2, 8, 14, 0.95), 0 2px 14px rgba(2, 8, 14, 0.85);
}

.primary-nav > a:hover,
.primary-nav > a[aria-current=page] {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 13px 26px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
  transition: transform .2s, background .2s, border-color .2s;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 8px 22px;
  gap: 20px;
}

.button-outline, .button-ghost {
  background: rgba(8, 24, 34, .45);
  color: #faf4ed;
}

.button-outline:hover, .button-ghost:hover {
  background: #193545;
}

.button-gold {
  background: linear-gradient(110deg, #ffe2b0, #ddb178);
  color: #18202a;
  box-shadow: 0 12px 42px rgba(2, 13, 22, 0.3);
}

.button-gold:hover {
  background: linear-gradient(110deg, #ffe9c2, #e9bd83);
}

.menu-toggle {
  display: none;
}

/* Homepage Hero baseline (augmented by home.css) */
.hero {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: clip;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: -46px 0 -12px 41%;
  background-image:
    linear-gradient(90deg, #071723 0%, #07172300 17%, #07172300 78%, #071723 100%),
    linear-gradient(0deg, #071723 1%, transparent 24%, transparent 80%, #081a27 100%),
    url("/assets/globe.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center 42%;
  opacity: .94;
  mask-image: radial-gradient(ellipse 85% 78% at 52% 45%, #000 50%, transparent 97%);
}

.hero-content {
  width: min(680px, 62%);
  padding-block: 30px 66px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .31em;
  font-weight: 650;
  color: var(--blue);
  line-height: 1.7;
  margin: 0 0 18px;
}

.hero h1, .page-hero h1, .contact-intro h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.052em;
  margin: 0;
  text-wrap: balance;
}

.hero h1 em, .page-hero h1 em, .contact-intro h1 em {
  font-style: normal;
  color: var(--gold-strong);
}

.gold-rule {
  height: 2px;
  background: #efc390;
  width: 45px;
  margin: 28px 0 16px;
}

.hero-lede {
  font-size: clamp(17px, 1.7vw, 21px);
  color: #d5d6df;
  max-width: 510px;
  line-height: 1.45;
  margin: 20px 0 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-side-note {
  position: absolute;
  right: 55px;
  top: 45px;
  letter-spacing: .26em;
  line-height: 2;
  color: #c4d1db;
  font-size: 9px;
  text-align: left;
}

/* Sections */
.section {
  padding-block: 64px;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 30px;
}

.section-heading h2, .about h2, .cta h2 {
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  font-size: clamp(31px, 3.5vw, 48px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-heading > p:last-child, .about p, .cta > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.section-heading > p:last-child {
  margin: 0;
}

/* Homepage Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: linear-gradient(145deg, #142c3a, #0d202c);
  border: 1px solid #294a5d;
  border-radius: 12px;
  padding: 27px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 51px;
  height: 51px;
  border: 2px solid #66d8f2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  color: #92e8fa;
  margin-bottom: 15px;
}

.service-icon-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.service-card h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.service-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

.service-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #9ce8fb;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.text-link:hover {
  border-color: currentColor;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 105px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.about p:first-child {
  margin-top: 0;
}

.about p {
  line-height: 1.7;
}

.cta {
  text-align: center;
  border: 1px solid #28495b;
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 0%, #204257 0, #112a3a 65%, #0c1f2b 100%);
  margin-block: 30px 70px;
  max-width: calc(var(--max) - 112px);
  padding-block: 58px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta > p:not(.eyebrow) {
  margin: 0 auto 25px;
  max-width: 510px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.footer-name {
  letter-spacing: .2em;
  font-size: 13px;
}

.site-footer p {
  color: #acbac6;
  font-size: 12px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #c8d5dc;
}

.footer-links a:hover {
  color: var(--gold);
}

.site-footer .copyright {
  grid-column: 1 / -1;
  margin-top: 14px;
}

/* ==========================================================================
   Subpage Reusable Hero Pattern
   ========================================================================== */

.page-hero {
  min-height: 420px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 28px 48px;
  isolation: isolate;
}

.page-hero-content {
  max-width: 580px;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-hero .gold-rule {
  margin: 22px 0 16px;
}

.page-hero .hero-lede {
  margin: 16px 0 28px;
  max-width: 510px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: #cfd8df;
}

.page-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 490px;
  margin-left: auto;
  z-index: 1;
}

.page-hero-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 60% 50%, rgba(100, 216, 245, 0.12) 0%, rgba(241, 197, 140, 0.06) 45%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

.page-hero-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 8%, black 22%, black 80%, rgba(0, 0, 0, 0.4) 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 6%, black 18%, black 82%, rgba(0, 0, 0, 0.4) 94%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 8%, black 22%, black 80%, rgba(0, 0, 0, 0.4) 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 6%, black 18%, black 82%, rgba(0, 0, 0, 0.4) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: drop-shadow(0 14px 34px rgba(2, 10, 18, 0.6));
}

/* ==========================================================================
   Subpage Feature Grid & Cards (Website Care & Websites)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  border: 1px solid rgba(34, 72, 97, 0.55);
  background: linear-gradient(155deg, rgba(8, 26, 39, 0.78) 0%, rgba(4, 16, 26, 0.88) 100%);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s;
}

.feature:hover {
  border-color: rgba(60, 120, 155, 0.7);
  transform: translateY(-2px);
}

.feature-symbol {
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(129, 215, 240, 0.45);
  background: rgba(14, 42, 60, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Contact Page Layout
   ========================================================================== */

.contact-layout {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  padding-block: 48px 88px;
}

.contact-intro h1 {
  font-size: clamp(45px, 5vw, 69px);
}

.contact-intro .hero-lede {
  max-width: 475px;
}

.contact-direct {
  margin-top: 45px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.contact-direct p {
  color: var(--muted);
}

.contact-panel {
  border: 1px solid #315269;
  background: linear-gradient(150deg, #142f40, #102531);
  border-radius: 15px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 26px 90px rgba(0, 16, 27, 0.44);
}

.contact-panel h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 5px;
}

.contact-panel > p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 25px;
}

.contact-panel form {
  display: grid;
  gap: 8px;
}

.contact-panel label {
  font-size: 13px;
  font-weight: 650;
  margin-top: 12px;
}

.contact-panel label span[aria-hidden] {
  color: var(--gold);
}

.optional {
  font-weight: 400;
  color: #adbfcb;
}

.contact-panel input, .contact-panel select, .contact-panel textarea {
  width: 100%;
  border: 1px solid #486172;
  background: #091d2a;
  color: #fff;
  border-radius: 7px;
  padding: 12px 14px;
  min-height: 46px;
}

.contact-panel textarea {
  resize: vertical;
  min-height: 118px;
}

.contact-panel input::placeholder, .contact-panel textarea::placeholder {
  color: #98aab6;
}

.submit-button {
  margin-top: 18px;
  width: 100%;
}

.form-note {
  font-size: 12px;
  color: #bbcbd3;
  line-height: 1.6;
  margin: 9px 0 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1050px) {
  .brand-line {
    display: none;
  }
  .brand-name {
    letter-spacing: .17em;
  }
  .primary-nav {
    gap: 16px;
  }
  .hero-side-note {
    display: none;
  }
  .hero-content {
    width: 64%;
  }
  .hero-art {
    inset: -20px 0 -10px 43%;
  }
  .page-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 20px 38px;
  }
  .page-hero-content {
    max-width: 100%;
  }
  .page-hero-visual {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 88px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand-words {
    padding-left: 12px;
  }
  .brand-name {
    font-size: 15px;
    letter-spacing: .13em;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #112b3a;
    align-items: center;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: #fff;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: #102938;
    border: 1px solid #365367;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.67);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav > a:not(.button) {
    padding: 11px 5px;
  }
  .primary-nav .button {
    margin-top: 12px;
  }
  .hero {
    min-height: 670px;
    align-items: flex-end;
  }
  .hero-art {
    inset: -25px -15px 165px -15px;
    background-position: center, center, center 34%;
    opacity: .72;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  }
  .hero-content {
    width: 100%;
    padding: 0 0 58px;
  }
  .hero h1 {
    font-size: clamp(50px, 11vw, 79px);
  }
  .hero .eyebrow {
    max-width: 350px;
  }
  .hero-lede {
    max-width: 530px;
  }
  .section {
    padding-block: 47px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 205px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta {
    margin: 15px 20px 45px;
    max-width: none;
    padding: 42px 24px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer .copyright {
    grid-column: 1;
  }
  .page-hero {
    min-height: auto;
    padding-block: 16px 32px;
    gap: 28px;
  }
  .page-hero h1 {
    font-size: clamp(38px, 9vw, 56px);
  }
  .page-hero-visual {
    max-width: 340px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    padding-block: 36px 65px;
    gap: 37px;
  }
  .contact-direct {
    margin-top: 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-inline: 20px;
  }
  .brand-name {
    font-size: 12px;
    letter-spacing: .12em;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .hero {
    min-height: 610px;
  }
  .hero-art {
    bottom: 170px;
  }
  .hero h1 {
    font-size: clamp(43px, 11.5vw, 52px);
  }
  .hero-lede {
    font-size: 17px;
  }
  .actions {
    align-items: stretch;
  }
  .actions .button {
    width: 100%;
  }
  .page-hero h1 {
    font-size: clamp(34px, 9.5vw, 44px);
  }
  .page-hero-visual {
    max-width: 290px;
  }
  .page-hero-img {
    max-height: 220px;
  }
  .contact-panel {
    padding: 22px;
  }
  .footer-links {
    column-gap: 16px;
    row-gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
