/* Ragesh J. Sharma — portfolio
   Themes: dark (default) and light, switched with data-theme on <html>.
   Accent colour: change "accent" in js/projects.js (or --accent below). Type: Figtree. */

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --accent: #07C42C;
  --accent-rgb: 7, 196, 44;
  --on-accent: #000;
  --accent-ink: var(--accent);

  --bg: #000;
  --bg-glass: rgba(0,0,0,.94);
  --panel: #0c0c0c;
  --panel-2: #141414;
  --line: rgba(255,255,255,.16);
  --line-strong: rgba(255,255,255,.5);
  --text: #fff;
  --body: rgba(255,255,255,.80);
  --mute: rgba(255,255,255,.62);
  --btn-bg: #fff;
  --btn-text: #000;
  --stroke: rgba(255,255,255,.78);
  --panel-g1: #1a1a1a;
  --panel-g2: #0d0d0d;
  --bar-bg: #202020;
  --bar-dot: #444;
  --bar-url: #111;
  --shadow: rgba(0,0,0,.6);
  --ph-text: rgba(255,255,255,.2);
  --silhouette: rgba(255,255,255,.1);

  --pad: clamp(20px, 4.2vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent-ink: color-mix(in srgb, var(--accent) 60%, #000);
  --bg: #fff;
  --bg-glass: rgba(255,255,255,.95);
  --panel: #f4f4f1;
  --panel-2: #ebebe7;
  --line: rgba(0,0,0,.14);
  --line-strong: rgba(0,0,0,.5);
  --text: #0a0a0a;
  --body: rgba(0,0,0,.78);
  --mute: rgba(0,0,0,.62);
  --btn-bg: #0a0a0a;
  --btn-text: #fff;
  --stroke: rgba(0,0,0,.72);
  --panel-g1: #f8f8f5;
  --panel-g2: #e8e8e3;
  --bar-bg: #e4e4df;
  --bar-dot: #c4c4be;
  --bar-url: #fff;
  --shadow: rgba(0,0,0,.25);
  --ph-text: rgba(0,0,0,.18);
  --silhouette: rgba(0,0,0,.1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s, color .35s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--pad); max-width: 1640px; margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 170px) 0; }
.center { text-align: center; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: clamp(2.6rem, 6.4vw, 6.2rem); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--accent-ink); margin-bottom: 20px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.lead-p { font-size: clamp(19px, 1.6vw, 23px); color: var(--body); max-width: 36em; }
.line { display: block; overflow: hidden; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.line-in { display: block; will-change: transform; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 1em 1.9em; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-white { background: var(--btn-bg); color: var(--btn-text); }
.btn-white:hover { background: var(--accent); color: var(--on-accent); }
.btn-green { background: var(--accent); color: var(--on-accent); }
.btn-green:hover { background: var(--btn-bg); color: var(--btn-text); }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.text-link { font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 3px; transition: color .3s; }
.text-link:hover { color: var(--accent-ink); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); transition: background .4s var(--ease), transform .5s var(--ease), box-shadow .4s;
}
.nav.solid { background: var(--bg-glass); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px 9px 9px 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); font-weight: 500; font-size: 17px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--body); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: .8em 1.5em; font-size: 16px; }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.theme-btn:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: block; } .theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
.menu-btn { display: none; font-weight: 600; font-size: 16px; padding: .7em 1.3em; border: 2px solid var(--line-strong); border-radius: 999px; }
.menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--pad) 32px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
.menu.open { visibility: visible; opacity: 1; }
.menu-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.menu nav a[aria-current="page"] { color: var(--accent-ink); }
.menu-foot { color: var(--mute); font-size: 16px; }

