/* ============================================================
   KREATIVE ARTIFEX — Fully Responsive CSS
   Breakpoints: 400 · 600 · 900 · 1100 · 1280 · 1920
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

:root{
  --bg:#F5EDE4;
  --bg2:#EDE3D8;
  --bg3:#E6D9CC;
  --terra:#B85528;
  --terra2:#C96A3A;
  --terra3:#8B3E1A;
  --cream:#1A0E07;
  --muted:#7A6050;
  --rule:rgba(184,85,40,0.18);
  --rule2:rgba(184,85,40,0.08);
  --sidebar:72px;
  --topbar:52px;
}

/* ─── CURSOR (desktop / pointer devices only) ─── */
@media(hover:hover) and (pointer:fine){
  body{cursor:none}
  #cursor{
    position:fixed;width:8px;height:8px;
    background:var(--terra);border-radius:50%;
    pointer-events:none;z-index:9999;
    transform:translate(-50%,-50%);
    transition:transform 0.1s,width 0.2s,height 0.2s;
  }
  #cursor-ring{
    position:fixed;width:32px;height:32px;
    border:0.5px solid var(--terra);border-radius:50%;
    pointer-events:none;z-index:9998;
    transform:translate(-50%,-50%);
    transition:transform 0.15s ease-out,width 0.3s,height 0.3s,opacity 0.3s;
    opacity:0.5;
  }
  body:has(a:hover) #cursor{width:16px;height:16px}
  body:has(a:hover) #cursor-ring{width:48px;height:48px;opacity:0.2}
}
@media(hover:none),(pointer:coarse){
  #cursor,#cursor-ring{display:none}
}

/* ─── Hamburger: hidden by default, shown via media query ─── */
.hamburger{display:none}

/* ─── Sidebar backdrop ─── */
#sidebar-backdrop{
  position:fixed;inset:0;
  background:rgba(26,14,7,0.5);
  z-index:199;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.35s;
}
#sidebar-backdrop.visible{
  opacity:1;
  pointer-events:auto;
}

/* ─── BASE ─── */
body{
  background:var(--bg);
  color:var(--cream);
  font-family:'Outfit',sans-serif;
  font-weight:300;
  line-height:1.6;
  overflow-x:hidden;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}

/* ═══════════════════════════════════
   SIDEBAR
═══════════════════════════════════ */
#sidebar{
  position:fixed;
  left:0;top:0;bottom:0;
  width:var(--sidebar);
  background:var(--bg2);
  border-right:0.5px solid var(--rule);
  z-index:200;
  display:flex;flex-direction:column;
  align-items:center;
  padding:2rem 0;
  transition:transform 0.35s cubic-bezier(0.4,0,0.2,1),
             box-shadow 0.35s;
  will-change:transform;
}

.sidebar-logo{
  width:40px;height:40px;
  margin-bottom:2.5rem;
  animation:spinLogo 20s linear infinite;
}
.sidebar-logo:hover{animation-play-state:paused}

.sidebar-links{
  display:flex;flex-direction:column;
  align-items:center;gap:2rem;flex:1;
}

.sidebar-link{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  transform:rotate(180deg);
  font-size:0.62rem;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--muted);
  transition:color 0.3s,letter-spacing 0.3s;
  padding:0.5rem 0;
}
.sidebar-link:hover,.sidebar-link.active{color:var(--terra);letter-spacing:0.3em}

.sidebar-bottom{
  writing-mode:vertical-rl;
  font-size:0.55rem;letter-spacing:0.15em;
  color:var(--muted);opacity:0.4;
  transform:rotate(180deg);
}

/* ─── Hamburger (mobile only) ─── */
.hamburger{
  display:none;
  flex-direction:column;justify-content:center;
  gap:5px;width:36px;height:36px;
  background:none;border:none;
  cursor:pointer;padding:4px;flex-shrink:0;
}
.hamburger span{
  display:block;width:22px;height:1.5px;
  background:var(--cream);
  transition:transform 0.3s,opacity 0.3s;
  transform-origin:center;
}
.hamburger.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* ═══════════════════════════════════
   MAIN
