/* Sytecap website. Brand rules: reference/brand.md (Sora headings, DM Sans body, deep teal, cream, one amber spark).
   Layout: full-bleed deep-teal hero with a live network canvas and floating device mockups; cream content bands
   with a bento grid, product showcases and a scroll-drawn process line; a deep-teal closing call to action. */
:root {
  --deep: #0F2A2E;
  --deeper: #0A1F22;
  --deep-2: #18393D;
  --teal: #2F5A5C;
  --teal-2: #5E8A86;
  --amber: #E8A33D;
  --amber-deep: #9A5416;
  --cream: #F7F4EC;
  --paper: #FFFDF8;
  --sand: #EFE9DC;
  --sage: #BFD3CF;
  --ink: #14302F;
  --ink-soft: #46595B;
  --line: #E2DACA;
  --head: 'Sora', Arial, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-deep); }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; text-wrap: balance; color: var(--deep); }
h1 { font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.025em; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.spark { color: var(--amber); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-deep); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(232,163,61,.18); }
.dark .eyebrow { color: var(--amber); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 640px; }
.dark .lead { color: var(--sage); }
.muted { color: var(--ink-soft); }

/* Logo, em-based ("technology" sits between the y and p tails) */
.logo { position: relative; display: inline-block; margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.025em; line-height: 1; white-space: nowrap; color: var(--deep); padding-bottom: .1em; text-decoration: none; }
.logo svg { vertical-align: baseline; }
.logo .lg-s { width: .5833em; height: .75em; margin-right: .025em; }
.logo .lg-c { width: .5em; height: .5667em; margin: 0 .0083em 0 .025em; }
.logo .lg-sub { position: absolute; left: 6.1961em; top: 5.0833em; font-family: var(--body); font-size: .17em; font-weight: 500; letter-spacing: .8799em; line-height: 1; color: var(--teal); }
.logo.on-dark, .site-header.over-dark:not(.scrolled) .logo { color: var(--cream); }
.logo.on-dark .lg-sub, .site-header.over-dark:not(.scrolled) .logo .lg-sub { color: var(--sage); }

