:root {
  --bg-1: #edf3f8;
  --bg-2: #d9e6f1;
  --surface: #ffffff;
  --surface-2: #f5f9fd;
  --text: #13232f;
  --muted: #4f6475;
  --line: #ccd8e3;
  --accent: #0f6ea8;
  --accent-deep: #0b5079;
  --accent-soft: #67a7d6;
  --radius: 18px;
  --shadow-sm: 0 8px 22px rgba(14, 36, 55, 0.08);
  --shadow-lg: 0 16px 42px rgba(10, 31, 48, 0.14);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --max-width: 1140px;
  --header-offset: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Aptos", "Bahnschrift", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 92% -15%, #c6d8eb 0%, rgba(202, 219, 236, 0) 58%),
    radial-gradient(700px 500px at 2% 15%, #e3eef8 0%, rgba(228, 238, 248, 0) 65%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 56px
    ),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.deploy-note {
  margin: 0;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.93rem;
  color: #e8f2fa;
  background: #152633;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(178, 198, 214, 0.52);
  background: rgba(248, 251, 254, 0.98);
  backdrop-filter: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 110, 168, 0), rgba(15, 110, 168, 0.44), rgba(15, 110, 168, 0));
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logo-image {
  width: 304px;
  max-width: 100%;
  height: auto;
  filter: none;
}

.menu-toggle {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.72rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

#primary-nav {
  grid-column: 1 / -1;
  display: none;
}

#primary-nav.open {
  display: block;
}

#primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 0;
  display: grid;
  gap: 0.32rem;
}

#primary-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #1d3344;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

#primary-nav a:hover,
#primary-nav a:focus-visible,
#primary-nav a.active {
  transform: translateY(-1px);
  background: rgba(15, 110, 168, 0.11);
  color: #0b4a70;
}

.header-linkedin {
  display: none;
}

.section {
  padding: 0;
}

.section + .section {
  margin-top: clamp(0.45rem, 1.2vw, 0.8rem);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(255, 255, 255, 0.74)),
    radial-gradient(500px 240px at 96% 6%, rgba(142, 189, 219, 0.25), rgba(142, 189, 219, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
}

#contact.section-alt {
  background:
    linear-gradient(180deg, rgba(220, 233, 244, 0.98), rgba(194, 213, 228, 0.96)),
    radial-gradient(560px 260px at 88% 8%, rgba(63, 117, 154, 0.26), rgba(63, 117, 154, 0));
  border-top: 0;
  border-bottom: 1px solid rgba(160, 184, 203, 0.62);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2c5a79;
  background: rgba(15, 110, 168, 0.1);
  border: 1px solid rgba(15, 110, 168, 0.15);
  padding: 0.3rem 0.56rem;
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(2.25rem, 5.4vw, 3.95rem);
  letter-spacing: -0.02em;
  max-width: 13ch;
}

h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: -0.01em;
}

.hero {
  position: relative;
  padding-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  right: 2%;
  top: 4%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 203, 230, 0.36), rgba(158, 203, 230, 0));
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-grid {
  display: block;
}

#home .hero-grid,
#services > .container,
#about > .container,
#contact > .container {
  padding-block: 1.2rem;
}

#contact > .container {
  padding-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.apps-section > .container {
  padding-top: 1.2rem;
  padding-bottom: clamp(1.8rem, 4.5vw, 2.8rem);
}

.apps-section .section-intro {
  max-width: none;
  width: 100%;
  margin-bottom: clamp(0.9rem, 2.2vw, 1.35rem);
}

.map-status-note {
  margin: 0.25rem 0 0.95rem;
  font-size: 0.95rem;
  color: #27465c;
  font-weight: 600;
}

.map-launch-title {
  max-width: none;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(0.95rem, 5.2vw, 3.95rem);
}

.map-launch-card {
  padding: clamp(0.8rem, 1.8vw, 1.1rem);
}

.map-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-bottom: 0.9rem;
}

.map-embed-frame {
  width: 100%;
  height: clamp(560px, 74vh, 900px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0e1b26;
}

#home .hero-grid {
  padding-top: 0;
}

main section[id] {
  scroll-margin-top: var(--header-offset);
}

.hero-copy p {
  max-width: 66ch;
  color: #e6f1fb;
}

.hero-copy > * {
  margin-block: 0;
}

.hero-copy > * + * {
  margin-top: 0.95rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 1.2rem;
}

.hero-overlay,
#home .hero-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--max-width));
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.05rem, 3.8vw, 2.4rem) 0;
  text-align: left;
}

