:root{
  --bg:#0b0b0d;
  --fg:#f6f6f7;
  --muted:rgba(246,246,247,.72);
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --shadow:0 12px 40px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
  --gap:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1000px 600px at 30% 0%, rgba(168,140,255,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(0,255,255,.10), transparent 55%),
              var(--bg);
  color:var(--fg);
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 18px;}
.topnav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,11,13,.55);
  border-bottom:1px solid var(--stroke);
}
.topnav .row{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; gap:12px; align-items:center; text-decoration:none;}
.dot{width:10px;height:10px;border-radius:999px;background:#a88cff; box-shadow:0 0 0 6px rgba(168,140,255,.18);}
.brand b{letter-spacing:.2px}
.navlinks{display:flex; gap:14px; align-items:center; font-size:14px; color:var(--muted);}
.navlinks a{opacity:.9; text-decoration:none; padding:8px 10px; border-radius:999px; border:1px solid transparent;}
.navlinks a:hover{border-color:var(--stroke); background:rgba(255,255,255,.05);}

.hero{
  padding:84px 0 34px;
}
.kicker{color:var(--muted); font-size:14px; letter-spacing:.2px; margin-bottom:10px;}
h1{font-size:44px; line-height:1.06; margin:0 0 14px;}
.subhead{color:var(--muted); font-size:18px; line-height:1.45; max-width:74ch;}
.ctaRow{display:flex; gap:12px; margin-top:20px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px; border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  text-decoration:none;
  box-shadow: var(--shadow);
  font-size:14px;
}
.btn.primary{background:rgba(168,140,255,.18); border-color:rgba(168,140,255,.35);}
.btn:hover{transform:translateY(-1px);}

.sectionTitle{
  margin:28px 0 12px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
}
.sectionTitle h2{font-size:18px; margin:0;}
.sectionTitle .hint{font-size:13px; color:var(--muted);}

.scrolly{
  position:relative;
  border-top:1px solid var(--stroke);
  border-bottom:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.scene{
  position:relative;
  min-height: 160vh; /* each scene gets scroll space */
}
.scene .sticky{
  position:sticky;
  top:72px;
  height: calc(100vh - 92px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 0;
}
.scene .caption{
  position:absolute;
  left:0; right:0;
  bottom:20px;
  pointer-events:none;
}
.captionInner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.caption h3{margin:0; font-size:16px;}
.caption p{margin:6px 0 0; color:var(--muted); max-width:70ch; font-size:14px; line-height:1.4}
.progressPip{
  font-family:var(--mono);
  font-size:12px;
  color:rgba(246,246,247,.65);
  border:1px solid var(--stroke);
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.25);
}

.deviceStage{
  width:min(980px, 92vw);
  display:grid;
  place-items:center;
}
.device{
  position:relative;
  width:min(920px, 92vw);
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.device.laptop::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 50% -15%, rgba(168,140,255,.25), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(0,255,255,.14), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.device .bezel{
  position:absolute;
  inset:10px;
  border-radius:18px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.screen{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.screen img{width:100%; height:auto; display:block;}
.screenScroll{
  will-change: transform;
  transform: translateY(0px);
}
.screenLabel{
  position:absolute;
  top:12px; left:12px;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(246,246,247,.9);
}

.phoneWrap{
  position:relative;
  width:min(420px, 74vw);
}
.phone{
  position:relative;
  width:100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.phone .bezel{
  position:absolute;
  inset:10px;
  border-radius:30px;
  background:rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.phone .notch{
  position:absolute;
  top:10px; left:50%;
  transform:translateX(-50%);
  width:38%;
  height:18px;
  border-radius:0 0 18px 18px;
  background:rgba(0,0,0,.75);
  border:1px solid rgba(255,255,255,.10);
  z-index:3;
}
.frameBg{
  position:absolute;
  inset:-40px;
  background: url("../assets/placeholders/yard_bg.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
  opacity:0;
  transition: opacity .35s ease;
}
.scene.arMode .frameBg{opacity:.85;}
.phoneScreen{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.phoneScreen img{width:100%; height:100%; object-fit:cover; display:block;}
.fadeOut{opacity:0; transition: opacity .25s ease;}
.fadeIn{opacity:1; transition: opacity .25s ease;}

.workGrid{
  padding:44px 0 70px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.card{
  grid-column: span 6;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  text-decoration:none;
}
.card img{width:100%; height:220px; object-fit:cover; display:block; background:#111;}
.card .meta{padding:14px 14px 16px;}
.card .meta b{display:block; margin-bottom:6px;}
.tags{display:flex; gap:8px; flex-wrap:wrap;}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:rgba(246,246,247,.78);
}
footer{
  border-top:1px solid var(--stroke);
  padding:22px 0 40px;
  color:var(--muted);
}
.footerRow{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; align-items:center;}
.small{font-size:13px;}
@media (max-width:820px){
  h1{font-size:34px}
  .card{grid-column: span 12;}
  .captionInner{flex-direction:column; align-items:flex-start}
  .scene .sticky{top:64px; height: calc(100vh - 80px);}
}

/* --- Header hamburger menu --- */
.menuBtn {
  font-size: 22px;
  background: none;
  border: none;
  color: var(--fg);
  padding: 8px 6px;
  border-radius: 0;
  cursor: pointer;
}
.menuBtn:hover { opacity: .85; }
.menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 100;
}
.menuOverlay.open {
  opacity: 1;
  pointer-events: auto;
}
.menuPanel {
  position: absolute;
  top: 72px;
  right: 20px;
  background: rgba(20,20,24,.95);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menuPanel a,
.menuPanel button {
  background: none;
  border: none;
  color: var(--fg);
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
}
.menuPanel a:hover,
.menuPanel button:hover {
  background: rgba(255,255,255,.06);
}

/* Tech hero: preserve original vertical rhythm after removing CTAs */
.heroSpacer {
  height: 64px; /* roughly matches removed button row height + gap */
}
@media (min-width: 900px) {
  .heroSpacer { height: 72px; }
}

/* --- Tech page step 2: hero spacing + laptop title --- */
body[data-page="tech"] header.hero{
  /* move headline upward without changing overall hero height */
  padding:64px 0 54px; /* was 84px 0 34px */
}

#scene-chat{
  min-height: 320vh; /* 2x scroll length for running through a full chat */
}

/* Title that travels with the device stage */
.sceneTopTitle{
  position:absolute;
  top: 22px;
  left: 0;
  right: 0;
  pointer-events:none;
}
.sceneHeroTitle{
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.05;
  padding: 0 18px;
}
@media (min-width: 900px){
  .sceneTopTitle{ top: 28px; }
  .sceneHeroTitle{ padding: 0 24px; font-size: clamp(34px, 3.2vw, 52px); }
}

/* Move the scroll progress pip near the top for the chat scene */
#scene-chat .progressPip{
  position:absolute;
  top: 22px;
  right: 18px;
}
@media (min-width: 900px){
  #scene-chat .progressPip{ top: 28px; right: 24px; }
}


/* Step 2 fix: device titles sit above device, not page top */
.sceneDeviceTitle{
  font-size:35px;
  font-weight:600;
  letter-spacing:-0.015em;
  margin-bottom:12px;
  padding:0 18px;
}

@media (min-width:900px){
  .sceneDeviceTitle{
    padding:0 24px;
  }
}


/* Hide scroll percent helper */
.progressPip{ display:none !important; }

/* Tech: center the device title directly above the laptop */
body[data-page="tech"] #scene-chat .sceneDeviceTitle{
  text-align:center;
  padding-left:0;
  padding-right:0;
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
