/* ============================================================
   style.css: public website
   Direction: a workshop service manual. Ink-blue pages, warm paper
   sections, one serif for voice, mono for the technical notes.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --bg: #07080B;
  --surface: #0E1015;
  --text: #F4EFE8;
  --accent: #FF9F43;
  --accent2: #2EE6C5;

  --bg-rgb: 7, 8, 11;
  --surface-rgb: 14, 16, 21;
  --text-rgb: 244, 239, 232;
  --accent-rgb: 255, 159, 67;
  --accent2-rgb: 46, 230, 197;

  --paper: #EFE9DD;
  --ink: #0B0C10;
  --ink-soft: #4A5262;
  --paper-line: rgba(10, 15, 24, 0.16);

  /* JS (applyAppearance) inko accent se calculate karta hai taaki kisi bhi colour par text padhne layak rahe */
  --accent-deep: #A85A10;
  --on-accent: #0B0C10;

  --radius: 3px;
  --radius-lg: 0px;
  --grain: 0.07;

  --muted: rgba(var(--text-rgb), 0.66);
  --line: rgba(var(--text-rgb), 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain: sab kuch thoda "chhapa hua" lagta hai, plastic nahi */
body:not(.is-admin)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ SMALL PARTS ============ */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { font-weight: 500; color: var(--accent); }
.on-paper .eyebrow { color: var(--ink-soft); }
.on-paper .eyebrow b { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--text); }
.btn--ghost { border: 1px solid rgba(var(--text-rgb), 0.35); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__bar {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: loader-slide 1.1s linear infinite;
}
@keyframes loader-slide {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(var(--bg-rgb), 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__text small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(var(--text-rgb), 0.3);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav__call svg { width: 15px; height: 15px; color: var(--accent); }
.nav__call:hover { border-color: var(--accent); color: var(--accent); }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__photo {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
  transition: opacity 1s ease;
  will-change: transform;
}
.hero--3d .hero__photo { opacity: 0.3; }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero--3d .hero__canvas { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.7) 40%, rgba(var(--bg-rgb), 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 38%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.7) 0%, rgba(var(--bg-rgb), 0) 22%);
}

.hero__inner { padding-bottom: clamp(36px, 6vw, 72px); }
.hero__kicker {
  margin-bottom: clamp(18px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title, .section__title, .why__item h3, .band blockquote, .footer__mark { word-spacing: 0.1em; }
.hero__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.3rem, 10.2vw, 9.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.hero__line { display: block; }
.hero__line--em { font-style: italic; font-weight: 400; color: var(--accent); }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.14em 0; margin-bottom: -0.14em; }
.word__in { display: inline-block; }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero__sub { max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(var(--text-rgb), 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { border-top: 1px solid var(--line); background: rgba(var(--bg-rgb), 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__facts ul { display: flex; flex-wrap: wrap; }
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px 18px 0;
  margin-right: 36px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__facts li + li { border-left: 1px solid var(--line); padding-left: 36px; }
.hero__facts b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding: 22px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  white-space: nowrap;
  color: rgba(var(--text-rgb), 0.78);
}
.marquee__item::after { content: "/"; font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { position: relative; padding: clamp(80px, 11vw, 170px) 0; }
.section--alt { background: var(--surface); }
.on-paper { background: var(--paper); color: var(--ink); }
.section__head { margin-bottom: clamp(40px, 6vw, 88px); }
.section__title {
  margin-top: 22px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}
.section__sub { margin-top: 22px; max-width: 46ch; font-size: 1.1rem; color: var(--muted); }
.on-paper .section__sub { color: var(--ink-soft); }

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 128px);
  align-items: center;
}
.about__fig { position: relative; }
.about__fig::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--ink);
  z-index: 0;
}
.about__fig img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}
.about__badge {
  position: absolute;
  z-index: 2;
  left: -18px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  padding: 18px 24px 16px;
  background: var(--ink);
  color: var(--text);
}
.about__badge strong {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.about__badge span {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about__fig--empty { aspect-ratio: 4 / 5; background: var(--ink); display: grid; place-items: center; }
.about__fig--empty::before { display: none; }
.about__copy .section__title { margin-bottom: 34px; max-width: 14ch; }
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}
.about__copy p:not(.about__lead):not(.eyebrow) { margin-top: 20px; max-width: 52ch; color: var(--ink-soft); }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--paper-line); }
.about__tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about__tags li::before { content: "+ "; color: var(--accent-deep); }

