/* Professional, responsive Rangers theme */
:root{
  --bg0:#07101c;
  --bg1:#0b2f55;
  --bg2:#0f4f7a;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.14);
  --text:#eef6ff;
  --muted: rgba(238,246,255,.72);
  --blue:#2d7cff;
  --cyan:#7fe0ff;
  --accent:#2fe0ff;
  --radius: 18px;
  --radius2: 26px;
  --shadow: 0 22px 60px rgba(0,0,0,.38);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 540px at 18% 18%, rgba(45,124,255,.22), transparent 62%),
    radial-gradient(900px 520px at 78% 30%, rgba(127,224,255,.14), transparent 62%),
    linear-gradient(135deg, var(--bg0), #061a2d 40%, var(--bg1) 85%);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{display:block; max-width:100%; border-radius: 20px}
.container{width:min(1180px, calc(100% - 40px)); margin:0 auto}

/* HERO */
.hero{
  position:relative;
  padding: 20px 0 0;
  background:
    radial-gradient(800px 480px at 20% 30%, rgba(45,124,255,.20), transparent 60%),
    radial-gradient(800px 480px at 85% 40%, rgba(127,224,255,.13), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 10px);
  opacity:.14;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(45,124,255,.18), transparent 65%),
    radial-gradient(700px 380px at 70% 80%, rgba(47,224,255,.10), transparent 62%);
  pointer-events:none;
  mix-blend-mode: screen;
}

/* NAV */
.nav-wrap{
  position:sticky;
  top: 10px;
  z-index:50;
  padding: 10px 0;
}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(8,18,32,.55);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.02em;
}
.brand .mark{
  width:38px; height:38px;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
  flex:0 0 auto;
}
.brand .mark img{width:100%; height:100%; object-fit:cover}

.pillbar{
  display:flex; align-items:center; gap:8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  border:1px solid rgba(255,255,255,.10);
}
.pillbar a{
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(238,246,255,.80);
  font-weight:800;
  font-size: 14px;
}
.pillbar a:hover{background: rgba(255,255,255,.08); color: var(--text)}

.nav-btn{
  display:none;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
}
.nav-btn svg{width:18px; height:18px}
@media (max-width: 920px){
  .pillbar{display:none}
  .nav-btn{display:inline-flex; align-items:center; gap:10px}
}

