/* Apogee Web Studio — site styles
   Brand: Navy #102848 · Orange #F06020 (accents only) · Cream #F7F4EE · White · Slate #4A5568
   Rule: orange is for dots, lines and markers. Never fills, never text. No gradients. */

:root {
  --navy: #102848;
  --navy-deep: #0B1D35;
  --navy-line: #2A4468;
  --orange: #F06020;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --slate: #4A5568;
  --line: #E6E0D4;
  --line-soft: #EFEAE0;
  --input-line: #CFC7B8;
  --on-navy: #D5DDE8;
  --on-navy-muted: #C9D2E0;
  --on-navy-faint: #8FA0BA;
  --radius: 12px;
  --max: 1200px;
  --sans: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.m { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; flex: none; }
.dot--lg { width: 9px; height: 9px; }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--slate); text-transform: uppercase; }
.label--light { color: var(--on-navy-muted); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--slate); text-transform: uppercase; }

.grid-paper {
  background-color: var(--white);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ruler {
  height: 8px; border-bottom: 1px solid var(--navy);
  background-image: repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 12px);
  background-size: 100% 5px; background-repeat: no-repeat; background-position: left bottom;
}
.ruler--light {
  border-bottom-color: #3A5578;
  background-image: repeating-linear-gradient(90deg, #3A5578 0 1px, transparent 1px 12px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy); transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; gap: 10px; }

/* Telemetry strip */
.strip { background: var(--navy); color: var(--on-navy-muted); }
.strip__in { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.strip__loc { display: flex; align-items: center; gap: 10px; }
.strip__coords { color: var(--on-navy-faint); }
.strip a { color: var(--white); text-decoration: none; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(247,244,238,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr__logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none; }
.nav__links a span { color: var(--slate); }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius); border: 2px solid var(--navy);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.menu-btn span { width: 18px; height: 2px; background: var(--navy); display: block; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav ul { list-style: none; margin: 0; padding: 4px 20px 12px; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-weight: 600; font-size: 17px; }
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav.is-open { display: block; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .strip__coords { display: none; }
}
@media (max-width: 520px) {
  .hdr__in { gap: 10px; }
  .nav { gap: 10px; }
  .hdr__cta { padding: 0 12px; font-size: 14px; gap: 8px; }
  .hdr__logo img { height: 28px; width: auto; }
}
@media (max-width: 360px) { .hdr__cta .dot { display: none; } }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; scroll-margin-top: 80px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.section-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head__title { display: flex; flex-direction: column; gap: 8px; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.lede { font-size: 15px; line-height: 1.6; color: var(--slate); max-width: 400px; }
.body { font-size: 17px; line-height: 1.65; color: var(--slate); text-wrap: pretty; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 span { color: var(--slate); font-weight: 600; display: block; }
.hero__sub { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 520px; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.fig { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px rgba(60,40,20,.08); background: var(--white); }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--slate); background: var(--white); }

/* Trajectory animation */
.traj text { font-family: var(--mono); }
@keyframes ap-draw { from { stroke-dashoffset: 315; } to { stroke-dashoffset: 0; } }
.ap-draw { stroke-dasharray: 315; stroke-dashoffset: 315; animation: ap-draw 2.4s cubic-bezier(.3,.1,.2,1) .2s forwards; }
@keyframes ap-rise { from { transform: rotate(-60deg); } to { transform: rotate(0deg); } }
.ap-rider { transform-box: view-box; transform-origin: 300px 400px; animation: ap-rise 2.4s cubic-bezier(.3,.1,.2,1) .2s both; }
@keyframes ap-ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3.4); opacity: 0; } }
.ap-ping { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ap-ping 2.2s ease-out 2.7s infinite; }
@keyframes ap-fade { from { opacity: 0; } to { opacity: 1; } }
.ap-wp { opacity: 0; animation: ap-fade .5s ease-out forwards; }
@keyframes ap-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.ap-cursor { animation: ap-blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .ap-draw, .ap-rider, .ap-wp, .ap-cursor { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .ap-ping { display: none; }
}

/* Readout strip */
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px;
  border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: var(--line); margin: 0; }
.readout > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.readout dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--slate); }
.readout dd { margin: 0; font-weight: 600; font-size: 17px; }

