/* ==========================================================================
   Rohit Agrawal — developer portfolio
   Design system + layout. Everything is driven by the custom properties in
   :root, so a full re-skin means editing the top thirty lines of this file.
   ========================================================================== */

:root {
  /* colour */
  --bg:          #06070f;
  --bg-2:        #0a0c18;
  --surface:     #10131f;
  --surface-2:   #161a2a;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text:        #eef0f8;
  --muted:       #98a0bb;
  --faint:       #6b7391;
  --accent:      #6c7cff;
  --accent-2:    #a46cff;
  --accent-3:    #4fd1ff;
  --grad:        linear-gradient(120deg, var(--accent-3), var(--accent), var(--accent-2));

  /* type */
  --display: "Sora", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* space */
  --shell: min(1240px, 92vw);
  --gap:   clamp(72px, 11vw, 168px);
  --r:     18px;
  --r-lg:  26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------- base */

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

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

[hidden] { display: none !important; }

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

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

/* ----------------------------------------------------------------- helpers */

.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: var(--gap); position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-head { margin-bottom: clamp(40px, 5vw, 68px); max-width: 760px; }
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 60px);
  margin-top: 20px;
}
.section-head p {
  color: var(--muted);
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 62ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line-strong);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #070812;
  box-shadow: 0 10px 34px -12px rgba(108, 124, 255, .85);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(164, 108, 255, .9); }

.btn-ghost { background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(108,124,255,.08); }

.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ------------------------------------------------------------- background */

/* One fixed, clipping layer holds the canvas and the aurora blooms, so the
   glows can hang off the edges without ever creating a horizontal scrollbar. */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#stars {
  position: absolute;
  inset: 0;
  /* A canvas is a replaced element: without an explicit CSS size it lays out at
     its intrinsic (attribute) width, which is DPR-scaled and overflows the page. */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: absolute;
  filter: blur(90px);
  opacity: .5;
  border-radius: 50%;
}
.aurora-a { width: 52vw; height: 52vw; top: -18vw; left: -12vw; background: radial-gradient(circle, rgba(108,124,255,.45), transparent 65%); }
.aurora-b { width: 46vw; height: 46vw; top: 42vh; right: -16vw; background: radial-gradient(circle, rgba(164,108,255,.35), transparent 65%); }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- preloader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-name {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .04em;
}
.loader-bar {
  width: 190px; height: 2px;
  background: var(--line);
  margin: 22px auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  transition: width .3s linear;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding-block: 18px;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.stuck {
  background: rgba(6, 7, 15, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #070812;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px -8px rgba(108,124,255,.9);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 3.5px auto; transition: transform .35s var(--ease), opacity .25s; }
.burger.open i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0;
  z-index: 89;
  background: rgba(6,7,15,.97);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer nav { display: grid; gap: 8px; text-align: center; }
.drawer a { font-family: var(--display); font-size: clamp(28px, 7vw, 44px); }
.drawer a:hover { color: var(--accent-3); }

/* -------------------------------------------------------------------- hero */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.03);
  font-size: 13.5px;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #46e39b;
  box-shadow: 0 0 0 0 rgba(70,227,155,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(70,227,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,227,155,0); }
}

.hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  margin-top: 26px;
  font-weight: 600;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.hero.ready h1 .w > span { transform: translateY(0); }

.hero-intro {
  color: var(--muted);
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}

/* portrait */
.portrait-wrap { position: relative; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,7,15,.55));
  pointer-events: none;
}
.portrait-glow {
  /* Kept inside the wrapper's box — a negative inset here bleeds past the
     right edge of the page and creates a horizontal scrollbar. */
  position: absolute; inset: 0;
  background: var(--grad);
  filter: blur(60px);
  opacity: .25;
  z-index: -1;
  border-radius: 50%;
}

/* image placeholder — shown until a real file is dropped in */
.ph-slot {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 10px;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(108,124,255,.16), rgba(164,108,255,.10) 55%, transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 20px;
}
.ph-slot b { display: block; color: var(--muted); font-weight: 500; letter-spacing: .1em; }
.ph-slot .ico { font-size: 26px; opacity: .5; letter-spacing: 0; }
img.loaded + .ph-slot { display: none; }

/* Project media panel — an intentional brand treatment, not an empty slot.
   A real screenshot dropped at the project's image path covers it. */