═══════════════════════════════════ */
main{margin-left:var(--sidebar)}

/* ═══════════════════════════════════
   TOPBAR
═══════════════════════════════════ */
#topbar{
  position:fixed;
  top:0;left:var(--sidebar);right:0;
  height:var(--topbar);
  background:rgba(245,237,228,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:0.5px solid var(--rule);
  z-index:150;
  display:flex;align-items:center;
  justify-content:space-between;
  padding:0 clamp(1rem,3vw,3rem);
  gap:1rem;
  transition:left 0.35s cubic-bezier(0.4,0,0.2,1);
}

.topbar-brand{
  font-family:'Outfit',sans-serif;
  font-size:clamp(0.58rem,1.1vw,0.7rem);
  font-weight:500;letter-spacing:0.25em;
  text-transform:uppercase;color:var(--cream);
  white-space:nowrap;
}
.topbar-brand span{color:var(--terra)}

.topbar-tagline{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(0.8rem,1.5vw,0.95rem);
  font-style:italic;color:var(--muted);
  letter-spacing:0.05em;white-space:nowrap;
}

.topbar-cta{
  font-size:clamp(0.55rem,1vw,0.62rem);
  font-weight:600;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--terra);
  border:0.5px solid var(--terra);
  padding:0.45rem clamp(0.75rem,2vw,1.2rem);
  transition:all 0.3s;white-space:nowrap;flex-shrink:0;
}
.topbar-cta:hover{background:var(--terra);color:var(--bg)}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero{
  min-height:100svh;
  padding-top:var(--topbar);
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative;overflow:hidden;
}

.hero-bg-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(var(--rule2) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule2) 1px,transparent 1px);
  background-size:80px 80px;
  pointer-events:none;
}

.hero-left{
  display:flex;flex-direction:column;
  justify-content:center;
  padding:clamp(2.5rem,6vw,4rem) clamp(1.5rem,4vw,3rem)
          clamp(2.5rem,6vw,4rem) clamp(1.5rem,4vw,4rem);
  position:relative;z-index:2;
}

.hero-counter{
  font-family:'JetBrains Mono',monospace;
  font-size:clamp(0.58rem,1vw,0.65rem);
  color:var(--terra);letter-spacing:0.15em;
  margin-bottom:clamp(1.5rem,4vw,3rem);
  display:flex;align-items:center;gap:1rem;
}
.hero-counter::before{
  content:'';width:clamp(1.5rem,4vw,3rem);
  height:0.5px;background:var(--terra);
}

.hero-title{
  font-family:'Outfit',sans-serif;
  font-weight:800;
  font-size:clamp(2.8rem,5.5vw,6.5rem);
  line-height:0.95;letter-spacing:-0.03em;
  text-transform:uppercase;color:var(--cream);
  margin-bottom:0.5rem;
}

.hero-title-italic{
  font-family:'Cormorant Garamond',serif;
  font-weight:300;
  font-size:clamp(2.2rem,4.5vw,5.5rem);
  font-style:italic;line-height:1.1;
  color:var(--terra2);letter-spacing:0.02em;
  margin-bottom:clamp(1.5rem,4vw,3rem);
}

.hero-desc{
  font-size:clamp(0.8rem,1.2vw,0.9rem);
  color:var(--muted);max-width:38ch;
  line-height:1.9;
  margin-bottom:clamp(1.5rem,4vw,3rem);
  font-weight:300;
}

.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}

.hero-right{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}

.hero-logo-wrap{
  position:relative;
  display:flex;align-items:center;justify-content:center;
}

.hero-logo-rotate{
  height: clamp(180px, 30vw, 240px);
  width: clamp(220px, 30vw, 400px);
  animation:spinLogo 25s linear infinite;
  opacity:0.15;position:absolute;
}

