/* ==========================================================================
   napptune — software development company
   modern, minimalist, professional design system
   (adapted from v1 static site; theme-switcher CSS removed)
   ========================================================================== */

:root {
  --teal:        #2ba39b;
  --teal-deep:   #154e54;
  --teal-soft:   #5fc2b6;
  --mint:        #c9f0e4;
  --mint-pale:   #eaf8f4;
  --ice:         #f3f9fb;
  --charcoal:    #2f3b3e;
  --slate:       #647074;
  --white:       #ffffff;
  --code-bg:     #123036;
  --on-accent:   #ffffff;
  --accent-ink:  var(--teal);

  --accent-rgb:  43, 163, 155;
  --deep-rgb:    21, 78, 84;
  --mint-rgb:    201, 240, 228;

  --shadow-sm: 0 4px 14px rgba(var(--deep-rgb), .08);
  --shadow-md: 0 14px 40px rgba(var(--deep-rgb), .10);
  --shadow-lg: 0 28px 70px rgba(var(--deep-rgb), .16);

  --radius-sm: 14px;
  --radius:    24px;
  --radius-lg: 36px;
  --radius-pill: 999px;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* THEME: neon aqua */
[data-theme="neon"] {
  --teal:        #00E5FF;
  --teal-deep:   #043b42;
  --teal-soft:   #1DE9B6;
  --mint:        #00FFAA;
  --mint-pale:   #e6fff8;
  --ice:         #eefdfd;
  --code-bg:     #04222a;
  --on-accent:   #012b33;
  --accent-ink:  #043b42;
  --accent-rgb:  0, 229, 255;
  --deep-rgb:    4, 59, 66;
  --mint-rgb:    0, 255, 170;
}

/* THEME: punchy pink & teal */
[data-theme="pink"] {
  --teal:        #3F9DBF;
  --teal-soft:   #D3EBE1;
  --mint:        #FF4D90;
  --teal-deep:   #14424f;
  --mint-pale:   #ffe1ec;
  --ice:         #f5fafb;
  --charcoal:    #2D3436;
  --slate:       #5b6266;
  --code-bg:     #0e2f38;
  --on-accent:   #ffffff;
  --accent-rgb:  63, 157, 191;
  --deep-rgb:    20, 66, 79;
  --mint-rgb:    255, 77, 144;
}

/* THEME: deep purple & neo-mint */
[data-theme="purple"] {
  --teal:        #5E2390;
  --teal-soft:   #B08CF2;
  --mint:        #00FFAA;
  --teal-deep:   #2a0f44;
  --mint-pale:   #e6fff5;
  --ice:         #f3eefb;
  --charcoal:    #2D2436;
  --slate:       #6b6478;
  --code-bg:     #1f0a36;
  --on-accent:   #ffffff;
  --accent-rgb:  94, 35, 144;
  --deep-rgb:    42, 15, 68;
  --mint-rgb:    0, 255, 170;
}

/* THEME: sunset orange & slate */
[data-theme="sunset"] {
  --teal:        #FF7043;
  --teal-soft:   #607D8B;
  --mint:        #E1F5FE;
  --teal-deep:   #2b3942;
  --mint-pale:   #f2fbff;
  --ice:         #fdf4ef;
  --charcoal:    #2D3436;
  --slate:       #5d6b73;
  --code-bg:     #241a16;
  --on-accent:   #ffffff;
  --accent-rgb:  255, 112, 67;
  --deep-rgb:    43, 57, 66;
  --mint-rgb:    225, 245, 254;
}

/* THEME: triadic harmonics */
[data-theme="triadic"] {
  --teal:        #3F9DBF;
  --teal-soft:   #6A1B9A;
  --mint:        #FFB74D;
  --teal-deep:   #1b3f52;
  --mint-pale:   #fff0d6;
  --ice:         #eef7f4;
  --charcoal:    #2D3436;
  --slate:       #5d6970;
  --code-bg:     #123036;
  --on-accent:   #ffffff;
  --accent-rgb:  63, 157, 191;
  --deep-rgb:    27, 63, 82;
  --mint-rgb:    255, 183, 77;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Quicksand', 'Nunito', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--ice);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  color: var(--teal-deep);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; }
p { color: var(--slate); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--mint);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head p { font-size: 1.08rem; margin-top: 14px; }

/* ---------- background orbs ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 18s var(--ease) infinite alternate; }
.orb.a { width: 520px; height: 520px; top: -120px; left: -140px;
  background: radial-gradient(circle at 30% 30%, var(--teal-soft), transparent 70%); }
.orb.b { width: 460px; height: 460px; top: 32%; right: -160px;
  background: radial-gradient(circle at 50% 50%, var(--mint), transparent 70%); animation-delay: -6s; }
.orb.c { width: 600px; height: 600px; bottom: -220px; left: 28%;
  background: radial-gradient(circle at 50% 50%, var(--teal-soft), transparent 70%); opacity: .3; animation-delay: -11s; }
@keyframes drift { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(40px,-30px) scale(1.12);} }
main, header, footer { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: inherit;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  padding: 14px 30px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--teal); color: var(--on-accent); box-shadow: 0 10px 26px rgba(var(--accent-rgb), .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(var(--accent-rgb), .45); }
.btn-ghost { background: #fff; color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 38px; font-size: 1.06rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: transparent;
  border-bottom: 1px solid rgba(var(--accent-rgb), .08);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--mint-rgb), .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* mobile menu backdrop (click to close) */
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.nav-backdrop.open { opacity: 1; visibility: visible; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.4rem; color: var(--teal-deep); }
.brand .logo { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 500; color: var(--charcoal); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent-ink); transition: width .25s var(--ease); border-radius: 2px; }
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a { color: var(--accent-ink); }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links .current-menu-item > a::after { width: 100%; }
.nav-cta { margin-left: 10px; }
.nav-links .btn-primary { color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px;
  border-radius: 12px; color: var(--teal-deep); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero h1 span { color: var(--accent-ink); }
.hero .sub { font-size: 1.2rem; margin: 22px 0 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--slate); font-weight: 500; }
.hero-note svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* hero visual: floating code window */
.hero-visual { position: relative; display: flex; justify-content: center; }
.code-window {
  width: min(440px, 86vw); border-radius: var(--radius); overflow: hidden;
  background: var(--code-bg); box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease) infinite alternate;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: rgba(255,255,255,.05); }
