/* Apex Hub — "Mono" theme. Layered on css/style.css: pure black, mint-white text, IBM Plex Mono throughout,
   a dot-field hero (js/dots.js), a capsule menu and tilted service cards. Remove its <link> to restore the original look.
   To try the orange accent instead of the brand lime: --lime: #FF6044; --lime-dim: #FF4B2B; --on-lime: #000; */
:root {
  --bg: #000;
  --bg-deep: #070807;
  --surface: #101210;
  --surface-2: #171917;
  --border: rgba(239, 255, 235, .14);
  --text: #EFFFEB;
  --muted: #9AA598;
  --card: #484D47;                 /* olive-grey service cards */
  --radius: 8px;
  --radius-sm: 6px;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --glow: 0 0 22px color-mix(in srgb, var(--lime) 55%, transparent);
}
body { font-family: var(--mono); font-size: 15px; line-height: 1.65; }
/* Wide layout: content lines up with the edge-to-edge nav */
.wrap { max-width: 1760px; padding: 0 28px; }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow, .brand-sub, .stat span, .tpl-style, .intro-skip { font-family: var(--mono); }
::selection { background: var(--lime); color: var(--on-lime); }

/* Buttons: squared, small mono label, glowing accent */
.btn { min-height: 42px; padding: 0 18px; border-radius: 4px; font: 500 13px/1 var(--mono); letter-spacing: .02em; border-width: 1px; }
.btn-primary:hover { background: var(--lime); }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

