/* terminal web studios. Mobile-first; breakpoints at 768px and 1100px. */

:root {
  /* surfaces: near-black with a hint of blue (pure #000 smears on OLED and looks flat) */
  --bg: #050508;
  --bg-2: #0b0b12;
  --glass: rgba(255, 255, 255, 0.035);
  --fg: #fff;
  --fg-2: #bcbcc8;      /* body copy, 10.5:1 on --bg */
  --fg-3: #8e8e9c;      /* labels, 6.2:1 on --bg */
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.26);
  --todo: #ffd75f;      /* placeholder markers only */
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* expo-out */
}
/* ---------- palette: one block. Swap with <html data-palette="..."> ---------- */
:root, [data-palette="dusk"] {   /* Jounieh dusk: bay blue, violet, coral sunset */
  --c1: #6b84ff;  /* 5.6:1 on --bg */
  --c2: #b07cff;  /* 6.5:1 */
  --c3: #ff8a6b;  /* 8.1:1 */
  --c4: #ffc27a;  /* 12:1 */
}
[data-palette="ocean"] { --c1: #38bdf8; --c2: #2dd4bf; --c3: #818cf8; --c4: #a5f3fc; }
[data-palette="gold"]  { --c1: #e8b04a; --c2: #f0c987; --c3: #d9765b; --c4: #fff1d0; }
:root {
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 48%, var(--c3) 92%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything, like a print. One small SVG tile, painted once. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--c2); outline-offset: 4px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em, .grad-text {
  font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; /* italic overhang would otherwise be clipped */
}
.label-caps {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.6;
}
h2.display { font-size: clamp(40px, 7vw, 88px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 14px;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 30px;
  border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s ease-out;
  touch-action: manipulation;
}
/* hairline highlights top and bottom, the detail that makes it read "expensive" */
.btn::before, .btn::after {
  content: ""; position: absolute; left: 50%; width: 40%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
}
.btn::before { top: -1px; }
.btn::after { bottom: -1px; }
.btn:hover { border-color: var(--fg); background: rgba(255,255,255,.04); }
.btn:active { transform: scale(.97); }
.btn-solid {
  background: var(--fg); color: #000; border-color: var(--fg);
  /* coloured halo: blue on one side, coral on the other */
  box-shadow: -14px 6px 40px -10px color-mix(in srgb, var(--c1) 80%, transparent),
              14px 6px 40px -10px color-mix(in srgb, var(--c3) 75%, transparent);
  transition: box-shadow .4s var(--ease), transform .15s ease-out;
}
.btn-solid::before, .btn-solid::after { display: none; }
.btn-solid:hover {
  background: var(--fg); color: #000;
  box-shadow: -18px 8px 56px -8px color-mix(in srgb, var(--c1) 95%, transparent),
              18px 8px 56px -8px color-mix(in srgb, var(--c3) 90%, transparent);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--gutter);
  background: linear-gradient(rgba(5,5,8,.7), rgba(5,5,8,0));
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 14, .62); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.header-icon { justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -13px; color: var(--fg-2); }
.header-icon:hover { color: var(--fg); }
.wordmark { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.menu-btn { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.menu-btn .label-caps { color: var(--fg); }
.menu-lines { display: grid; gap: 5px; width: 20px; }
.menu-lines i { display: block; height: 1px; background: var(--fg); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 420px) { .menu-btn .label-caps { display: none; } .wordmark { font-size: 13px; } }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.96);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  animation: fade .35s var(--ease);
}
.menu-list { display: grid; gap: 4px; }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-size: clamp(44px, 9vw, 96px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--fg-2); transition: color .25s;
}
.menu-list a:hover, .menu-list a:focus-visible { color: var(--fg); }
.menu-list span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--fg-3); width: 22px; }
.menu-foot { margin-top: auto; padding-top: 40px; }
.menu-foot a { color: var(--fg-2); }
@keyframes fade { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 104px var(--gutter) 48px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { justify-content: center; } }
.hero-glow {
  position: absolute; left: 50%; top: 52%; width: 120vmax; height: 80vmax; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 38% 55%, color-mix(in srgb, var(--c1) 22%, transparent), transparent),
    radial-gradient(closest-side at 64% 50%, color-mix(in srgb, var(--c3) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero { --px: 0; --py: 0; --sp: 0; }
/* headline drifts down slower than the page scrolls: the first layer of depth */
.hero-title, .hero-eyebrow { transform: translate3d(0, calc(var(--sp) * 110px), 0); opacity: calc(1 - var(--sp) * 2.4); }
.hero-title { font-size: clamp(44px, 6.6vw, 100px); max-width: 14ch; }
.hero-title em { display: inline-block; }
@media (min-width: 768px) { .hero-title { max-width: none; } }

.hero-phones {
  position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-end;
  margin: clamp(32px, 5vh, 56px) 0 clamp(28px, 4vh, 44px);
  height: clamp(220px, 31vh, 460px);
}
@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
  .hero-phones { height: clamp(220px, 33vh, 400px); margin: clamp(24px, 4vh, 44px) 0 clamp(24px, 3.5vh, 36px); }
  perspective: 1200px;
}
.phone {
  position: relative; aspect-ratio: 1 / 2; height: 100%;
  border-radius: clamp(18px, 2.4vh, 30px);
  padding: clamp(4px, .6vh, 7px);
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d 40%, #1c1c1c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(0,0,0,.9), 0 0 140px -30px color-mix(in srgb, var(--c1) 45%, transparent);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(14px, 1.9vh, 24px); }
.phone::after { /* island */
  content: ""; position: absolute; top: clamp(9px, 1.3vh, 14px); left: 50%; width: 26%; height: clamp(8px, 1.1vh, 12px);
  transform: translateX(-50%); border-radius: 99px; background: #000;
}
.phone-main {
  z-index: 2;
  transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 8px + var(--sp) * -40px), 0)
             rotateY(calc(var(--px) * 8deg)) rotateX(calc(var(--py) * -6deg));
}
.phone-side { height: 84%; filter: brightness(.45) saturate(.8); z-index: 1; }
.phone-left {
  margin-right: -6%; transform-origin: right center;
  transform: translate3d(calc(var(--px) * 28px - var(--sp) * 90px), calc(var(--py) * 14px), 0) rotateY(calc(22deg + var(--px) * 10deg));
}
.phone-right {
  margin-left: -6%; transform-origin: left center;
  transform: translate3d(calc(var(--px) * 28px + var(--sp) * 90px), calc(var(--py) * 14px), 0) rotateY(calc(-22deg + var(--px) * 10deg));
}
/* the phones stand on a glossy floor: reflection + a pool of light */
.hero .phone { -webkit-box-reflect: below 6px linear-gradient(transparent 74%, rgba(255,255,255,.16)); }
.hero-phones::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -46px; width: 170%; height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 28%, transparent), transparent);
}