.code-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.code-bar .file { margin-left: 10px; color: #9fb3b8; font-size: .8rem; font-family: 'JetBrains Mono', monospace; }
.code-body { padding: 22px 24px 28px; font-family: 'JetBrains Mono','Fira Code', monospace; font-size: .86rem; line-height: 1.9; color: #cdd9db; }
.code-body .k { color: var(--teal-soft); }
.code-body .s { color: #f2b73c; }
.code-body .c { color: #5d787d; font-style: italic; }
.code-body .f { color: #8ad0ff; }
@keyframes float { from{transform:translateY(0);} to{transform:translateY(-18px);} }

/* floating stat cards */
.floater { position: absolute; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; }
.floater .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal)); }
.floater .ic svg { width: 20px; height: 20px; }
.floater .t1 { font-weight: 700; color: var(--teal-deep); font-size: .95rem; }
.floater .t2 { font-size: .8rem; color: var(--slate); }
.floater.one { top: 8%; left: -6%; animation: float 7s var(--ease) infinite alternate-reverse; }
.floater.two { bottom: 6%; right: -4%; animation: float 8s var(--ease) infinite alternate; }

/* ---------- cards / features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 38px 32px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(var(--accent-rgb), .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card .icon { width: 60px; height: 60px; border-radius: 18px; background: var(--mint-pale); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 22px; }
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.split-visual { border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--teal-soft), var(--teal-deep));
  min-height: 380px; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.split-visual .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.split-visual .glyph svg { width: 42%; height: auto; }
.values { list-style: none; margin-top: 24px; display: grid; gap: 16px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .tick { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal-deep);
  display: grid; place-items: center; }
.values .tick svg { width: 17px; height: 17px; }
.values strong { color: var(--teal-deep); font-weight: 600; }
.values span { color: var(--slate); font-size: .95rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; background: var(--white); border-radius: var(--radius); padding: 34px 18px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2.4rem; font-weight: 700; color: var(--accent-ink); }
.stat .lbl { font-size: .92rem; color: var(--slate); }

/* ---------- project tiles ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.proj { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proj .head { height: 260px; position: relative; display: grid; place-items: center; color: #fff; }
.proj .head svg { width: 46px; height: 46px; opacity: .95; }
.proj .badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(15,23,42,.72);
  backdrop-filter: blur(8px); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.proj .body { padding: 26px 28px 30px; }
.proj h3 { margin-bottom: 8px; }
.proj p { font-size: .94rem; }
.head.b1 { background: linear-gradient(135deg,#4fb3c4,#154e54); }
.head.b2 { background: linear-gradient(135deg,#6fc7a3,#2f7d63); }
.head.b3 { background: linear-gradient(135deg,#5f9ec4,#1c4a63); }
.head.b4 { background: linear-gradient(135deg,#5a6fb0,#242a4d); }
.head.b5 { background: linear-gradient(135deg,#c47fa0,#6b2d4d); }
.proj .head.has-img { background-size: cover; background-position: center; }
.proj .head.has-img svg { display: none; }
.proj .head.has-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.45) 100%); }
.proj .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none; transition: gap .2s, color .2s; }
.proj .more:hover { color: var(--teal-deep); gap: 9px; }
.proj .more svg { width: 16px; height: 16px; }
.proj a.head { text-decoration: none; color: inherit; }
.proj a.head:hover svg { transform: scale(1.06); }
.proj .head svg { transition: transform .3s var(--ease); }

/* ---------- project case study toggle ---------- */
.proj-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--mint-pale); color: var(--teal-deep); border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: var(--radius-pill); padding: 8px 16px; font-family: inherit; font-size: .82rem;
  font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s; }
