:root{
  --ink:#0B0C10;
  --paper:#FAF9F6;
  --paper-dim:#F0EEE8;
  --line: rgba(11,12,16,0.12);
  --line-soft: rgba(250,249,246,0.16);
  --cobalt:#2A2FE0;
  --coral:#FF5A36;
  --gradient: linear-gradient(100deg, var(--cobalt) 0%, var(--coral) 100%);
  --muted: rgba(11,12,16,0.62);
  --muted-light: rgba(250,249,246,0.66);
  --radius: 4px;
  --max: 1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;}
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk',sans-serif;
  margin:0;
  line-height:1.05;
  letter-spacing:-0.01em;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 32px;}
.eyebrow{
  font-family:'Space Mono',monospace;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--coral);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:22px; height:1px;
  background:var(--coral);
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:var(--radius);
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:15px;
  border:1px solid var(--ink);
  cursor:pointer;
  transition:transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-primary{
  background:var(--ink);
  color:var(--paper);
}
.btn-primary:hover{
  background:var(--gradient);
  border-color:transparent;
  transform:translateY(-2px);
  box-shadow:0 12px 24px -12px rgba(255,90,54,0.5);
}
.btn-ghost{
  background:transparent;
  color:var(--ink);
}
.btn-ghost:hover{
  background:var(--ink);
  color:var(--paper);
}

/* ---------- NAV ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(250,249,246,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease;
}
header.scrolled{ border-color:var(--line); }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  max-width:var(--max); margin:0 auto;
}
.logo{
  font-family:'Space Grotesk',sans-serif;
  font-weight:800;
  font-size:19px;
  letter-spacing:0.01em;
  display:flex; align-items:center; gap:10px;
}
.logo .mark{width:26px; height:26px; flex-shrink:0;}
.logo .mark rect:nth-child(1){fill:var(--cobalt);}
.logo .mark rect:nth-child(3){fill:var(--coral);}
.nav-links{display:flex; gap:36px; align-items:center;}
.nav-links a{
  font-family:'Space Mono',monospace;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  position:relative;
  padding-bottom:4px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--coral); transition:width .25s ease;
}
.nav-links a:hover::after{width:100%;}
.nav-cta{display:flex; align-items:center; gap:20px;}
.burger{display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none;}
.burger span{width:22px; height:2px; background:var(--ink);}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding:170px 0 120px;
  overflow:hidden;
}
.hero-bars{
  position:absolute;
  right:-40px; top:0; bottom:0;
  display:flex; align-items:flex-end; gap:14px;
  z-index:0;
  opacity:0.9;
  will-change:transform;
}
.hero-bars .bar{
  width:34px;
  background:var(--gradient);
  opacity:0.14;
  border-radius:2px 2px 0 0;
  transform-origin:bottom;
  animation:rise 1.1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise{ from{transform:scaleY(0);} to{transform:scaleY(1);} }
@keyframes breathe{ 0%,100%{transform:scaleY(1);} 50%{transform:scaleY(1.05);} }
.hero-inner{position:relative; z-index:1; max-width:760px;}
.hero-badge{
  display:inline-flex; align-items:center; gap:9px;
  padding:8px 15px; margin-bottom:22px;
  border:1px solid var(--line); border-radius:20px;
  font-family:'Space Mono',monospace; font-size:12px; color:var(--muted);
  background:rgba(250,249,246,0.6);
}
.hero-badge .dot{
  width:7px; height:7px; border-radius:50%; background:var(--coral);
  animation:pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot{ 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(1.35);} }
.rotator{
  display:inline-block;
  color:var(--cobalt);
  min-width:1px;
}
#rotatorWord{ display:inline-block; transition:opacity .35s ease, transform .35s ease; }
#rotatorWord.swap-out{ opacity:0; transform:translateY(10px); }
#rotatorWord.swap-in{ opacity:0; transform:translateY(-10px); }
.hero h1{
  font-size:clamp(42px, 6vw, 76px);
  font-weight:800;
}
.hero h1 .grad{
  background:var(--gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lede{
  margin-top:26px;
  font-size:19px;
  line-height:1.6;
  color:var(--muted);
  max-width:560px;
}
.hero-ctas{display:flex; gap:16px; margin-top:40px; flex-wrap:wrap;}
.hero-meta{
  margin-top:80px;
  display:flex; gap:48px;
  font-family:'Space Mono',monospace;
  font-size:13px;
  color:var(--muted);
  flex-wrap:wrap;
}
.hero-meta strong{display:block; color:var(--ink); font-family:'Space Grotesk',sans-serif; font-size:15px; margin-bottom:2px;}

.scroll-cue{
  position:absolute; left:50%; bottom:32px; transform:translateX(-50%);
  width:26px; height:42px; border:1.5px solid var(--line); border-radius:14px;
  display:flex; justify-content:center; padding-top:8px;
  z-index:1;
  transition:border-color .25s ease;
}
.scroll-cue:hover{border-color:var(--coral);}
.scroll-cue span{
  width:4px; height:8px; border-radius:2px; background:var(--gradient);
  animation:scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{opacity:1; transform:translateY(0);}
  70%{opacity:0; transform:translateY(14px);}
  100%{opacity:0; transform:translateY(0);}
}
@media (max-width:860px){ .scroll-cue{display:none;} }

/* ---------- SECTION GENERIC ---------- */
section{padding:120px 0;}
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom:64px; gap:32px; flex-wrap:wrap;
}
.section-head h2{font-size:clamp(30px,4vw,48px); font-weight:800; max-width:560px;}
.section-head p{color:var(--muted); max-width:340px; font-size:15px; line-height:1.6;}

