/* Casco Creative — styles
   Colors come from the logo. Edit them here and they update everywhere. */
:root {
  --navy: #0E2A3B;        /* page background (matches logo background) */
  --navy-deep: #0A2231;   /* alternate sections */
  --navy-line: #1E4256;   /* borders */
  --teal: #22C3CF;        /* accent on dark */
  --teal-deep: #0F7C8C;   /* gradient end */
  --cream: #F7F6F3;       /* main text */
  --slate: #9DB0BC;       /* secondary text */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--navy); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--navy-deep); display: grid; place-items: center; align-content: center; gap: 22px; }
.js .loader { display: grid; }
html:not(.js) .loader, .loader.is-gone { display: none; }
.loader__mark { width: 96px; height: 96px; }
.loader__mark circle { fill: none; stroke-width: 9; transform-origin: 60px 60px; }
.loader__mark .l1 { stroke: var(--cream); stroke-dasharray: 0 100; transform: rotate(-200deg); }
.loader__mark .l2 { stroke: var(--teal); stroke-dasharray: 0 100; transform: rotate(-215deg); }
.loader__mark .l3 { stroke: var(--cream); stroke-dasharray: 0 100; transform: rotate(-218deg); }
.loader__count { font-size: 14px; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; text-align: center; }

/* ---------- Fixed background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(157,176,188,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(157,176,188,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--teal), var(--cream)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons (label rolls up on hover) ---------- */
.btn {
  --bg: var(--teal); --fg: var(--navy);
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 52px; padding: 0 28px; border-radius: 999px; isolation: isolate;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: border-color .3s var(--ease), color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--cream); }
.btn--ghost { --bg: transparent; --fg: var(--cream); border-color: rgba(247,246,243,.35); }
.btn--ghost::before { background: var(--teal); }
.btn--ghost:hover { border-color: var(--teal); --fg: var(--navy); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn__label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; color: transparent; }
.btn__label::before, .btn__label::after { content: attr(data-text); position: absolute; left: 0; width: 100%; color: var(--fg); transition: transform .45s var(--ease), color .3s; }
.btn__label::before { top: 0; }
.btn__label::after { top: 100%; }
.btn:hover .btn__label::before, .btn:hover .btn__label::after { transform: translateY(-100%); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(14,42,59,.96); border-color: var(--navy-line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: min(var(--wrap), 100% - 48px); margin-inline: auto; height: 76px; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--slate); text-decoration: none; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); transition: transform .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { background: var(--navy); border-top: 1px solid var(--navy-line); padding: 12px 24px 28px; min-height: calc(100svh - 76px); }
.mobile-menu a { display: block; padding: 18px 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--navy-line); }

/* ---------- Split text (built by script) ---------- */
.split .w, .split-lines .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .c, .split-lines .c { display: inline-block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero__content { position: relative; z-index: 2; will-change: transform, opacity; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(34,195,207,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,195,207,0); } 100% { box-shadow: 0 0 0 0 rgba(34,195,207,0); } }

.hero__title { margin-top: 28px; font-size: clamp(46px, 8vw, 116px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; max-width: 11em; text-shadow: 0 2px 30px rgba(14,42,59,.5); }
.hero__title .line { display: block; }
.line--teal .c { color: var(--teal); }
.hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--slate); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 56px; display: flex; gap: 40px; align-items: center; font-size: 13px; color: var(--slate); }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll-line { position: relative; width: 48px; height: 1px; background: var(--navy-line); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--teal); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Logo rings: drawn on load. Each spinning piece is its own layer so the browser
   just rotates it instead of redrawing the whole graphic every frame. */