.proj-toggle:hover { background: var(--mint); }
.proj-toggle:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .35); outline-offset: 2px; }
.proj-toggle-icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.proj-toggle[aria-expanded="true"] .proj-toggle-icon { transform: rotate(45deg); }
.proj-toggle[aria-expanded="true"] .proj-toggle-label::before { content: "hide "; }

.proj-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--mint);
  display: grid; gap: 14px; }
.proj-details[hidden] { display: none; }
.proj-details .case-row { display: grid; gap: 6px; }
.proj-details .case-label { font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.proj-details .case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-details .case-tags span { font-size: .72rem; font-weight: 600; color: var(--teal-deep);
  background: var(--mint-pale); border: 1px solid rgba(var(--accent-rgb), .2);
  padding: 4px 10px; border-radius: var(--radius-pill); }
.proj-details .case-row p { font-size: .88rem; line-height: 1.55; margin: 0; }

/* ---------- home: services explorer ---------- */
.svc-explorer { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px; align-items: stretch; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(20px,3vw,32px); }
.svc-tabs { display: flex; flex-direction: column; gap: 6px; }
.svc-tab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--slate); transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.svc-tab:hover { background: var(--mint-pale); color: var(--teal-deep); }
.svc-tab:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); }
.svc-tab.is-active { background: var(--mint-pale); color: var(--teal-deep);
  border-color: rgba(var(--accent-rgb), .22); transform: translateX(4px); }
.svc-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--white);
  color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .25s, color .25s; }
.svc-tab.is-active .svc-ic { background: var(--teal); color: var(--on-accent); }
.svc-ic svg { width: 20px; height: 20px; }
.svc-name { line-height: 1.2; }