/* ---------- ABOUT ---------- */
.about{background:var(--paper-dim); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.about-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.about-card{background:var(--paper-dim); padding:44px 36px;}
.about-card .num{
  font-family:'Space Mono',monospace; font-size:13px; color:var(--coral); margin-bottom:20px; display:block;
}
.about-card h3{font-size:22px; margin-bottom:14px;}
.about-card p{color:var(--muted); line-height:1.7; font-size:15px;}

/* ---------- SERVICES ---------- */
.services-list{border-top:1px solid var(--line);}
.service-row{
  display:grid; grid-template-columns:80px 1fr 1fr;
  gap:24px; align-items:center;
  padding:36px 0;
  border-bottom:1px solid var(--line);
  transition:padding-left .3s ease;
}
.service-row:hover{padding-left:14px; background:var(--paper-dim);}
.service-row .idx{font-family:'Space Mono',monospace; color:var(--muted); font-size:14px;}
.service-row h3{font-size:26px; font-weight:700;}
.service-row p{color:var(--muted); font-size:15px; line-height:1.6; margin:0;}

/* ---------- WORK ---------- */
.work-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  align-items:start;
}
.work-card{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--ink);
  aspect-ratio:4/3;
  display:block;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.work-card img{
  width:100%; height:100%; object-fit:cover;
  opacity:0.85;
  transition:transform .5s ease, opacity .3s ease;
}
.work-card:hover img{transform:scale(1.06); opacity:1;}
.work-card:hover{transform:translateY(-6px); box-shadow:0 20px 40px -20px rgba(11,12,16,0.35);}
.work-overlay{
  position:absolute; left:0; right:0; bottom:0; padding:20px 22px;
  background:linear-gradient(to top, rgba(11,12,16,0.94), rgba(11,12,16,0));
  color:var(--paper);
}
.work-overlay .tag{
  font-family:'Space Mono',monospace; font-size:11px; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--muted-light); margin-bottom:6px; display:block;
}
.work-overlay h3{font-size:20px; font-weight:700;}
/* small bar-glyph echoing the logo mark — same idea, used quietly */
.work-mark{
  position:absolute; top:14px; right:14px;
  display:flex; align-items:flex-end; gap:3px;
  padding:7px 8px; border-radius:5px;
  background:rgba(11,12,16,0.38);
  backdrop-filter:blur(3px);
}
.work-mark i{display:block; width:4px; border-radius:1px; background:var(--gradient); font-style:normal;}
.work-mark i:nth-child(1){height:6px;}
.work-mark i:nth-child(2){height:10px;}
.work-mark i:nth-child(3){height:14px;}

/* ---------- TESTIMONIALS ---------- */
.testimonials{background:var(--ink); color:var(--paper);}
.testimonials .section-head h2{color:var(--paper);}
.testimonials .section-head p{color:var(--muted-light);}
.t-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line-soft); border:1px solid var(--line-soft);}
.t-card{background:var(--ink); padding:40px;}
.t-card p{font-size:18px; line-height:1.7; margin-bottom:24px;}
.t-card cite{font-family:'Space Mono',monospace; font-size:13px; color:var(--muted-light); font-style:normal;}

/* ---------- CTA ---------- */
.cta{
  text-align:center;
  padding:140px 0;
}
.cta h2{font-size:clamp(34px,5vw,64px); font-weight:800; margin-bottom:36px;}
.cta h2 .grad{background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;}

