/* =========================================================
   Marinze Website — main stylesheet
   Palette: ink dark + electric indigo + amber accent
   Fonts:  Plus Jakarta Sans (display) / Inter (body)
   ========================================================= */

:root {
  --ink:        #0d1017;
  --ink-2:      #141926;
  --bg:         #ffffff;
  --bg-soft:    #f5f6fb;
  --line:       #e6e8f0;
  --text:       #1e2532;
  --muted:      #5c6575;
  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --accent:     #f59e0b;
  --good:       #16a34a;
  --bad:        #e11d48;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 2px 10px rgba(16, 20, 40, .06);
  --shadow-md:  0 14px 40px rgba(16, 20, 40, .12);
  --shadow-lg:  0 30px 70px rgba(16, 20, 40, .18);
  --container:  1160px;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-head:  'Plus Jakarta Sans', var(--font-body);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 800; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 120px) 0; }

/* section IDs need offset for the fixed header */
section[id] { scroll-margin-top: 90px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow-light { color: #a5b4fc; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79, 70, 229, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 20px; height: 72px; }
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.brand-dot { color: var(--brand); }
/* over the dark hero, before scroll */
.site-header:not(.scrolled) .brand { color: #fff; }
.site-header:not(.scrolled) .nav-list > li > a { color: rgba(255,255,255,.85); }
.site-header:not(.scrolled) .nav-list > li > a:hover { color: #fff; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

.nav-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 28px; }
.nav-list li { white-space: nowrap; }
.nav-list a { font-weight: 600; font-size: .96rem; color: var(--text); white-space: nowrap; transition: color .18s ease; }
.nav-list a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(79,70,229,.3);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px auto; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; padding: 150px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,.45), rgba(79,70,229,.18) 55%, transparent 72%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -.03em; color: #fff; }
.hero-title span { background: linear-gradient(120deg, #a78bfa, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; font-size: 1.12rem; color: rgba(255,255,255,.8); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badges li {
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04);
}

/* hero mini before/after */
.hero-visual { position: relative; }
.ba-mini { position: relative; height: 360px; }
.ba-mini-shot {
  position: absolute; width: 78%; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.ba-mini-shot img { height: 240px; object-fit: cover; object-position: top; }
.ba-mini-shot:first-child { top: 0; left: 0; filter: saturate(.6) brightness(.92); }
.ba-mini-after { bottom: 0; right: 0; z-index: 2; }
.hero-visual-cap { margin-top: 16px; text-align: center; color: rgba(255,255,255,.6); font-size: .86rem; }

.ba-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; color: #fff;
}
.ba-tag-before { background: var(--bad); }
.ba-tag-after { background: var(--good); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-media { position: relative; width: 300px; max-width: 100%; }
.about-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.about-media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: var(--radius); z-index: -1; opacity: .18;
}
.about-copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about-copy .section-title { margin-top: 8px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.skill-chips li {
  font-weight: 600; font-size: .88rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 15px; border-radius: 10px;
}

/* ---------- Projects ---------- */
.work { background: var(--bg-soft); }
.project-list { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 60px); }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-sm);
}
.project-head { display: flex; align-items: flex-start; gap: 18px; }
.project-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff;
  background: var(--accent); width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center; border-radius: 12px;
}
.project-category { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.project-name { font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -.02em; margin-top: 2px; }
.project-summary { color: var(--muted); margin-top: 18px; max-width: 760px; font-size: 1.05rem; }

.project-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.project-tab {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
  transition: all .18s ease;
}
.project-tab:hover { color: var(--ink); border-color: var(--accent); }
.project-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.project-panels { margin-top: 22px; }
.project-panel { display: none; }
.project-panel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-item figcaption { margin-bottom: 10px; }
.compare-item .ba-tag { position: static; display: inline-block; }

.shot-frame {
  display: block; width: 100%; padding: 0; cursor: zoom-in; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.shot-frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f2f7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd3df; }
.browser-bar i:first-child { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.shot-scroll { display: block; height: 300px; overflow: hidden; }
.shot-scroll img { width: 100%; object-fit: cover; object-position: top; }

.project-improve { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.project-improve h4 { font-size: 1rem; letter-spacing: .02em; }
.project-improve ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 14px; }
.project-improve li { position: relative; padding-left: 26px; color: var(--text); font-size: .98rem; }
.project-improve li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------- Project cards ---------- */
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--bg-soft); height: 260px; overflow: hidden;
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: #fff;
  background: var(--accent); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
}
.project-card-hover {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(13,16,23,0) 30%, rgba(13,16,23,.55));
  opacity: 0; transition: opacity .25s ease;
}
.project-card-media:hover .project-card-hover,
.project-card-media:focus-visible .project-card-hover { opacity: 1; }
.project-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-card-sum { color: var(--muted); margin-top: 10px; font-size: .98rem; flex: 1; }
.project-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Project modal ---------- */
.project-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.project-modal[hidden] { display: none; }
.pm-backdrop { position: fixed; inset: 0; background: rgba(8,10,16,.65); backdrop-filter: blur(4px); }
.pm-dialog {
  position: relative; z-index: 1; width: min(100%, 1080px); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: auto; animation: pmIn .3s ease;
}
@keyframes pmIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pm-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
}
.pm-head-title .project-category { color: var(--accent); }
.pm-head-title .project-name { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.pm-head-actions { display: flex; align-items: center; gap: 12px; }
.pm-close { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 10px; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; transition: all .18s ease; }
.pm-close:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.pm-body { padding: 24px; }
.pm-live { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.browser-bar-url { justify-content: flex-start; }
.pm-url { margin-left: 12px; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; }
.pm-frame { display: block; width: 100%; height: 62vh; min-height: 420px; border: 0; background: #fff; }
.pm-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.pm-note a { color: var(--brand); font-weight: 600; }
.pm-compare { margin-top: 0; }
.pm-live-section { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 26px; }
.pm-subhead { font-size: 1.15rem; margin-bottom: 16px; }
.pm-compare .project { background: transparent; border: 0; box-shadow: none; padding: 0; }
.pm-compare .project-panels { margin-top: 18px; }
.project-improve { }
.pm-body > .project-improve { margin-top: 30px; }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-mark { display: block; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); position: relative; }
.card-mark::after { content: ""; position: absolute; inset: 13px; border: 2.5px solid #fff; border-radius: 5px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-top: 10px; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: #fff; }
.why .section-title, .why .eyebrow { color: #fff; }
.why .eyebrow { color: #a5b4fc; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px 26px; transition: transform .2s ease, background .2s ease;
}
.why-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.why-item h3 { color: #fff; font-size: 1.14rem; }
.why-item p { color: rgba(255,255,255,.72); margin-top: 10px; }

/* ---------- SEO & GEO ---------- */
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.sg-card > h3 { font-size: 1.3rem; }
.sg-card > p { color: var(--muted); margin-top: 10px; }
.sg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.sg-col { border-radius: var(--radius-sm); padding: 20px 18px; border: 1px solid var(--line); }
.sg-weak { background: #fff5f6; border-color: #fbd6dd; }
.sg-strong { background: #f0fdf4; border-color: #c3ecd0; }
.sg-col h4 { font-size: .95rem; margin-bottom: 12px; }
.sg-weak h4 { color: var(--bad); }
.sg-strong h4 { color: var(--good); }
.sg-col li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--text); margin-top: 9px; }
.sg-weak li::before { content: "\00d7"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.sg-strong li::before { content: "\2713"; position: absolute; left: 3px; color: var(--good); font-weight: 700; }
.sg-result { margin-top: 20px; font-size: .98rem; color: var(--text); }
.sg-result strong { color: var(--ink); }

/* ---------- Why Design Matters ---------- */
.design { background: var(--bg-soft); }
.pillars {
  margin-top: 44px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.pillars-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.pillars-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pillars-list li {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(79,70,229,.09), rgba(124,58,237,.09));
  border: 1px solid rgba(79,70,229,.18);
}

/* ---------- Pricing ---------- */
.pricing-panel {
  max-width: 760px; margin: 0 auto; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(30px, 5vw, 52px); box-shadow: var(--shadow-md);
}
.pricing-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.pr-point { text-align: left; }
.pr-point-end { text-align: right; }
.pr-label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pr-value { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 2.9rem); color: var(--ink); letter-spacing: -.02em; }
.pr-value small { font-size: .5em; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; text-transform: none; }
.pr-track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.pr-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.pricing-note { color: var(--muted); margin-top: 26px; font-size: 1.05rem; }
.pricing-factors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 24px 0 30px; }
.pricing-factors li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--text); }
.pricing-factors li::before { content: "\2713"; position: absolute; left: 2px; color: var(--brand); font-weight: 800; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-intro .cta-title { color: #fff; }
.contact-intro .cta-sub { color: rgba(255,255,255,.8); }
.contact-methods { margin-top: 30px; display: grid; gap: 16px; }
.contact-methods li { display: flex; flex-direction: column; gap: 2px; }
.cm-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #a5b4fc; font-weight: 700; }
.contact-methods a, .contact-methods li > span:last-child { color: #fff; font-size: 1.05rem; }
.contact-methods a:hover { color: #a5b4fc; }

.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-lg); }
.form-banner { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .96rem; }
.form-banner-success { background: #f0fdf4; border: 1px solid #c3ecd0; color: #166534; }
.form-banner-error { background: #fff5f6; border: 1px solid #fbd6dd; color: #b1173a; }
.contact-form .field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.contact-form .req { color: var(--bad); }
.contact-form .opt { color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa3b2; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.contact-form input[readonly] { background: var(--bg-soft); color: var(--muted); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input, .contact-form textarea, .combobox input { cursor: text; }
.contact-form input[type="datetime-local"] { cursor: pointer; }
.contact-form label { cursor: default; }
.contact-form .field.invalid input, .contact-form .field.invalid textarea { border-color: var(--bad); }
.field-error { display: block; color: var(--bad); font-size: .84rem; margin-top: 6px; min-height: 0; }
.field.invalid .field-error { min-height: 1em; }
.contact-submit { width: 100%; margin-top: 6px; }

/* searchable time-zone combobox */
.combobox { position: relative; }
.combobox input { padding-right: 42px; }
.combobox-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 40px;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
  color: var(--muted); transition: transform .2s ease;
}
.combobox.open .combobox-toggle { transform: rotate(180deg); color: var(--brand); }
.combobox-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 6;
  max-height: 244px; overflow-y: auto; margin: 0; padding: 6px;
  background: #fff; border: 1.5px solid var(--brand); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); list-style: none;
}
.combobox-list[hidden] { display: none; }
.combobox-option {
  padding: 10px 14px; border-radius: 8px; cursor: pointer; font-size: .95rem; color: var(--text);
  white-space: normal; overflow-wrap: anywhere;
}
.combobox-option:hover { background: var(--bg-soft); }
.combobox-option.active { background: rgba(79,70,229,.1); color: var(--ink); }
.combobox-option[aria-selected="true"] { font-weight: 600; color: var(--brand); }
.combobox-empty { padding: 12px 14px; color: var(--muted); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta { position: relative; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(600px circle at 50% 0%, rgba(245,158,11,.35), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.cta-sub { color: rgba(255,255,255,.88); margin-top: 16px; font-size: 1.1rem; }
.cta-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.cta .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-nav h3, .footer-contact h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a:hover { color: #fff; }
.footer-contact p { margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none;
  background: rgba(8,10,16,.9); padding: 40px; overflow: auto;
}
.lightbox.open { display: block; }
.lightbox img { max-width: 1000px; width: 100%; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: fixed; top: 20px; right: 26px; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Keep the horizontal nav on one tidy line between mobile menu and desktop. */
@media (max-width: 1040px) and (min-width: 721px) {
  .nav-list { gap: 18px; }
  .nav-list a { font-size: .9rem; }
  .nav-cta { padding: 9px 15px; }
  .brand { font-size: 1.25rem; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .about-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-media { width: 280px; }
  .about-copy .skill-chips { justify-content: center; }
  .why-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; z-index: 120; }
  .primary-nav {
    position: fixed; inset: 0; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%); transition: transform .35s ease; z-index: 110;
  }
  .primary-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 26px; }
  .site-header .nav-list > li > a,
  .site-header:not(.scrolled) .nav-list > li > a { color: #fff; font-size: 1.3rem; }
  .nav-cta { padding: 12px 28px; }
  /* hamburger -> X */
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header:not(.scrolled) .nav-toggle.open span { background: #fff; }

  .compare { grid-template-columns: 1fr; }
  .project-improve ul { grid-template-columns: 1fr; }
  .sg-compare { grid-template-columns: 1fr; }

  .project-modal { padding: 0; }
  .pm-dialog { border-radius: 0; min-height: 100%; width: 100%; }
  .pm-head { border-radius: 0; flex-wrap: wrap; }
  .pm-head-actions { width: 100%; justify-content: space-between; }
  .pm-frame { height: 70vh; min-height: 340px; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .pricing-range { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .pr-point, .pr-point-end { text-align: center; }
  .pr-track { display: none; }
}

@media (max-width: 520px) {
  .why-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}

/* ---------- Subpage hero + CTA band (routes: /about/, /services/, …) ---------- */
/* Dark band so the white top-nav stays readable and it matches the homepage hero. */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 150px 0 70px;
  overflow: hidden;
  text-align: center;
}
.page-hero .section-head { margin-bottom: 0; }
.page-hero .section-title { color: #fff; }
.page-hero .section-intro { color: rgba(255, 255, 255, .8); }

.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; text-align: center; }
.cta-band-inner { position: relative; max-width: 640px; }
.cta-band .cta-sub { margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* In-content links — distinguish from surrounding body text */
.about-copy a, .section-intro a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.about-copy a:hover, .section-intro a:hover { color: var(--ink); }

/* Breadcrumb on the subpage hero (dark band) */
.page-hero .breadcrumb { margin-bottom: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Footer location line */
.footer-loc { font-size: .85rem; opacity: .7; margin-top: 10px; }