.svc-panel { position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--ice), var(--mint-pale)); }
.svc-card { position: absolute; inset: 0; padding: clamp(24px,3vw,38px); display: flex; flex-direction: column;
  justify-content: center; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.svc-card.is-active { opacity: 1; visibility: visible; transform: none; }
.svc-big { width: 64px; height: 64px; border-radius: 18px; background: var(--white); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.svc-big svg { width: 32px; height: 32px; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.svc-card p { color: var(--slate); max-width: 46ch; }
.svc-card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 20px; font-weight: 600; color: var(--accent-ink); }

/* ---------- home: keyword marquee ---------- */
.kw-marquee { position: relative; overflow: hidden; margin: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.kw-track { display: flex; gap: 14px; width: max-content; padding: 6px 0;
  will-change: transform; animation: kw-scroll 34s linear infinite; }
.kw-marquee.reverse .kw-track { animation-direction: reverse; animation-duration: 40s; }
.kw-marquee:hover .kw-track { animation-play-state: paused; }
@keyframes kw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.kw { flex: none; display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .95rem; font-weight: 500;
  color: var(--teal-deep); background: var(--white); border: 1px solid rgba(var(--accent-rgb), .18);
  padding: 10px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.kw::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-soft); }
@media (prefers-reduced-motion: reduce) {
  .kw-track { animation-duration: 60s; }
}

/* ---------- projects preview (home) big feature ---------- */
.feature-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.feature-block { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-block .img { height: 240px; background-size: cover; background-position: center; position: relative; }
.feature-block .img .pill { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.9);
  color: var(--teal-deep); font-weight: 600; font-size: .8rem; padding: 7px 14px; border-radius: var(--radius-pill); }
.feature-block .pad { padding: 26px 28px 30px; }
.feature-block h3 { margin-bottom: 8px; }
.feature-block .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600; color: var(--accent-ink); }

/* ---------- testimonials ---------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; background: var(--white);
  border-radius: var(--radius-lg); padding: clamp(36px,6vw,60px); box-shadow: var(--shadow-md); }
.quote .stars { color: #f2b73c; font-size: 1.2rem; margin-bottom: 18px; letter-spacing: 3px; }
.quote blockquote { font-size: 1.3rem; color: var(--teal-deep); font-weight: 500; line-height: 1.5; }
.quote .who { margin-top: 22px; font-weight: 600; color: var(--charcoal); }
.quote .who small { display: block; color: var(--slate); font-weight: 400; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post .thumb { height: 175px; position: relative; display: grid; place-items: center; color: #fff; }
.post .thumb svg { width: 46px; height: 46px; opacity: .9; }
.post .body { padding: 24px 26px 30px; }
.post .date { font-size: .8rem; color: var(--accent-ink); font-weight: 600; }
.post h3 { margin: 8px 0 10px; font-size: 1.18rem; }
.post p { font-size: .92rem; }
.post .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600; color: var(--accent-ink); }
.post .thumb .label { position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500; color: var(--teal-deep);
  background: rgba(255,255,255,.92); padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--slate); font-size: .9rem; margin-bottom: 18px; }
.article h1 { font-size: clamp(2rem,4vw,3rem); }
.article .lead { font-size: 1.18rem; color: var(--charcoal); margin: 22px 0 30px; }
.article h2 { margin: 36px 0 12px; }
.article p { margin-bottom: 16px; }
.article .hero-img { height: 64px; border-radius: var(--radius-lg); margin: 8px 0 34px;
  background-size: 200% 100%; background-position: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; padding: 0 22px; }
.article .hero-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.28) 55%, transparent 100%);
  background-size: 250% 100%; background-position: 150% 0;
  animation: heroShine 5.5s ease-in-out infinite; pointer-events: none;
}
@keyframes heroShine {
  0% { background-position: 150% 0; }
  60%, 100% { background-position: -50% 0; }
}
.article .hero-img .hero-tag {
  position: relative; z-index: 1; font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.95); display: inline-flex; align-items: center; gap: 9px;
}
.article .hero-img .hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.9); animation: heroBlink 2.2s ease-in-out infinite; }
@keyframes heroBlink {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- article slim separator (support CTA) ---------- */
.article-sep { margin: 46px 0; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; }
.article-sep .sep-line { position: relative; width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 18px; }
.article-sep .sep-line::before,
.article-sep .sep-line::after { content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .4), transparent); }
.article-sep .spark { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.article-sep .spark svg { width: 100%; height: 100%; color: var(--teal);
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), .65));
  animation: sparkPulse 2.6s ease-in-out infinite; }