/* Header: logo left, capsule menu in the middle-right, sign-in at the end */
.header { background: rgba(0, 0, 0, .78); }
.header.scrolled { border-bottom-color: var(--border); }
.nav { height: 64px; max-width: none; } /* edge to edge, like the template */
.brand svg { width: 28px; height: 28px; }
.brand-name { font: 500 18px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { letter-spacing: .3em; }
.nav-pill { gap: 6px; margin-left: auto; padding: 4px 4px 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(23, 25, 23, .85); }
.nav-links { gap: 0; }
.nav-links a { padding: 8px 12px; border-radius: 4px; font-size: 13px; color: var(--text); }
.nav-links a:hover { background: rgba(239, 255, 235, .08); }
.nav-pill .btn { min-height: 34px; box-shadow: none; }
.nav-signin { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px 8px 18px; border-left: 1px solid var(--border); font-size: 13px; color: var(--lime); text-decoration: none; white-space: nowrap; }
.nav-signin:hover { text-decoration: underline; }
.nav-signin { margin-right: 2vw; } /* nudge the menu and sign-in in from the right edge */
.menu-btn { border-radius: 6px; }

/* Hero: dot field over black, fading to grey at the bottom; giant uppercase headline */
.hero { padding: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #000 0%, #000 42%, #1E211E 72%, #8E958C 100%); isolation: isolate; }
.hero-dots { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero .hero-grid { padding: 0 5vw; } /* pull the headline and logo in from the page edges */
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; }
/* Logo mark with orbit and floating chips, restyled to match */
.hero-visual { max-width: 420px; justify-self: end; }
.cf-2 { right: 0; } /* keep the chip's edge on the page margin, level with Team sign-in */
.orbit { border-color: rgba(239, 255, 235, .22); }
.hero-visual .mark { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--lime) 35%, transparent)); }
.chip-float { border-radius: 4px; background: rgba(16, 18, 16, .85); border-color: var(--border); font: 500 12px var(--mono); letter-spacing: .02em; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(38px, 6.6vw, 96px); font-weight: 500; line-height: .98; letter-spacing: -0.03em; text-transform: uppercase; max-width: 10ch; margin: 0 0 26px; }
.hero h1 .hl { color: var(--text); }
.hero h1 .hl::after { content: "_"; color: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { font-size: 14px; max-width: 46ch; color: var(--text); }
.hero-actions { margin-top: 26px; }

/* Numbers: big mono figures on hairlines, no boxes */
.stats { margin-top: 120px; background: none; border: 0; border-top: 1px solid rgba(239, 255, 235, .25); border-radius: 0; gap: 0; }
.stat { background: none; padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid rgba(239, 255, 235, .25); }
.stat b { font: 500 clamp(34px, 4.6vw, 64px)/1 var(--mono); letter-spacing: -0.04em; color: var(--text); }
.stat span { color: var(--text); opacity: .75; font-size: 11px; }

/* Sections */
section { padding: 112px 0; }
.alt { background: var(--bg-deep); border-block: 1px solid rgba(239, 255, 235, .06); }
.eyebrow { font-size: 11px; letter-spacing: .2em; }
.eyebrow::before { content: "// "; opacity: .6; }
.sec-head h2, .story h2 { font-size: clamp(28px, 3.6vw, 46px); }
.sec-head p, .story .lead { font-size: 14px; }

/* Services: heading on the left, olive cards scattered and tilted on the right */
#services .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
#services .sec-head { position: sticky; top: 120px; display: block; margin: 0; }
#services .sec-head h2 { font-size: clamp(30px, 3.8vw, 50px); }
#services .sec-head p { margin-top: 22px; }
#services .sec-head::after { content: ""; display: block; width: 2px; height: 34px; margin-top: 40px; background: var(--lime); box-shadow: var(--glow); animation: blink 1.1s steps(1) infinite; }
.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; padding: 10px 0 60px; }
.bento > .card { grid-column: auto; }
.card { background: var(--card); border: 1px solid rgba(239, 255, 235, .1); border-radius: 6px; padding: 26px 24px 28px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
/* Each card's resting tilt; the right column sits lower */
.card:nth-child(1) { --rest: rotate(-4deg); }
.card:nth-child(2) { --rest: translateY(54px) rotate(3deg); }
.card:nth-child(3) { --rest: rotate(2.5deg); }
.card:nth-child(4) { --rest: translateY(54px) rotate(-3deg); }
.card:nth-child(5) { --rest: rotate(-2deg); }
.card:nth-child(6) { --rest: translateY(54px) rotate(2deg); }
/* Fly in from the right, spinning, and settle with a small overshoot (js/main.js adds .in as each row scrolls in) */
#services { overflow-x: clip; }
.bento > .card.reveal { opacity: 0; transform: translateX(var(--fly, 38vw)) rotate(var(--spin, 16deg)) scale(.9);
  transition: transform 1s cubic-bezier(.2, 1.15, .35, 1), opacity .5s ease, box-shadow .45s var(--ease); }
.bento > .card.reveal:nth-child(even) { --fly: 30vw; --spin: 22deg; transition-delay: .14s; }
.bento > .card.reveal.in { opacity: 1; transform: var(--rest); }
.bento > .card.reveal.in:hover { transform: rotate(0) translateY(-6px); transition-delay: 0s; box-shadow: 0 30px 60px rgba(0, 0, 0, .7); z-index: 1; }
.card .ic { width: 40px; height: 40px; border-radius: 6px; background: transparent; border: 1px solid rgba(239, 255, 235, .45); color: var(--text); margin-bottom: 26px; }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 19px; line-height: 1.25; }
.card p { color: var(--text); opacity: .85; font-size: 13px; }
.card.feature { background: var(--card); color: var(--text); border-color: rgba(239, 255, 235, .1); }
.card.feature p { color: var(--text); }
.card.feature .ic { background: transparent; color: var(--text); }
.card.feature .tags li, .tags li { border-color: rgba(239, 255, 235, .3); color: var(--text); font-size: 12px; border-radius: 4px; }
.card.wide { display: block; }
.card.wide .btn { margin-top: 20px; }

/* Website categories */
.cats { gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cat { border: 0; border-radius: 0; background: var(--bg); min-height: 180px; }
.cat:hover, .cat[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--lime); border-color: transparent; }
.cat h3 { font-size: 17px; }
.cat span { font-size: 13px; }
.cat svg { width: 24px; height: 24px; }