/* Hero: name behind and in front of a transparent portrait */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 78%), rgba(var(--accent-rgb), .26), transparent 70%); pointer-events: none; }
.hero-stage { position: relative; flex: 1; display: flex; align-items: center; padding: 96px 0 clamp(96px, 13vh, 140px); min-height: 520px; }
.name-stack { position: relative; width: calc(100% - var(--pad) * 2); margin-inline: auto; }
.name-layer { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .84; white-space: nowrap; }
.name-layer .fit { display: block; width: max-content; }
.name-layer.back { color: var(--text); }
.name-layer.back .l2, .name-layer.stroke .l2, .name-layer.front .l1 { visibility: hidden; }
.name-layer.stroke { display: none; position: absolute; inset: 0; z-index: 3; color: transparent; -webkit-text-stroke: 1.5px var(--stroke); pointer-events: none; }
.name-layer.front { position: absolute; inset: 0; z-index: 4; color: var(--text); pointer-events: none; }
.hero-person { position: absolute; z-index: 2; left: 50%; translate: -50% 0; width: max-content; bottom: 0; height: min(84svh, 940px); display: block; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero-person img { display: block; height: 100%; width: auto; max-width: none; }
.person-ph { height: 100%; aspect-ratio: 4 / 5; display: block; }
.person-ph svg { width: 100%; height: 100%; display: block; fill: var(--silhouette); }
.hero-foot { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px var(--pad) 34px; }
.hero-foot .cta-row { margin: 0; justify-content: flex-end; }
.roles { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 17px; font-weight: 500; color: var(--body); }
.roles span + span::before { content: "/"; margin-right: 22px; color: var(--accent-ink); }

/* Tools marquee */
.tools { padding: 0; border-block: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tools-label { padding: 28px var(--pad) 0; color: var(--mute); font-size: 16px; font-weight: 500; }
.mq { overflow: hidden; padding: 28px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 34s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.tool { display: flex; align-items: center; gap: 14px; padding: 0 clamp(28px, 4vw, 64px); font-size: clamp(20px, 2vw, 28px); font-weight: 600; white-space: nowrap; color: var(--text); }
.tool svg { width: 34px; height: 34px; flex: none; transition: color .3s; }
.tool:hover svg { color: var(--accent-ink); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Services list */
.svc-wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.svc-head { grid-column: 1 / span 5; position: sticky; top: 120px; }
.svc-head p { margin-top: 22px; }
.svc-head .btn { margin-top: 30px; }
.svc-list { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.svc { position: relative; padding: clamp(24px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.svc h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); transition: color .3s; }
.svc p { margin-top: 8px; color: var(--body); max-width: 30em; }
.svc::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.svc:hover { padding-left: 22px; }
.svc:hover::before { transform: scale(1); }
.svc:hover h3 { color: var(--accent-ink); }

/* Portfolio: stacked panels (home). Panels stay fully visible while stacking. */
.stack-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 70px); }
.stack { position: relative; padding-bottom: 8px; }
.panel { display: block; position: sticky; top: 84px; height: min(78vh, 720px); margin-bottom: 28px; }
.panel-in { position: relative; height: 100%; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-g1), var(--panel-g2)); display: block; transform-origin: 50% 0; box-shadow: 0 -24px 60px -20px var(--shadow); }
.panel-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 100%, var(--tone, rgba(var(--accent-rgb), .25)), transparent 70%); opacity: .45; pointer-events: none; }
.panel-top { position: absolute; z-index: 2; inset: 28px 34px auto 34px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-top h3 { font-size: clamp(2rem, 4vw, 3.8rem); }
.panel-tags { text-align: right; font-size: 18px; line-height: 1.7; color: var(--body); }
.panel-tags b { color: var(--text); font-weight: 600; }
.panel .shot { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(78%, calc((min(78vh, 720px) - 190px) * 1.6)); }
.panel:hover .shot { transform: translateY(-8px); }

/* Browser frame cards */
.shot { border-radius: 12px 12px 0 0; overflow: hidden; background: var(--bar-bg); border: 1px solid var(--line); border-bottom: 0; transition: transform .8s var(--ease); box-shadow: 0 30px 80px var(--shadow); }
.card .shot { border-radius: 12px; border-bottom: 1px solid var(--line); box-shadow: none; }
.bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--bar-bg); color: var(--mute); font-size: 13px; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bar-dot); flex: none; }
.bar span { margin-left: 10px; flex: 1; background: var(--bar-url); border-radius: 99px; padding: 3px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tone, #222); }
.img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 11vw, 10rem); font-weight: 700; color: rgba(255,255,255,.22); }
.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 0; height: 0; pointer-events: none; }
.cursor span { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 16px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s var(--ease); }
.cursor.on span { opacity: 1; transform: scale(1); }
.has-cursor [data-cursor] { cursor: none; }

