/* ==========================================================================
   Heron + Hex Solutions — design system
   Brand: deep teal #00343D · heron teal #336B79 · ink · white
   ========================================================================== */

:root {
  --ink: #021a1f;
  --ink-2: #04252c;
  --deep: #00343d;
  --teal: #336b79;
  --aqua: #4fb8c8;
  --aqua-hi: #9be8f2;
  --mist: #e7f0f2;
  --paper: #f5f9fa;
  --white: #ffffff;

  --text-dark: #eaf4f6;
  --text-dark-mute: rgba(234, 244, 246, .66);
  --text-light: #0a2a31;
  --text-light-mute: rgba(10, 42, 49, .68);

  --line-dark: rgba(155, 232, 242, .14);
  --line-light: rgba(0, 52, 61, .14);

  --f-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-dark);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--aqua); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--aqua); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -.01em; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); letter-spacing: -.02em; }
h3 { font-size: 1.7rem; font-weight: 400; letter-spacing: -.005em; }
em { font-style: normal; background: linear-gradient(100deg, var(--aqua-hi) 0%, var(--aqua) 55%, #7fc3cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soft { color: var(--text-dark-mute); }
.light .soft { color: var(--text-light-mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 26px;
}
.light .eyebrow { color: var(--teal); }
.dot { width: 9px; height: 10px; background: currentColor; clip-path: var(--hex); display: inline-block; flex: none; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text-dark-mute); max-width: 56ch; }
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--text-light-mute); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--f-body); font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--aqua-hi), var(--aqua));
  border: 0; border-radius: 999px; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  box-shadow: 0 0 0 0 rgba(79, 184, 200, 0), 0 10px 30px -12px rgba(79, 184, 200, .55);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { box-shadow: 0 0 0 6px rgba(79, 184, 200, .14), 0 16px 40px -10px rgba(79, 184, 200, .7); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text-dark); box-shadow: inset 0 0 0 1px rgba(155, 232, 242, .35); }
.btn-ghost:hover { background: rgba(155, 232, 242, .08); box-shadow: inset 0 0 0 1px var(--aqua-hi); }
.btn-sm { padding: 10px 20px; font-size: .86rem; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, backdrop-filter .4s, border-color .4s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(2, 26, 31, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 64px; width: auto; }
.links { display: flex; align-items: center; gap: 34px; }
.links a:not(.btn) { position: relative; font-size: .92rem; color: var(--text-dark-mute); transition: color .25s; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.links a:not(.btn):hover { color: var(--white); }
.links a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 150px 0 120px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 8%, #06353d 0%, var(--ink) 58%); }
#hexfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: radial-gradient(90% 85% at 60% 40%, #000 25%, transparent 85%); mask-image: radial-gradient(90% 85% at 60% 40%, #000 25%, transparent 85%); }
.hero-glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -22vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 184, 200, .20), rgba(79, 184, 200, 0) 70%); filter: blur(20px); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 30px; }
.hero h1 em { padding-right: .04em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: end; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--aqua); stroke-width: .8; vector-effect: non-scaling-stroke; transform-origin: 0 0; }
.r1 { opacity: .25; animation: spin 90s linear infinite; }
.r2 { opacity: .45; stroke-dasharray: 3 9; animation: spin 70s linear infinite reverse; }
.r3 { opacity: .22; animation: spin 55s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark { position: relative; width: 56%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(79, 184, 200, .22)); animation: float 8s ease-in-out infinite;
  transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px)); }
@keyframes float { 50% { translate: 0 -12px; } }

/* ticker */
.ticker { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line-dark); background: rgba(2, 26, 31, .5); backdrop-filter: blur(8px); overflow: hidden; padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker span { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark-mute); white-space: nowrap; padding-right: 48px; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 7px; height: 8px; background: var(--aqua); opacity: .7; clip-path: var(--hex); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section.dark { background: var(--ink); }
.section.light { background: var(--paper); color: var(--text-light); }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 780px; }

/* services */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 38px 34px 40px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid var(--line-dark);
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(79, 184, 200, .18), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(155, 232, 242, .38); }
.card:hover::before { opacity: 1; }
.num { position: absolute; top: 30px; right: 32px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: rgba(155, 232, 242, .4); }
.hexicon { width: 62px; height: 70px; display: grid; place-items: center; margin-bottom: 34px; clip-path: var(--hex); background: linear-gradient(145deg, var(--aqua), var(--teal) 60%, var(--deep)); transition: transform .6s var(--ease); }
.card:hover .hexicon { transform: rotate(60deg) scale(1.04); }
.card:hover .hexicon svg { transform: rotate(-60deg); }
.hexicon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.card h3 { margin-bottom: 12px; }
.card-lede { color: var(--text-dark-mute); font-size: 1rem; margin-bottom: 28px; min-height: 3.3em; }
.card ul { border-top: 1px solid var(--line-dark); padding-top: 22px; display: grid; gap: 13px; }
.card li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--text-dark); }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 9px; background: var(--aqua); clip-path: var(--hex); }