/* ============ SERVICES ============ */
.svc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.svc-wrap--solo { grid-template-columns: 1fr; }
.svc-list { border-bottom: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.35s ease, background 0.35s ease;
}
.svc__n { padding-top: 10px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); }
.svc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition: transform 0.35s ease, color 0.35s ease;
}
.svc p { margin-top: 10px; max-width: 46ch; color: var(--muted); }
.svc__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.svc__go svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.svc:hover h3, .svc:focus-within h3 { transform: translateX(10px); color: var(--accent); }
.svc:hover .svc__go, .svc:focus-within .svc__go { color: var(--accent); }
.svc:hover .svc__go svg { transform: translateX(4px); }

.svc-preview {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05); }
.svc-preview img.is-swap { animation: swap 0.55s ease; }
@keyframes swap { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.svc-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(var(--bg-rgb), 0.7));
  pointer-events: none;
}

/* ============ PHOTO BAND ============ */
.band { position: relative; isolation: isolate; background: var(--surface); display: grid; place-items: center; min-height: clamp(380px, 62vh, 640px); overflow: hidden; text-align: center; }
.band__photo { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; filter: saturate(0.7); will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--bg-rgb), 0.72); }
.band blockquote {
  max-width: 20ch;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

/* ============ EXPERTISE (spec sheet) ============ */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 7vw, 120px); }
.spec__row { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.spec__top { display: flex; align-items: baseline; gap: 14px; }
.spec__top h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.spec__top i { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(var(--text-rgb), 0.35); transform: translateY(-5px); }
.spec__top span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.spec__row p { margin-top: 10px; max-width: 44ch; color: var(--muted); font-size: 0.98rem; }

/* ============ WHY ============ */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.why__item { padding: 38px 40px 44px 0; border-bottom: 1px solid var(--paper-line); }
.why__item:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--paper-line); }
.why__item span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-deep); }
.why__item h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.why__item p { max-width: 38ch; color: var(--ink-soft); }

/* ============ PROCESS ============ */
.process { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 32px; counter-reset: p; }
.step { position: relative; padding-top: 40px; border-top: 1px solid rgba(var(--text-rgb), 0.35); }
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.2rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.step h3 { margin: 22px 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.02em; }
.step p { max-width: 28ch; color: var(--muted); }

