:root {
  --page: #F4F3EE;
  --card: #EAE8E2;
  --card-2: #E1DED6;
  --taupe: #E2DAD4;
  --ink: #121212;
  --muted: #6D6A64;
  --dark: #141414;
  --dark-2: #1F1F1F;
  --line: #D6D3CB;
  --on-dark: #F4F3EE;
  --on-dark-muted: #9B9892;
  --tag: #E4DBD5;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --max: 1392px;
  --btn-bg: #121212;
  --btn-fg: #FFFFFF;
  --btn-hover: #2B2B2B;
  --inv-muted: #9B9892;
  --text-2: #3B3935;
  --tag-fg: #3D3A36;
  --header-bg: rgba(244,243,238,.92);
  --mark-filter: invert(1);
  --frost: rgba(255,255,255,.35);
  --stripe: #121212;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root { color-scheme: light; }
:root[data-theme="night"] {
  color-scheme: dark;
  --page: #111110;
  --card: #1A1A18;
  --card-2: #22221F;
  --taupe: #1C1917;
  --ink: #EDEBE5;
  --muted: #9A968F;
  --dark: #0A0A0A;
  --dark-2: #161615;
  --line: #2E2D2A;
  --tag: #2A2724;
  --tag-fg: #CFC8C1;
  --btn-bg: #EDEBE5;
  --btn-fg: #121212;
  --btn-hover: #D6D3CB;
  --inv-muted: #5B5853;
  --text-2: #CFCBC4;
  --header-bg: rgba(17,17,16,.88);
  --mark-filter: none;
  --frost: rgba(255,255,255,.04);
  --stripe: #0A0A0A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; transition: background-color .3s ease, color .3s ease; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; }
h2 em, h1 em { font-style: italic; font-weight: 400; }
h3 { font-weight: 500; letter-spacing: -0.015em; }
section[id] { scroll-margin-top: 72px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 60; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #7A5CFF; outline-offset: 3px; border-radius: 6px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: .9375rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 8px; }
.pill-dark { background: var(--btn-bg); color: var(--btn-fg); }
.pill-dark:hover { background: var(--btn-hover); }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #E9E7E1; }
.pill-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.pill-glass:hover { background: rgba(255,255,255,.16); }
.arr { font-size: 1em; line-height: 1; }

.tag {
  display: inline-block; background: var(--tag); color: var(--tag-fg); border-radius: 6px;
  padding: 4px 8px; font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 22px;
}
.tag-dark { background: rgba(255,255,255,.1); color: var(--on-dark-muted); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color .3s ease, box-shadow .3s ease; }
.nav { max-width: var(--max); margin: 0 auto; padding: 0 32px; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { height: 30px; width: auto; transition: filter .3s ease; }
.brand-name { font-weight: 500; font-size: .9375rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: .9375rem; color: rgba(255,255,255,.82); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.site-header:not(.scrolled) .nav-actions .pill-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.site-header.scrolled { background: var(--header-bg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .brand-mark { filter: var(--mark-filter); }
.site-header.scrolled .nav-links a { color: var(--text-2); }
.site-header.scrolled .nav-links a:hover { color: var(--ink); }
.menu-toggle { display: none; font: inherit; font-size: .875rem; font-weight: 500; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; min-height: 34px; padding: 0 12px; cursor: pointer; }
.site-header.scrolled .menu-toggle { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--dark); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; }
.frame-hero { width: min(60vw, 980px); margin-right: -4vw; transform: perspective(1800px) rotateY(-14deg) rotateX(4deg); transform-origin: right center; box-shadow: 0 40px 120px rgba(0,0,0,.6); opacity: .9; animation: hero-in 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { opacity: 0; transform: perspective(1800px) rotateY(-22deg) rotateX(6deg) translateX(8%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,1) 0%, rgba(20,20,20,.96) 40%, rgba(20,20,20,.55) 58%, rgba(20,20,20,.1) 80%, rgba(20,20,20,0) 100%), linear-gradient(0deg, rgba(20,20,20,.9) 0%, rgba(20,20,20,0) 35%); }
.hero-content { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 160px 32px 72px; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); max-width: 16ch; }
.hero-lede { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-strip { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 22px 32px 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; border-top: 1px solid rgba(255,255,255,.12); }
.strip-label { font-size: .8125rem; color: var(--on-dark-muted); }
.strip-client { font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; font-weight: 500; }
.strip-client em { font-weight: 300; }
.strip-client:hover { text-decoration: underline; text-underline-offset: 4px; }
.strip-meta { font-size: .8125rem; color: var(--on-dark-muted); }

/* Browser frames */
.frame { border-radius: 14px; overflow: hidden; background: #0D0D0D; border: 1px solid rgba(255,255,255,.1); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #1C1C1C; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3A; }
.frame-bar span { margin: 0 auto; transform: translateX(-24px); font-size: .75rem; color: #8C8C8C; background: #262626; padding: 3px 14px; border-radius: 6px; }

/* Sections */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-taupe { background: var(--taupe); }
.section-card { background: var(--card); }
.section h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.lede { margin-top: 20px; color: var(--muted); max-width: 52ch; font-size: 1.0625rem; }
.section-dark .lede { color: var(--on-dark-muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 64px; }
.center-head h2 { margin-bottom: 26px; }
.center-head .lede { margin-top: -6px; }

/* Service cards: staggered like a hand of cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 32px; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; max-width: 14ch; }
.card p { color: var(--muted); font-size: 1rem; max-width: 38ch; }
.card-a { margin-top: 96px; }
.card-b { background: var(--card-2); }
.card-c { margin-top: 48px; background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.card-c p { color: var(--inv-muted); }
.card-visual { flex: 1; min-height: 140px; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.visual-design .sw { width: 52px; height: 110px; border-radius: 10px; }
.visual-design .sw1 { background: var(--ink); }
.visual-design .sw2 { background: #CFC6BE; }
.visual-design .sw3 { background: #7A5CFF; }
.type-sample { font-size: 4.5rem; font-weight: 300; font-style: italic; letter-spacing: -0.05em; margin-left: 14px; }
.phone { width: 96px; height: 170px; border: 2px solid var(--ink); border-radius: 18px; padding: 22px 12px; display: grid; gap: 8px; align-content: start; background: var(--page); }
.phone i { display: block; height: 14px; border-radius: 4px; background: var(--line); }
.phone i:first-child { height: 52px; background: #CFC6BE; }
.speed { position: absolute; right: 12%; bottom: 18%; display: grid; gap: 5px; }
.speed b { display: block; height: 6px; border-radius: 3px; background: var(--ink); }
.speed b:nth-child(1) { width: 64px; } .speed b:nth-child(2) { width: 48px; opacity: .6; } .speed b:nth-child(3) { width: 30px; opacity: .3; }
.visual-host { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 10px; background: rgba(128,128,128,.12); border: 1px solid rgba(128,128,128,.28); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: .9375rem; }
.status b { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.service-list { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9375rem; color: var(--text-2); }

/* Showcase */
.showcase { position: relative; max-width: 1120px; margin: 0 auto; }
.frame-show { box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.frame-phone { position: absolute; right: -40px; bottom: -48px; width: 190px; border-radius: 28px; overflow: hidden; border: 6px solid #2A2A2A; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.case-media { margin: 0; border-radius: var(--r-m); overflow: hidden; }
.case-media img { width: 100%; height: auto; }
.case-body { display: grid; gap: 16px; align-content: start; }
.case-card { background: var(--page); border-radius: var(--r-m); padding: 28px; }
.case-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case-card p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: var(--frost); border-radius: var(--r-m); padding: 20px 24px; font-size: .9375rem; }
.case-meta span { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }

/* Business types */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kind { border-radius: var(--r-m); overflow: hidden; background: var(--card); }
.kind-art { aspect-ratio: 4 / 3.4; background-size: cover; }
.kind h3 { font-size: 1.25rem; padding: 22px 22px 6px; }
.kind p { color: var(--muted); font-size: .9375rem; padding: 0 22px 24px; }
/* Zebra-stripe artwork echoing the ZCS logo, one direction per card */
.kind-1 .kind-art { background: repeating-linear-gradient(90deg, var(--stripe) 0 14px, #E1DED6 14px 30px); }
.kind-2 .kind-art { background: repeating-radial-gradient(circle at 20% 110%, var(--stripe) 0 12px, #D8CEC6 12px 28px); }
.kind-3 .kind-art { background: repeating-linear-gradient(0deg, var(--stripe) 0 12px, #CDC9DE 12px 28px); }
.kind-4 .kind-art { background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, #E4DBD5 12px 28px); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--page); border-radius: var(--r-m); padding: 28px; min-height: 260px; display: flex; flex-direction: column; }
.step-n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: .9375rem; margin-bottom: auto; }
.steps h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; margin: 40px 0 10px; }
.steps p { color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-size: 1.1875rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-direct { margin-top: 24px; color: var(--on-dark-muted); }
.contact-direct a { color: #fff; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-l); padding: 32px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .875rem; color: #D9D7D1; }
.optional { color: var(--on-dark-muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: #fff; background: #111; border: 1px solid #333; border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #BDB9B0; }
.field input[aria-invalid="true"] { border-color: #FF7A6B; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-hint { color: var(--on-dark-muted); font-size: .875rem; }
.form-error { grid-column: 1 / -1; color: #FFB3A8; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-top: 48px; padding-bottom: 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.footer-brand img { height: 28px; width: auto; }
.footer-nav { display: flex; gap: 24px; font-size: .9375rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-small { grid-column: 1 / -1; font-size: .8125rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-small a { text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-actions .pill { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; left: 16px; right: 16px; background: var(--page); border-radius: var(--r-m); padding: 8px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
  .nav-links.open a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a:last-child { border-bottom: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .card-a, .card-c { margin-top: 0; }
  .card { min-height: 0; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .frame-phone { right: 12px; width: 150px; }
}
@media (max-width: 680px) {
  .container, .nav, .hero-content, .hero-strip { padding-left: 16px; padding-right: 16px; }
  .brand-name { display: none; }
  .head-row { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .frame-hero { width: 150vw; margin-right: -80vw; opacity: .55; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,20,20,.98) 0%, rgba(20,20,20,.75) 55%, rgba(20,20,20,.4) 100%); }
  .cards-4, .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .case-meta { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .frame-phone { width: 110px; bottom: -32px; border-width: 4px; border-radius: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame-hero { animation: none; }
  .pill, .site-header, .brand-mark, .faq summary::after { transition: none; }
}

/* Day / night toggle */
.theme-toggle { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 0; transition: background-color .2s ease; }
.theme-toggle:hover { background: rgba(255,255,255,.18); }
.site-header.scrolled .theme-toggle { background: transparent; border-color: var(--line); color: var(--ink); }
.site-header.scrolled .theme-toggle:hover { background: var(--card); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="night"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="night"] .theme-toggle .icon-moon { display: none; }
@media (prefers-reduced-motion: reduce) { body, .theme-toggle { transition: none; } }