/* MOBILE MENU */
.mobile{
  position:fixed; inset:0; z-index:70;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  display:none;
}
.mobile.open{display:block}
.sheet{
  position:absolute; left: 16px; right:16px; top: 84px;
  background: rgba(8,18,32,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.sheet-top{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.sheet a{
  display:block; padding: 12px 12px; border-radius: 14px;
  color: rgba(238,246,255,.88);
  font-weight:800;
}
.sheet a:hover{background: rgba(255,255,255,.08)}
.hr{height:1px; background: rgba(255,255,255,.10); margin: 12px 0}

/* HERO GRID */
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: center;
  padding: 34px 0 44px;
}
.hero-copywrap{max-width: 60ch}
.hero-visual{position:relative; min-height: 520px}
@media (max-width: 980px){
  .container{width: min(1180px, calc(100% - 32px));}
  .hero-grid{grid-template-columns:1fr; padding: 22px 0 30px}
  .hero-visual{min-height: 340px}
}

.bigtype{
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: .92;
  font-size: clamp(44px, 6.3vw, 110px);
  margin: 14px 0 0;
  text-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.bigtype .stroke{
  -webkit-text-stroke: 2px rgba(238,246,255,.92);
  color: transparent;
}
@media (max-width: 420px){
  .bigtype{font-size: 40px}
}

.hero-copy{
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 0;
  font-size: 16px;
}
.tag{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(8,18,32,.55);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(238,246,255,.88);
  font-weight:900;
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.tag .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(47,224,255,.12);
}
.cta-row{display:flex; gap: 12px; flex-wrap:wrap; margin-top: 22px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover{transform: translateY(-2px); background: rgba(255,255,255,.10); border-color: rgba(127,224,255,.45)}
.btn.cyan{
  background: linear-gradient(135deg, rgba(47,224,255,.95), rgba(127,224,255,.30));
  color:#06111f;
  border-color: rgba(127,224,255,.75);
  box-shadow: 0 18px 40px rgba(47,224,255,.18);
}

/* HERO VISUALS */
.ranger-layer{
  position:absolute;
  right: 0;
  bottom: 0;
  width: min(540px, 48vw);
  max-width: 600px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  opacity:.98;
}
.orb, .bolt{position:absolute; pointer-events:none; user-select:none; opacity:.75}
.orb{width: 180px; filter: drop-shadow(0 22px 44px rgba(45,124,255,.24)); animation: orbFloat 7s ease-in-out infinite;}
.bolt{width: 140px; filter: drop-shadow(0 18px 36px rgba(47,224,255,.22)); animation: boltDrift 6.5s ease-in-out infinite;}

.orb-1{left: -24px; top: 20px}
.orb-2{right: 46px; top: 36px; width: 130px; opacity:.55; animation-delay: -2s}
.bolt-1{left: 30%; top: -100px; width: 120px}
.bolt-2{right: 10px; top: 170px; width: 90px; opacity:.45; animation-delay: -3s}

@keyframes orbFloat{
  0%{transform: translate3d(0,0,0) rotate(0deg)}
  50%{transform: translate3d(0,-14px,0) rotate(6deg)}
  100%{transform: translate3d(0,0,0) rotate(0deg)}
}
@keyframes boltDrift{
  0%{transform: translate3d(0,0,0) rotate(-6deg)}
  50%{transform: translate3d(0,-10px,0) rotate(6deg)}
  100%{transform: translate3d(0,0,0) rotate(-6deg)}
}
@media (max-width: 980px){
  .ranger-layer{position:relative; right:auto; bottom:auto; width: 100%; max-width: 720px; margin: 0 auto}
  .orb-1{left: -12px; top: 0}
  .orb-2{right: -12px; top: 60px}
  .bolt-1{left: 10%; top: 80px; width: 90px; opacity:.35}
  .bolt-2{right: 8%; top: 20px; width: 70px; opacity:.28}
}

/* RIBBON (fix mobile joke bar) */
.ribbon{
  margin-top: 8px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.10);
}
.ribbon a{
  padding: 14px 16px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}
.ribbon .explore{background: linear-gradient(90deg, rgba(45,124,255,.95), rgba(15,79,122,.65))}
.ribbon .scroll{background: rgba(238,246,255,.90); color:#06111f; text-align:right}
@media (max-width: 520px){
  .ribbon{grid-template-columns:1fr}
  .ribbon a{padding: 10px 14px; font-size: 11px}
  .ribbon .scroll{text-align:left}
}

/* SECTIONS */
.section-paper{
  background:
    radial-gradient(900px 520px at 30% 10%, rgba(47,224,255,.12), transparent 62%),
    linear-gradient(180deg, rgba(8,18,32,.85), rgba(7,16,28,.92));
  color: var(--text);
  padding: 70px 0;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.paper-inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items:start;
}
@media (max-width: 980px){ .paper-inner{grid-template-columns:1fr} }

.paper-img{
  border-radius:26px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.pill{
  display:inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-weight: 900;
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.statement{
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 950;
  margin: 14px 0 0;
}
.statement-sub{
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top:  28px;
}
@media (max-width: 780px){ .stats{grid-template-columns:1fr} }
.stat{
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding: 18px;
  backdrop-filter: blur(12px);
}
.stat .n{
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.stat .l{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.sec{padding: 70px 0}
.head{display:flex; justify-content:space-between; gap:18px; align-items:flex-end; flex-wrap:wrap; margin-bottom: 22px}
.kicker{color: var(--accent); font-weight: 950; letter-spacing:.14em; text-transform: uppercase; font-size: 12px}
.h2{margin: 8px 0 0; font-size: clamp(26px, 3vw, 40px); letter-spacing:-.02em}
.lead{margin:0; color: var(--muted); line-height: 1.7; max-width: 65ch}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px){ .cards{grid-template-columns: repeat(2,1fr)} }
@media (max-width: 620px){ .cards{grid-template-columns: 1fr} }
.card{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 18px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.card:before{
  content:"";
  position:absolute; inset:-40px -60px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(45,124,255,.28), transparent 60%);
  transform: rotate(12deg);
}
.card h3{margin: 12px 0 8px; font-size: 18px}
.card p{margin:0; color: rgba(238,246,255,.74); line-height: 1.65; font-size: 14px}
.ico{
  width:44px; height:44px; border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.ico svg{width:22px;height:22px;fill:var(--text);opacity:.92}

/* Logo grid */
.logo-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1020px){.logo-grid{grid-template-columns: repeat(4,1fr)}}
@media (max-width: 620px){.logo-grid{grid-template-columns: repeat(3,1fr)}}
@media (max-width: 420px){.logo-grid{grid-template-columns: repeat(2,1fr)}}
.logo{
  border-radius: 20px;
  border:1px dashed rgba(255,255,255,.26);
  background: rgba(255,255,255,.05);
  padding: 18px;
  aspect-ratio: 1/1;
  display:grid; place-items:center;
}

/* Portfolio */
.filters{display:flex; gap:10px; flex-wrap:wrap}
.f{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(238,246,255,.84);
  font-weight: 900;
  cursor:pointer;
}
.f.active{
  background: rgba(47,224,255,.16);
  border-color: rgba(127,224,255,.45);
  color: var(--text);
}
.grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 1020px){.grid{grid-template-columns: repeat(2,1fr)}}
@media (max-width: 620px){.grid{grid-template-columns:1fr}}
.work{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
  backdrop-filter: blur(12px);
}
.work:hover{transform: translateY(-3px); border-color: rgba(127,224,255,.42)}
.thumb{aspect-ratio: 16/10; background:#0b1624}
.thumb img{width:100%;height:100%;object-fit:cover;padding:10px}
.meta{padding: 14px}
.meta .t{color: var(--accent); font-weight: 950; letter-spacing:.12em; text-transform: uppercase; font-size: 12px}
.meta h4{margin: 8px 0 6px; font-size: 18px}
.meta p{margin:0; color: var(--muted); line-height:1.6; font-size: 14px}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){.contact{grid-template-columns:1fr}}
.form{
  display:grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 780px){.form{grid-template-columns:1fr}}
.field{display:flex; flex-direction:column; gap: 8px}
label{font-size: 13px; color: rgba(238,246,255,.82); font-weight: 850}
input,textarea{
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: var(--text);
  outline:none;
}
textarea{min-height: 150px; resize: vertical}
input:focus, textarea:focus{border-color: rgba(127,224,255,.55); box-shadow: 0 0 0 4px rgba(127,224,255,.12)}
.form-actions{
  grid-column:1/-1;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.form-hint{color: rgba(255,255,255,.70); font-weight:800}
.notice{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  display:none;
}
.notice.show{display:block}
.notice.err{border-color: rgba(255,120,120,.45)}

.map-img{background: #ffffff;
  border-radius: 22px;
  padding: 14px;
  display: block;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  margin-bottom: 16px;}
.office{margin-top:14px; color: rgba(255,255,255,.78); line-height:1.7}
.office strong{color:#fff}

/* Footer */
.footer{
  padding: 26px 0 50px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.10);
}
.foot-grid{
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items:start;
}
@media (max-width: 920px){.foot-grid{grid-template-columns:1fr}}
.small{font-size: 13px; line-height:1.7}
.ul{list-style:none; padding:0; margin:0}
.ul li{margin: 8px 0}
.ul a{color: var(--muted)}
.ul a:hover{color: var(--text)}
.footer-brand{gap:10px}
.footer-mark{width:38px;height:38px;border-radius:14px;overflow:hidden;box-shadow:0 12px 26px rgba(0,0,0,.28)}
.footer-mark img{width:100%;height:100%;object-fit:cover}

/* Reveal */
.reveal{opacity:0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease}
.reveal.in{opacity:1; transform:none}

/* Back to top */
.toTop{
  position:fixed; right:16px; bottom:16px;
  width:48px; height:48px; border-radius: 16px;
  background: rgba(8,18,32,.55);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  display:grid; place-items:center;
  opacity:0; pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: var(--shadow);
}
.toTop.show{opacity:1; pointer-events:auto}
.toTop svg{width:22px;height:22px;fill: var(--text)}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .orb,.bolt{ animation:none !important; }
}

/* ===== Ranger hero zoom animation ===== */
.ranger-layer{
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(540px, 45vw);
  max-width: 600px;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  opacity: .98;

  /* animation */
  animation: rangerZoom 6s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Smooth zoom in–out */
@keyframes rangerZoom{
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile adjustment */
@media (max-width: 980px){
  .ranger-layer{
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    margin: 20px auto 0;

    /* slightly smaller zoom on mobile */
    animation: rangerZoomMobile 6s ease-in-out infinite;
  }

  @keyframes rangerZoomMobile{
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
}
/* ===== Continuous stroke ↔ fill loop ===== */

.bigtype .swap{
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.9);
  position: relative;

  animation: strokeFillLoop 4s ease-in-out infinite;
}

/* stagger timing automatically */
.bigtype .swap:nth-child(1){ animation-delay: 0s }
.bigtype .swap:nth-child(2){ animation-delay: .4s }
.bigtype .swap:nth-child(3){ animation-delay: .8s }
.bigtype .swap:nth-child(4){ animation-delay: 1.2s }
.bigtype .swap:nth-child(5){ animation-delay: 1.6s }
.bigtype .swap:nth-child(6){ animation-delay: 2s }

/* animation timeline */
@keyframes strokeFillLoop{

  /* stroke visible */
  0%, 45%{
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,.9);
  }

  /* fill visible */
  55%, 100%{
    color: rgba(255,255,255,.95);
    -webkit-text-stroke: 0px transparent;
  }
}