.hero-foot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-sub { max-width: 46ch; color: var(--fg-2); font-size: 16px; }

.offer {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--fg-2);
}
@media (min-width: 768px) { .offer { flex-direction: row; justify-content: center; gap: 18px; } }
.offer { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c2) 9%, transparent), transparent); }
.offer .label-caps { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }

/* ---------- statement (words light up on scroll) ---------- */
.statement {
  padding: clamp(96px, 18vh, 200px) var(--gutter);
  max-width: var(--wrap); margin: 0 auto;
}
.statement-text { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.08; max-width: 20ch; }
.js .statement-text .w { color: #2c2c38; transition: color .5s var(--ease); }
.js .statement-text .w.on { color: var(--fg); }

/* ---------- sections ---------- */
.section { --accent: var(--c1); position: relative; padding: clamp(88px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
#work { --accent: var(--c2); }
#packages { --accent: var(--c3); }
#process { --accent: var(--c4); }
#about, #faq { --accent: var(--c2); }
.section-head .label-caps, .about-text > .label-caps { color: var(--accent); }
.section-head .label-caps::before, .about-text > .label-caps::before {
  content: ""; display: inline-block; width: 24px; height: 1px; margin-right: 12px; vertical-align: middle;
  background: var(--accent);
}
.section-head { margin-bottom: clamp(48px, 8vh, 88px); }
.section-head .label-caps { margin-bottom: 18px; }
.section-head-row { display: grid; gap: 24px; }
.section-note { color: var(--fg-2); max-width: 38ch; font-size: 15px; }

/* services */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; gap: 10px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.service-n { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.service { transition: padding-left .5s var(--ease); }
.service h3 { transition: color .4s var(--ease); }
@media (hover: hover) {
  .service:hover { padding-left: 12px; }
  .service:hover h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.service h3 { font-size: clamp(44px, 8vw, 104px); }
.service p { color: var(--fg-2); max-width: 40ch; }

/* work */
.work {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; scrollbar-width: none;
  max-width: var(--wrap); margin: 0 auto;
}
.work::-webkit-scrollbar { display: none; }
.work-item { flex: 0 0 78%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.work-media {
  display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: 22px; overflow: hidden;
  background:
    radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--c2) 20%, transparent), transparent),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.work-item:nth-child(3n+1) .work-media { background: radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--c1) 22%, transparent), transparent), var(--glass); }
.work-item:nth-child(3n) .work-media { background: radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--c3) 18%, transparent), transparent), var(--glass); }
.work-media .phone { height: 78%; transition: transform .8s var(--ease); }
.work-media { position: relative; --rx: 0deg; --ry: 0deg; perspective: 900px; }
.work-media .phone { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.work-item:hover .work-media .phone { transform: translateY(-10px) scale(1.03) rotateX(var(--rx)) rotateY(var(--ry)); transition-duration: .5s; }
.work-media::after { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 35%), rgba(255,255,255,.09), transparent 55%);
}
.work-item:hover .work-media::after { opacity: 1; }
.work-item .label-caps { margin-bottom: 8px; }
.work-item h3 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 8px; }
.work-desc { color: var(--fg-2); font-size: 16px; margin-bottom: 12px; }
.work-link {
  display: inline-flex; align-items: center; min-height: 44px; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s;
}
.work-link:hover { border-color: var(--accent); color: var(--accent); }