/* ============ GALLERY (with before/after) ============ */
.gallery { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.shot.is-broken { display: none; }
.shot__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { display: flex; gap: 12px; margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.shot figcaption::before { content: "Fig."; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }

.ba { --pos: 50%; position: absolute; inset: 0; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(var(--bg-rgb), 0.7) center / 22px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 7l-5 5 5 5M16 7l5 5-5 5'/></svg>");
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__tag {
  position: absolute;
  top: 14px;
  padding: 4px 9px;
  background: rgba(var(--bg-rgb), 0.8);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--b { left: 14px; }
.ba__tag--a { right: 14px; color: var(--accent); }

/* ============ TESTIMONIALS ============ */
.testimonials { display: grid; gap: 0 clamp(28px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.quote { padding: 32px 0 36px; border-top: 1px solid var(--paper-line); }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote footer { margin-top: 22px; display: flex; flex-direction: column; }
.quote footer strong { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.quote footer span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__lines li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact__lines li:last-child { border-bottom: 1px solid var(--line); }
.info__label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info__value { display: block; white-space: pre-line; word-break: break-word; font-size: 1.05rem; }
.info__value--big { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -0.025em; line-height: 1.1; }
.info__value a { transition: color 0.2s ease; }
.info__value a:hover { color: var(--accent); }
.info__sub { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.contact__badge { margin-top: 28px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Repair ticket */
.ticket {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transform: rotate(0.6deg);
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 62px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.ticket__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 2px dashed var(--paper-line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticket__head b { font-weight: 500; }
.ticket__head span { color: var(--ink-soft); }
.ticket label { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.ticket input, .ticket textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1.15rem/1.4 var(--font-body);
  resize: vertical;
}
.ticket input::placeholder, .ticket textarea::placeholder { color: rgba(10, 15, 24, 0.38); font-weight: 400; }
.ticket input:focus, .ticket textarea:focus { outline: none; border-bottom-color: var(--accent-deep); }
.ticket .btn { width: 100%; margin-top: 32px; background: var(--ink); color: var(--text); }
.ticket .btn:hover { background: var(--accent-deep); color: var(--paper); }
.ticket__note { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer { position: relative; overflow: hidden; padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; align-items: flex-start; }
.footer__about p { margin-top: 14px; max-width: 30ch; color: var(--muted); font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__mark {
  margin: 56px 0 0 -0.04em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 15.5vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--text-rgb), 0.28);
  user-select: none;
  font-variation-settings: "opsz" 144;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__bottom p { max-width: 70ch; }

/* ============ PREVIEW BANNER ============ */
.preview-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 24px);
  padding: 10px 14px 10px 18px;
  transform: translateX(-50%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(var(--bg-rgb), 0.95);
  font-size: 0.82rem;
}
.preview-bar[hidden] { display: none; }
.preview-bar a {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  white-space: nowrap;
}

/* Reveal: JS hi hide/show karta hai (GSAP na ho to content hamesha dikhta hai) */

/* ============ RESPONSIVE ============ */
@media (max-width: 1060px) {
  .nav__links { gap: 22px; }
  .nav__call span { display: none; }
}

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__call { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 16px 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); border-bottom: 1px solid var(--line); }

  .about { grid-template-columns: 1fr; }
  .about__fig { max-width: 520px; margin: 0 22px 22px 0; }
  .svc-wrap { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .contact { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), 0.75) 0%, rgba(var(--bg-rgb), 0.35) 30%, rgba(var(--bg-rgb), 0.85) 75%, var(--bg) 100%);
  }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts ul { gap: 0 22px; }
  .hero__facts li, .hero__facts li + li { padding: 12px 0; margin: 0; border: 0; font-size: 0.64rem; }
  .hero__facts li:first-child { flex-basis: 100%; padding-bottom: 0; }
  .hero__facts b { font-size: 1.5rem; }
  .svc { grid-template-columns: 38px minmax(0, 1fr); padding: 24px 0; }
  .svc__go { grid-column: 2; padding-top: 6px; }
  .why { grid-template-columns: 1fr; }
  .why__item, .why__item:nth-child(even) { padding: 30px 0 34px; border-left: 0; }
  .about__badge { left: 0; bottom: 18px; }
  .ticket { transform: none; }
  .ticket::before, .ticket::after { display: none; }
  .preview-bar span { display: none; }
}


/* ============================================================
   3D STAGE: ek fixed Three.js canvas jo scroll ke saath laptop ko
   kholta, alag-alag parts mein khol deta aur wapas jodta hai.
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
#main { position: relative; z-index: 2; }

/* Halki roshni (atmosphere): accent ke do dhundhle glow */
body:not(.is-admin)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(var(--accent2-rgb), 0.09), transparent 70%);
}

html[data-stage="on"] .hero { background: transparent; }
html[data-stage="on"] .hero__photo { display: none; }
html[data-stage="on"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.82) 0%, rgba(var(--bg-rgb), 0.4) 40%, rgba(var(--bg-rgb), 0) 68%),
    linear-gradient(0deg, rgba(var(--bg-rgb), 0.85) 0%, rgba(var(--bg-rgb), 0) 30%);
}
html[data-stage="on"] .hero__facts { background: rgba(var(--bg-rgb), 0.35); }
html[data-stage="on"] .section:not(.on-paper):not(.section--alt) { background: transparent; }
html[data-stage="on"] .marquee { background: rgba(var(--bg-rgb), 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Hero: scroll ka ishara */
.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: 118px;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html[data-stage="on"] .hero__cue { display: flex; }

/* Services: right column mein ab 3D laptop dikhta hai (photo nahi) */
.svc-cap { display: none; }
@media (min-width: 921px) {
  html[data-stage="on"] .svc-preview { background: transparent; border-color: transparent; overflow: visible; }
  html[data-stage="on"] .svc-preview img, html[data-stage="on"] .svc-preview::after { display: none; }
  html[data-stage="on"] .svc-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  html[data-stage="on"] .svc-cap b { color: var(--accent); font-weight: 500; }
  html[data-stage="on"] .svc { cursor: default; }
  html[data-stage="on"] .svc.is-lit h3 { color: var(--accent); transform: translateX(10px); }
}

/* Cursor ke saath chalne wali roshni */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 62%);
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* 3D tilt cards */
[data-tilt] {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease;
  will-change: transform;
}
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-tilt].is-tilting::after { opacity: 1; }
.on-paper [data-tilt]::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.22), transparent 60%); }

/* Corner style: client Admin se badal sakta hai */
.quote, .shot__frame, .about__fig img, .ba, .ticket, .hero__facts, [data-tilt] { border-radius: var(--radius-lg); }

@media (max-width: 920px) {
  html[data-stage="on"] .hero__shade {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.55) 0%, rgba(var(--bg-rgb), 0.2) 28%, rgba(var(--bg-rgb), 0.88) 78%, var(--bg) 100%);
  }
  .hero__cue { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cue::after { animation: none; }
  [data-tilt] { transform: none !important; }
}

html:not([data-stage="on"]) .svc-preview--empty { display: none; }
@media (min-width: 921px) {
  html[data-stage="on"] .svc-wrap--solo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