.hero__rings { position: absolute; right: -16vw; top: 50%; width: min(76vw, 980px); aspect-ratio: 1; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.hero__rings-scroll, .hero__rings-inner { position: absolute; inset: 0; will-change: transform; }
.rl { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rl--trace, .rl--trace2, .rl--orbit, .rl--orbit2 { will-change: transform; animation: spin 120s linear infinite; }
.rl--trace2 { animation-duration: 80s; animation-direction: reverse; }
.rl--orbit { animation-duration: 26s; }
.rl--orbit2 { animation-duration: 17s; animation-direction: reverse; }
.ring { fill: none; transform-origin: 300px 300px; }
.ring--outer { stroke: rgba(247,246,243,.08); stroke-width: 34; stroke-dasharray: 0 100; transform: rotate(-200deg); }
.ring--mid { stroke: url(#tealGrad); stroke-opacity: .55; stroke-width: 46; stroke-dasharray: 0 100; transform: rotate(-215deg); }
.ring--inner { stroke: rgba(247,246,243,.11); stroke-width: 40; stroke-dasharray: 0 100; transform: rotate(-218deg); }
.ring--trace { stroke: var(--teal); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: .3 1.2; }
.ring--trace2 { stroke: var(--cream); stroke-opacity: .14; stroke-width: 1; stroke-dasharray: 2 3; }
.sat { fill: var(--teal); }
.sat--2 { fill: var(--cream); opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(34,195,207,.26), rgba(34,195,207,.08) 40%, rgba(34,195,207,0) 68%); will-change: opacity, transform; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.92); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; border-block: 1px solid var(--navy-line); overflow: hidden; padding: 26px 0; background: var(--navy-deep); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; }
.marquee span { font-size: clamp(26px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; color: rgba(247,246,243,.9); }
.marquee span:nth-of-type(3n+2) { color: transparent; -webkit-text-stroke: 1.2px rgba(247,246,243,.55); }
.marquee i { width: 18px; height: 18px; border: 4px solid var(--teal); border-right-color: transparent; border-radius: 50%; flex: none; }
html:not(.js) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 170px) 0; position: relative; }
.section--alt { background: var(--navy-deep); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 64px; }
.head { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; font-weight: 800; line-height: 1; }
.section__head p { color: var(--slate); max-width: 30em; justify-self: end; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.about__mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
/* The logo mark as a solid 3D object (drawn by logo3d.js). The flat logo shows until it's ready. */
.coin-wrap { position: relative; width: 62%; aspect-ratio: 1; will-change: transform; }
.coin__fallback { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; transition: opacity .4s; }
.coin__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.coin-wrap.is-3d .coin__canvas { opacity: 1; }
.coin-wrap.is-3d .coin__fallback { opacity: 0; }
.about__orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--navy-line); }
.about__orbit::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.about__orbit--2 { inset: 14%; border-style: dashed; border-color: rgba(34,195,207,.35); }
.about__orbit--2::before { background: var(--cream); box-shadow: none; width: 7px; height: 7px; left: -3.5px; }
.about__big { margin: 32px 0 26px; font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.scrub-words .sw { opacity: .16; transition: opacity .2s; }
.about__body { color: var(--slate); max-width: 34em; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.tier { position: relative; display: flex; flex-direction: column; padding: 38px 32px; border: 1px solid var(--navy-line); border-radius: var(--radius-lg); background: var(--navy); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s; will-change: transform; }
.tier > *:not(.tier__glow) { position: relative; }
.tier__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(34,195,207,.18), transparent 60%); }
.tier:hover .tier__glow { opacity: 1; }
.tier:hover { border-color: rgba(34,195,207,.5); }
.tier--pick { background: linear-gradient(165deg, #134058 0%, var(--navy) 65%); border-color: rgba(34,195,207,.55); }
.tier--pick::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--teal) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --ang: 360deg; } }
.tier__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tier__name { font-size: 22px; }
.tier__badge { display: inline-block; padding: 5px 11px; border-radius: 99px; background: var(--teal); color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.tier__was { position: relative; display: inline-block; align-self: flex-start; margin: 22px 0 0; font-size: 22px; font-weight: 600; color: var(--slate); }
.tier__was s { text-decoration: none; }
.tier__strike { position: absolute; left: -4px; right: -4px; top: 52%; height: 2.5px; border-radius: 2px; background: #FF6B6B; transform-origin: 0 50%; }
.tier__price { margin: 6px 0 26px; font-size: clamp(48px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier__price small, .care__price small { font-size: 14px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.tier__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.tier__list li { position: relative; padding-left: 26px; color: var(--slate); font-size: 15px; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 2.5px solid var(--teal); border-right-color: transparent; border-radius: 50%; }
/* Founders deal banner */
.founders { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; padding: 24px 30px; border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(34,195,207,.16), rgba(34,195,207,.04) 60%); border: 1px solid rgba(34,195,207,.45); overflow: hidden; }
.founders::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.09) 50%, transparent 70%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.founders__title { font-size: 22px; font-weight: 800; color: var(--cream); margin-bottom: 4px; }
.founders__text p:last-child { color: var(--slate); }
.founders__meter { display: grid; gap: 10px; justify-items: end; }
.founders__pips { display: flex; gap: 8px; }
.pip { width: 30px; height: 8px; border-radius: 99px; background: var(--navy-line); }
.pip.is-open { background: var(--teal); box-shadow: 0 0 12px rgba(34,195,207,.6); animation: pip 2.4s ease-in-out infinite; }
.pip.is-open:nth-child(2) { animation-delay: .15s; } .pip.is-open:nth-child(3) { animation-delay: .3s; } .pip.is-open:nth-child(4) { animation-delay: .45s; } .pip.is-open:nth-child(5) { animation-delay: .6s; }
@keyframes pip { 50% { opacity: .5; } }
.founders__left { font-size: 15px; color: var(--slate); }
.founders__left strong { color: var(--teal); font-size: 20px; }
.no-deal .founder-only { display: none !important; }

.care { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px; border: 1px dashed var(--navy-line); border-radius: var(--radius-lg); }
.care h3 { font-size: 20px; margin-bottom: 6px; }
.care--quote { margin-top: 14px; border-style: solid; background: rgba(10,34,49,.5); }
.care--quote .btn { flex-shrink: 0; }
.care p { color: var(--slate); font-size: 15px; }
.care .care__price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; color: var(--cream) !important; }

/* Placeholders: remove once real content is in */
.ph { outline: 1px dashed rgba(255,196,0,.6); outline-offset: 2px; color: #FFD666 !important; border-radius: 4px; }

/* Process: line fills as you scroll */
.process { margin-top: 110px; }
.process__title { font-size: 24px; margin-bottom: 36px; }
.process__track { position: relative; height: 2px; background: var(--navy-line); }
.process__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--cream)); transform-origin: 0 50%; transform: scaleX(0); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { padding-top: 0; position: relative; }
.steps__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -23px 0 22px; border-radius: 50%; border: 1.5px solid var(--navy-line); background: var(--navy-deep); color: var(--slate); font-weight: 700; font-size: 15px; transition: border-color .4s, color .4s, background .4s, box-shadow .4s; }
.steps li.is-on .steps__n { border-color: var(--teal); color: var(--navy); background: var(--teal); box-shadow: 0 0 0 6px rgba(34,195,207,.15); }
.steps h4 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 15px; }