/* About teaser / about page */
.scrub { font-size: clamp(2rem, 4.4vw, 4.4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; max-width: 22em; }
.scrub .w { display: inline-block; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(80% 70% at 50% 100%, rgba(var(--accent-rgb), .35), var(--panel-2) 72%); border-radius: 6px; }
.portrait img, .portrait .person-ph { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: 100%; width: auto; max-width: none; }
.about-text p { color: var(--body); margin-top: 20px; max-width: 36em; }
.about-text .btn { margin-top: 32px; }
.facts { margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { border-top: 1px solid var(--line); padding-top: 18px; }
.fact b { display: block; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.fact span { color: var(--body); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 70px); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 32px; transition: border-color .3s, transform .5s var(--ease); }
.step:hover { border-color: var(--accent); transform: translateY(-6px); }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 40px; }
.step h3 { font-size: 1.7rem; margin-bottom: 10px; }
.step p { color: var(--body); font-size: 17px; }

/* Services page rows */
.page-hero { padding: clamp(140px, 20vh, 210px) 0 clamp(40px, 5vw, 70px); }
.page-hero h1 { font-size: clamp(3.6rem, 11vw, 11rem); letter-spacing: -.035em; }
.page-hero.center .lead-p { margin-inline: auto; }
.page-hero .lead-p { margin-top: 24px; }
.svc-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 90px); padding: clamp(36px, 4.5vw, 64px) 0; border-top: 1px solid var(--line); }
.svc-detail h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.svc-detail p { color: var(--body); max-width: 34em; }
.svc-detail ul { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.svc-detail li { position: relative; padding-left: 26px; color: var(--text); }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* FAQ */
.faq { max-width: 960px; margin-inline: auto; margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 24px; font-weight: 400; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 64px 28px 0; color: var(--body); max-width: 44em; }

/* Portfolio page */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 40px auto clamp(44px, 6vw, 80px); }
.chip { padding: .85em 1.9em; border-radius: 999px; border: 2px solid var(--line-strong); font-weight: 600; font-size: 17px; line-height: 1; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(56px, 7vw, 110px) clamp(24px, 4vw, 64px); padding-bottom: clamp(90px, 12vw, 180px); }
.card { display: block; }
.proj { scroll-margin-top: 110px; }
.proj[hidden] { display: none; }
.proj:nth-child(even) { margin-top: clamp(40px, 8vw, 130px); }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 2px 0; }
.meta h3 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.meta .tag { color: var(--mute); font-size: 16px; text-align: right; }
.proj-desc { margin-top: 12px; max-width: 34em; color: var(--body); }
.proj-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { padding: .4em 1em; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.proj-foot .text-link { margin-left: auto; font-size: 16px; }
.proj.is-target .shot, .proj.is-target .social-box { outline: 3px solid var(--accent); outline-offset: 4px; }
.social-box { position: relative; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-g1), var(--panel-g2)); padding: clamp(28px, 3vw, 44px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.social-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 100% 100%, rgba(var(--accent-rgb), .35), transparent 70%); pointer-events: none; }
.social-box > * { position: relative; }
.social-box .platform { align-self: flex-start; }
.social-box .handle { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; word-break: break-word; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact-info dl { display: grid; gap: 22px; }
.contact-info dt { color: var(--mute); font-size: 15px; font-weight: 500; }
.contact-info dd { font-size: 22px; font-weight: 600; }
.contact-info dd a { border-bottom: 2px solid var(--accent); }
.contact-info dd a:hover { color: var(--accent-ink); }
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 17px; transition: border-color .25s, background .25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 24px) 55%, calc(100% - 18px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 170px; resize: vertical; }
.form-note { color: var(--mute); font-size: 15px; }

