/* ============================================================
   Asura Tech Studio — premium studio template
   Dark, editorial, conversion-focused. No dependencies.
   ============================================================ */

:root {
  --bg:        #0B0B0F;
  --bg-soft:   #101017;
  --surface:   #14141C;
  --surface-2: #1B1B25;
  --text:      #F6F4EF;
  --muted:     #9A9AA7;
  --faint:     #6A6A78;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --accent:    #C9A227;          /* champagne gold */
  --accent-2:  #E9D9A6;
  --accent-grad: linear-gradient(120deg, #E9D9A6 0%, #C9A227 45%, #A9812A 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: #14100a; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #14100a;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.section-sub {
  color: var(--muted);
  max-width: 46ch;
  margin-top: 1rem;
  font-size: 1.02rem;
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 640px; }

.section { padding: clamp(4.5rem, 11vw, 8rem) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.85rem; }

.btn-solid {
  background: var(--accent-grad);
  color: #17130a;
  box-shadow: 0 10px 30px -10px rgba(201, 162, 39, 0.55);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201, 162, 39, 0.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 8px 20px -8px rgba(201,162,39,0.6);
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--accent-2); font-style: italic; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.orb-1 { width: 480px; height: 480px; background: #C9A227; top: -120px; left: -80px; opacity: 0.28; animation: float1 18s var(--ease) infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: #5B6CFF; bottom: -140px; right: -60px; opacity: 0.22; animation: float2 22s var(--ease) infinite alternate; }
.orb-3 { width: 300px; height: 300px; background: #22D3EE; top: 30%; right: 22%; opacity: 0.12; animation: float1 26s var(--ease) infinite alternate; }

@keyframes float1 { to { transform: translate3d(40px, 60px, 0) scale(1.12); } }
@keyframes float2 { to { transform: translate3d(-50px, -40px, 0) scale(1.1); } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-stats dd { color: var(--faint); font-size: 0.9rem; }

/* marquee */
.marquee {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--faint);
}
.marquee-track span:not(:first-child) { }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SERVICES ============ */
.services { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 217, 166, 0.35);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.service-no {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.8rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--muted); font-size: 0.98rem; }
.service-card ul {
  list-style: none;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card li {
  font-size: 0.9rem;
  color: var(--faint);
  padding-left: 1.1rem;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ PROCESS ============ */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.process-list li {
  border-top: 2px solid var(--line);
  padding-top: 1.4rem;
  transition: border-color 0.4s var(--ease);
}
.process-list li:hover { border-color: var(--accent); }
.process-list span {
  font-family: var(--font-display);
  color: var(--accent-2);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.process-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0.5rem 0 0.5rem;
}
.process-list p { color: var(--muted); font-size: 0.92rem; }

/* ============ PORTFOLIO ============ */
.portfolio { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--accent-2); }
.filter.is-active { background: var(--text); color: #14100a; border-color: var(--text); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), opacity 0.4s var(--ease);
}
.work-card.hide { display: none; }
.work-card:hover { transform: translateY(-5px); border-color: rgba(233,217,166,0.4); }
.work-media {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--c1), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, var(--c2), transparent 55%),
    #0d0d14;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.3rem;
}
.work-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-card:hover .work-media::after { opacity: 1; }
.work-index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
  letter-spacing: 0.08em;
}
.work-meta { padding: 1.25rem 1.4rem 1.5rem; }
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.work-meta p { color: var(--faint); font-size: 0.85rem; margin-top: 0.35rem; }

/* ============ QUOTE ============ */
.quote-section { text-align: center; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 24ch;
}
@media (min-width: 700px) { .pull-quote { max-width: 30ch; } }
.quote-by { color: var(--muted); margin-top: 1.6rem; font-size: 0.95rem; }

/* ============ BLOG ============ */
.blog { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(233,217,166,0.35); }
.post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--c1), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, var(--c2), transparent 55%),
    #0d0d14;
}
.post-body { padding: 1.5rem 1.6rem 1.8rem; }
.post-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0.7rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.post-card h3 a { transition: color 0.25s var(--ease); }
.post-card h3 a:hover { color: var(--accent-2); }
.post-body > p { color: var(--muted); font-size: 0.94rem; }
.post-date { color: var(--faint); font-size: 0.82rem; margin-top: 1rem; }

/* ============ CONTACT ============ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.contact-list span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-list a, .contact-list p { font-size: 1.02rem; }
.contact-list a { transition: color 0.25s var(--ease); }
.contact-list a:hover { color: var(--accent-2); }

.socials { display: flex; gap: 1.5rem; }
.socials a {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}
.socials a:hover { color: var(--text); }

.contact-form {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--surface-2);
}
.field select { appearance: none; cursor: pointer; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--text); }

.footer-sub label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.8rem;
}
.footer-sub-row { display: flex; gap: 0.6rem; }
.footer-sub-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.footer-sub-row input:focus { outline: none; border-color: var(--accent-2); }
.footer-sub-note { font-size: 0.82rem; color: var(--accent-2); margin-top: 0.6rem; min-height: 1em; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.85rem;
}
.to-top { transition: color 0.25s var(--ease); }
.to-top:hover { color: var(--text); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-sub { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 1.25rem 0 0; }

  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-stats { gap: 1.5rem 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