/* ---------- Work (sideways on desktop) ---------- */
.work { position: relative; z-index: 1; }
.work__pin { overflow: hidden; }
.work__track { will-change: transform; display: flex; align-items: center; gap: 6vw; padding: 64px max(24px, calc((100vw - var(--wrap)) / 2)) 0; width: max-content; min-height: 100svh; }
.work__intro { width: min(420px, 80vw); flex: none; }
.work__intro p { color: var(--slate); margin-top: 22px; max-width: 22em; }
.work__hint { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-top: 40px !important; }
.work__hint span { width: 48px; height: 1px; background: var(--teal); }
.project { flex: none; width: min(62vw, 820px, max(380px, calc((100svh - 380px) * 1.6))); }
.project__frame { display: block; text-decoration: none; }
.browser { border-radius: 14px; overflow: hidden; background: #0B1D29; border: 1px solid var(--navy-line); box-shadow: 0 40px 100px -40px rgba(0,0,0,.7); transition: border-color .6s, box-shadow .6s; will-change: transform; }
.project__frame:hover .browser { border-color: rgba(34,195,207,.55); box-shadow: 0 50px 110px -40px rgba(34,195,207,.3); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #102F42; border-bottom: 1px solid var(--navy-line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-line); }
.browser__bar i:first-child { background: var(--teal); }
.browser__bar span { margin-left: 10px; font-size: 11px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #12364B, #0B1D29); }
.browser__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: rgba(247,246,243,.25); }
.work:not(.is-live) .browser__screen iframe { visibility: hidden; }
.browser__screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; background: transparent; }
.project__info { display: flex; gap: 24px; margin-top: 26px; align-items: flex-start; }
.project__num { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; color: var(--slate); letter-spacing: .02em; padding-top: 4px; }
.project__info h3 { font-size: clamp(24px, 2.4vw, 34px); margin: 12px 0 8px; }
.project__info p { color: var(--slate); max-width: 30em; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--navy-line); color: var(--slate); }
.tag--live { border-color: rgba(34,195,207,.5); color: var(--teal); }
.project__links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.link--btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--teal); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 2px; }