.hero-logo-static{
  width:clamp(100px,14vw,180px);height:clamp(100px,14vw,180px);
  position:relative;z-index:2;
  opacity:0;animation:fadeIn 1.5s ease 0.8s forwards;
}

.hero-ring1{
  position:absolute;
  width:clamp(220px,30vw,380px);height:clamp(220px,30vw,380px);
  border:0.5px solid var(--rule);border-radius:50%;
  animation:spinLogo 40s linear infinite reverse;
}
.hero-ring2{
  position:absolute;
  width:clamp(270px,36vw,460px);height:clamp(270px,36vw,460px);
  border:0.5px dashed var(--rule2);border-radius:50%;
  animation:spinLogo 60s linear infinite;
}

.hero-num{
  position:absolute;
  font-family:'Outfit',sans-serif;
  font-weight:900;
  font-size:clamp(8rem,20vw,28rem);
  color:rgba(201,106,58,0.03);
  line-height:1;right:-1rem;top:50%;
  transform:translateY(-50%);
  pointer-events:none;letter-spacing:-0.05em;
  white-space:nowrap;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn-terra{
  font-size:clamp(0.6rem,1vw,0.65rem);
  font-weight:600;letter-spacing:0.2em;
  text-transform:uppercase;
  background:var(--terra);color:var(--bg);
  padding:0.85rem clamp(1.25rem,3vw,2rem);
  transition:all 0.3s;display:inline-block;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
}
.btn-terra:hover{background:var(--terra2)}

.btn-outline{
  font-size:clamp(0.6rem,1vw,0.65rem);
  font-weight:500;letter-spacing:0.2em;
  text-transform:uppercase;
  border:0.5px solid var(--muted);color:var(--cream);
  padding:0.85rem clamp(1.25rem,3vw,2rem);
  transition:all 0.3s;display:inline-block;
}
.btn-outline:hover{border-color:var(--terra);color:var(--terra)}

/* ═══════════════════════════════════
   STATS BAR
═══════════════════════════════════ */
.stats-bar{
  display:grid;grid-template-columns:repeat(5,1fr);
  border-top:0.5px solid var(--rule);
  border-bottom:0.5px solid var(--rule);
  background:var(--bg2);
}

.stat-cell{
  padding:clamp(1.25rem,2.5vw,2rem) clamp(1rem,2.5vw,2.5rem);
  border-right:0.5px solid var(--rule);
  display:flex;flex-direction:column;gap:0.3rem;
}
.stat-cell:last-child{border-right:none}

.stat-num{
  font-family:'Outfit',sans-serif;
  font-weight:700;
  font-size:clamp(1.4rem,2.5vw,2rem);
  color:var(--terra);
}

.stat-label{
  font-size:clamp(0.56rem,0.9vw,0.65rem);
  letter-spacing:0.18em;text-transform:uppercase;color:var(--muted);
}

/* ═══════════════════════════════════
   SECTION COMMON
═══════════════════════════════════ */
section{
  padding:clamp(3.5rem,7vw,7rem) clamp(1.25rem,5vw,4rem);
  border-top:0.5px solid var(--rule);
}

.sec-label{
  font-family:'JetBrains Mono',monospace;
  font-size:clamp(0.56rem,0.9vw,0.6rem);
  letter-spacing:0.25em;text-transform:uppercase;
  color:var(--terra);
  display:flex;align-items:center;gap:1rem;
  margin-bottom:1.5rem;
}
.sec-label::before{content:'//';opacity:0.5}

.sec-title{
  font-family:'Outfit',sans-serif;
  font-weight:800;
  font-size:clamp(1.8rem,4vw,4rem);
  line-height:1;letter-spacing:-0.03em;
  text-transform:uppercase;color:var(--cream);
  margin-bottom:0.5rem;
}
.sec-title em{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;font-weight:300;
  font-size:1.1em;text-transform:none;
  color:var(--terra2);letter-spacing:0.02em;
}

/* ═══════════════════════════════════
   SERVICES
═══════════════════════════════════ */
#services{padding-bottom:clamp(2.5rem,5vw,5rem)}

.services-header{
  display:flex;align-items:flex-end;
  justify-content:space-between;
  margin-bottom:clamp(2rem,4vw,4rem);
  flex-wrap:wrap;gap:1rem;
}

.services-count{
  font-family:'Outfit',sans-serif;
  font-weight:900;
  font-size:clamp(3rem,8vw,6rem);
  color:rgba(201,106,58,0.06);
  line-height:1;letter-spacing:-0.05em;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:0.5px solid var(--rule);
}

.svc-card{
  padding:clamp(1.5rem,2.5vw,2.5rem) clamp(1.25rem,2vw,2rem);
  border-right:0.5px solid var(--rule);
  border-bottom:0.5px solid var(--rule);
  position:relative;overflow:hidden;
  transition:background 0.4s;cursor:pointer;
}
/* 3-col borders */
.svc-card:nth-child(3n){border-right:none}
.svc-card:nth-last-child(-n+3){border-bottom:none}

.svc-card::before{
  content:'';
  position:absolute;left:0;top:0;bottom:0;
  width:2px;background:var(--terra);
  transform:scaleY(0);transform-origin:bottom;
  transition:transform 0.4s ease;
}
.svc-card:hover{background:var(--bg3)}
.svc-card:hover::before{transform:scaleY(1)}

.svc-num{
  font-family:'JetBrains Mono',monospace;
  font-size:0.6rem;color:var(--muted);
  letter-spacing:0.1em;margin-bottom:1.5rem;display:block;
}

.svc-title{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:clamp(0.78rem,1.2vw,0.85rem);
  letter-spacing:0.08em;text-transform:uppercase;
  color:var(--cream);margin-bottom:0.75rem;
}

.svc-desc{
  font-size:clamp(0.75rem,1vw,0.8rem);
  color:var(--muted);line-height:1.75;margin-bottom:1.5rem;
}

.svc-process{
  display:none;flex-direction:column;gap:0.5rem;
  margin-top:1rem;padding-top:1rem;
  border-top:0.5px solid var(--rule);
}
.svc-card:hover .svc-process{display:flex}

.process-step-mini{display:flex;align-items:flex-start;gap:0.75rem}

.step-dot{
  width:4px;height:4px;background:var(--terra);
  border-radius:50%;flex-shrink:0;margin-top:0.45rem;
}

.step-text{
  font-size:0.72rem;color:var(--terra2);
  font-family:'JetBrains Mono',monospace;
  letter-spacing:0.05em;line-height:1.5;
}

/* ═══════════════════════════════════
   COMING SOON
═══════════════════════════════════ */
#coming-soon{background:var(--bg2)}

.coming-grid{
  display:grid;grid-template-columns:repeat(5,1fr);
  gap:0;margin-top:clamp(1.5rem,3vw,3rem);
  border:0.5px solid var(--rule);
}

.coming-card{
  padding:clamp(1.25rem,2vw,2rem) clamp(1rem,1.5vw,1.5rem);
  border-right:0.5px solid var(--rule);
  position:relative;overflow:hidden;
  opacity:0.5;transition:opacity 0.3s;
}
.coming-card:last-child{border-right:none}
.coming-card:hover{opacity:0.8}

.coming-tag{
  font-size:0.55rem;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--terra);
  border:0.5px solid var(--rule);
  padding:0.2rem 0.5rem;
  display:inline-block;margin-bottom:1rem;
}

