/* ==========================================================================
   NOMAN RIAZ — CREATIVE PORTFOLIO
   Design tokens: warm paper / deep pine green — editorial, not SaaS-default.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

/* -------------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  /* light theme (default) */
  --bg: #F6F4EF;
  --bg-raised: #FFFFFF;
  --ink: #17190F;
  --ink-soft: #565A4B;
  --ink-faint: #8A8D7D;
  --line: #E1DDD0;
  --accent: #1F4D3A;
  --accent-ink: #F6F4EF;
  --accent-soft: #E2E9DE;
  --shadow: 2px 24px 40px -20px rgba(23, 25, 15, 0.18);
  --overlay-scrim: rgba(17, 19, 12, 0.55);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  /* layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #12140E;
  --bg-raised: #1A1D14;
  --ink: #F3F1E7;
  --ink-soft: #B7BAA6;
  --ink-faint: #7C7F6C;
  --line: #2A2D20;
  --accent: #7FD9A6;
  --accent-ink: #0E1109;
  --accent-soft: #202A1F;
  --shadow: 2px 30px 50px -20px rgba(0, 0, 0, 0.6);
  --overlay-scrim: rgba(5, 6, 3, 0.7);
  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* -------------------------------------------------------------------------
   TYPE SCALE
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p { max-width: 62ch; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; max-width: 46ch; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.4rem;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1rem; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { margin-top: 1rem; }

.divider { height: 1px; background: var(--line); border: none; width: 100%; }

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; }

/* -------------------------------------------------------------------------
   HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.logo-mark-img {
  object-fit: cover;
  background: var(--bg-raised);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
@media (min-width: 940px) { .nav-links { display: flex; } }

@media (max-width: 480px) {
  .logo { font-size: 1rem; }
  .header-actions { gap: 0.6rem; }
  .btn.btn-sm { padding: 0.65rem 0.9rem; font-size: 0.82rem; }
  .btn.btn-sm svg { width: 13px; height: 13px; }
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.theme-toggle {
  width: 46px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  position: relative;
  flex-shrink: 0;
}
.theme-toggle .knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform var(--dur-fast) var(--ease);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .theme-toggle .knob { transform: translateX(20px); }
.theme-toggle .knob svg { width: 12px; height: 12px; color: var(--accent-ink); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 99;
  background: var(--bg);
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(7rem, 14vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}
.hero-copy .kicker { display: inline-block; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy p.lead { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }

.hero-proof { display: flex; align-items: center; gap: 0.9rem; }
.avatar-stack { display: flex; }
.avatar-stack img, .avatar-stack .avatar-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: var(--accent-soft);
}
.avatar-stack :first-child { margin-left: 0; }
.hero-proof-text { font-size: 0.9rem; color: var(--ink-soft); }
.hero-proof-text strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 17, 10, 0.45) 100%);
}
#hero-3d {
  position: absolute;
  top: -34px; right: -34px;
  width: 130px; height: 130px;
  z-index: 2;
  pointer-events: none;
}

.stats-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 700px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.6rem 1.2rem;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .stat { border-bottom: none; } }
.stat:nth-child(2n) { border-right: none; }
@media (min-width: 700px) {
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: none; }
}
.stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--accent); font-weight: 600; }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* -------------------------------------------------------------------------
   SERVICES — film-strip rows, not identical SaaS cards
   ------------------------------------------------------------------------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background var(--dur-fast) var(--ease);
}
@media (min-width: 780px) {
  .service-row { grid-template-columns: 0.6fr 2fr 1.6fr auto; gap: 2rem; }
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }
.service-main h3 { margin-bottom: 0.4rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tags span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.service-row:hover { background: var(--bg-raised); }
.service-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  justify-self: start;
}
@media (min-width: 780px) { .service-link { justify-self: end; } }
.service-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.service-row:hover .service-link svg { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   PORTFOLIO — varied-size grid, not uniform cards
   ------------------------------------------------------------------------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}
@media (min-width: 700px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid .project-card.is-featured { grid-column: span 2; }
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  min-height: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  cursor: pointer;
}
@media (min-width: 1040px) {
  .project-card.is-featured { aspect-ratio: 8/5; min-height: 0; }
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
.project-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 7, 0.85) 100%);
  z-index: 1;
}
.project-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.2rem;
  color: #F3F1E7;
}
.project-info .cat { font-size: 0.78rem; opacity: 0.8; margin-bottom: 0.2rem; }
.project-info h3 { color: #F3F1E7; font-size: 1.15rem; }
.play-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #12140E;
  display: flex; align-items: center; justify-content: center;
}
.play-badge svg { width: 16px; height: 16px; margin-left: 2px; }

/* -------------------------------------------------------------------------
   WHY WORK WITH ME
   ------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) { .why-grid { grid-template-columns: 0.9fr 1.1fr; } }
.why-visual {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
  padding: 2.4rem;
  aspect-ratio: 4/3.4;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .why-visual { background: var(--bg-raised); border: 1px solid var(--line); }
.point-list { display: grid; gap: 1.6rem; margin-top: 2rem; }
.point-list li { display: flex; gap: 1rem; }
.point-num {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.point-list h4 { margin-bottom: 0.25rem; }
.point-list p { font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   PROCESS TIMELINE
   ------------------------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 780px) { .process-list { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; } }
.process-step {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
@media (min-width: 780px) {
  .process-step { border-top: none; padding-top: 1.6rem; }
  .process-step::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--line);
  }
}
.process-step .step-index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  display: block;
}
.process-step h4 { margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonial-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin: 0 -1.5rem;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .testimonial-track { margin: 0; padding-inline: 0; } }
.testimonial-track::-webkit-scrollbar { height: 5px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(88%, 400px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.testimonial-card .quote-mark { color: var(--accent); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 0.6rem; }
.testimonial-card p.quote { color: var(--ink); font-size: 1.02rem; margin-bottom: 1.6rem; }
.testimonial-person { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0; }
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.82rem; color: var(--ink-faint); }

/* -------------------------------------------------------------------------
   CONTACT CTA BAND
   ------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: left;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-band { background: var(--bg-raised); border: 1px solid var(--line); }
.cta-band h2 { color: var(--bg); max-width: 16ch; }
[data-theme="dark"] .cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(246,244,239,0.72); margin-top: 1rem; margin-bottom: 2rem; }
[data-theme="dark"] .cta-band p { color: var(--ink-soft); }

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  margin-bottom: 2.4rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-faint);
}

/* -------------------------------------------------------------------------
   INQUIRY MODAL
   ------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  background: var(--overlay-scrim);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: scale(0.94) translateY(10px);
  transition: transform var(--dur-med) var(--ease);
  box-shadow: var(--shadow);
}
.modal-overlay.is-open .modal-box { transform: scale(1) translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.modal-close svg { width: 14px; height: 14px; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }

.modal-alt {
  display: flex; gap: 0.8rem; margin-top: 1.4rem;
}
.modal-alt .btn-ghost { flex: 1; justify-content: center; }
.modal-divider { text-align: center; font-size: 0.8rem; color: var(--ink-faint); margin: 1.2rem 0 0.4rem; }

/* -------------------------------------------------------------------------
   SCROLL REVEAL (single orchestrated pattern, not per-element chaos)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* -------------------------------------------------------------------------
   PAGE HEADER (About / Services / Portfolio / Contact intros)
   ------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(7.5rem, 14vw, 9.5rem); padding-bottom: 2rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero p.lead { margin-top: 1.2rem; }

/* misc */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