/* ---------- FOOTER ---------- */
footer{background:var(--ink); color:var(--muted-light); padding:64px 0 32px; border-top:1px solid var(--line-soft);}
.footer-top{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;
  padding-bottom:48px; border-bottom:1px solid var(--line-soft);
}
.footer-top .logo{color:var(--paper);}
.footer-top .logo .mark rect:nth-child(1){fill:var(--cobalt);}
.footer-top .logo .mark rect:nth-child(3){fill:var(--coral);}
.footer-links{display:flex; gap:64px; flex-wrap:wrap;}
.footer-col h4{
  font-family:'Space Mono',monospace; font-size:12px; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--muted-light); margin-bottom:16px; font-weight:400;
}
.footer-col a, .footer-col p{display:block; color:var(--paper); font-size:15px; margin-bottom:10px; opacity:0.9;}
.footer-col a:hover{color:var(--coral);}
.footer-bottom{
  display:flex; justify-content:space-between; padding-top:28px; font-size:13px; flex-wrap:wrap; gap:12px;
}
.socials{display:flex; gap:16px;}
.socials a{
  width:34px; height:34px; border:1px solid var(--line-soft); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:12px;
  transition:background .25s ease, border-color .25s ease;
}
.socials a:hover{background:var(--gradient); border-color:transparent;}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .nav-links, .nav-cta .btn-ghost{display:none;}
  .burger{display:flex;}
  .about-grid{grid-template-columns:1fr;}
  .work-grid{grid-template-columns:1fr 1fr;}
  .stair-1,.stair-2,.stair-3{transform:none;}
  .service-row{grid-template-columns:50px 1fr; }
  .service-row p{grid-column:1/-1;}
  .t-grid{grid-template-columns:1fr;}
}
@media (max-width: 560px){
  .wrap{padding:0 20px;}
  .hero{padding:140px 0 80px;}
  .work-grid{grid-template-columns:1fr;}
  .footer-links{gap:32px;}
  section{padding:80px 0;}
}
:focus-visible{outline:2px solid var(--coral); outline-offset:3px;}

/* ---------- PROJECT / INNER PAGE ---------- */
.project-hero{padding:150px 0 0;}
.project-hero .eyebrow{margin-bottom:22px;}
.project-hero h1{font-size:clamp(38px,6vw,64px); font-weight:800; margin-bottom:48px;}
.project-cover{
  all:unset;
  position:relative;
  display:block;
  width:100%;
  max-width:900px;
  margin:0 auto;
  max-height:560px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--paper-dim);
  cursor:zoom-in;
}
.project-cover img{width:100%; height:560px; object-fit:cover; object-position:top; display:block;}
.project-cover .view-full{
  position:absolute; right:16px; bottom:16px;
  display:flex; align-items:center; gap:6px;
  background:rgba(11,12,16,0.75); color:var(--paper);
  font-family:'Space Mono',monospace; font-size:12px; letter-spacing:0.02em;
  padding:9px 14px; border-radius:20px;
  backdrop-filter:blur(4px);
  transition:background .25s ease;
}
.project-cover:hover .view-full{background:var(--ink);}
@media (max-width:640px){
  .project-cover, .project-cover img{max-height:340px; height:340px;}
}
.project-body{
  padding:80px 0 120px;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:64px;
}
.project-body h2{font-size:24px; font-weight:800; margin-bottom:20px;}
.project-body .overview p{color:var(--muted); font-size:17px; line-height:1.75; max-width:560px;}
.deliverables{margin-top:36px;}
.deliverables h4{
  font-family:'Space Mono',monospace; font-size:12px; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--muted); margin-bottom:16px; font-weight:400;
}
.deliverables ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; max-width:480px;}
.deliverables li{display:flex; align-items:center; gap:12px; font-size:15px; color:var(--ink);}
.deliverables li i{display:block; width:8px; height:8px; border-radius:2px; background:var(--gradient); flex-shrink:0; font-style:normal;}
.project-meta{border-left:1px solid var(--line); padding-left:40px;}
.meta-block{margin-bottom:36px;}
.meta-block h4{
  font-family:'Space Mono',monospace; font-size:12px; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--muted); margin-bottom:12px; font-weight:400;
}
.meta-block .tags{display:flex; flex-wrap:wrap; gap:8px;}
.meta-block .tags span{
  font-family:'Space Mono',monospace; font-size:12px; padding:6px 12px;
  border:1px solid var(--line); border-radius:20px; color:var(--ink);
}
.meta-block p{font-size:15px; margin:0;}
.meta-block .cover-thumb{border-radius:var(--radius); border:1px solid var(--line); overflow:hidden;}
.meta-block .cover-thumb img{width:100%; display:block;}
.project-meta .btn{width:100%; justify-content:center; margin-top:8px;}
.related{background:var(--paper-dim); border-top:1px solid var(--line);}
@media (max-width: 860px){
  .project-body{grid-template-columns:1fr;}
  .project-meta{border-left:none; border-top:1px solid var(--line); padding-left:0; padding-top:32px;}
}

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position:fixed; inset:0; z-index:1000;
  background:rgba(11,12,16,0.94);
  display:none; align-items:flex-start; justify-content:center;
  overflow-y:auto; padding:70px 20px;
}
.lightbox.open{display:flex;}
.lightbox img{max-width:900px; width:100%; border-radius:var(--radius); display:block;}
.lightbox-close{
  position:fixed; top:22px; right:22px; z-index:1001;
  width:44px; height:44px; border-radius:50%;
  background:var(--paper); color:var(--ink); border:none;
  font-size:20px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