.is-todo { color: var(--todo) !important; border: 1px dashed var(--todo) !important; padding: 6px 10px !important; font-size: 11px; }

/* packages */
.packages { display: grid; border-top: 1px solid var(--line); }
.pkg {
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.pkg h3 { font-size: clamp(40px, 5vw, 60px); }
.price { font-size: clamp(48px, 6vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg-pitch { color: var(--fg); max-width: 34ch; }
.pkg-list { display: grid; gap: 10px; margin: 6px 0 18px; color: var(--fg-2); font-size: 16px; }
.pkg-list li { padding-left: 26px; position: relative; }
.pkg-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--accent); }
.pkg .btn { margin-top: auto; align-self: flex-start; }
.pkg .label-caps { color: var(--fg-3); }
.pkg-featured .label-caps { color: var(--accent); }
.pkg-featured .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* care */
.care { margin-top: clamp(72px, 10vh, 120px); display: grid; gap: 28px; }
.care-head h3 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 8px; }
.care-head p { color: var(--fg-2); }
.care-table { border-top: 1px solid var(--line); }
.care-row { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.care-row dt { font-size: 32px; }
.care-price { font-size: 28px; font-weight: 300; letter-spacing: -.03em; }
.care-price small { font-size: 14px; color: var(--fg-3); letter-spacing: 0; }
.care-price span { display: block; font-size: 13px; color: var(--fg-3); letter-spacing: 0; }
.care-inc { color: var(--fg-2); font-size: 16px; max-width: 52ch; }
.fine { color: var(--fg-3); font-size: 13px; max-width: 70ch; }

/* process */
.steps { display: grid; border-top: 1px solid var(--line); }
.steps li { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.step-n { font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.steps h3 { font-weight: 400; font-size: 18px; }
.steps p { color: var(--fg-2); font-size: 16px; max-width: 32ch; }

/* about */
.about { display: grid; gap: 48px; }
.about-photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; }
div.about-photo { display: grid; place-items: center; }
.about-text h2 { margin: 18px 0 28px; }
.about-text p:not(.label-caps) { color: var(--fg-2); max-width: 52ch; margin-bottom: 1em; font-size: 17px; }

/* faq */
.faq-wrap { display: grid; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 48px 26px 0; font-size: clamp(24px, 3vw, 34px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--accent);
  transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--fg-2); padding: 0 0 28px; max-width: 60ch; }
.faq summary:hover { color: var(--accent); }
.faq summary { transition: color .3s; }

/* final */
.final {
  position: relative; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(120px, 20vh, 220px) var(--gutter) 64px;
  border-top: 1px solid var(--line);
}
.final .hero-glow {
  top: 60%; width: 140vmax; height: 90vmax;
  background:
    radial-gradient(closest-side at 40% 50%, color-mix(in srgb, var(--c3) 26%, transparent), transparent),
    radial-gradient(closest-side at 62% 55%, color-mix(in srgb, var(--c2) 24%, transparent), transparent);
}
.final > .label-caps { color: var(--c4); position: relative; }
.final-title { position: relative; font-size: clamp(52px, 10vw, 136px); margin: 18px 0 28px; }
.final-sub, .final .btn, .back-top { position: relative; }
.final-sub { color: var(--fg-2); max-width: 40ch; margin-bottom: 36px; }
.back-top { margin-top: clamp(72px, 12vh, 120px); padding: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.back-top:hover { color: var(--fg); }

/* footer */
.site-footer {
  display: grid; gap: 20px; padding: 40px var(--gutter) 112px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2);
}
.site-footer .wordmark { color: var(--fg); }
.footer-links { display: grid; gap: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--fg); }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--fg); color: #000; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--c2) 70%, transparent);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float.is-away { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* scroll progress hairline */
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 1px; z-index: 61; background: var(--line); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