.coming-title{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:clamp(0.72rem,1vw,0.8rem);
  letter-spacing:0.06em;text-transform:uppercase;
  color:var(--cream);margin-bottom:0.5rem;
}

.coming-desc{
  font-size:clamp(0.68rem,0.9vw,0.72rem);
  color:var(--muted);line-height:1.6;
}

.coming-lock{position:absolute;top:1.5rem;right:1.5rem;opacity:0.3}

/* ═══════════════════════════════════
   PROCESS
═══════════════════════════════════ */
#process{background:var(--bg)}

.process-flow{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:0;margin-top:clamp(2rem,4vw,4rem);
  border:0.5px solid var(--rule);
}

.pf-step{
  padding:clamp(1.75rem,3vw,3rem) clamp(1.25rem,2vw,2rem);
  border-right:0.5px solid var(--rule);position:relative;
}
.pf-step:last-child{border-right:none}

.pf-num{
  font-family:'Outfit',sans-serif;font-weight:900;
  font-size:clamp(3rem,6vw,5rem);
  color:rgba(201,106,58,0.07);
  line-height:1;margin-bottom:1.5rem;letter-spacing:-0.05em;
}

.pf-title{
  font-family:'Outfit',sans-serif;font-weight:600;
  font-size:clamp(0.72rem,1vw,0.8rem);
  letter-spacing:0.12em;text-transform:uppercase;
  color:var(--terra2);margin-bottom:0.75rem;
}