/* Process tabs */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; margin-bottom: 8px; }
.tab { text-align: left; cursor: pointer; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); color: var(--navy); display: flex; flex-direction: column; gap: 6px; min-height: 88px; }
.tab:hover { border-color: var(--navy); }
.tab__n { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.tab__n .dot { background: #C9D2E0; }
.tab__t { font-size: 18px; font-weight: 600; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab[aria-selected="true"] .dot { background: var(--orange); }
.panel { background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; gap: 1px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.panel[hidden] { display: none; }
.panel > div { padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.panel__time { font-size: 28px; font-weight: 700; line-height: 1.1; }
.panel__sum { font-size: 15px; line-height: 1.6; color: var(--slate); }
.panel__txt { font-size: 16px; line-height: 1.6; }
/* Without JS every panel shows, stacked. */
.no-js .panel[hidden] { display: grid; margin-top: 8px; }
.no-js .tabs { display: none; }

/* Services (navy) */
.dark { background: var(--navy); color: var(--white); }
.dark .h2 { max-width: 760px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1px;
  background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.module { background: var(--navy); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.module__id { font-family: var(--mono); font-size: 12px; color: var(--on-navy-muted); }
.module h3 { font-size: 22px; font-weight: 600; }
.module p { font-size: 15px; line-height: 1.6; color: var(--on-navy); text-wrap: pretty; }
.watch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: center; }
.watch__copy { display: flex; flex-direction: column; gap: 12px; }
.watch__copy h3 { font-size: 24px; font-weight: 600; }
.watch__copy p { font-size: 16px; line-height: 1.6; color: var(--on-navy); max-width: 460px; text-wrap: pretty; }
.watch__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--navy-line); margin-top: 12px; }
.term { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 20px 22px;
  font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--on-navy); overflow-x: auto; margin: 0; white-space: pre; }
.term .c { color: var(--on-navy-faint); }
.term .w { color: var(--white); }
.term .o { color: var(--orange); }

/* Pricing */
.table-box { overflow-x: auto; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--white); }
.price { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.price th, .price td { padding: 14px 20px; text-align: left; vertical-align: top; }
.price thead th { padding: 20px; border-bottom: 1px solid var(--navy); }
.price thead th + th, .price td { border-left: 1px solid var(--line-soft); }
.price tbody tr > * { border-bottom: 1px solid var(--line-soft); }
.price tbody tr:last-child > * { border-bottom: 0; }
.price .rowlabel { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--slate); font-weight: 500; text-transform: uppercase; }
.price .corner { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--slate); font-weight: 500; width: 22%; }
.price .tier { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.price .tier-for { font-size: 13px; font-weight: 400; color: var(--slate); margin-top: 4px; }
.price .popular { background: var(--cream); }
.price .big { font-size: 18px; font-weight: 700; }
.price .cta-row td { padding: 20px; }
.price .cta-row .btn { white-space: nowrap; }
.faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px;
  font-size: 15px; line-height: 1.6; color: var(--slate); margin-top: 28px; }
.faqs strong { color: var(--navy); }

/* Pricing: stacked cards on small screens */
.plans { display: none; list-style: none; margin: 0; padding: 0; flex-direction: column; gap: 16px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan--popular { border: 2px solid var(--navy); }
.plan__head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.plan__name { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan__flag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--slate); margin-left: auto; font-weight: 500; }
.plan__for { font-size: 14px; color: var(--slate); margin-top: 2px; }
.plan dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.plan dt, .plan dd { margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.plan dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--slate); text-transform: uppercase; padding-right: 0; padding-top: 13px; }
.plan dd { font-size: 15px; }
.plan dd.big { font-size: 18px; font-weight: 700; }
.plan__cta { padding: 16px 20px; }
.plan__cta .btn { width: 100%; }
@media (max-width: 760px) {
  .table-box { display: none; }
  .plans { display: flex; }
}

/* Work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--navy); background: var(--cream); padding: 4px 8px; border-radius: 6px; }
.card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__row h3 { font-size: 19px; font-weight: 600; }
.card__id { font-family: var(--mono); font-size: 11px; color: var(--slate); white-space: nowrap; }
.card__type { font-size: 14px; color: var(--slate); }
.card a { text-decoration: none; }

/* About */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: start; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__side { display: flex; flex-direction: column; gap: 16px; }
.photo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--slate); }
.spec { margin: 0; border: 1px solid var(--navy); border-radius: var(--radius); display: grid; grid-template-columns: 120px minmax(0, 1fr);
  font-family: var(--mono); font-size: 13px; overflow: hidden; }
.spec dt, .spec dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--slate); }
.spec dd { font-weight: 600; }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
.spec a { text-decoration: none; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px; align-items: start; padding-bottom: 88px; }
.contact__copy { display: flex; flex-direction: column; gap: 20px; }
.callblock { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: var(--white); text-decoration: none; }
.callblock:hover { background: var(--navy-deep); color: var(--white); }
.callblock__k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--on-navy-muted); display: flex; align-items: center; gap: 8px; }
.callblock__v { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 16px; font-family: var(--mono); font-size: 13px; margin: 0; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; font-weight: 600; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { height: 48px; border-radius: 10px; border: 1.5px solid var(--input-line); padding: 0 14px; font-size: 16px; background: var(--white); color: var(--navy); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 1px; }
.field .req { color: var(--slate); font-weight: 400; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--white); color: var(--navy); font-family: var(--mono); font-size: 12px; font-weight: 500; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--navy); font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.notice--error { border-color: #9B2C2C; color: #7A1F1F; background: #FFF5F5; }
.notice strong { font-weight: 600; }
.errorlist { list-style: none; margin: 0; padding: 0; color: #9B2C2C; font-size: 13px; font-weight: 500; }
.form .btn { width: 100%; }

/* Footer */
.ftr { background: var(--navy); color: var(--on-navy-muted); }
.ftr__in { padding: 40px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.ftr img { height: 34px; width: auto; }
.ftr__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.ftr a { color: var(--white); text-decoration: none; }
