/* ============================================================
   SMALLTOWN SITES — stylesheet
   Design tokens
   ============================================================ */
:root{
  --navy-900:#061d3c;
  --navy-800:#092b54;
  --navy-700:#0b4179;
  --navy-600:#1767a8;
  --line-strong:#b9def8;
  --line-soft:#6da8d6;
  --accent:#18a8ff;
  --accent-dim:#087ac7;
  --paper:#f6faff;
  --paper-dim:#dbe9f6;
  --ink:#082448;
  --ink-soft:#526b83;
  --white:#ffffff;

  --font-display:'Manrope',system-ui,sans-serif;
  --font-body:'Manrope',system-ui,-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,monospace;

  --max:1180px;
  --radius:14px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
    width: 50px;
      height: 50px;
        object-fit: contain;
        }
}

.logo-dot {
  color: #f06449;
}


img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);margin:0;font-weight:700;letter-spacing:-0.01em;}
p{margin:0;}
button{font-family:inherit;}

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

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* ---------- Scroll progress (dimension line) ---------- */
.scroll-dim{
  position:fixed;top:0;left:0;height:3px;
  background:var(--accent);
  width:0%;
  z-index:200;
  transition:width 60ms linear;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 24px;
  font-size:15px;font-weight:600;
  border-radius:var(--radius);
  border:1.5px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--accent);color:var(--navy-900);}
.btn-primary:hover{background:#ff7f57;}
.btn-line{border-color:var(--line-strong);color:var(--white);background:transparent;}
.btn-line:hover{border-color:var(--white);}
.btn-ink{border-color:var(--ink);color:var(--ink);background:transparent;}
.btn-ink:hover{background:var(--ink);color:var(--white);}
.btn-sm{padding:9px 16px;font-size:13px;}

/* ---------- Eyebrow / section labels (used sparingly, as drafting callouts) ---------- */
.callout{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.callout::before{
  content:'';
  width:18px;height:1px;
  background:var(--accent);
  display:inline-block;
}

/* ============================================================
   HEADER
   ============================================================ */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(11,29,51,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--navy-600);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  height:76px;
}
.logo{
  display:flex;align-items:center;gap:10px;
  color:var(--white);
  text-decoration:none;
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.01em;
}
.logo svg{flex-shrink:0;}
.nav-links{
  display:flex;align-items:center;gap:36px;
  list-style:none;margin:0;padding:0;
}
.nav-links a{
  color:var(--line-strong);
  text-decoration:none;
  font-size:14.5px;
  font-weight:500;
  transition:color 140ms ease;
}
.nav-links a:hover{color:var(--white);}
.nav-cta{display:flex;align-items:center;gap:20px;}
.nav-toggle{display:none;}

@media (max-width:860px){
  .nav-links{display:none;}
  .nav-toggle{
    display:block;background:none;border:1px solid var(--line-soft);
    color:var(--white);padding:8px 12px;border-radius:var(--radius);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  background:var(--navy-900);
  color:var(--white);
  position:relative;
  overflow:hidden;
  padding:88px 0 100px;
  background-image:
    linear-gradient(var(--navy-800) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-800) 1px, transparent 1px);
  background-size:44px 44px;
  background-position:center top;
}


.hero::after{
  content:'';
  position:absolute;inset:0;
  background:radial-gradient(ellipse 60% 50% at 78% 30%, rgba(255,106,61,0.09), transparent 70%);
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
  position:relative;
  z-index:1;
}
@media (max-width:940px){
  .hero-grid{grid-template-columns:1fr;}
}
.hero h1{
  font-size:clamp(34px,4.6vw,58px);
  line-height:1.05;
  color:var(--white);
}
.hero h1 em{
  font-style:normal;
  color:var(--accent);
}
.hero-sub{
  margin-top:22px;
  font-size:17.5px;
  color:var(--line-strong);
  max-width:46ch;
  line-height:1.65;
}
.hero-actions{
  margin-top:34px;
  display:flex;gap:14px;flex-wrap:wrap;
}
.hero-kicker {
  transform: none;
  filter: none;
  opacity: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.hero-meta{
  margin-top:46px;
  display:flex;gap:34px;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--line-soft);
  flex-wrap:wrap;
}
.hero-meta strong{color:var(--white);display:block;font-family:var(--font-display);font-size:20px;font-weight:700;margin-bottom:2px;}

.hero-art{
  position:relative;
}
.hero-art svg{width:100%;height:auto;overflow:visible;}

/* draw-on animation, one orchestrated load sequence */
.draw-line{
  stroke-dasharray:1400;
  stroke-dashoffset:1400;
  animation:draw 1.8s cubic-bezier(.65,0,.35,1) forwards;
}
.draw-line.d2{animation-delay:.25s;}
.draw-line.d3{animation-delay:.5s;}
.draw-line.d4{animation-delay:.7s;}
.fade-in{
  opacity:0;
  animation:fadeIn .9s ease forwards;
}
.fade-in.d1{animation-delay:1.1s;}
.fade-in.d2{animation-delay:1.3s;}
.fade-in.d3{animation-delay:1.5s;}
@keyframes draw{to{stroke-dashoffset:0;}}
@keyframes fadeIn{to{opacity:1;}}

/* ============================================================
   STATS
   ============================================================ */
.stats{
  background:var(--navy-800);
  border-top:1px solid var(--navy-600);
  border-bottom:1px solid var(--navy-600);
}
.stats-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  padding:38px 0;
}
.stat{
  text-align:center;
  border-left:1px solid var(--navy-600);
  padding:0 20px;
}
.stat:first-child{border-left:none;}
.stat-num{
  font-family:var(--font-display);
  font-size:clamp(28px,3.4vw,42px);
  font-weight:700;
  color:var(--white);
}
.stat-num .unit{color:var(--accent);}
.stat-label{
  font-size:13px;color:var(--line-strong);
  margin-top:6px;
  font-family:var(--font-mono);
}
@media (max-width:700px){
  .stats-grid{grid-template-columns:1fr;gap:24px;}
  .stat{border-left:none;border-top:1px solid var(--navy-600);padding:20px 0 0;}
  .stat:first-child{border-top:none;padding-top:0;}
}