.todo-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 70;
  background: var(--todo); color: #000; font-size: 11px; font-weight: 500; padding: 6px 10px;
}

/* reveal on scroll (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .work-item:nth-child(2)[data-reveal], .js .pkg:nth-child(2)[data-reveal], .js .steps li:nth-child(2)[data-reveal] { transition-delay: .06s; }
.js .work-item:nth-child(3)[data-reveal], .js .pkg:nth-child(3)[data-reveal], .js .steps li:nth-child(3)[data-reveal] { transition-delay: .12s; }
.js .steps li:nth-child(4)[data-reveal] { transition-delay: .18s; }

/* ================= tablet ================= */
@media (min-width: 768px) {
  .section-head-row { grid-template-columns: 1fr auto; align-items: end; }
  .service { grid-template-columns: 80px 1fr minmax(0, 34ch); align-items: baseline; gap: 24px; padding: 40px 0; }
  .work-item { flex-basis: 44%; }
  .care-row { grid-template-columns: 160px 200px 1fr; align-items: baseline; gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
  .site-footer { grid-template-columns: 1fr auto; padding-bottom: 40px; }
  .footer-meta { grid-column: 1 / -1; }
}

/* ================= desktop ================= */
@media (min-width: 1100px) {
  /* three in a row */
  .work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 56px 20px; overflow: visible; padding: 0 var(--gutter); }
  .work-item { grid-column: span 2; }
  .packages { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .packages { gap: 16px; align-items: stretch; }
  .pkg { padding: 40px 36px 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--glass); transition: transform .5s var(--ease), border-color .5s; }
  .pkg:hover { transform: translateY(-6px); border-color: var(--line-2); }
  .pkg > .label-caps { min-height: 3.2em; }  /* keeps the three titles level when one label wraps */
  .pkg-featured {
    border: 1px solid transparent;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--c3) 10%, var(--bg-2)), var(--bg-2) 55%) padding-box,
      var(--grad) border-box;
    box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c2) 45%, transparent);
  }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .wa-float { right: 28px; bottom: 28px; }
}