.pf-desc{
  font-size:clamp(0.75rem,1vw,0.8rem);
  color:var(--muted);line-height:1.8;
}

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
#contact{background:var(--bg2)}

.contact-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(2rem,6vw,6rem);
  margin-top:clamp(2rem,4vw,4rem);
}

.field-wrap{margin-bottom:clamp(1.25rem,2.5vw,2rem)}

.field-label{
  font-family:'JetBrains Mono',monospace;
  font-size:0.58rem;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--terra);
  display:block;margin-bottom:0.5rem;
}

.field-input,.field-ta{
  width:100%;background:transparent;
  border:none;border-bottom:0.5px solid var(--rule);
  color:var(--cream);font-family:'Outfit',sans-serif;
  font-size:clamp(0.82rem,1.2vw,0.9rem);
  font-weight:300;padding:0.6rem 0;
  outline:none;transition:border-color 0.3s;
  -webkit-appearance:none;border-radius:0;
}
.field-input:focus,.field-ta:focus{border-bottom-color:var(--terra)}
.field-input::placeholder,.field-ta::placeholder{color:var(--muted)}
.field-ta{min-height:5rem;resize:none}

.ci-item{
  padding:clamp(1rem,2vw,1.75rem) 0;
  border-bottom:0.5px solid var(--rule);
}
.ci-item:first-child{border-top:0.5px solid var(--rule)}

.ci-label{
  font-family:'JetBrains Mono',monospace;
  font-size:0.58rem;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--terra);margin-bottom:0.4rem;
}

.ci-val{
  font-family:'Cormorant Garamond',serif;
  font-weight:300;
  font-size:clamp(1rem,1.8vw,1.2rem);
  color:var(--cream);word-break:break-word;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer{
  padding:clamp(1.25rem,2vw,2rem) clamp(1.25rem,5vw,4rem);
  border-top:0.5px solid var(--rule);
  display:flex;align-items:center;
  justify-content:space-between;
  background:var(--bg);gap:1rem;flex-wrap:wrap;
}

.footer-copy{
  font-family:'JetBrains Mono',monospace;
  font-size:clamp(0.52rem,0.8vw,0.6rem);
  color:var(--muted);letter-spacing:0.12em;
}

.footer-tagline{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:clamp(0.85rem,1.2vw,1rem);
  color:var(--terra);
}

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
.reveal{
  opacity:0;transform:translateY(20px);
  transition:opacity 0.7s ease,transform 0.7s ease;
}
.reveal.on{opacity:1;transform:none}
.rd1{transition-delay:0.1s}.rd2{transition-delay:0.2s}
.rd3{transition-delay:0.3s}.rd4{transition-delay:0.4s}
.rd5{transition-delay:0.5s}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes spinLogo{to{transform:rotate(360deg)}}

.h-anim{opacity:0;animation:fadeUp 0.8s ease forwards}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:none}
}
.h1{animation-delay:0.2s}.h2{animation-delay:0.4s}
.h3{animation-delay:0.6s}.h4{animation-delay:0.8s}
.h5{animation-delay:1s}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────────────────
   ≤ 1280  coming-grid → 3 col
   ≤ 1100  services → 2 col | process → 2×2
   ≤  900  sidebar off-canvas | hero stacked | full mobile
   ≤  600  services → 1 col | stats → 2 col
   ≤  400  xs fixes
   ≥ 1920  services → 4 col (ultra-wide)
