:root{
  --black:#0A0A0A;
  --white:#ffffff;
  --paper:#F3F3F1;
  --gray:#6B6B6B;
  --gray-line:rgba(10,10,10,0.12);
  --blue:#0047AB;
  --sans:'Inter', sans-serif;
  --serif:'Instrument Serif', serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--black);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--black);color:var(--white);}
a{color:inherit;text-decoration:none;}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
}
a:focus-visible, button:focus-visible{outline:2px solid var(--blue);outline-offset:3px;}

.wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(20px,4vw,48px); }

/* ============ HOME (minimal: title + dashed lines + 4 boxes, nothing else) ============ */
.home{
  min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:32px 20px;
  text-align:center;
}
.title-wrap{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  min-height:clamp(2.8rem, 9vw, 5.8rem);
  width:100%;
}
h1.title{
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(2.4rem, 8vw, 5.2rem);
  letter-spacing:0.001em; line-height:1;
  color:var(--black);
  user-select:none;
  margin:0;
  position:relative;
  display:inline-block;
}
.loader-word{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(2.4rem, 8vw, 5.2rem);
  color:var(--gray);
  opacity:0; transform:translateY(10px);
  transition:opacity .32s ease, transform .32s ease;
  pointer-events:none;
  white-space:nowrap;
}
.loader-word .lw-dot{
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:var(--blue); margin-left:12px; vertical-align:middle;
  animation:lw-blink 1s steps(1) infinite;
}
@keyframes lw-blink{ 0%,100%{opacity:1;} 50%{opacity:0;} }
.loader-word.show{ opacity:1; transform:translateY(0); }

.title-mark{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .65s ease;
  pointer-events:none;
}
.title-mark img{
  height:clamp(3.2rem, 10.5vw, 6.8rem);
  width:auto;
  filter:brightness(0);
}
.title-mark.show{ opacity:1; }

.title-alt{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-style:italic; font-weight:400;
  letter-spacing:0.001em;
  font-size:clamp(2.4rem, 8vw, 5.2rem);
  color:var(--black);
  opacity:0; transition:opacity .65s ease;
  pointer-events:none;
}
.title-alt.show{ opacity:1; }

html.has-js h1.title{ opacity:0; transition:opacity .7s ease; }
html.has-js h1.title.revealed{ opacity:1; }

html.has-js .stem{ opacity:0; transform:scaleY(0); transform-origin:top; transition:opacity .5s ease, transform .5s ease; }
html.has-js .stem.revealed{ opacity:0.28; transform:scaleY(1); }

html.has-js .map, html.has-js .stack{ opacity:0; transition:opacity .4s ease; }
html.has-js .map.revealed, html.has-js .stack.revealed{ opacity:1; }

html.has-js .node{ transition:border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease, opacity .55s ease, translate .55s ease; }
html.has-js .nodes-row .node, html.has-js .stack .node{
  opacity:0; translate:0 16px;
}
html.has-js .map.revealed .nodes-row .node, html.has-js .stack.revealed .node{
  opacity:1; translate:0 0;
}
.nodes-row .node:nth-child(1){ transition-delay:.05s; }
.nodes-row .node:nth-child(2){ transition-delay:.14s; }
.nodes-row .node:nth-child(3){ transition-delay:.23s; }
.nodes-row .node:nth-child(4){ transition-delay:.32s; }
.stack .node:nth-of-type(1){ transition-delay:.05s; }
.stack .node:nth-of-type(2){ transition-delay:.16s; }
.stack .node:nth-of-type(3){ transition-delay:.27s; }
.stack .node:nth-of-type(4){ transition-delay:.38s; }

.stem{
  width:1px; height:60px;
  background:repeating-linear-gradient(to bottom, var(--black) 0 6px, transparent 6px 12px);
  margin:36px auto 0;
  opacity:0.28;
}

.title-underline{
  position:absolute;
  left:2%; right:2%; bottom:-0.16em;
  width:96%; height:0.26em;
  overflow:visible;
  pointer-events:none;
}
.title-underline path{
  fill:none;
  stroke:var(--blue);
  stroke-width:9;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:0.82;
  stroke-dasharray:420;
  stroke-dashoffset:420;
  transition:stroke-dashoffset 1s cubic-bezier(.4,0,.2,1);
}
.title-underline.draw path{ stroke-dashoffset:0; }
.title-underline.draw{
  animation:underline-wobble 3.4s ease-in-out 1.1s infinite;
  transform-origin:50% 50%;
}
@keyframes underline-wobble{
  0%,100%{ transform:translateY(0) scaleX(1); }
  50%{ transform:translateY(2px) scaleX(1.018); }
}