/* higher ed */
.higher { overflow: hidden; }
.higher::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 0% 50%, rgba(79, 184, 200, .14), transparent 70%); }
.higher-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.higher-stat { position: relative; isolation: isolate; text-align: center; padding: 30px 0; }
.big { font-family: var(--f-display); font-weight: 200; font-size: clamp(7rem, 18vw, 14rem); line-height: .9; letter-spacing: -.05em; display: inline-flex; align-items: flex-start;
  background: linear-gradient(160deg, var(--deep) 10%, var(--teal) 60%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big b { font-weight: 200; font-size: .55em; margin-top: .06em; margin-left: .02em; }
.big-label { margin-top: 18px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); line-height: 1.8; }
.hexline { position: absolute; inset: 50% auto auto 50%; width: 118%; max-width: 520px; translate: -50% -52%; z-index: -1; overflow: visible; }
.hexline polygon { fill: none; stroke: var(--teal); stroke-width: .6; opacity: .35; vector-effect: non-scaling-stroke; transform-origin: 100px 100px; animation: spin 120s linear infinite; }
.higher-copy h2 { margin-bottom: 28px; }
.domains { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }
.domains li { padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--deep); background: var(--white); border: 1px solid var(--line-light); transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.domains li:hover { background: var(--deep); color: var(--white); transform: translateY(-3px); border-color: var(--deep); }

/* approach */
.approach { background: var(--ink); overflow: hidden; }
.approach::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 100%, rgba(79, 184, 200, .1), transparent 70%); pointer-events: none; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 40px; left: 40px; right: calc(25% - 40px); height: 1px; background: linear-gradient(90deg, var(--aqua), rgba(79, 184, 200, .1)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: scaleX(1); }
.node { width: 80px; height: 92px; display: grid; place-items: center; clip-path: var(--hex); background: linear-gradient(150deg, rgba(155, 232, 242, .5), rgba(79, 184, 200, .08)); margin-bottom: 30px; position: relative; transition: transform .6s var(--ease); }
.node::before { content: ""; position: absolute; inset: 1.5px; clip-path: var(--hex); background: var(--ink-2); }
.node span { position: relative; font-family: var(--f-display); font-size: 1.9rem; font-weight: 300; color: var(--aqua-hi); }
.step:hover .node { transform: translateY(-6px) rotate(30deg); }
.step:hover .node span { display: inline-block; transform: rotate(-30deg); }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--text-dark-mute); font-size: .98rem; max-width: 30ch; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-card { padding: clamp(32px, 4vw, 52px); background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.about-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0, 52, 61, .35); }
.about-mark { height: 84px; width: auto; margin-bottom: 26px; }
.about-hex { width: 62px; height: 84px; padding: 6px 0; margin-bottom: 26px; fill: rgba(0, 52, 61, .06); stroke: var(--deep); stroke-width: 2; stroke-linejoin: round; }
.about-card h3 { color: var(--deep); margin-bottom: 14px; font-size: 2rem; }
.about-card p { color: var(--text-light-mute); max-width: 46ch; }

/* contact */
.contact { overflow: hidden; background: linear-gradient(180deg, var(--ink) 0%, #03232a 100%); }
.contact-glow { position: absolute; width: 60vmax; height: 60vmax; left: -20vmax; bottom: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(79, 184, 200, .16), transparent 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-copy h2 { margin-bottom: 26px; }
.mail { display: inline-block; margin-top: 38px; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 300; color: var(--aqua-hi); border-bottom: 1px solid rgba(155, 232, 242, .35); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.mail:hover { border-color: var(--aqua-hi); color: var(--white); }

.form { padding: clamp(26px, 3.4vw, 44px); border-radius: 24px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); backdrop-filter: blur(10px); display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark-mute); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(2, 26, 31, .55); color: var(--white); transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239be8f2' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--ink-2); }
.field input::placeholder, .field textarea::placeholder { color: rgba(234, 244, 246, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(79, 184, 200, .16); background: rgba(2, 26, 31, .8); }
.field input:user-invalid { border-color: #e88a8a; }
.form .btn { justify-self: start; }
.form-note { min-height: 1.4em; font-size: .9rem; color: var(--aqua-hi); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; }

/* footer */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 44px 0; }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot-inner img { height: 60px; width: auto; }
.foot-inner p { font-size: .86rem; color: var(--text-dark-mute); }
.foot-inner p:nth-child(2) { text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.copy { text-align: right; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -120px; top: 110px; width: 380px; opacity: .14; z-index: -1; }
  .cards { grid-template-columns: 1fr; }
  .card-lede { min-height: 0; }
  .higher-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .higher-stat { text-align: left; }
  .hexline { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 52px; }
  .steps::before { display: none; }
  .foot-inner { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .foot-inner p:nth-child(2), .copy { text-align: left; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .links { position: fixed; inset: 0; background: rgba(2, 26, 31, .97); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .links a:not(.btn) { font-family: var(--f-display); font-size: 2rem; font-weight: 300; color: var(--white); }
  .links.open { opacity: 1; visibility: visible; }
  .burger { z-index: 2; }
  .nav-inner .brand { position: relative; z-index: 2; }
  .btn-sm { font-size: 1rem; padding: 14px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .brand img { height: 52px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .form .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