.hero-overlay .eyebrow,
#home .hero-copy .eyebrow {
  background: rgba(8, 24, 36, 0.5);
  border-color: rgba(175, 210, 236, 0.45);
  color: #d8ecfc;
}

.hero-overlay h1,
#home .hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-overlay p,
#home .hero-copy p {
  margin: 0;
  color: #eef6ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-overlay .btn-secondary,
#home .hero-copy .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f9ff;
  border-color: rgba(228, 241, 252, 0.5);
}

.hero-overlay .btn-secondary:hover,
.hero-overlay .btn-secondary:focus-visible,
#home .hero-copy .btn-secondary:hover,
#home .hero-copy .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.55rem 1.04rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 88, 133, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 88, 133, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #ffffff;
}

.section-intro {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
}

#services .section-intro {
  max-width: none;
  width: 100%;
}

.about-head {
  margin-bottom: 0.9rem;
}

.about-layout {
  display: grid;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.about-company p,
.about-thom p {
  margin: 0;
  color: #284355;
}

.about-company,
.about-thom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-points {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: #284355;
}

.about-points li {
  padding-left: 0.2rem;
}

.about-scene {
  margin-top: auto;
  min-height: 120px;
}

.about-scene .scene-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  margin-bottom: 0;
}

.cards {
  margin-top: var(--space-4);
  display: grid;
  align-items: stretch;
  gap: var(--space-4);
}

#services .cards > .card {
  width: 100%;
  min-width: 0;
}

.support-card {
  margin-top: var(--space-4);
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 252, 255, 0.97));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 110, 168, 0.08), rgba(15, 110, 168, 0.55), rgba(15, 110, 168, 0.08));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #b7cada;
}

.placeholder-card {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 36, 55, 0.11);
}

.scene-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(17, 43, 63, 0), rgba(17, 43, 63, 0.16));
  pointer-events: none;
}

.hero-scene::after {
  inset: 0;
  height: auto;
  background:
    linear-gradient(105deg, rgba(8, 24, 36, 0.78) 0%, rgba(8, 24, 36, 0.56) 45%, rgba(8, 24, 36, 0.22) 72%, rgba(8, 24, 36, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 24, 36, 0.16) 0%, rgba(8, 24, 36, 0.46) 100%);
}

.scene-photo {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: center;
}

.hero-scene,
#home .hero-grid > .placeholder-card {
  grid-column: 1 / -1;
}

.hero-scene .scene-photo,
#home .hero-grid > .placeholder-card .scene-photo {
  aspect-ratio: 16 / 9;
  min-height: clamp(620px, 112vw, 820px);
  object-position: center 68%;
}

.portrait-frame {
  margin-top: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.portrait-photo {
  width: min(100%, 239px);
  aspect-ratio: 239 / 300;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 10px 24px rgba(17, 49, 74, 0.18);
}

.thom-header {
  display: flex;
  justify-content: center;
  margin-bottom: 0.08rem;
}

.thom-title {
  margin-bottom: 0.55rem;
  text-align: left;
}

.thom-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.95rem 0.9rem 0.75rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 31, 47, 0), rgba(9, 31, 47, 0.84));
}

.thom-overlay p {
  margin: 0;
  color: #eef7ff;
}

.thom-overlay p + p {
  margin-top: 0.35rem;
}

