/* ==========================================================================
   SignoPhoton — standalone site styles
   Light. Signal. Precision.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #05101f;
  --navy-800: #0a1b30;
  --navy-700: #10263f;
  --navy-600: #17324f;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(5, 16, 31, 0.12);

  --cyan: #35d6e7;
  --cyan-dim: #12b3c6;
  --beam: #7af1ff;

  --ink: #0d1b2a;
  --body: #46586b;
  --muted: #8496a8;
  --paper: #ffffff;
  --paper-alt: #f4f8fb;

  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -22px rgba(5, 16, 31, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(5, 16, 31, 0.45);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.1em; }

::selection { background: var(--cyan); color: var(--navy-900); }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.76); }
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.section--dark .eyebrow { color: var(--beam); }

.lede { font-size: 1.08rem; color: var(--body); }
.section--dark .lede { color: rgba(255, 255, 255, 0.72); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--cyan-dim));
  color: var(--navy-900);
  box-shadow: 0 14px 30px -14px rgba(18, 179, 198, 0.9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(18, 179, 198, 0.95); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--outline { border-color: var(--line-dark); color: var(--ink); }
.btn--outline:hover { border-color: var(--cyan-dim); color: var(--cyan-dim); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 16, 31, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.nav .btn { margin-left: 10px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 78% 8%, var(--navy-600) 0%, var(--navy-800) 42%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero--compact { padding: clamp(60px, 8vw, 96px) 0; }
.hero--compact h1 { max-width: 22ch; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.74); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* animated fibre beam */
.beam-card {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(53, 214, 231, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}
.beam-card svg { width: 86%; height: auto; }
.beam-pulse { animation: beamRun 3.4s linear infinite; }
@keyframes beamRun {
  0%   { stroke-dashoffset: 620; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { stroke-dashoffset: -140; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .beam-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* strip of stats / keywords under hero */
.strip {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding-block: 20px;
}
.strip span {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}
.strip span b { color: var(--cyan); font-weight: 600; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(18, 179, 198, 0.4); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(53, 214, 231, 0.18), rgba(18, 179, 198, 0.06));
  color: var(--cyan-dim);
}
.card__icon svg { width: 24px; height: 24px; }
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card--media .card__body { padding: 28px 30px 32px; }

.section--dark .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: rgba(255, 255, 255, 0.72);
}
.section--dark .card:hover { border-color: rgba(53, 214, 231, 0.45); }

/* numbered / feature list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(53, 214, 231, 0.16);
  border: 1px solid rgba(18, 179, 198, 0.55);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.55em + 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-dim);
}

/* split feature rows */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split--flip .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  background: var(--paper-alt);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section--dark .split__media { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }

/* pill chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
}
.section--dark .chips li { border-color: var(--line); color: #fff; background: rgba(255, 255, 255, 0.04); }

/* sector tiles */
.sector {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  padding: 28px 26px;
  background: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sector:hover { transform: translateY(-4px); border-color: rgba(18, 179, 198, 0.45); box-shadow: var(--shadow); }
.sector svg { width: 34px; height: 34px; color: var(--cyan-dim); margin-bottom: 16px; }
.sector h3 { font-size: 1.05rem; margin-bottom: 4px; }
.sector p { font-size: 0.92rem; margin: 0; color: var(--muted); }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  position: relative;
  padding: 26px 28px 26px 78px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 28px;
  top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cyan-dim);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }
.section--dark .step { background: rgba(255, 255, 255, 0.035); border-color: var(--line); color: rgba(255, 255, 255, 0.72); }

/* team */
.person { text-align: left; }
.person__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.person h3 { font-size: 1.06rem; margin-bottom: 2px; }
.person .role { color: var(--cyan-dim); font-weight: 600; font-size: 0.9rem; margin: 0 0 4px; }
.person .cred { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* callout / CTA band */
.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(110% 130% at 15% 10%, var(--navy-600), var(--navy-900) 60%);
  color: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 56ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(52px, 7vw, 80px) 0 32px;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .brand__name { font-size: 1.25rem; }
.site-footer .tagline { margin: 16px 0 0; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .step { padding: 22px 22px 22px 68px; }
  .step::before { left: 22px; top: 22px; }
}