/* Header: transparent over the hero, solid cream once you scroll */
.site-header { position: fixed; left: 0; right: 0; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; transition: min-height .35s var(--ease); }
.site-header.scrolled, .site-header:not(.over-dark) { background: rgba(247, 244, 236, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .wrap { min-height: 68px; }
.site-header .logo { font-size: 38px; transition: font-size .35s var(--ease); }
.site-header.scrolled .logo { font-size: 33px; }
main { padding-top: 0; overflow-x: clip; }
body:not(.has-dark-hero) main { padding-top: 84px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 10px 13px; border-radius: 10px; transition: color .2s; }
.site-header.over-dark:not(.scrolled) .nav a:not(.btn) { color: var(--cream); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.btn { margin-left: 10px; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1.5px solid var(--line); color: var(--deep); border-radius: 12px; padding: 9px 16px; min-height: 44px; cursor: pointer; }
.site-header.over-dark:not(.scrolled) .menu-toggle { color: var(--cream); border-color: rgba(191,211,207,.4); }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: 99px; font-family: var(--body); font-weight: 700; font-size: 15.5px; text-decoration: none; border: 0; cursor: pointer; background: var(--deep); color: var(--cream) !important; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,42,46,.25); background: var(--teal); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.amber { background: var(--amber); color: var(--deep) !important; }
.btn.amber:hover { background: #F1B252; box-shadow: 0 12px 30px rgba(232,163,61,.35); }
.btn.ghost { background: transparent; color: var(--deep) !important; box-shadow: inset 0 0 0 1.5px var(--deep); }
.dark .btn.ghost { color: var(--cream) !important; box-shadow: inset 0 0 0 1.5px rgba(191,211,207,.55); }
.dark .btn.ghost:hover { background: rgba(247,244,236,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: 112px; position: relative; }
.dark { background: var(--deep); color: var(--cream); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.sand { background: var(--sand); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #14383C 0%, var(--deep) 55%, var(--deeper) 100%); padding-block: 168px 120px; isolation: isolate; }
.hero canvas.network, .page-hero canvas.network, .cta canvas.network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, rgba(10,31,34,0), rgba(10,31,34,.6)); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--sage); font-size: 14.5px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* Headline entrance: words rise in, staggered */
.js .rise { display: inline-block; opacity: 0; transform: translateY(.45em); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Device mockups (real screenshots of our products) */
.stage { position: relative; min-height: 470px; perspective: 1600px; }
.browser { position: relative; border-radius: 14px; background: #0B1A1D; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(191,211,207,.12); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: #102326; border-bottom: 1px solid rgba(191,211,207,.08); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B4A4D; }
.browser .bar i:first-child { background: #E8A33D; }
.browser .bar span { margin-left: 10px; flex: 1; max-width: 260px; height: 18px; border-radius: 99px; background: #0B1A1D; color: #7FA19C; font-size: 11px; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: relative; width: 210px; border-radius: 34px; background: #0B0F10; padding: 9px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 99px; background: #0B0F10; z-index: 2; }
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 26px; }
.stage .browser { width: 92%; margin-left: auto; transform: rotateY(-9deg) rotateX(3deg) translateY(var(--py, 0)); transform-origin: right center; }
.stage .phone { position: absolute; left: 0; bottom: -36px; transform: rotateY(7deg) translateY(var(--py, 0)); }
.js .stage .browser { animation: float 9s ease-in-out infinite; }
.js .stage .phone { animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.chip { position: absolute; right: 4%; bottom: -26px; z-index: 3; display: flex; align-items: center; gap: 12px; background: rgba(247,244,236,.96); color: var(--deep); border-radius: 16px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.3); font-weight: 600; font-size: 14.5px; }
.chip b { font-family: var(--head); }
.chip .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(232,163,61,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(232,163,61,0); } 100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); } }

/* Marquee of what we do */
.marquee { overflow: hidden; background: var(--deeper); color: var(--sage); border-block: 1px solid rgba(191,211,207,.08); padding-block: 22px; }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 46px; font-family: var(--head); font-weight: 600; font-size: 20px; white-space: nowrap; }
.marquee span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal on scroll (visible without JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15,42,46,.12); border-color: transparent; }
.tile p { color: var(--ink-soft); max-width: 46ch; }
.tile .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tile .more:hover .arrow { transform: translateX(4px); }
.tile .arrow { transition: transform .25s var(--ease); }
.tile.span-4 { grid-column: span 4; } .tile.span-3 { grid-column: span 3; } .tile.span-2 { grid-column: span 2; }
.tile.dark-tile { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.tile.dark-tile h3 { color: var(--cream); }
.tile.dark-tile p { color: var(--sage); }
.tile.dark-tile .more { color: var(--amber); }
.glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--gx, -200px) var(--gy, -200px), rgba(232,163,61,.12), transparent 60%); pointer-events: none; transition: opacity .3s; }
.viz { margin: 4px 0 8px; border-radius: 14px; background: var(--sand); padding: 16px; min-height: 120px; position: relative; overflow: hidden; }
.dark-tile .viz { background: var(--deep-2); }
/* Code window */
.code { display: flex; flex-direction: column; gap: 8px; font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
.code i { display: block; height: 9px; border-radius: 99px; background: var(--teal-2); opacity: .55; width: var(--w); transform-origin: left; }
.code i:nth-child(3n) { background: var(--amber); opacity: .8; }
.code i:nth-child(4n) { margin-left: 22px; }
.js .reveal.in .code i { animation: type 1.2s var(--ease) both; animation-delay: calc(var(--n) * .12s); }
@keyframes type { from { transform: scaleX(0); } }
/* Gantt */
.gantt { display: flex; flex-direction: column; gap: 10px; }
.gantt div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.gantt b { display: block; height: 12px; border-radius: 99px; background: var(--teal); margin-left: var(--s); width: var(--w); transform-origin: left; }
.gantt div:last-child b { background: var(--amber); }
.js .reveal.in .gantt b { animation: type 1.1s var(--ease) both; animation-delay: calc(var(--n) * .18s); }
/* Agent flow */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 18px; }
.flow .node { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--sage); text-align: center; flex: 0 0 auto; }
.flow .node i { width: 42px; height: 42px; border-radius: 50%; background: var(--deep); border: 2px solid var(--teal-2); display: grid; place-items: center; }
.flow .node.human i { border-color: var(--amber); background: rgba(232,163,61,.15); }
.flow .wire { position: relative; flex: 1; height: 2px; background: rgba(191,211,207,.25); margin-bottom: 26px; }
.flow .wire::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: travel 2.6s ease-in-out infinite; }
.flow .wire:nth-of-type(4)::after { animation-delay: 1.3s; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
/* Level dots */
.levels { display: flex; align-items: center; gap: 0; padding-top: 20px; }
.levels i { width: 22px; height: 22px; border-radius: 50%; background: var(--deep-2); border: 2px solid var(--teal-2); flex: 0 0 auto; }
.levels b { flex: 1; height: 3px; background: var(--teal-2); opacity: .5; }
.js .reveal.in .levels i { animation: lit 4s ease-in-out infinite; animation-delay: calc(var(--n) * .5s); }
@keyframes lit { 0%, 100% { background: var(--deep-2); } 15%, 55% { background: var(--amber); border-color: var(--amber); } }
.levels-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--sage); margin-top: 10px; font-weight: 600; }