.project-mono {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(108,124,255,.22), transparent 60%),
    radial-gradient(100% 80% at 95% 100%, rgba(164,108,255,.20), transparent 62%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.project-mono::before {
  /* faint grid, so the panel reads as designed rather than blank */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(85% 75% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 75% at 50% 40%, #000, transparent 78%);
}
.mono-mark {
  position: relative;
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 108px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .92;
}
.mono-label {
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
img.loaded + .project-mono { display: none; }

/* ------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--bg-2); padding: 30px 26px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat span { color: var(--faint); font-size: 13.5px; display: block; margin-top: 8px; line-height: 1.45; }

/* ---------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.service {
  position: relative;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(108,124,255,.16), transparent 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.service:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.service:hover::before { opacity: 1; }
.service-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .18em;
}
.service h3 { font-size: 22px; margin-top: 16px; }
.service p { color: var(--muted); font-size: 15.5px; margin-top: 14px; }
.service ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.service li {
  font-size: 14px; color: var(--faint);
  padding-left: 20px; position: relative;
}
.service li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--accent);
}

/* ---------------------------------------------------------------- projects */

.projects { display: grid; gap: 22px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  text-align: left;
  width: 100%;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.project:nth-child(even) .project-media { order: 2; }

.project-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--surface);
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.project:hover .project-media img { transform: scale(1.05); }

.project-body {
  padding: clamp(28px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.project h3 { font-size: clamp(26px, 3vw, 36px); margin-top: 14px; }
.project-summary { color: var(--muted); margin-top: 16px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .02em;
}
.project-more {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600;
  color: var(--text);
}
.project-more .arw { transition: transform .35s var(--ease); }
.project:hover .project-more .arw { transform: translateX(5px); }

/* case-study modal */
.modal {
  position: fixed; inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,10,.78); backdrop-filter: blur(10px); }
.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(28px, 4vw, 52px);
  transform: translateY(30px);
  transition: transform .5s var(--ease);
  overscroll-behavior: contain;
}
.modal.open .modal-panel { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); transform: rotate(90deg); }
.modal h3 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.modal-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  margin: 30px 0 6px;
}
.modal-metrics div { background: var(--surface); padding: 20px 18px; }
.modal-metrics b { font-family: var(--display); font-size: 24px; display: block; }
.modal-metrics span { font-size: 12.5px; color: var(--faint); }
.modal-block { margin-top: 32px; }
.modal-block h4 {
  font-size: 13px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .18em; color: var(--accent-3); font-weight: 500;
}
.modal-block p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.modal-foot { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----------------------------------------------------------------- process */

.process { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 34px 4px;
  align-items: start;
  transition: background .45s var(--ease);
}
.step:hover { background: var(--bg-2); }
.step-n { font-family: var(--mono); color: var(--faint); font-size: 13px; letter-spacing: .16em; padding-top: 6px; }
.step h3 { font-size: clamp(20px, 2.4vw, 28px); }
.step p { color: var(--muted); margin-top: 10px; max-width: 68ch; font-size: 15.5px; }
.step-inner { display: grid; grid-template-columns: minmax(200px, 1fr) 1.6fr; gap: clamp(14px, 3vw, 48px); }

/* ------------------------------------------------------------------- stack */

.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.stack-col h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.stack-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.stack-col li { color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- contact */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-lead h2 { font-size: clamp(36px, 5.6vw, 68px); margin-top: 20px; }
.contact-lead p { color: var(--muted); margin-top: 22px; max-width: 46ch; }
.contact-links { margin-top: 36px; display: grid; gap: 2px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), color .4s var(--ease);
}
.contact-link:hover { padding-left: 10px; color: var(--accent-3); }
.contact-link span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.contact-link span:last-child { font-size: 16.5px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .3s, background .3s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(108,124,255,.06);
}
.field select option { background: var(--surface); color: var(--text); }
.field.err input, .field.err select, .field.err textarea { border-color: #ff6b6b; }
.field small { color: #ff8f8f; font-size: 12.5px; min-height: 0; }
.form-note { color: var(--faint); font-size: 13px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 44px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-inner p, .footer-inner a { color: var(--faint); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

/* floating whatsapp */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 80;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #07200f;
  box-shadow: 0 14px 34px -12px rgba(37,211,102,.9);
  transition: transform .35s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--grad);
  z-index: 100;
}

/* ---------------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero h1 .w > span { transform: none; transition: none; }
  .dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(even) .project-media { grid-template-columns: 1fr; order: 0; }
  .project-media { min-height: 260px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .step-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .hero { padding-top: 108px; }
  .step { grid-template-columns: 64px 1fr; }
  .modal-metrics { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fab { right: 16px; bottom: 16px; }
}