/* CTA + footer */
.cta { padding: clamp(90px, 12vw, 190px) 0 0; text-align: center; background: radial-gradient(60% 55% at 50% 100%, rgba(var(--accent-rgb), .22), transparent 70%); }
.cta h2 { font-size: clamp(3.2rem, 10vw, 10rem); letter-spacing: -.035em; }
.cta p { margin: 26px auto 0; color: var(--body); max-width: 30em; font-size: clamp(18px, 1.5vw, 22px); }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .cta-row .btn { font-size: 19px; padding: 1.1em 2.2em; }
.foot { margin-top: clamp(80px, 10vw, 150px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding: 26px var(--pad) 32px; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); text-align: left; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a:hover { color: var(--accent-ink); }

/* Mobile bottom bar */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 150; display: none; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-strong); box-shadow: 0 12px 40px var(--shadow); transform: translateY(160%); transition: transform .5s var(--ease); }
.dock.show { transform: none; }
.dock .btn { padding: .95em 1.3em; font-size: 16px; }
.dock .btn-green { flex: 1; }
.dock .dock-wa { width: 50px; height: 50px; padding: 0; flex: none; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; }
.dock .dock-wa svg { width: 24px; height: 24px; }

/* Page transition: rotating blinds */
.curtain { position: fixed; inset: 0; z-index: 500; display: flex; visibility: hidden; pointer-events: none; perspective: 1400px; }
.slat { flex: 1; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, #000), var(--accent) 60%); backface-visibility: hidden; will-change: transform; }
html.pt .curtain { visibility: visible; animation: curtainFail .01s 4s forwards; }
@keyframes curtainFail { to { visibility: hidden; } }

@media (max-width: 1080px) {
  .nav-links, .nav .nav-right > .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svc-head { grid-column: 1 / -1; position: static; margin-bottom: 36px; }
  .svc-list { grid-column: 1 / -1; }
  .about-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .facts { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .proj:nth-child(even) { margin-top: 0; }
  .panel { height: min(66vh, 560px); }
  .panel .shot { width: 92%; }
  .panel-top { inset: 20px 20px auto 20px; flex-direction: column; gap: 8px; }
  .panel-tags { text-align: left; font-size: 16px; }
}
@media (max-width: 720px) {
  .nav .logo span:last-child, .menu-top .logo span:last-child { white-space: nowrap; font-size: 16px; }
  body { font-size: 17px; padding-bottom: 88px; }
  .dock { display: flex; }
  .hero-person { height: min(47svh, 460px); }
  .hero-stage { align-items: flex-start; padding: 104px 0 0; min-height: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .hero-foot .cta-row { justify-content: flex-start; flex-wrap: nowrap; width: 100%; gap: 10px; }
  .hero-foot .cta-row .btn { flex: 1; padding: .95em .5em; font-size: 16px; text-align: center; }
  .roles { gap: 6px 20px; }
  .roles span + span::before { content: none; }
  .form .row { grid-template-columns: 1fr; }
  .svc-detail ul { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .foot { flex-direction: column; }
  .cta .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .mq-track { animation: none; }
}

/* Copy protection (turned on by SITE.protect in js/projects.js) */
html.protect body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protect input, html.protect textarea, html.protect select { -webkit-user-select: text; user-select: text; }
html.protect img { -webkit-user-drag: none; user-drag: none; }

/* Ad screenshots: one frame size (1600 x 782), any smaller image is centred with space above and below */
.shot.ad { border-radius: 12px; }
.shot.ad .img { aspect-ratio: 1600 / 782; background: var(--tone, #222); }
.shot.ad .img img { object-fit: contain; object-position: center; }
.panel .shot.ad { border-radius: 12px 12px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