/* ---------- Contact ---------- */
.contact-sec { overflow: hidden; }
.bigline-wrap { container-type: inline-size; margin-bottom: clamp(56px, 8vw, 100px); }
.contact__bigline { position: relative; margin: 0; font-size: 9.4cqi; font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; white-space: nowrap; padding-bottom: .06em; }
.bl-out { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(34,195,207,.6); }
/* Fill reveal: two opposite slides inside a clipped box, so the browser only moves layers */
.bl-fill { position: absolute; inset: 0; overflow: hidden; color: var(--cream); will-change: transform; }
.bl-fill > span { display: block; will-change: transform; }
.js .bl-fill { transform: translateX(-100%); }
.js .bl-fill > span { transform: translateX(100%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__intro p { margin-top: 22px; color: var(--slate); max-width: 26em; }
.contact__direct { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; }
.contact__direct a { font-size: clamp(18px, 1.9vw, 24px); font-weight: 700; text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact__direct a:hover { background-size: 100% 2px; }
.form { position: relative; display: grid; gap: 18px; padding: 38px; border: 1px solid var(--navy-line); border-radius: var(--radius-lg); background: var(--navy); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--cream); background: var(--navy-deep);
  border: 1px solid var(--navy-line); border-radius: var(--radius-sm); padding: 14px 16px; min-height: 52px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,195,207,.18); transform: translateY(-2px); }
.field:focus-within > span { color: var(--teal); }
.field .is-invalid { border-color: #FF8A80; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 15px; min-height: 1.4em; }
.form__status.ok { color: var(--teal); }
.form__status.err { color: #FF8A80; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
.form.is-sent { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(34,195,207,.12); }

/* ---------- Package details window ---------- */
.plan { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--cream); overflow: hidden; }
.plan[open] { display: grid; place-items: center; }
.plan::backdrop { background: rgba(5,18,27,.78); }
.plan[open]::backdrop { animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; } }
/* Fits the screen: header and button stay put, the feature list scrolls if space runs out */
.plan__panel { position: relative; display: flex; flex-direction: column; width: min(860px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: clamp(18px, 2.6vw, 30px); border: 1px solid rgba(34,195,207,.4); border-radius: var(--radius-lg); background: linear-gradient(170deg, #12384D 0%, var(--navy) 55%); box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.plan__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; z-index: 1; border-radius: 50%; border: 1px solid var(--navy-line); background: transparent; color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.plan__close:hover { background: var(--navy-line); transform: rotate(90deg); }
.plan__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--navy-line); background: var(--navy-deep); margin-bottom: 14px; align-self: flex-start; flex: none; }
.plan__tabs button { border: 0; background: transparent; color: var(--slate); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s; }
.plan__tabs button[aria-selected="true"] { background: var(--teal); color: var(--navy); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--navy-line); flex: none; }
.plan__name { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -0.03em; }
.plan__price { margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan__price s { color: var(--slate); font-size: 17px; font-weight: 600; text-decoration-color: #FF6B6B; text-decoration-thickness: 2.5px; }
.plan__price strong { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.plan__price small { color: var(--slate); font-size: 14px; }
.plan__stats { display: flex; gap: 24px; margin: 0; }
.plan__stats dt { font-size: 13px; color: var(--slate); }
.plan__stats dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.plan__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 16px 4px 16px 0; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.plan__col h4 { font-size: 15px; margin-bottom: 10px; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.plan__list li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.35; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 16px; height: 16px; border-radius: 50%; }
.plan__list .is-in::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%230E2A3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan__list .is-out { color: rgba(157,176,188,.55); }
.plan__list .is-out::before { border: 1.5px solid var(--navy-line); }
.plan__list em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--teal); opacity: .8; margin-left: 4px; }
.plan__col--side { padding-left: 24px; border-left: 1px solid var(--navy-line); }
.plan__addons { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.plan__addons li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--slate); }
.plan__addons li span:last-child { color: var(--cream); font-weight: 600; white-space: nowrap; }
.plan__fine { font-size: 12px; color: var(--slate); line-height: 1.5; }
.plan__foot { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--navy-line); flex: none; }
.plan__foot .btn { min-width: 200px; }
@media (max-width: 760px) {
  .plan__body { grid-template-columns: 1fr; gap: 20px; }
  .plan__col--side { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--navy-line); }
  .plan__list { grid-template-columns: 1fr; }
  .plan__stats { gap: 18px; }
  .plan__foot .btn { width: 100%; }
  .plan__stats dd { font-size: 15px; }
  .founders__meter { justify-items: start; }
}