/* ============================================================
   SECTION generic
   ============================================================ */
section{padding:104px 0;}
.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:clamp(28px,3.2vw,40px);
  color:var(--ink);
}
.section-head p{
  margin-top:16px;
  font-size:16.5px;
  color:var(--ink-soft);
  line-height:1.65;
}
.on-dark .section-head h2{color:var(--white);}
.on-dark .section-head p{color:var(--line-strong);}

/* ============================================================
   SERVICES — spec sheet layout
   ============================================================ */
.spec-list{
  border-top:1px solid var(--ink);
}
.spec-row{
  display:grid;
  grid-template-columns:220px 1fr 200px;
  gap:24px;
  padding:26px 0;
  border-bottom:1px solid var(--paper-dim);
  align-items:start;
}
.spec-row:hover{background:rgba(255,106,61,0.04);}
.spec-tag{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--accent-dim);
  padding-top:3px;
}
.spec-name{
  font-family:var(--font-display);
  font-size:21px;
  font-weight:700;
}
.spec-desc{
  color:var(--ink-soft);
  font-size:15px;
  margin-top:8px;
  line-height:1.6;
  max-width:52ch;
}
.spec-includes{
  font-size:13.5px;
  color:var(--ink-soft);
  line-height:1.9;
}
@media (max-width:800px){
  .spec-row{grid-template-columns:1fr;gap:8px;}
  .spec-tag{order:0;}
}

/* ============================================================
   PROCESS — connected roadmap
   ============================================================ */
.process{background:var(--navy-900);color:var(--white);}
.process-list{
  --road-gap-x:32px;
  --road-gap-y:62px;
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  column-gap:var(--road-gap-x);
  row-gap:var(--road-gap-y);
  margin-top:18px;
}
.process-item{
  position:relative;
  min-width:0;
  min-height:235px;
  padding:64px 10px 0 0;
}
.process-num{
  position:absolute;
  left:0;
  top:0;
  z-index:2;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--navy-900);
  border:2px solid var(--accent);
  color:var(--accent);
  font-family:var(--font-mono);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  box-shadow:0 0 0 7px var(--navy-900);
}

/* Five steps share one line whenever there is enough room. */
.process-item:not(:last-child)::after{
  content:'';
  position:absolute;
  z-index:1;
  left:46px;
  top:22px;
  width:calc(100% + var(--road-gap-x) - 46px);
  height:2px;
  background:linear-gradient(90deg,var(--accent),var(--line-soft));
}

.process-item h3{font-size:21px;color:var(--white);}
.process-item p{
  color:var(--line-strong);
  margin-top:8px;
  max-width:34ch;
  font-size:15px;
  line-height:1.65;
}
.process-item .dur{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--line-soft);
  margin-top:10px;
  display:block;
}