═══════════════════════════════════════════════════════ */

/* ── Ultra-wide ≥ 1920px ── */
@media(min-width:1920px){
  :root{--sidebar:88px}

  .services-grid{grid-template-columns:repeat(4,1fr)}
  .svc-card:nth-child(3n){border-right:0.5px solid var(--rule)}
  .svc-card:nth-child(4n){border-right:none}
  .svc-card:nth-last-child(-n+3){border-bottom:0.5px solid var(--rule)}
  .svc-card:nth-last-child(-n+4){border-bottom:none}
}

/* ── ≤ 1280px: coming-grid 5→3 ── */
@media(max-width:1280px){
  .coming-grid{grid-template-columns:repeat(3,1fr)}
  .coming-card{border-right:none;border-bottom:0.5px solid var(--rule)}
  .coming-card:nth-child(odd){border-right:0.5px solid var(--rule)}
  .coming-card:nth-child(3n){border-right:none}
  .coming-card:nth-last-child(-n+3){border-bottom:none}
}

/* ── ≤ 1100px: services 3→2, process 4→2×2 ── */
@media(max-width:1100px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .svc-card:nth-child(3n){border-right:0.5px solid var(--rule)}
  .svc-card:nth-child(2n){border-right:none}
  .svc-card:nth-last-child(-n+3){border-bottom:0.5px solid var(--rule)}
  .svc-card:nth-last-child(-n+2){border-bottom:none}

  .process-flow{grid-template-columns:repeat(2,1fr)}
  .pf-step{border-bottom:0.5px solid var(--rule)}
  .pf-step:nth-child(even){border-right:none}
  .pf-step:nth-last-child(-n+2){border-bottom:none}
}