/* ================= depth background ================= */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 70% at 50% -10%, #0e1024, var(--bg) 62%);
}
.bg-layer { position: absolute; inset: 0; will-change: transform; }
.blob {
  position: absolute; display: block; width: 78vmax; height: 78vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--col), transparent 72%);
  animation: float 28s ease-in-out infinite alternate; will-change: transform;
}
.b1 { --col: color-mix(in srgb, var(--c1) 34%, transparent); left: -30vmax; top: -24vmax; }
.b2 { --col: color-mix(in srgb, var(--c2) 30%, transparent); right: -34vmax; top: 10vh; animation-duration: 34s; animation-delay: -8s; }
.b3 { --col: color-mix(in srgb, var(--c3) 28%, transparent); left: 10vw; bottom: -46vmax; animation-duration: 31s; animation-delay: -15s; }
.b4 { --col: color-mix(in srgb, var(--c4) 16%, transparent); width: 46vmax; height: 46vmax; right: 6vw; bottom: -10vmax; animation-duration: 24s; animation-delay: -4s; }
@keyframes float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(.95); }
}
/* two star layers, tiled every 200px so they can scroll forever on a short element */
.bg-stars { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 200px); will-change: transform; }
.bg-stars-far {
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff, transparent 1.5px),
    radial-gradient(1px 1px at 141px 97px, #fff, transparent 1.5px),
    radial-gradient(1px 1px at 87px 173px, #cfd6ff, transparent 1.5px),
    radial-gradient(1px 1px at 182px 12px, #fff, transparent 1.5px);
  background-size: 200px 200px;
}
.bg-stars-near {
  opacity: .35;
  background-image:
    radial-gradient(1.4px 1.4px at 61px 133px, #fff, transparent 2px),
    radial-gradient(1.4px 1.4px at 171px 63px, #ffd9c9, transparent 2px);
  background-size: 200px 200px;
}
/* a faint lit horizon low in the frame: the floor everything stands on */
.bg-horizon {
  position: absolute; left: -10%; right: -10%; bottom: -30vh; height: 60vh;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--c1) 10%, transparent), transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ================= laptop intro (real photographs: see playIntro in script.js) ================= */
.intro-pending .site-header, .intro-pending main, .intro-pending .site-footer, .intro-pending .wa-float { visibility: hidden; }

.intro { position: fixed; inset: 0; z-index: 150; overflow: hidden; background: #161617; }  /* the photos' own backdrop tone */
.intro-cam { position: absolute; inset: 0; }
/* the "camera": one 2400x1600 sheet in photo pixels, moved and scaled as a whole */
.intro-photos {
  position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transform-origin: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 48%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 52% at 50% 48%, #000 62%, transparent 100%);
}
.ph { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; display: block; max-width: none; }
/* palette rim light on the real photo: blue from the left, coral from the right */
.ph-tint {
  position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 30% at 22% 66%, color-mix(in srgb, var(--c1) 34%, transparent), transparent 70%),
    radial-gradient(ellipse 20% 28% at 79% 64%, color-mix(in srgb, var(--c3) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 12% at 50% 84%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%);
}

/* hairline loader while the photos arrive */
.intro-load { position: absolute; left: 50%; top: 50%; width: 120px; height: 1px; margin-left: -60px; background: var(--line); overflow: hidden; z-index: 3; }
.intro-load i { position: absolute; inset: 0; background: var(--grad); animation: load 1.1s ease-in-out infinite; }
.intro.is-live .intro-load { display: none; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* the display: pinned onto the photo's screen with a perspective matrix */
.screen-photo { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--bg); }
.screen-on { position: absolute; inset: 0; }
.notch {
  position: absolute; top: 0; left: 50%; z-index: 5; width: 13.3%; height: 3.9%;
  transform: translateX(-50%); background: #050505; border-radius: 0 0 14px 14px;
}
.screen-glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.06) 34%, rgba(255,255,255,.015) 46%, transparent 60%) -40% 0 / 160% 100% no-repeat;
}
.screen-clone { position: absolute; left: 0; top: 0; pointer-events: none; }
/* The copy on the screen is one flat picture: nothing in it may move or get its own GPU layer. */
.screen-clone *, .screen-clone *::before, .screen-clone *::after {
  animation: none !important; transition: none !important; will-change: auto !important;
  -webkit-box-reflect: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.screen-clone .site-header, .screen-clone .bg { position: absolute; }
.screen-clone .bg { z-index: 0; }
.screen-clone .site-header, .screen-clone .hero { z-index: 1; }
.screen-clone .hero { min-height: 0; }
.screen-clone .hero-title, .screen-clone .hero-eyebrow, .screen-clone .phone-main,
.screen-clone .bg-layer, .screen-clone .bg-stars { transform: none !important; }
.screen-clone .hero-phones { perspective: none; }
.screen-clone .phone-left, .screen-clone .phone-right { transform: scaleX(.93) !important; }
.screen-simple { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(closest-side, #1a1a24, #000); }
.screen-simple span { font-family: var(--serif); letter-spacing: -.02em; color: #fff; }

.fake-cursor { position: absolute; left: 0; top: 0; z-index: 6; }
.fake-cursor svg { display: block; width: 26px; height: 26px; }
.fake-cursor path { fill: rgba(255,255,255,0); stroke: rgba(0,0,0,0); }
.fake-click {
  position: absolute; z-index: 5; width: 18px; height: 18px; border-radius: 50%;
  translate: -50% -50%; border: 1px solid rgba(255,255,255,0);
}

.intro-dust { position: absolute; inset: 0; pointer-events: none; }
.intro-dust i { position: absolute; border-radius: 50%; background: #fff; opacity: 0; animation: drift linear infinite; }
@keyframes drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  25%, 75% { opacity: .3; }
  100% { opacity: 0; transform: translate3d(24px, -110px, 0); }
}
.intro-skip {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 7;
  min-height: 44px; padding: 0 4px; color: var(--fg-3);
}
.intro-skip:hover { color: var(--fg); }

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