/* Four across, with step 05 dropping beneath step 04. */
@media (max-width:1180px){
  .process-list{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .process-item:nth-child(5){grid-column:4;grid-row:2;}
  .process-item:nth-child(4)::after{
    left:23px;
    right:auto;
    top:22px;
    width:calc(100% - 7px);
    height:calc(100% + var(--road-gap-y));
    border:0;
    border-top:2px solid var(--line-soft);
    border-right:2px solid var(--line-soft);
    border-bottom:2px solid var(--line-soft);
    background:none;
  }
}

/* Three across, then the path turns back across the second row. */
@media (max-width:980px){
  .process-list{grid-template-columns:repeat(3,minmax(0,1fr));}
  .process-item:nth-child(4){grid-column:3;grid-row:2;}
  .process-item:nth-child(5){grid-column:2;grid-row:2;}
  .process-item:nth-child(3)::after{
    left:23px;
    right:auto;
    top:22px;
    width:calc(100% - 7px);
    height:calc(100% + var(--road-gap-y));
    border:0;
    border-top:2px solid var(--line-soft);
    border-right:2px solid var(--line-soft);
    border-bottom:2px solid var(--line-soft);
    background:none;
  }
  .process-item:nth-child(4)::after{
    left:auto;
    right:calc(100% - 23px);
    top:22px;
    width:calc(100% + var(--road-gap-x));
    height:2px;
    border:0;
    background:linear-gradient(270deg,var(--accent),var(--line-soft));
  }
}

/* Two columns: 01 → 02, down to 03, left to 04, then down to 05. */
@media (max-width:800px){
  .process-list{grid-template-columns:repeat(2,minmax(0,1fr));}
  .process-item:nth-child(1){grid-column:1;grid-row:1;}
  .process-item:nth-child(2){grid-column:2;grid-row:1;}
  .process-item:nth-child(3){grid-column:2;grid-row:2;}
  .process-item:nth-child(4){grid-column:1;grid-row:2;}
  .process-item:nth-child(5){grid-column:1;grid-row:3;}
  .process-item:nth-child(2)::after,
  .process-item:nth-child(4)::after{
    left:23px;
    right:auto;
    top:22px;
    width:calc(100% - 7px);
    height:calc(100% + var(--road-gap-y));
    border:0;
    border-top:2px solid var(--line-soft);
    border-right:2px solid var(--line-soft);
    border-bottom:2px solid var(--line-soft);
    background:none;
  }
  .process-item:nth-child(3)::after{
    left:auto;
    right:calc(100% - 23px);
    top:22px;
    width:calc(100% + var(--road-gap-x));
    height:2px;
    border:0;
    background:linear-gradient(270deg,var(--accent),var(--line-soft));
  }
}

/* Phones use one vertical connected path. */
@media (max-width:560px){
  .process-list{
    --road-gap-y:22px;
    grid-template-columns:1fr;
    gap:var(--road-gap-y);
  }
  .process-item,
  .process-item:nth-child(1),
  .process-item:nth-child(2),
  .process-item:nth-child(3),
  .process-item:nth-child(4),
  .process-item:nth-child(5){
    grid-column:auto;
    grid-row:auto;
    min-height:150px;
    padding:0 0 24px 68px;
  }
  .process-item p{max-width:56ch;}
  .process-item:nth-child(1)::after,
  .process-item:nth-child(2)::after,
  .process-item:nth-child(3)::after,
  .process-item:nth-child(4)::after{
    left:22px;
    right:auto;
    top:46px;
    width:2px;
    height:calc(100% + var(--road-gap-y) - 46px);
    border:0;
    background:linear-gradient(180deg,var(--accent),var(--line-soft));
  }
  .process-item:nth-child(5){min-height:0;padding-bottom:0;}
}

/* ============================================================
   WORK — portfolio grid
   ============================================================ */
.work-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
@media (max-width:760px){
  .work-grid{grid-template-columns:1fr;}
}
.work-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--paper-dim);
  background:var(--navy-900);
  width:100%;
  padding:0;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.work-card img{
  width:100%;height:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  transition:transform 500ms cubic-bezier(.2,.7,.2,1);
}
.work-card:hover img{transform:scale(1.045);}
.work-overlay{
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:22px;
  background:linear-gradient(0deg, rgba(11,29,51,0.92) 0%, rgba(11,29,51,0.15) 55%, transparent 75%);
}
.work-tags{
  display:flex;gap:8px;flex-wrap:wrap;
  margin-bottom:10px;
  opacity:0;transform:translateY(6px);
  transition:opacity 220ms ease, transform 220ms ease;
}
.work-card:hover .work-tags{opacity:1;transform:translateY(0);}
.work-tag{
  font-family:var(--font-mono);
  font-size:11px;
  padding:4px 8px;
  border:1px solid var(--line-soft);
  color:var(--line-strong);
  border-radius:2px;
}