/* Product showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 120px; }
.showcase.flip .showcase-media { order: 2; }
.showcase-copy { display: flex; flex-direction: column; gap: 18px; }
.showcase-copy h2, .showcase-copy h3.big { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; font-family: var(--head); line-height: 1.08; color: var(--deep); margin: 0; }
.showcase-copy p { color: var(--ink-soft); }
.showcase-media { position: relative; padding: 0 0 40px 40px; }
.showcase-media .browser { transform: translateY(var(--py, 0)); }
.showcase-media .phone { position: absolute; left: 0; bottom: 0; width: 170px; transform: translateY(calc(var(--py, 0) * -1.6)); }
.showcase-media::before { content: ""; position: absolute; inset: 10% -4% -6% 18%; background: radial-gradient(closest-side, rgba(232,163,61,.22), transparent); filter: blur(20px); z-index: -1; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 13.5px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); color: var(--teal); border-radius: 99px; padding: 6px 13px; }
.sand .facts span { background: var(--cream); }
.linkout { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.linkout:hover .arrow { transform: translateX(4px); }
.linkout .arrow { transition: transform .25s var(--ease); }

/* Cards and lists */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card.lift:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(15,42,46,.1); }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card.dark-card { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.card.dark-card h3 { color: var(--cream); }
.card.dark-card p { color: var(--sage); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; color: var(--ink-soft); }
.ticks li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }
.dark .ticks li, .dark-card .ticks li { color: var(--sage); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.dark-card .icon, .dark-tile .icon { background: var(--deep-2); }

/* Process line, drawn as it scrolls into view */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 34px; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.process::after { content: ""; position: absolute; left: 0; top: 10px; height: 2px; width: 100%; background: var(--amber); transform: scaleX(var(--p, 1)); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .process.reveal { opacity: 1; transform: none; --p: 0; }
.js .process.reveal.in { --p: 1; }
.process.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process .step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.process .step::before { content: ""; position: absolute; top: -32px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 3px solid var(--amber); }
.dark .process .step::before { background: var(--deep); }
.process .num { font-family: var(--head); font-weight: 700; color: var(--amber-deep); font-size: 14px; letter-spacing: .1em; }
.dark .process .num { color: var(--amber); }
.process p { color: var(--ink-soft); }
.dark .process p { color: var(--sage); }
.dark .process::before { background: rgba(191,211,207,.2); }

/* Statement band */
.statement { padding-block: 120px; }
.statement p { font-family: var(--head); font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; color: var(--deep); max-width: 1000px; letter-spacing: -0.025em; }
.statement p .soft { color: var(--teal-2); }

/* Two cities, joined */
.cities { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.link-art { width: 100%; height: auto; }
.office { display: flex; flex-direction: column; gap: 10px; }
.office .city { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--deep); letter-spacing: -0.02em; }
.office dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 6px 0 0; font-size: 15.5px; }
.office dt { color: var(--ink-soft); }
.office dd { margin: 0; overflow-wrap: anywhere; }
.todo { color: var(--amber-deep); font-weight: 600; }

/* Page heroes */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 90% 0%, #14383C, var(--deep) 60%); padding-block: 170px 96px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 68px); max-width: 900px; }

/* Media frame for slides */
.slide-frame { border-radius: 16px; overflow: hidden; border: 1px solid rgba(191,211,207,.28); box-shadow: 0 0 0 6px rgba(191,211,207,.06), 0 30px 70px rgba(0,0,0,.35); transform: translateY(var(--py, 0)); background: var(--deep); }
.slide-stack { position: relative; padding: 0 0 70px 60px; perspective: 1400px; }
.slide-stack .slide-frame:first-child { transform: rotateY(-8deg) translateY(var(--py, 0)); transform-origin: right center; }
.slide-stack .slide-frame + .slide-frame { position: absolute; left: 0; bottom: 0; width: 64%; border-color: rgba(232,163,61,.55); box-shadow: 0 0 0 6px rgba(232,163,61,.1), 0 30px 60px rgba(0,0,0,.5); }
.js .slide-stack .slide-frame + .slide-frame { animation: float 8s ease-in-out infinite; }

.price { font-family: var(--head); font-size: 30px; font-weight: 700; color: var(--deep); letter-spacing: -0.02em; }
.note { font-size: 14.5px; color: var(--ink-soft); }

/* Closing call to action */
.cta { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 10% 100%, #14383C, var(--deep) 60%); padding-block: 130px; }
.cta .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); max-width: 900px; }