/* desktop map: fan of dashed lines to 4 nodes */
.map{ position:relative; width:100%; max-width:1040px; margin:0 auto; display:none; }
@media (min-width:820px){ .map{ display:block; } }
.map svg{ width:100%; height:170px; display:block; }
.map .connector{
  fill:none; stroke:var(--black); stroke-width:1.3;
  stroke-dasharray:6 7; opacity:0.28; stroke-linecap:round;
  animation:dash-flow 24s linear infinite;
}
@keyframes dash-flow{ to{ stroke-dashoffset:-500; } }

.nodes-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:-6px; }
.node{
  border:1px solid var(--gray-line);
  border-radius:16px;
  background:var(--white);
  padding:20px 16px;
  text-align:left;
  cursor:pointer;
  transition:border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.node:hover{ border-color:var(--black); background:var(--black); color:var(--white); transform:translateY(-3px); }
.node .idx{ display:inline-flex; align-items:center; gap:6px; font-family:var(--sans); font-size:0.72rem; font-weight:600; letter-spacing:0.05em; color:var(--gray); }
.node .idx .dot{ width:5px; height:5px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.node:hover .idx{ color:rgba(255,255,255,0.6); }
.node .label{ font-family:var(--sans); font-size:1rem; font-weight:700; letter-spacing:-0.01em; margin-top:8px; color:var(--black); }
.node:hover .label{ color:var(--white); }

/* mobile stacked list */
.stack{ display:flex; flex-direction:column; align-items:stretch; width:100%; max-width:420px; margin:0 auto; }
@media (min-width:820px){ .stack{ display:none; } }
.stack .segment{
  align-self:center; width:1px; height:26px;
  background:repeating-linear-gradient(to bottom, var(--black) 0 5px, transparent 5px 10px);
  opacity:0.28;
}
.stack .node{ margin-bottom:0; }

/* ============ SUBPAGE HEADER ============ */
.page-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:26px clamp(20px,4vw,48px);
}
.back-pill{
  font-family:var(--sans); font-size:0.85rem; font-weight:500;
  display:inline-flex; align-items:center; gap:8px;
  color:var(--black); opacity:0.75; transition:opacity .2s;
}
.back-pill:hover{ opacity:1; }
.step-tag{
  font-family:var(--sans); font-size:0.76rem; color:var(--gray);
  border:1px solid var(--gray-line); padding:6px 14px; border-radius:999px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--sans); font-weight:500; font-size:0.9rem;
  padding:13px 22px; border-radius:999px;
  border:1px solid var(--gray-line);
  color:var(--black);
  background:transparent;
  transition:background .22s ease, color .22s ease, border-color .22s ease, transform .18s ease;
  white-space:nowrap;
}
.pill:hover{ border-color:var(--black); transform:translateY(-1px); }
.pill.solid{ background:var(--black); color:var(--white); border-color:var(--black); }
.pill.solid:hover{ background:#222; }

/* ============ CONTENT SECTIONS ============ */
section.panel{ padding:30px clamp(20px,4vw,48px) 100px; }
.panel-inner{ max-width:860px; margin:0 auto; }
.panel .eyebrow{
  font-family:var(--sans); font-size:0.8rem; font-weight:600; letter-spacing:0.04em;
  color:var(--blue); text-transform:uppercase; margin-bottom:20px;
}
h2.h2{
  font-family:var(--sans); font-weight:700;
  font-size:clamp(2rem,4.6vw,3.2rem);
  color:var(--black); letter-spacing:-0.02em; line-height:1.04;
  margin-bottom:26px; max-width:16ch;
}
h2.h2 em{ font-family:var(--serif); font-style:italic; font-weight:400; letter-spacing:0; }
.lead{
  font-size:clamp(1.02rem,1.5vw,1.16rem);
  line-height:1.65; color:#333; max-width:62ch; margin-bottom:20px;
}
.lead b{ color:var(--black); font-weight:600; }

.quote-block{
  border-left:2px solid var(--blue);
  padding-left:22px; margin:34px 0;
  font-family:var(--serif); font-style:italic;
  font-size:clamp(1.2rem,2.4vw,1.6rem);
  color:var(--black); line-height:1.35;
}

.why-grid{ display:grid; grid-template-columns:1fr; gap:24px; margin-top:38px; }
@media (min-width:680px){ .why-grid{ grid-template-columns:repeat(3,1fr); } }
.why-item{ border-top:1px solid var(--gray-line); padding-top:18px; }
.why-item .n{ font-family:var(--sans); font-size:0.72rem; font-weight:600; letter-spacing:0.06em; color:var(--gray); text-transform:uppercase; }
.why-item h4{ font-family:var(--sans); font-weight:700; font-size:1.05rem; color:var(--black); margin:10px 0 8px; letter-spacing:-0.01em; }
.why-item p{ font-size:0.93rem; line-height:1.55; color:var(--gray); }

.compare{
  display:grid; grid-template-columns:1fr; gap:1px;
  background:var(--gray-line); border:1px solid var(--gray-line);
  border-radius:16px; overflow:hidden;
  margin-top:34px;
}
@media (min-width:680px){ .compare{ grid-template-columns:1fr 1fr; } }
.compare .col{ background:var(--white); padding:26px 24px; }
.compare .col h3{ font-family:var(--sans); font-size:0.78rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:14px; }
.compare .col.bad h3{ color:var(--gray); }
.compare .col.good h3{ color:var(--blue); }
.compare ul{ list-style:none; }
.compare li{ font-size:0.94rem; line-height:1.55; padding:8px 0; border-top:1px solid var(--gray-line); color:#333; }
.compare li:first-child{ border-top:none; }
.compare .col.bad li::before{ content:'— '; color:#b3b3b3; }
.compare .col.good li::before{ content:'✓ '; color:var(--blue); }

/* ---- portfolio showcase ---- */
.portfolio-card{
  margin-top:40px;
  border:1px solid var(--gray-line);
  border-radius:22px;
  overflow:hidden;
  background:var(--white);
}
.portfolio-browser{
  display:flex; align-items:center; gap:12px;
  padding:12px 16px;
  background:#EAEAE7;
  border-bottom:1px solid var(--gray-line);
}
.portfolio-browser .dots{ display:flex; gap:6px; flex-shrink:0; }
.portfolio-browser .dots span{ width:9px; height:9px; border-radius:50%; background:#D3D3D0; }
.portfolio-browser .url{
  flex:1; text-align:center;
  font-family:var(--sans); font-size:0.76rem; color:var(--gray);
  background:var(--white); border-radius:999px; padding:6px 16px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.portfolio-preview{
  aspect-ratio:16/10;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,71,171,0.35) 0%, transparent 45%),
    linear-gradient(155deg, #101010 0%, #1c1c1c 65%, #0A0A0A 100%);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.portfolio-preview img{
  width:38%; max-width:220px; min-width:120px;
  filter:brightness(0) invert(1);
  opacity:0.95;
}
.portfolio-preview .p-tagline{
  position:absolute; bottom:22px; left:26px; right:26px;
  color:rgba(255,255,255,0.55);
  font-family:var(--sans); font-size:0.8rem; letter-spacing:0.02em;
}
.portfolio-badge{
  position:absolute; top:18px; left:18px;
  background:rgba(255,255,255,0.12); backdrop-filter:blur(6px);
  color:#fff; font-family:var(--sans); font-size:0.7rem; font-weight:600;
  padding:6px 13px; border-radius:999px; letter-spacing:0.03em;
  display:flex; align-items:center; gap:7px;
}
.portfolio-badge .dot{ width:5px; height:5px; border-radius:50%; background:var(--blue); }
.portfolio-info{ padding:28px clamp(22px,3vw,32px); }
.portfolio-info .client{
  font-family:var(--sans); font-weight:700; font-size:1.25rem; color:var(--black);
  letter-spacing:-0.01em;
}
.portfolio-info .desc{
  margin-top:10px; color:var(--gray); font-size:0.94rem; line-height:1.6; max-width:56ch;
}
.portfolio-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.portfolio-tags span{
  font-family:var(--sans); font-size:0.74rem; font-weight:600; color:var(--gray);
  border:1px solid var(--gray-line); border-radius:999px; padding:5px 13px;
}
.portfolio-actions{ display:flex; gap:12px; margin-top:24px; flex-wrap:wrap; }

/* ---- quiz ---- */
.quiz{
  margin-top:44px;
  border:1px solid var(--gray-line);
  border-radius:20px;
  background:var(--white);
}
.quiz-inner{ padding:30px clamp(20px,4vw,40px); }
.quiz .quiz-eyebrow{
  font-family:var(--sans); font-size:0.76rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--blue); margin-bottom:16px;
}
.quiz-progress{ display:flex; gap:6px; margin-bottom:22px; }
.quiz-progress .dot{ width:22px; height:3px; border-radius:2px; background:var(--gray-line); transition:background .3s ease; }
.quiz-progress .dot.done{ background:var(--black); }
.quiz-question{ font-family:var(--sans); font-weight:700; font-size:clamp(1.1rem,2vw,1.4rem); color:var(--black); margin-bottom:22px; letter-spacing:-0.01em; }
.quiz-options{ display:flex; flex-direction:column; gap:10px; }
@media (min-width:560px){ .quiz-options{ flex-direction:row; flex-wrap:wrap; } }
.quiz-opt{
  font-family:var(--sans); font-size:0.92rem; font-weight:500; text-align:left;
  padding:13px 20px; border-radius:999px;
  border:1px solid var(--gray-line);
  background:var(--white); color:var(--black);
  cursor:pointer; transition:border-color .2s, background .2s, color .2s;
  flex:1; min-width:160px;
}
.quiz-opt:hover{ border-color:var(--black); background:var(--black); color:var(--white); }
.quiz-result{ display:none; }
.quiz-result.show{ display:block; animation:fadeIn .5s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }
.quiz-result p{ font-size:1.02rem; line-height:1.65; color:#333; margin-bottom:8px; }
.quiz-result .quiz-restart{
  margin-top:16px; font-family:var(--sans); font-size:0.85rem; font-weight:600; color:var(--blue);
  cursor:pointer; display:inline-block;
}
.quiz-restart:hover{ text-decoration:underline; }
.quiz-step.hidden{ display:none; }

/* ---- pricing ---- */
.pricing-grid{ display:grid; grid-template-columns:1fr; gap:18px; margin-top:38px; }
.price-card{
  border:1px solid var(--gray-line); border-radius:20px; padding:32px 28px;
  background:var(--white);
  display:flex; flex-direction:column; position:relative;
}
.price-card.feat{ border-color:var(--black); }
.price-card.feat .tag{
  position:absolute; top:-13px; left:24px;
  background:var(--black); color:var(--white);
  font-family:var(--sans); font-size:0.72rem; font-weight:600; letter-spacing:0.04em;
  padding:5px 14px; border-radius:999px; text-transform:uppercase;
}
.price-card h3{ font-family:var(--sans); font-size:0.8rem; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; color:var(--gray); margin-bottom:14px; }
.price-card .amount{ font-family:var(--sans); font-weight:700; font-size:2.4rem; color:var(--black); letter-spacing:-0.02em; margin-bottom:4px; }
.price-card .amount em{ font-family:var(--serif); font-style:italic; font-weight:400; font-size:1.1rem; color:var(--gray); }
.price-card .sub{ font-size:0.88rem; color:var(--gray); margin-bottom:22px; }
.price-card ul{ list-style:none; flex:1; }
.price-card li{ font-size:0.92rem; padding:10px 0; border-top:1px solid var(--gray-line); display:flex; gap:10px; color:#333; }
.price-card li:first-child{ border-top:none; }
.price-card li::before{ content:'✓'; color:var(--blue); flex-shrink:0; font-weight:700; }
.price-note{ margin-top:28px; font-family:var(--sans); font-size:0.85rem; color:var(--gray); line-height:1.6; }

/* ---- cta page ---- */
section.cta-panel{ background:var(--black); color:var(--white); }
section.cta-panel .page-header .back-pill{ color:var(--white); }
section.cta-panel .step-tag{ color:rgba(255,255,255,0.6); border-color:rgba(255,255,255,0.18); }
section.cta-panel .eyebrow{ color:#8FB4FF; }
section.cta-panel h2.h2{ color:var(--white); }
section.cta-panel .lead{ color:rgba(255,255,255,0.72); }

.cta-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.cta-panel .pill{ border-color:rgba(255,255,255,0.28); color:var(--white); }
.cta-panel .pill:hover{ border-color:var(--white); }
.cta-panel .pill.solid{ background:var(--white); color:var(--black); border-color:var(--white); }
.cta-panel .pill.solid:hover{ background:#e8e8e8; }

.contact-grid{
  margin-top:52px; padding-top:32px; border-top:1px solid rgba(255,255,255,0.15);
  display:grid; grid-template-columns:1fr; gap:22px; font-family:var(--sans); font-size:0.92rem;
}
@media (min-width:640px){ .contact-grid{ grid-template-columns:repeat(3,1fr); } }
.contact-grid div span{ display:block; color:rgba(255,255,255,0.5); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.contact-grid a:hover{ color:#8FB4FF; }

.cta-block{
  margin-top:50px;
  padding-top:8px;
}
.cta-block .pill{ padding:16px 28px; font-size:0.96rem; font-weight:600; }

.next-link{
  margin-top:64px; padding-top:26px; border-top:1px solid var(--gray-line);
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--sans); font-size:0.86rem; font-weight:500;
}
.cta-panel .next-link{ border-top-color:rgba(255,255,255,0.15); }
.next-link a{ color:var(--black); opacity:0.7; transition:opacity .2s; }
.next-link a:hover{ opacity:1; }
.cta-panel .next-link a{ color:var(--white); }

footer.site-footer{
  padding:26px 20px; text-align:center;
  font-family:var(--sans); font-size:0.8rem; color:var(--gray);
}