/* ---------- Interactive work viewer ---------- */
.site-modal[hidden]{display:none;}
.site-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:28px;
}
.site-modal-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(4,13,24,.84);
  backdrop-filter:blur(8px);
  cursor:pointer;
}
.site-viewer{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:min(1400px,96vw);
  height:min(900px,92vh);
  height:min(900px,92dvh);
  overflow:hidden;
  border:1px solid var(--navy-600);
  border-radius:10px;
  background:var(--white);
  box-shadow:0 26px 80px rgba(0,0,0,.45);
}
.site-viewer-bar{
  min-height:54px;
  padding:9px 12px;
  display:grid;
  grid-template-columns:auto minmax(120px,1fr) auto auto;
  align-items:center;
  gap:12px;
  background:var(--navy-900);
  color:var(--white);
  border-bottom:1px solid var(--navy-600);
}
.site-viewer-dots{display:flex;gap:7px;padding:0 5px;}
.site-viewer-dots span{width:10px;height:10px;border-radius:50%;background:var(--line-soft);}
.site-viewer-dots span:first-child{background:var(--accent);}
.site-viewer-address{
  min-width:0;
  padding:7px 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid var(--navy-600);
  border-radius:4px;
  background:var(--navy-800);
  color:var(--line-strong);
  font-family:var(--font-mono);
  font-size:12px;
}
.site-viewer-open{
  color:var(--white);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.site-viewer-open:hover{color:var(--accent);}
.site-viewer-close{
  width:34px;
  height:34px;
  padding:0;
  border:1px solid var(--navy-600);
  border-radius:50%;
  background:transparent;
  color:var(--white);
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.site-viewer-close:hover{border-color:var(--accent);color:var(--accent);}
.site-frame-wrap{position:relative;flex:1;min-height:0;background:var(--white);}
.site-frame-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:var(--white);}
.site-frame-loading{
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  background:var(--paper);
  color:var(--ink-soft);
  font-family:var(--font-mono);
  font-size:13px;
}
.site-frame-wrap.is-loaded .site-frame-loading{display:none;}
body.preview-open{overflow:hidden;}

@media (max-width:640px){
  .site-modal{padding:0;}
  .site-viewer{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;}
  .site-viewer-bar{grid-template-columns:auto 1fr auto;gap:8px;}
  .site-viewer-dots{display:none;}
  .site-viewer-address{font-size:11px;}
  .site-viewer-open{font-size:0;}
  .site-viewer-open::after{content:'Open ↗';font-size:12px;}
}
.work-overlay h3{color:var(--white);font-size:19px;}
.work-overlay span{
  color:var(--line-strong);font-size:13.5px;margin-top:4px;display:block;
}

/* ============================================================
   UNDER THE HOOD — technical showcase tabs
   ============================================================ */
.hood{background:var(--navy-900);color:var(--white);}
.hood-panel{
  border:1px solid var(--navy-600);
  background:var(--navy-800);
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:400px;
}
@media (max-width:760px){
  .hood-panel{grid-template-columns:1fr;}
}
.hood-tabs{
  border-right:1px solid var(--navy-600);
  padding:8px;
}
@media (max-width:760px){
  .hood-tabs{display:flex;border-right:none;border-bottom:1px solid var(--navy-600);overflow-x:auto;}
}
.hood-tab{
  display:block;width:100%;text-align:left;
  background:none;border:none;color:var(--line-strong);
  padding:16px 18px;font-size:14.5px;font-weight:600;
  cursor:pointer;border-radius:2px;
  font-family:var(--font-body);
  white-space:nowrap;
}
.hood-tab.active{background:var(--navy-700);color:var(--white);}
.hood-tab .hood-tab-idx{
  font-family:var(--font-mono);color:var(--accent);margin-right:10px;font-size:12px;
}
.hood-content{padding:36px;position:relative;}
.hood-view{display:none;}
.hood-view.active{display:block;animation:fadeIn 420ms ease;}
.hood-view h4{font-size:18px;color:var(--white);margin-bottom:6px;}
.hood-view .hood-desc{color:var(--line-strong);font-size:14.5px;margin-bottom:26px;max-width:56ch;}

/* gauge */
.gauge-wrap{display:flex;align-items:center;gap:36px;flex-wrap:wrap;}
.gauge-num{font-family:var(--font-display);font-size:52px;font-weight:700;color:var(--white);}
.gauge-num span{color:var(--accent);font-size:22px;}
.gauge-rows{display:flex;flex-direction:column;gap:10px;font-family:var(--font-mono);font-size:12.5px;color:var(--line-strong);}
.gauge-rows .g-good{color:#7fd8a0;}

/* code terminal */
.terminal{
  background:var(--navy-900);
  border:1px solid var(--navy-600);
  border-radius:4px;
  overflow:hidden;
  max-width:560px;
}
.terminal-bar{
  display:flex;align-items:center;gap:6px;
  padding:10px 12px;background:var(--navy-800);
  border-bottom:1px solid var(--navy-600);
}
.terminal-dot{width:9px;height:9px;border-radius:50%;background:var(--line-soft);}
.terminal-body{
  padding:18px 20px;font-family:var(--font-mono);font-size:13.5px;
  color:#c9e6ff;min-height:150px;line-height:1.8;white-space:pre-wrap;
}
.terminal-body .prompt{color:var(--accent);}
.terminal-body .ok{color:#7fd8a0;}
.caret{display:inline-block;width:7px;height:15px;background:var(--accent);vertical-align:middle;animation:blink 1s step-end infinite;}
@keyframes blink{50%{opacity:0;}}

/* uptime chart */
.uptime-chart{width:100%;height:180px;}
.uptime-legend{display:flex;gap:24px;margin-top:14px;font-family:var(--font-mono);font-size:12px;color:var(--line-strong);flex-wrap:wrap;}
.uptime-legend .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block;margin-right:6px;}

/* checklist */
.check-list{display:flex;flex-direction:column;gap:14px;max-width:440px;}
.check-item{display:flex;align-items:center;gap:12px;font-size:14.5px;color:var(--line-strong);}
.check-box{
  width:20px;height:20px;border:1.5px solid var(--line-soft);border-radius:3px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.check-item.checked .check-box{background:var(--accent);border-color:var(--accent);}
.check-item.checked{color:var(--white);}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-toggle{
  position:relative;
  isolation:isolate;
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:0;
  padding:4px;
  border:1px solid #a9bfd4;
  border-radius:999px;
  overflow:hidden;
  margin-top:18px;
  background:#fff;
  box-shadow:inset 0 1px 3px rgba(8,36,72,.06);
}
.pricing-toggle-slider{
  position:absolute;
  z-index:-1;
  top:4px;
  bottom:4px;
  left:4px;
  width:calc((100% - 8px) / 2);
  border-radius:999px;
  background:linear-gradient(135deg,var(--navy-700),var(--accent-dim));
  box-shadow:0 5px 14px rgba(8,90,150,.22);
  transform:translateX(0);
  transition:transform 280ms cubic-bezier(.22,.8,.25,1);
}
.pricing-toggle.is-annual .pricing-toggle-slider{
  transform:translateX(100%);
}
.pricing-toggle button{
  position:relative;
  z-index:1;
  min-width:150px;
  background:transparent;
  border:0;
  border-radius:999px;
  padding:10px 18px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  color:var(--ink-soft);
  font-family:var(--font-mono);
  transition:color 220ms ease;
}
.pricing-toggle button.active{background:transparent;color:var(--white);}

.pricing-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
  margin-top:44px;
}
@media (max-width:900px){.pricing-grid{grid-template-columns:1fr;}}
.plan{
  border:1px solid var(--paper-dim);
  padding:32px;
  background:var(--white);
  display:flex;flex-direction:column;
  position:relative;
}
.plan.featured{
  border-color:var(--ink);
  box-shadow:6px 6px 0 var(--accent);
}
.plan-tag{
  font-family:var(--font-mono);font-size:12px;color:var(--accent-dim);
  margin-bottom:10px;
}
.plan h3{font-size:22px;}
.plan-price{
  font-family:var(--font-display);font-size:38px;font-weight:700;
  margin-top:18px;
}
.plan-price .per{font-size:14px;color:var(--ink-soft);font-family:var(--font-body);font-weight:500;}
.plan-desc{color:var(--ink-soft);font-size:14px;margin-top:10px;min-height:40px;}
.plan-features{
  list-style:none;padding:0;margin:26px 0 30px;
  display:flex;flex-direction:column;gap:12px;
  font-size:14px;color:var(--ink);
  flex-grow:1;
}
.plan-features li{
  display:flex;gap:10px;align-items:flex-start;
}
.plan-features li::before{
  content:'';width:6px;height:6px;background:var(--accent);
  margin-top:7px;flex-shrink:0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:28px;
}
@media (max-width:900px){.testi-grid{grid-template-columns:1fr;}}
.testi{
  border:1px solid var(--paper-dim);
  padding:28px;
  background:var(--white);
}
.testi p{font-size:15.5px;line-height:1.7;color:var(--ink);}
.testi-person{display:flex;align-items:center;gap:12px;margin-top:22px;}
.testi-person img{width:46px;height:46px;border-radius:50%;object-fit:cover;}
.testi-person strong{display:block;font-size:14px;}
.testi-person span{display:block;font-size:12.5px;color:var(--ink-soft);}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner{
  background:var(--ink);
  color:var(--white);
  padding:80px 0;
  text-align:center;
}
.cta-banner h2{font-size:clamp(26px,3.4vw,40px);}
.cta-banner p{color:var(--line-strong);margin-top:14px;font-size:16px;}
.cta-banner .hero-actions{justify-content:center;margin-top:30px;}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{
  display:grid;grid-template-columns:0.9fr 1.1fr;gap:64px;
}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;gap:40px;}}
.contact-info dl{margin:28px 0 0;}
.contact-info dt{
  font-family:var(--font-mono);font-size:12px;color:var(--accent-dim);
  margin-top:22px;
}
.contact-info dt:first-child{margin-top:0;}
.contact-info dd{margin:4px 0 0;font-size:16px;}