/* Templates */
.filter, .sub, .bill { font-family: var(--mono); font-size: 13px; border-radius: 4px; }
.billing { border-radius: 6px; }
.tpl { border-radius: var(--radius); background: var(--surface); }
.tpl:hover { border-color: color-mix(in srgb, var(--lime) 55%, transparent); }
.tpl-shot::after { border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.tpl-style { border-radius: 4px; background: rgba(0, 0, 0, .8); }
.tpl-info h3 { font-size: 16px; }
.tpl-info span { font-size: 12px; }
.tpl-info a { border-radius: 6px; }
.tpl-sides a { border-radius: 6px; font-size: 13px; }
.tpl-note { border-radius: 6px; font-size: 13px; }
.note-clear { font-family: var(--mono); font-size: 13px; }

/* Packages */
.pkg { border-radius: var(--radius); background: var(--surface); }
.pkg.pop { border: 1px solid var(--lime); box-shadow: 0 0 40px color-mix(in srgb, var(--lime) 18%, transparent); }
.pkg.diamond { background: linear-gradient(160deg, #1D211D 0%, #0C0D0C 70%); border-color: rgba(239, 255, 235, .28); }
.pkg .pill { border-radius: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tier { font: 500 22px var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.pkg .for, .pkg li { font-size: 14px; }
.price b { font: 500 44px/1 var(--mono); letter-spacing: -0.04em; }
.compare { border-radius: var(--radius); }
.compare-head h3 { font-size: 17px; }
.cmp { font-size: 13px; }
.cmp thead th { font: 500 14px var(--mono); }
.pkg-note { font-size: 13px; }

/* Story */
.timeline { border-left-color: rgba(239, 255, 235, .2); }
.timeline li::before { border-radius: 2px; }
.timeline h3 { font-size: 17px; }
.timeline p { font-size: 13px; }
.team-photo { border-radius: var(--radius); }
.team-photo img, .case .shot img { filter: grayscale(.35) contrast(1.05); }

/* Work */
.case { border-radius: var(--radius); background: var(--surface); }
.case .tag { border-radius: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.case h3 { font-size: 18px; }
.case p { font-size: 13px; }
.case .result b { font: 500 34px/1 var(--mono); }
.case .result span { font-size: 13px; }

/* Process: numbered columns on hairlines */
.steps { gap: 0; border-top: 1px solid var(--border); }
.steps li { background: none; border: 0; border-radius: 0; padding: 26px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--border); }
.steps li::before { font: 500 13px/1 var(--mono); letter-spacing: .1em; margin-bottom: 40px; content: "0" counter(step) " /"; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 13px; }

/* Contact: dark panel with the dot-field glow instead of a lime block */
.contact { background: radial-gradient(120% 90% at 0% 100%, #2A2E2A 0%, #0A0B0A 55%, #000 100%); color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
.contact h2 { font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.02; }
.contact .lead { color: var(--text); opacity: .85; font-size: 14px; }
.contact-list li { font-weight: 400; font-size: 14px; }
.contact-list svg { color: var(--lime); }
form { background: rgba(0, 0, 0, .6); border: 1px solid var(--border); border-radius: 8px; }
.field label { font-weight: 500; font-size: 13px; }
.field input, .field select, .field textarea { border-radius: 4px; font: 400 14px var(--mono); background: var(--bg); }
.field input, .field select { border-width: 0 0 1px; border-radius: 0; background: transparent; padding-left: 2px; }
.field select option { background: var(--bg); }
.form-note, .form-ok, .form-err { font-size: 13px; }
.form-ok, .form-err { border-radius: 4px; }

/* Footer */
footer { margin-top: 0; padding-top: 72px; }
.foot h4 { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot a, .foot .about { font-size: 13px; }
.foot a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(239, 255, 235, .25); text-underline-offset: 3px; }
.socials a { border-radius: 6px; text-decoration: none; }
.legal { font-size: 12px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .hero-grid { padding: 0; }
  .hero-visual { max-width: 300px; justify-self: center; }
  #services .wrap { grid-template-columns: 1fr; gap: 40px; }
  #services .sec-head { position: static; }
  #services .sec-head::after { display: none; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { margin-top: 32px; }
}
@media (max-width: 860px) {
  .nav-pill { padding: 0; border: 0; background: none; }
  .nav-signin { display: none; }
  .nav-links.open { background: #000; }
  .nav-links.open a { font-size: 16px; }
}
@media (max-width: 640px) {
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(34px, 11vw, 52px); }
  .stats { margin-top: 72px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 20px; }
  .bento { grid-template-columns: 1fr; padding-bottom: 0; gap: 18px; }
  .card:nth-child(odd) { --rest: rotate(-1.2deg); }
  .card:nth-child(even) { --rest: rotate(1.2deg); }
  .bento > .card.reveal:nth-child(n) { --fly: 70vw; transition-delay: 0s; }
  .steps li, .steps li + li { padding: 22px 0 0; border-left: 0; margin-top: 0; }
  .steps li + li { border-top: 1px solid var(--border); margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento > .card.reveal:nth-child(n) { opacity: 1; transform: none; }
}