/* Chosen package on the Start a project page */
.picked { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(34,195,207,.45); background: rgba(34,195,207,.08); font-size: 15px; }
.picked strong { color: var(--teal); }

/* ---------- Sub-pages (Start a project, Clients) ---------- */
.page { padding: 170px 0 clamp(96px, 12vw, 150px); position: relative; z-index: 1; min-height: 80svh; }
.page__head { max-width: 46em; margin-bottom: 48px; }
.page__head .head { font-size: clamp(42px, 7vw, 92px); }
.page__head p { margin-top: 22px; color: var(--slate); font-size: clamp(17px, 1.5vw, 19px); max-width: 36em; }
.embed { border: 1px solid var(--navy-line); border-radius: var(--radius-lg); background: var(--navy-deep); padding: clamp(20px, 4vw, 40px); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--form { background: #F7F6F3; border-color: transparent; padding: clamp(18px, 3.5vw, 44px); }
.embed__ph { display: grid; place-items: center; min-height: 360px; text-align: center; font-weight: 600; padding: 24px; }
.soon { display: grid; gap: 10px; justify-items: center; }
.soon .soon__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--cream); }
.soon p { color: var(--slate); }
.soon__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 6px; }
.soon__links a { color: var(--teal); font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1.5px solid rgba(34,195,207,.35); transition: border-color .3s; }
.soon__links a:hover { border-color: var(--teal); }
.page__alt { margin-top: 28px; color: var(--slate); font-size: 15px; }
.page__alt a { color: var(--teal); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--navy-line); padding: 48px 0; background: var(--navy); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 36px; width: auto; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--slate); text-decoration: none; }
.footer__links a:hover { color: var(--cream); }
.footer__small { font-size: 13px; color: var(--slate); }
.footer__legal { display: inline-flex; gap: 14px; margin-left: 14px; }
.footer__legal a { color: var(--slate); text-decoration: none; }
.footer__legal a:hover { color: var(--cream); }

/* ---------- Legal pages (Privacy, Terms, Refunds) ---------- */
.legal { max-width: 44em; color: var(--slate); font-size: 17px; line-height: 1.7; }
.legal__date { font-size: 14px; margin-bottom: 18px; }
.legal__lead { color: var(--cream); font-size: clamp(18px, 1.6vw, 20px); margin-bottom: 8px; }
.legal h2 { color: var(--cream); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal a { color: var(--teal); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .section__head { grid-template-columns: 1fr; gap: 18px; }
  .section__head p { justify-self: start; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process__track { display: none; }
  .steps__n { margin-top: 0; }
  .about__grid, .contact { grid-template-columns: 1fr; gap: 56px; }
  .about__mark { max-width: 300px; }
  .hero__rings { right: -45vw; width: 120vw; opacity: .7; }
  /* Work stacks vertically */
  .work { padding: 100px 0; }
  .work__track { flex-direction: column; align-items: stretch; width: auto; min-height: 0; gap: 72px; padding: 0 24px; }
  .work__intro, .project { width: 100%; }
  .work__hint { display: none !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .nav__inner { width: calc(100% - 40px); }
  .work__track { padding: 0 20px; }
  .nav__logo img { height: 34px; }
  .hero { padding-top: 110px; align-items: flex-start; }
  .hero__rings { top: 24%; right: -70vw; width: 150vw; opacity: .5; }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .care { flex-direction: column; align-items: flex-start; }
  .project__num { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .contact__bigline { white-space: normal; font-size: 15cqi; line-height: 1; }
}

/* Respect the phone/computer setting to reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ring--outer, .ring--mid, .ring--inner { stroke-dasharray: 72 100; }
  .scrub-words .sw { opacity: 1; }
  .loader { display: none !important; }
  .js .bl-fill, .js .bl-fill > span { transform: none; }
}

/* Briefly highlights the dropdown after "Ask for a quote" */
.field select.is-flash { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34,195,207,.25); transition: border-color .3s, box-shadow .3s; }

@media (max-width: 600px) {
  .footer__legal { display: flex; margin: 8px 0 0; }
}