.form-row{margin-bottom:20px;}
.form-row label{
  display:block;font-size:12.5px;font-family:var(--font-mono);
  color:var(--ink-soft);margin-bottom:7px;
}
.form-row input,.form-row textarea,.form-row select{
  width:100%;padding:12px 14px;
  border:1px solid var(--paper-dim);
  background:var(--white);
  font-family:var(--font-body);font-size:14.5px;color:var(--ink);
  border-radius:2px;
}
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{
  border-color:var(--ink);
}
.form-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
@media (max-width:560px){.form-two{grid-template-columns:1fr;}}
.form-note{
  margin-top:14px;font-size:13px;color:var(--ink-soft);
  display:flex;align-items:center;gap:8px;min-height:20px;
}
.form-note.ok{color:#1f8a4c;}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background:var(--navy-900);color:var(--line-strong);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;
  padding-bottom:44px;border-bottom:1px solid var(--navy-600);
}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr 1fr;}}
.footer-brand p{margin-top:14px;font-size:14px;max-width:34ch;line-height:1.6;}
.footer-col h4{
  font-family:var(--font-mono);font-size:12px;color:var(--white);
  margin-bottom:16px;font-weight:600;
}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.footer-col a{color:var(--line-strong);text-decoration:none;font-size:14px;}
.footer-col a:hover{color:var(--white);}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:28px;font-size:13px;color:var(--line-soft);flex-wrap:wrap;gap:12px;
}