.article-sep .spark .dot { position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal-soft); opacity: 0; }
.article-sep .spark .d1 { top: -2px; left: -3px; animation: sparkDot 3s ease-in-out infinite; }
.article-sep .spark .d2 { bottom: -3px; right: -2px; animation: sparkDot 3s ease-in-out infinite .8s; }
@keyframes sparkPulse {
  0%, 100% { transform: scale(.85) rotate(0deg); opacity: .7; }
  50% { transform: scale(1.2) rotate(20deg); opacity: 1; }
}
@keyframes sparkDot {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1.4); }
}
.article-sep .sep-text { font-size: .97rem; color: var(--charcoal); max-width: 540px; line-height: 1.5; }
.article-sep .sep-text strong { color: var(--teal-deep); }
.article-sep .sep-text a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--teal); text-decoration: none; transition: color .2s, gap .2s; }
.article-sep .sep-text a:hover { color: var(--teal-deep); gap: 9px; }
.article-sep .sep-text a svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .article-sep .sep-text { font-size: .92rem; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,70px); align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--teal-deep); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--white); border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: var(--radius-sm); padding: 14px 16px; transition: border .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info .line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .line .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--mint-pale);
  color: var(--accent-ink); display: grid; place-items: center; }
.contact-info .line .ic svg { width: 22px; height: 22px; }
.contact-info strong { display: block; color: var(--teal-deep); }
.contact-info span { color: var(--slate); font-size: .95rem; }
.contact-info .email-link { color: var(--slate); font-size: .95rem; text-decoration: none; transition: color .2s; }
.contact-info .email-link:hover { color: var(--teal); }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); border-radius: var(--radius-lg);
  padding: clamp(44px,6vw,70px); text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 540px; margin: 16px auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }

/* ---------- inquiry modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; z-index: 1; width: min(520px, 100%); max-height: calc(100vh - 40px);
  overflow-y: auto; background: var(--white); border-radius: var(--radius);
  padding: clamp(28px,4vw,40px); box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: none;
  border-radius: 50%; background: var(--mint-pale); color: var(--teal-deep); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .2s; z-index: 2; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--mint); transform: rotate(90deg); }
.modal-card h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.modal-sub { color: var(--slate); margin-bottom: 22px; }
.modal-form .form-group { margin-bottom: 16px; }
.modal-form textarea { min-height: 92px; }
.form-group select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--charcoal);
  background-color: var(--white); border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: var(--radius-sm); padding: 14px 42px 14px 16px; transition: border .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647074' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form-group select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.btn-block { width: 100%; }
.modal-success { text-align: center; padding: 24px 0; }
.modal-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: var(--mint);
  color: var(--teal-deep); display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.modal-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-success p { color: var(--slate); margin-bottom: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--mint); padding: clamp(56px,7vw,84px) 0 32px;
  margin-top: clamp(64px,9vw,120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(var(--mint-rgb), .15); }
.site-footer .brand { color: #fff; }
.site-footer .desc { color: rgba(var(--mint-rgb), .8); margin-top: 16px; max-width: 280px; font-size: .95rem; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.02rem; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a { color: rgba(var(--mint-rgb), .82); transition: color .2s; font-size: .95rem; }
.site-footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--mint-rgb), .12);
  display: grid; place-items: center; color: var(--mint); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; font-size: .88rem; color: rgba(var(--mint-rgb), .7); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .svc-tab { flex: none; }
  .svc-tab.is-active { transform: none; }
  .svc-panel { min-height: 280px; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .grid-3, .posts, .proj-grid, .feature-row, .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 330px); flex-direction: column;
    align-items: stretch; gap: 6px; padding: 76px 26px 30px; background: var(--white);
    box-shadow: -20px 0 60px rgba(var(--deep-rgb), .2); transform: translateX(100%); transition: transform .35s var(--ease); z-index: 60; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; padding: 10px 8px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0 !important; width: 100%; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; position: relative; z-index: 61; }
}
@media (max-width: 540px) {
  .grid-3, .posts, .proj-grid, .feature-row, .stats, .footer-grid { grid-template-columns: 1fr; }
  .floater.one { left: 0; } .floater.two { right: 0; }
}
