/* =========================================================
   Hansaria — Portfolio
   Design: dark, minimal, editorial
   ========================================================= */

/* -------- Design tokens -------- */
:root {
  /* Palette */
  --bg:            #0a0a0b;
  --bg-raise:      #111114;
  --bg-elev:       #16161a;
  --bg-card:       #101014;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --fg:            #f5f5f7;
  --fg-muted:      #a3a3ad;
  --fg-dim:        #6a6a75;
  --accent:        #22e29a;
  --accent-dim:    #1bb87c;
  --accent-soft:   rgba(34, 226, 154, 0.12);
  --danger:        #ff5577;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  /* Spacing rhythm */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(34, 226, 154, 0.35), 0 10px 40px rgba(34, 226, 154, 0.15);
}

/* -------- Base reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--accent-soft); color: var(--accent); }

.skip-link {
  position: absolute; top: -48px; left: 16px;
  background: var(--accent); color: #000;
  padding: 10px 14px; border-radius: 8px;
  font-weight: 600; z-index: 9999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}
.section-alt { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 760px;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-sub {
  color: var(--fg-muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  margin-top: 1.25rem;
  max-width: 56ch;
}

.accent { color: var(--accent); }

/* -------- Header / Nav -------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.1rem;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 4px 18px rgba(34, 226, 154, .35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 5px;
  background: var(--bg);
  border-radius: 3px;
}
.brand-name { color: var(--fg); }

.nav-desktop {
  display: flex; gap: 2rem;
  font-size: .95rem;
  color: var(--fg-muted);
}
.nav-desktop a { position: relative; padding: 6px 0; }
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem var(--gutter) 2rem;
  background: rgba(10,10,11,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  font-size: 1.05rem; color: var(--fg-muted);
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-of-type { border: 0; }
.nav-mobile .btn { margin-top: .5rem; justify-content: center; }

@media (max-width: 820px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open { background: rgba(10,10,11,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav-mobile { display: flex; }
}

/* -------- Buttons -------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem;
  font-size: .95rem; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #041812;
  --btn-bd: var(--accent);
  box-shadow: 0 8px 24px rgba(34, 226, 154, .25);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(34, 226, 154, .4); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover { --btn-bd: var(--accent); color: var(--accent); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(4rem, 9vw, 7rem);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
}
.glow-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34, 226, 154, .55) 0%, transparent 70%);
  top: -120px; left: -120px;
}
.glow-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(88, 120, 255, .35) 0%, transparent 70%);
  bottom: -100px; right: -60px;
}

.hero-inner { position: relative; z-index: 2; max-width: 960px; }

.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  font-size: .8rem; color: var(--fg-muted);
  letter-spacing: .02em;
  margin-bottom: 1.75rem;
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: .7; }
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 5.25rem);
  line-height: .98;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
}
.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.55;
}
.hero-ctas {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: .5rem; }
.stat-num {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
}
.stat-label { color: var(--fg-muted); font-size: .85rem; line-height: 1.35; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 2;
}
.scroll-cue svg {
  animation: bounce 2.4s var(--ease) infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* -------- Services -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.service-card {
  grid-column: span 6;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: .6rem;
}
.service-card p { color: var(--fg-muted); flex: 1; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.service-tags li {
  font-size: .75rem; color: var(--fg-muted);
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

@media (max-width: 820px) {
  .service-card { grid-column: span 12; padding: 1.75rem; }
}

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-top: 1.25rem;
  max-width: 58ch;
}
.about-principles {
  margin-top: 2.25rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.about-principles li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.about-principles strong {
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
}
.about-principles span { color: var(--fg-muted); }

@media (max-width: 820px) {
  .about-principles li { grid-template-columns: 1fr; gap: .35rem; }
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-raise) 100%);
  position: sticky;
  top: 100px;
}
.about-card header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.card-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--fg-muted);
}
.card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stack-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.stack-group:last-of-type { border-bottom: 0; }
.stack-heading {
  display: block;
  color: var(--fg-muted);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .65rem;
}
.stack-group ul {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.stack-group li {
  font-size: .85rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

/* -------- Process -------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.process-list li {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.process-list li:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.process-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.process-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  letter-spacing: -0.005em;
}
.process-list p { color: var(--fg-muted); font-size: .95rem; }

@media (max-width: 960px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-list { grid-template-columns: 1fr; } }

/* -------- Why grid -------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 0;
  transition: width .4s var(--ease);
}
.why-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.why-card:hover::before { width: 80px; }
.why-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .6rem;
  letter-spacing: -0.005em;
}
.why-card p { color: var(--fg-muted); font-size: .95rem; }

@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* -------- FAQ -------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 1.05rem; font-weight: 500;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.faq-icon::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item p {
  color: var(--fg-muted);
  padding: 0 0 1.5rem;
  max-width: 70ch;
  line-height: 1.65;
}
.faq-item[open] summary { color: var(--accent); }

/* -------- Contact -------- */
.contact-section {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 226, 154, .2) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  position: relative;
}
.contact-copy p {
  color: var(--fg-muted);
  margin-top: 1.25rem;
  max-width: 40ch;
}
.contact-meta {
  margin-top: 2.5rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact-meta li {
  display: flex; flex-direction: column;
  gap: .25rem;
}
.meta-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--fg-dim);
}
.contact-meta a { color: var(--fg); font-weight: 500; }
.contact-meta a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-full { grid-column: span 2; }
.field label {
  font-size: .85rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.field .optional { color: var(--fg-dim); font-weight: 400; }
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a3a3ad' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.hp-check {
  position: absolute !important;
  left: -5000px !important;
  opacity: 0 !important;
}

.form-footer {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: .5rem;
}
.form-note { color: var(--fg-dim); font-size: .8rem; max-width: 40ch; }
.btn-submit { min-width: 180px; justify-content: center; position: relative; }
.btn-submit.is-loading .btn-label,
.btn-submit.is-loading > span[aria-hidden="true"]:last-child { opacity: 0; }
.btn-submit .btn-loading { display: none; }
.btn-submit.is-loading .btn-loading {
  display: block;
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(4, 24, 18, .3);
  border-top-color: #041812;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  grid-column: span 2;
  min-height: 0;
}
.form-status.is-success,
.form-status.is-error {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-top: .5rem;
}
.form-status.is-success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.form-status.is-error {
  background: rgba(255, 85, 119, .08);
  color: var(--danger);
  border: 1px solid rgba(255, 85, 119, .3);
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .form-footer, .form-status { grid-column: span 1; }
}

/* -------- Footer -------- */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--fg-muted);
  font-size: .95rem;
  margin-top: 1rem;
  max-width: 32ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-nav > div { display: flex; flex-direction: column; gap: .65rem; }
.footer-heading {
  color: var(--fg);
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.footer-nav a { color: var(--fg-muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-dim); font-size: .85rem;
  flex-wrap: wrap; gap: 1rem;
}
.back-to-top { color: var(--fg-muted); }
.back-to-top:hover { color: var(--accent); }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

/* -------- Reveal animation -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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