/* ============================================================
   Reveal-on-scroll (single subtle utility, used deliberately)
   ============================================================ */
.reveal{opacity:0;transform:translateY(14px);transition:opacity 600ms ease, transform 600ms ease;}
.reveal.in{opacity:1;transform:translateY(0);}

/* counters */
.count{font-variant-numeric:tabular-nums;}


@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .logo {
    gap: 0;
  }
}

/* ============================================================
   FRIENDLY SMALLTOWN REDESIGN
   Softer surfaces, blue brand palette, and more personal details.
   ============================================================ */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

body{
  background:
    radial-gradient(circle at 8% 20%,rgba(24,168,255,.07),transparent 24rem),
    var(--paper);
}

.wrap{padding-inline:clamp(20px,4vw,32px);}

header{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(8,36,72,.10);
  box-shadow:0 8px 30px rgba(6,29,60,.12);
}

.nav{height:82px;}
.logo-icon{
  width:clamp(162px,17vw,190px);
  height:auto;
  object-fit:contain;
  object-position:left center;
}
.nav-links{gap:clamp(18px,2.4vw,32px);}
.nav-links a{color:#385b7b;font-weight:600;}
.nav-links a:hover{color:var(--accent-dim);}
.nav-toggle{border-color:#b8ccdc;color:var(--ink);border-radius:12px;font-size:18px;line-height:1;}

.btn{
  border-radius:999px;
  padding:13px 23px;
  font-weight:700;
  box-shadow:none;
  transition:transform 180ms ease,box-shadow 180ms ease,background 180ms ease,border-color 180ms ease,color 180ms ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{
  color:#042142;
  background:linear-gradient(135deg,#56c7ff 0%,#18a8ff 100%);
  box-shadow:0 10px 24px rgba(24,168,255,.24);
}
.btn-primary:hover{background:linear-gradient(135deg,#82d7ff 0%,#34b4ff 100%);box-shadow:0 14px 30px rgba(24,168,255,.3);}
.btn-line{border-color:rgba(185,222,248,.68);color:var(--white);background:rgba(255,255,255,.04);}
.btn-line:hover{background:rgba(255,255,255,.1);}
.btn-ink{border-color:#9db8d0;background:#fff;color:var(--ink);}
.btn-ink:hover{border-color:var(--navy-700);background:var(--navy-900);}

.callout{font-weight:600;letter-spacing:.055em;}
.callout::before{width:24px;height:2px;border-radius:2px;}

.hero{
  padding:96px 0 108px;
  background-color:var(--navy-900);
  background-image:
    linear-gradient(rgba(73,143,196,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(73,143,196,.10) 1px,transparent 1px),
    radial-gradient(circle at 78% 28%,rgba(24,168,255,.22),transparent 29rem),
    linear-gradient(145deg,#061d3c 0%,#082b55 100%);
  background-size:52px 52px,52px 52px,auto,auto;
}
.hero::before{
  content:'';
  position:absolute;
  width:340px;
  height:340px;
  right:-140px;
  bottom:-180px;
  border:1px solid rgba(105,200,255,.25);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(24,168,255,.035),0 0 0 96px rgba(24,168,255,.025);
}
.hero::after{background:linear-gradient(180deg,transparent 70%,rgba(2,17,38,.18));}
.hero-grid{gap:clamp(42px,7vw,86px);}
.hero h1{font-size:clamp(40px,5.2vw,68px);line-height:1.04;letter-spacing:-.04em;max-width:13ch;}
.hero h1 em{color:#65caff;position:relative;}
.hero-sub{font-size:18px;color:#c8e4f8;max-width:54ch;}
.hero-meta{gap:22px;color:#8fc4e8;}
.hero-meta div{padding-left:14px;border-left:2px solid rgba(24,168,255,.42);}
.hero-meta strong{font-size:16px;color:#fff;}
.hero-art{
  padding:22px;
  border:1px solid rgba(185,222,248,.2);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025));
  box-shadow:0 30px 80px rgba(0,10,29,.36);
  transform:rotate(1deg);
}
.hero-art::after{
  content:'Built thoughtfully. Managed personally.';
  position:absolute;
  z-index:2;
  right:-12px;
  bottom:-18px;
  padding:11px 16px;
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:12px;
  font-weight:700;
  box-shadow:0 12px 32px rgba(1,18,42,.28);
}
.hero-art svg rect,.hero-art svg line,.hero-art svg circle,.hero-art svg polyline{stroke:#71caff;}
.hero-art svg text{fill:#9edcff;font-family:var(--font-mono);}

.stats{
  background:#fff;
  border:0;
  box-shadow:0 15px 50px rgba(8,36,72,.08);
}
.stats-grid{padding-block:32px;}
.stat{border-color:var(--paper-dim);}
.stat-num{font-size:clamp(22px,2.4vw,31px);color:var(--ink);letter-spacing:-.025em;}
.stat-label{color:var(--accent-dim);font-weight:600;letter-spacing:.03em;}

section{padding:clamp(76px,9vw,112px) 0;}
.section-head{max-width:700px;margin-bottom:48px;}
.section-head h2{font-size:clamp(31px,3.8vw,48px);line-height:1.12;letter-spacing:-.035em;}
.section-head p{font-size:17px;}

.spec-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  border:0;
}
.spec-row{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:7px 18px;
  padding:28px;
  border:1px solid var(--paper-dim);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 28px rgba(8,36,72,.045);
  transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease;
}
.spec-row:hover{background:#fff;transform:translateY(-4px);border-color:#a9d8f6;box-shadow:0 18px 38px rgba(8,72,125,.09);}
.spec-tag{
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:47px;
  height:47px;
  padding:0;
  border-radius:14px;
  background:#e3f5ff;
  color:var(--accent-dim);
  font-weight:700;
}
.spec-name{font-size:22px;}
.spec-desc{margin-top:5px;}
.spec-includes{grid-column:2;margin-top:8px;color:#668099;}

.process,.hood{background:linear-gradient(145deg,#061d3c 0%,#082b55 100%);}
.process-list{--road-gap-x:28px;}
.process-item{padding-right:14px;}
.process-num{background:var(--navy-900);border-color:#53c5ff;color:#72d0ff;box-shadow:0 0 0 7px var(--navy-900),0 8px 20px rgba(0,0,0,.2);}
.process-item h3{font-size:22px;}
.process-item p{color:#c0def3;}
.process-item .dur{color:#83bce4;}

.work-grid{gap:22px;}
.work-card{border-radius:22px;border:1px solid #cddfed;box-shadow:0 14px 36px rgba(8,36,72,.10);}
.work-card:focus-visible{outline-offset:5px;}
.work-overlay{padding:26px;background:linear-gradient(0deg,rgba(6,29,60,.96) 0%,rgba(6,29,60,.32) 63%,transparent 84%);}
.work-tag{border-radius:999px;background:rgba(6,29,60,.72);border-color:rgba(133,205,249,.55);color:#d7efff;padding:5px 10px;}
.site-viewer{border-radius:20px;border-color:#286da7;}
.site-viewer-address{border-radius:999px;}

.hood-panel{border-color:rgba(128,196,238,.24);border-radius:22px;overflow:hidden;box-shadow:0 24px 60px rgba(0,10,28,.28);}
.hood-tabs{padding:12px;}
.hood-tab{border-radius:12px;}
.hood-tab.active{background:linear-gradient(135deg,#0d4c87,#0a396b);}
.terminal{border-radius:14px;}

.pricing-toggle button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.plan{border-radius:22px;border-color:var(--paper-dim);box-shadow:0 10px 32px rgba(8,36,72,.06);}
.plan.featured{border:2px solid #54bfff;box-shadow:0 18px 45px rgba(8,90,150,.14);transform:translateY(-8px);}
.plan-tag{color:var(--accent-dim);font-weight:600;}
.plan-features li::before{border-radius:50%;}

.cta-banner{
  margin:0 clamp(14px,3vw,36px);
  border-radius:28px;
  background:
    radial-gradient(circle at 18% 10%,rgba(101,202,255,.2),transparent 22rem),
    linear-gradient(135deg,#061d3c,#0a427c);
  box-shadow:0 22px 60px rgba(8,36,72,.16);
}
.cta-banner p{color:#c9e5f8;}

.contact-grid{align-items:start;}
.contact-info dd a{color:var(--accent-dim);font-weight:700;}
#contact form{
  padding:clamp(24px,4vw,38px);
  border:1px solid var(--paper-dim);
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 50px rgba(8,36,72,.08);
}
.form-row input,.form-row textarea,.form-row select{border-radius:12px;border-color:#cadcea;padding:14px 15px;background:#fbfdff;}
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(24,168,255,.12);}

footer{padding-top:72px;background:#041831;}
.footer-grid{grid-template-columns:minmax(0,1.5fr) minmax(160px,.5fr);}
.footer-logo img{width:min(245px,100%);height:auto;}
.footer-brand p{color:#a9cde8;}
.footer-bottom{color:#7fa8c7;}

@media (max-width:980px){
  .nav-links{gap:16px;}
  .nav-links a{font-size:13px;}
  .hero-art{max-width:620px;margin-inline:auto;}
}

@media (max-width:860px){
  .nav .btn-sm{display:none;}
  .nav-links.is-open{
    display:flex;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding:22px 32px 26px;
    background:#fff;
    border-bottom:1px solid var(--paper-dim);
    box-shadow:0 20px 40px rgba(3,19,42,.12);
  }
  .spec-list{grid-template-columns:1fr;}
}

@media (max-width:700px){
  .stats-grid{gap:0;}
  .stat{border-top:1px solid var(--paper-dim);padding:22px 0;}
  .hero{padding-top:72px;}
  .hero h1{font-size:clamp(38px,12vw,54px);}
  .hero-art{padding:10px;border-radius:18px;}
  .hero-art::after{right:8px;bottom:-20px;}
  .plan.featured{transform:none;}
  .cta-banner{margin-inline:10px;border-radius:22px;padding-inline:6px;}
}

@media (max-width:560px){
  .nav{height:72px;}
  .logo-icon{width:150px;}
  .nav-links.is-open{top:72px;}
  .hero{padding-top:58px;}
  .hero-meta{display:grid;grid-template-columns:1fr;}
  .spec-row{padding:22px;}
  .spec-includes{grid-column:1 / -1;padding-left:65px;}
  .footer-grid{grid-template-columns:1fr;}
  .pricing-toggle{display:grid;width:100%;}
  .pricing-toggle button{min-width:0;padding-inline:10px;font-size:11.5px;}
}