/* ── ≤ 900px: full mobile layout ── */
@media(max-width:900px){
  :root{--sidebar:0px}

  /* Sidebar becomes off-canvas drawer */
  #sidebar{
    width:260px;
    transform:translateX(-100%);
    box-shadow:4px 0 40px rgba(26,14,7,0.2);
    /* Override desktop centering for vertical mobile layout */
    align-items:flex-start;
    padding:2rem 1.5rem;
  }
  #sidebar.open{transform:translateX(0)}

  /* Unrotate logo on mobile */
  #sidebar .sidebar-logo{
    animation:none;
    margin-bottom:2.5rem;
  }

  /* Stack links vertically, left-aligned, horizontal text */
  #sidebar .sidebar-links{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    width:100%;
  }

  #sidebar .sidebar-link{
    writing-mode:horizontal-tb;
    text-orientation:mixed;
    transform:none;
    font-size:0.72rem;
    letter-spacing:0.2em;
    padding:1rem 0;
    width:100%;
    border-bottom:0.5px solid var(--rule);
    transition:color 0.3s;
  }
  #sidebar .sidebar-link:last-child{border-bottom:none}
  #sidebar .sidebar-link:hover,
  #sidebar .sidebar-link.active{letter-spacing:0.25em}

  /* Unrotate copyright text */
  #sidebar .sidebar-bottom{
    writing-mode:horizontal-tb;
    transform:none;
    margin-top:2rem;
    font-size:0.6rem;
  }

  /* Show hamburger */
  .hamburger{display:flex}

  main{margin-left:0}
  #topbar{left:0}

  /* Hero stacks vertically */
  #hero{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-right{display:none}
  .hero-left{
    padding:clamp(2rem,6vw,4rem) clamp(1.25rem,5vw,2.5rem)
             clamp(2.5rem,6vw,4rem);
    min-height:calc(100svh - var(--topbar));
    justify-content:center;
  }

  /* Stats 5→3 */
  .stats-bar{grid-template-columns:repeat(3,1fr)}
  .stat-cell{border-right:none;border-bottom:0.5px solid var(--rule)}
  .stat-cell:nth-child(3n){border-right:none}
  .stat-cell:not(:nth-child(3n)){border-right:0.5px solid var(--rule)}
  .stat-cell:nth-last-child(-n+3){border-bottom:none}

  /* Services 2 col */
  .services-header{flex-direction:column;align-items:flex-start}

  /* Coming 3→2 */
  .coming-grid{grid-template-columns:repeat(2,1fr)}
  .coming-card{border-right:none;border-bottom:0.5px solid var(--rule)}
  .coming-card:nth-child(odd){border-right:0.5px solid var(--rule)}
  .coming-card:nth-child(even){border-right:none}
  .coming-card:nth-last-child(-n+2){border-bottom:none}

  /* Process 4→2 */
  .process-flow{grid-template-columns:repeat(2,1fr)}
  .pf-step:nth-child(even){border-right:none}
  .pf-step:nth-last-child(-n+2){border-bottom:none}

  /* Contact stack */
  .contact-grid{grid-template-columns:1fr;gap:3rem}

  footer{flex-direction:column;text-align:center;gap:0.75rem}
}

/* ── ≤ 600px ── */
@media(max-width:600px){
  /* Stats 3→2 */
  .stats-bar{grid-template-columns:repeat(2,1fr)}
  .stat-cell{border-right:none;border-bottom:0.5px solid var(--rule)}
  .stat-cell:nth-child(odd){border-right:0.5px solid var(--rule)}
  .stat-cell:nth-last-child(-n+2){border-bottom:none}

  /* Services 2→1 */
  .services-grid{grid-template-columns:1fr}
  .svc-card{border-right:none !important}
  .svc-card:nth-last-child(-n+2){border-bottom:0.5px solid var(--rule)}
  .svc-card:last-child{border-bottom:none}
  /* Always show process steps (no hover on touch) */
  .svc-process{display:flex}

  /* Coming 2→1 */
  .coming-grid{grid-template-columns:1fr}
  .coming-card{border-right:none !important}
  .coming-card:nth-last-child(-n+1){border-bottom:none}

  /* Process 2→1 */
  .process-flow{grid-template-columns:1fr}
  .pf-step{border-right:none !important;border-bottom:0.5px solid var(--rule)}
  .pf-step:last-child{border-bottom:none}

  .topbar-tagline{display:none}
}

/* ── ≤ 400px (XS) ── */
@media(max-width:400px){
  :root{--topbar:48px}

  .hero-title{font-size:clamp(2rem,9vw,2.8rem)}
  .hero-title-italic{font-size:clamp(1.6rem,7.5vw,2.2rem)}
  .btn-terra,.btn-outline{padding:0.75rem 1.25rem;font-size:0.6rem}

  /* Stats 2→1 */
  .stats-bar{grid-template-columns:1fr}
  .stat-cell{border-right:none !important}
  .stat-cell:last-child{border-bottom:none}

  section{padding-left:1rem;padding-right:1rem}
  #topbar{padding:0 0.75rem}
  .topbar-brand{display:none}
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  .hero-logo-rotate,.hero-ring1,.hero-ring2,.sidebar-logo{animation:none}
  .reveal,.h-anim,.hero-logo-static{opacity:1 !important;transform:none !important}
}