/* Footer */
.site-footer { background: var(--deeper); color: var(--sage); padding-block: 72px max(40px, env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--head); color: var(--cream); font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: var(--sage); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer .logo { font-size: 42px; margin-bottom: 16px; }
.site-footer .base { border-top: 1px solid var(--deep-2); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }

/* WhatsApp: a floating button on every page, and a green button where WhatsApp is the main action. */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 99px; background: #25D366; color: var(--deep); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 12px 30px rgba(15,42,46,.28); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wa-float svg { width: 26px; height: 26px; flex: 0 0 auto; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,42,46,.34); }
.btn.wa { background: #25D366; color: var(--deep) !important; align-self: flex-start; }
.btn.wa:hover { background: #3EE07A; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-form { gap: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--deep); }
.field.wide { grid-column: 1 / -1; }
.field i { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,90,92,.14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin: 0; padding: 12px 16px; border-radius: 12px; background: #FBE9E4; color: #8A2E17; font-weight: 600; font-size: 15px; }
.form-error:target, .form-error.show { display: block; }
.form-sent { display: none; padding: 34px; border-radius: var(--radius); background: var(--deep); color: var(--cream); }
.form-sent h2 { font-family: var(--head); font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; line-height: 1.2; }
.form-sent a { color: var(--amber); }
.form-sent:target, .form-sent.show { display: block; }
.form-sent:target + .contact-form, .form-sent.show + .contact-form { display: none; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Work page: Sytecap (services, the Academy, websites) and Sytecap Ventures (apps with laptop + phone screenshots) */
.work-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 90px; }
.work-services a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink-soft); font-size: 14.5px; transition: border-color .2s, transform .3s var(--ease); }
.work-services a b { font-family: var(--head); font-size: 17px; color: var(--deep); }
.work-services a:hover { border-color: var(--teal-2); transform: translateY(-2px); }
.academy-feature .browser { box-shadow: 0 24px 60px rgba(15,42,46,.22); }
.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.site-card { display: flex; flex-direction: column; gap: 16px; }
.site-card .browser { box-shadow: 0 16px 40px rgba(15,42,46,.16); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.site-card:hover .browser { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(15,42,46,.22); }
.site-card .bar { height: 26px; } .site-card .bar i { width: 8px; height: 8px; } .site-card .bar span { height: 15px; font-size: 10px; }
.site-card-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.site-card-body h3 { font-family: var(--head); font-size: 18px; color: var(--deep); margin: 0; flex: 1 1 100%; }
.site-card-body p { margin: 0; color: var(--ink-soft); font-size: 15px; flex: 1; }
.site-card-body .linkout { font-size: 14.5px; }
.ventures-band { background: radial-gradient(1100px 600px at 90% 0%, #14383C, var(--deep) 55%); }
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.venture { display: flex; flex-direction: column; background: var(--deep-2); border: 1px solid rgba(191,211,207,.12); border-radius: 22px; overflow: hidden; scroll-margin-top: 100px; transition: border-color .3s, transform .4s var(--ease); }
.venture:hover { border-color: rgba(232,163,61,.45); transform: translateY(-3px); }
.venture-media { position: relative; padding: 28px 28px 0 28px; background: linear-gradient(180deg, #1E4448, var(--deep-2)); overflow: hidden; height: 300px; }
.venture-media .browser { width: 86%; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.venture-media .bar { height: 24px; } .venture-media .bar i { width: 8px; height: 8px; } .venture-media .bar span { height: 14px; font-size: 10px; }
.venture-media .phone { position: absolute; right: 22px; top: 54px; width: 128px; padding: 6px; border-radius: 22px; }
.venture-media .phone::before { top: 10px; width: 38px; height: 11px; margin-left: -19px; }
.venture-media .phone img { border-radius: 17px; }
.venture-placeholder { height: 100%; display: grid; place-items: center; border-radius: 14px 14px 0 0; background: radial-gradient(400px 220px at 30% 20%, rgba(232,163,61,.22), transparent), #0B2225; font-family: var(--head); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; color: var(--cream); }
.venture-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; flex: 1; }
.venture-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.venture-meta em { font-style: normal; letter-spacing: .06em; color: var(--sage); border: 1px solid rgba(191,211,207,.3); border-radius: 99px; padding: 1px 9px; }
.venture h3 { font-family: var(--head); font-size: 26px; letter-spacing: -0.02em; color: var(--cream); margin: 0; }
.venture p { margin: 0; color: var(--sage); font-size: 16px; }
.venture-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(191,211,207,.12); }
.platforms { font-size: 13.5px; font-weight: 600; color: #7FA19C; }
.venture .linkout { color: var(--amber); font-size: 15px; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.store { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--deep) !important; background: var(--cream); border-radius: 8px; padding: 6px 12px; }
.store:hover { background: var(--amber); }

@media (max-width: 1040px) {
  .contact-grid { grid-template-columns: 1fr; }
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ventures { grid-template-columns: 1fr; }
  .work-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .showcase, .cities { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .stage { max-width: 640px; min-height: 0; margin-top: 10px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-4, .tile.span-3, .tile.span-2 { grid-column: span 1; }
  .tile.wide-md { grid-column: span 2; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .process, .process.three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .process::before, .process::after { display: none; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px max(22px, env(safe-area-inset-right, 0px)) 20px max(22px, env(safe-area-inset-left, 0px)); box-shadow: 0 20px 40px rgba(15,42,46,.12); }
  .nav.open { display: flex; }
  .nav a, .site-header.over-dark:not(.scrolled) .nav a:not(.btn) { color: var(--ink); padding: 13px 12px; }
  .nav a.btn { margin: 10px 0 0; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 76px; }
  .hero { padding-block: 128px 90px; }
  .page-hero { padding-block: 132px 70px; }
  .stage .browser { width: 100%; transform: none; }
  .stage .phone { width: 130px; bottom: -40px; left: -6px; transform: none; }
  .chip { right: 0; bottom: -60px; font-size: 13px; padding: 11px 14px; }
  .bento, .g2, .g4, .g5 { grid-template-columns: 1fr; }
  .tile.wide-md { grid-column: span 1; }
  .tile { padding: 24px; min-height: 0; }
  .showcase-media { padding: 0 0 34px 26px; }
  .showcase-media .phone { width: 110px; padding: 6px; border-radius: 22px; }
  .showcase-media .phone img { border-radius: 17px; }
  .showcase-media .phone::before { display: none; }
  .process, .process.three { grid-template-columns: 1fr; }
  .site-header .logo { font-size: 32px; }
  .card { padding: 24px; }
  .office dl { grid-template-columns: 1fr; gap: 2px; }
  .office dd { margin-bottom: 8px; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .marquee span { font-size: 17px; }
  .fields, .sites, .work-services { grid-template-columns: 1fr; }
  .venture-media { height: 230px; padding: 20px 20px 0; }
  .venture-media .browser { width: 92%; }
  .venture-media .phone { width: 96px; right: 12px; top: 44px; padding: 5px; border-radius: 18px; }
  .venture-media .phone img { border-radius: 13px; }
  .venture-body { padding: 22px; }
  .venture h3 { font-size: 23px; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .wa-float span { display: none; }
}
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
}