.thom-overlay a {
  color: #bfe4ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thom-overlay a:hover,
.thom-overlay a:focus-visible {
  color: #ffffff;
}

.thom-role {
  margin: 0;
  padding-inline: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.thom-portrait-wrap {
  position: relative;
  margin-top: 0;
  margin-inline: auto;
  width: min(100%, 260px);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.thom-portrait {
  width: 100%;
  border-radius: 14px;
  box-shadow: none;
}

.accordion-item {
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: clip;
  box-shadow: var(--shadow-sm);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
  background: linear-gradient(180deg, #fafdff, #f0f7fd);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 260ms ease, opacity 240ms ease;
}

.accordion-panel.open {
  max-height: none;
  opacity: 1;
}

.policy-content {
  border-top: 1px solid var(--line);
  padding: var(--space-4);
}

.policy-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.policy-note {
  margin-top: 0;
  color: var(--muted);
}

.signature-image {
  width: min(240px, 100%);
  height: auto;
}

form {
  position: relative;
  display: grid;
  gap: 0.72rem;
}

#contact-form {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.35rem) clamp(1.35rem, 3vw, 1.7rem);
}

#contact .contact-grid > div {
  width: 100%;
  max-width: none;
}

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

.contact-grid > div p {
  margin: 0;
  color: #284355;
}

.contact-grid > div p + p {
  margin-top: 0.78rem;
}

label {
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.82rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 110, 168, 0.24);
  outline-offset: 2px;
}

.form-status {
  margin: var(--space-1) 0 0;
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.is-success {
  color: #0f6a3f;
}

.form-status.is-error {
  color: #9a2531;
}

.site-footer {
  padding: var(--space-6) 0;
  color: #d9e5ef;
  background:
    radial-gradient(500px 280px at 15% -10%, rgba(138, 189, 223, 0.2), rgba(138, 189, 223, 0)),
    #0e1b26;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 var(--space-1);
}

.footer-note {
  font-size: 0.82rem;
  color: #b7c9d8;
}

.site-footer a {
  color: #9ac6e5;
}

@media (max-width: 799px) {
  .container {
    width: min(100% - 2.4rem, var(--max-width));
  }

  .header-inner {
    gap: 0.55rem;
    padding: 0.42rem 0;
  }

  .logo-image {
    width: min(88vw, 296px);
  }

  .menu-toggle {
    min-height: 44px;
    padding: 0.5rem 0.78rem;
  }

  #primary-nav {
    padding-bottom: 0.35rem;
  }

  #primary-nav ul {
    gap: 0.38rem;
  }

  #primary-nav a {
    display: block;
    min-height: 44px;
    padding: 0.58rem 0.78rem;
    font-size: 1rem;
  }

  .hero::before {
    width: 180px;
    height: 180px;
    right: -8%;
    top: 2%;
  }

  .hero-scene::after {
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(8, 24, 36, 0), rgba(8, 24, 36, 0.54));
  }

  .hero-overlay,
  #home .hero-copy {
    position: absolute;
    inset: 0;
    left: 0;
    transform: none;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 0.9rem 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(8, 24, 36, 0.08) 36%, rgba(8, 24, 36, 0.86) 100%);
  }

  .hero-overlay h1,
  #home .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 2.9rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .hero-overlay p,
  #home .hero-copy p {
    max-width: none;
    font-size: 0.96rem;
  }

  .hero-ctas {
    width: auto;
    margin-top: 0.7rem;
    gap: 0.55rem;
  }

  .hero-ctas .btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 0.48rem 0.82rem;
  }

  .hero-scene .scene-photo,
  #home .hero-grid > .placeholder-card .scene-photo {
    min-height: clamp(520px, 120vw, 700px);
    aspect-ratio: 16 / 10;
    object-position: center 64%;
  }

  h2 {
    font-size: clamp(1.5rem, 8vw, 2.05rem);
  }

  .card {
    border-radius: 16px;
    padding: 1rem;
  }

  .about-layout {
    gap: 1rem;
  }

  .map-launch-title {
    white-space: normal;
    font-size: clamp(2rem, 10.2vw, 3rem);
    line-height: 1.08;
  }

  .map-launch-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .map-embed-frame {
    height: clamp(380px, 66vh, 560px);
    min-height: 380px;
  }

  #contact-form {
    padding: 1rem;
  }

  .site-footer {
    padding: 2.1rem 0;
  }
}

@media (min-width: 800px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    padding: 0.3rem 0;
  }

  .logo-image {
    width: 344px;
    max-width: 100%;
  }

  .menu-toggle {
    display: none;
  }

  #primary-nav {
    display: block;
    grid-column: auto;
  }

  #primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0;
  }

  .header-linkedin {
    display: none;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.94rem;
    color: #24597e;
  }

  .hero-scene,
  #home .hero-grid > .placeholder-card {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero-scene .scene-photo,
  #home .hero-grid > .placeholder-card .scene-photo {
    aspect-ratio: 21 / 8;
    min-height: clamp(520px, 40vw, 640px);
    object-position: center 72%;
  }

  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: start;
  }

  #contact-form {
    justify-self: stretch;
    margin-inline: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #services .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-photo {
    aspect-ratio: 16 / 10;
  }

  .hero-scene .scene-photo,
  #home .hero-grid > .placeholder-card .scene-photo {
    aspect-ratio: 21 / 8;
  }
}

@media (min-width: 1100px) {
  .header-linkedin {
    display: inline-flex;
  }
}

@media (max-width: 440px) {
  .logo-image {
    width: min(92vw, 264px);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .deploy-note {
    display: none !important;
  }
}
