/* Shared visual system for Javed's portfolio and project pages. */
:root {
  --bg: #faf9f6;
  --bg-soft: #f1f0eb;
  --ink: #1c1d22;
  --muted: #6e7079;
  --line: #e4e2dc;
  --grad: linear-gradient(125deg, #5143c9 0%, #806cf0 100%);
  --grad-soft: linear-gradient(135deg, rgba(81, 67, 201, .12), rgba(128, 108, 240, .07));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1220px;
  --nav-h: 5rem;
  --radius-pill: 999px;
  --shadow-card: 0 18px 55px rgba(30, 29, 43, .07);
}

html { scroll-padding-top: 6.25rem; }
body { background: var(--bg); color: var(--ink); }
::selection { background: #d9d2ff; color: #211c48; }
.container { width: min(100% - 3rem, var(--max)); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(100, 83, 220, .36);
  outline-offset: 3px;
}

/* Navigation */
.navbar {
  height: var(--nav-h);
  background: rgba(250, 249, 246, .91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(228, 226, 220, .72);
}
.navbar.scrolled { box-shadow: 0 8px 28px rgba(29, 28, 39, .045); }
.nav-container { width: min(100% - 3rem, var(--max)); }
.nav-logo img { height: 34px; }
.nav-menu { gap: 2rem; }
.nav-link {
  color: #73747a;
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-cta .btn { padding: .75rem 1.25rem; font-size: .72rem; }
.nav-toggle {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.btn {
  min-height: 3rem;
  padding: .82rem 1.35rem;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 700;
}
.btn i { font-size: .76rem; }
.btn-grad {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(28, 29, 34, .14);
}
.btn-grad:hover { background: #373340; box-shadow: 0 12px 25px rgba(28, 29, 34, .18); }
.btn-outline { border-color: #d9d7d1; }
.btn-outline:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.2rem) 0 5rem;
  min-height: min(800px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 34rem;
  aspect-ratio: 1;
  right: -17rem;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 108, 240, .1), rgba(128, 108, 240, 0) 68%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
}
.hero-copy { padding: .5rem 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #777781;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-eyebrow { margin-bottom: 1.45rem; }
.availability-dot {
  width: .48rem;
  height: .48rem;
  flex: 0 0 .48rem;
  border-radius: 50%;
  background: #53a77e;
  box-shadow: 0 0 0 4px rgba(83, 167, 126, .13);
}
.eyebrow-divider { color: #c5c2bb; }
.hero-title {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.2rem, 6.1vw, 5.65rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.065em;
  opacity: 0;
  transform: translateY(22px);
  animation: rise .8s var(--ease) .1s forwards;
}
.grad-text {
  background: linear-gradient(115deg, #5748c9 4%, #8471eb 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(22px);
  animation: rise .8s var(--ease) .25s forwards;
}
.hero-actions { gap: .75rem; opacity: 0; animation: rise .8s var(--ease) .4s forwards; }
.hero-meta {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.hero-meta > div { display: grid; gap: .15rem; padding: 0 1.5rem; border-left: 1px solid var(--line); }
.hero-meta > div:first-child { padding-left: 0; border-left: 0; }
.hero-meta strong { font-size: 1.08rem; font-weight: 700; letter-spacing: -.03em; }
.hero-meta span { color: var(--muted); font-size: .72rem; }
.hero-visual { order: 0; animation: rise .9s var(--ease) .25s both; }
.photo-frame {
  position: relative;
  width: min(100%, 465px);
  height: clamp(410px, 42vw, 510px);
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 30px;
  background:
    radial-gradient(circle at 52% 41%, rgba(117, 102, 207, .26), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(111, 101, 165, .23), transparent 38%),
    #24232e;
  box-shadow: 0 35px 80px rgba(31, 29, 51, .19);
  animation: none;
  isolation: isolate;
}
.photo-frame::before, .photo-frame::after { content: none; }
.portrait-halo {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 73%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,0));
  box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 58px rgba(255,255,255,.012);
}
.photo-frame img {
  position: absolute;
  z-index: 1;
  top: 11%;
  left: 50%;
  width: min(68%, 292px);
  height: auto;
  aspect-ratio: 1;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
  border: 6px solid rgba(250,249,246,.93);
  border-radius: 50%;
  background: #e7e5de;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  filter: none;
}
.frame-index {
  position: absolute;
  z-index: 2;
  top: 1.45rem;
  left: 1.55rem;
  color: rgba(255,255,255,.55);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.photo-badge {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  right: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  color: #f5f4f8;
  font-size: .68rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.photo-badge .availability-dot { width: .4rem; height: .4rem; flex-basis: .4rem; box-shadow: 0 0 0 3px rgba(83,167,126,.13); }
.portrait-caption {
  position: absolute;
  z-index: 2;
  right: 1.75rem;
  bottom: 1.65rem;
  left: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.17);
  color: #fff;
}
.portrait-caption strong { font-size: .94rem; font-weight: 600; }
.portrait-caption span { color: rgba(255,255,255,.6); font-size: .72rem; }

/* Moving capability strip */
.marquee {
  margin: 0;
  padding: .9rem 0;
  transform: none;
  border-block: 1px solid var(--line);
  background: #f4f2ed;
  box-shadow: none;
  color: #50515a;
}
.marquee-track { gap: 2.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .11em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }

/* Section rhythm and headings */
section { padding: 6.5rem 0; }
.section-title {
  margin-bottom: .85rem;
  font-size: clamp(2.25rem, 4.1vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.section-eyebrow { margin-bottom: 1rem; color: #777781; }
.section-desc { color: var(--muted); font-size: .98rem; line-height: 1.75; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-heading .section-title { margin-bottom: 0; }
.section-heading .section-desc { max-width: 21rem; margin-bottom: .15rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
  padding-bottom: .35rem;
  border-bottom: 1px solid #bbb7d7;
  color: #39334f;
  font-size: .82rem;
  font-weight: 700;
  transition: gap .25s var(--ease), color .2s ease;
}
.text-link:hover { gap: .9rem; color: #6655ce; }

/* Services */
.services { background: var(--bg); }
.services-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); }
.service-item {
  padding: 1.25rem 0;
  border-bottom-color: var(--line);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.035em;
  text-transform: none;
}
.service-item:first-child { border-top: 1px solid var(--line); }
.service-item:hover { padding-left: .4rem; }
.service-item:hover > span:first-child { background: none; color: #6455c9; -webkit-text-fill-color: currentColor; }
.service-arrow { width: 2.2rem; height: 2.2rem; border-color: #e0ded8; color: #706d7e; }
.service-item:hover .service-arrow { background: #ece9ff; border-color: #ece9ff; color: #5c4cc3; }

/* Featured project cards */
.projects-home { background: var(--bg-soft); }
.projects-home .section-title { margin-bottom: 0; }
.project-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(30,31,36,.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30,31,36,.025);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.project-row:last-child { border-bottom: 1px solid rgba(30,31,36,.08); }
.project-row:hover { transform: translateY(-5px); border-color: rgba(91,75,199,.2); box-shadow: var(--shadow-card); }
.project-row > div:first-child { order: 1; padding: 1.45rem 1.5rem 1.55rem; }
.project-row .tag { margin-bottom: .55rem; color: #7162ca; font-size: .67rem; letter-spacing: .12em; }
.project-row h3 { margin-bottom: .55rem; font-size: 1.22rem; font-weight: 650; letter-spacing: -.035em; line-height: 1.22; }
.project-row p { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.project-thumb {
  position: relative;
  order: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: 1.63;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dedaf2;
}
.project-thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 82% 17%, rgba(255,255,255,.7), transparent 24%), linear-gradient(140deg, rgba(91,75,199,.16), transparent 65%);
}
.thumb-fallback {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5e1f8, #f2eff9 68%, #e6e4f0);
  color: #6e5dcf;
}
.thumb-fallback::before {
  position: absolute;
  inset: 18% 12% 12%;
  content: "";
  border: 1px solid rgba(75,66,121,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 15px 28px rgba(43,39,74,.09);
}
.thumb-fallback::after {
  position: absolute;
  top: 29%;
  left: 23%;
  width: 34%;
  height: 5px;
  content: "";
  border-radius: 8px;
  background: #d9d5e8;
  box-shadow: 0 14px 0 #ebe9f1, 45px 14px 0 #ebe9f1, 0 34px 0 #ebe9f1, 64px 34px 0 #ebe9f1;
}
.thumb-fallback i {
  position: absolute;
  z-index: 1;
  right: 19%;
  bottom: 21%;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 12px;
  background: #6556c9;
  box-shadow: 0 9px 18px rgba(75,65,169,.2);
  color: #fff;
  font-size: 1rem;
}
.project-row:nth-child(2) .project-thumb,
.project-row:nth-child(2) .thumb-fallback { background: linear-gradient(135deg, #e2eee8, #f2f5f1 70%, #d8e4de); }
.project-row:nth-child(2) .thumb-fallback { color: #498267; }
.project-row:nth-child(2) .thumb-fallback i { background: #43856a; }
.project-row:nth-child(3) .project-thumb,
.project-row:nth-child(3) .thumb-fallback { background: linear-gradient(135deg, #f7e7e1, #f8f1ec 70%, #eedbd2); }
.project-row:nth-child(3) .thumb-fallback { color: #c05c48; }
.project-row:nth-child(3) .thumb-fallback i { background: #c15b48; }
.project-stat {
  position: absolute;
  z-index: 2;
  top: .85rem;
  right: .85rem;
  display: flex;
  align-items: center;
  gap: .38rem;
  padding: .38rem .65rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-pill);
  background: rgba(250,249,246,.92);
  text-align: left;
  backdrop-filter: blur(8px);
}
.project-stat strong { color: #5043a9; background: none; font-size: .76rem; letter-spacing: 0; -webkit-text-fill-color: currentColor; }
.project-stat span { color: #686772; font-size: .64rem; font-weight: 600; }
.project-links { margin-top: 1.05rem; gap: .55rem; }
.project-links a {
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  padding: .42rem .78rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .67rem;
  letter-spacing: .015em;
  text-transform: none;
}
.project-links a.primary { background: var(--ink); border-color: var(--ink); }
.project-links a:hover { border-color: #aea8d1; }

/* Other websites */
.sites { padding-top: 6rem; padding-bottom: 6rem; background: var(--bg); }
.sites-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.site-card {
  min-height: 140px;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.1rem 1.15rem;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
}
.site-card::before { height: 2px; background: var(--grad); }
.site-card:hover { transform: translateY(-3px); border-color: #c8c1ef; box-shadow: 0 12px 30px rgba(51,45,91,.07); }
.site-avatar { width: 2.45rem; height: 2.45rem; border-radius: 10px; background: #eeecf8; color: #5546b7; font-size: .82rem; }
.site-arrow { width: 2rem; height: 2rem; border-color: #eceaf1; color: #716c84; }
.site-card:hover .site-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-card-body h3 { font-size: .95rem; font-weight: 650; }
.site-card-body p { color: #81818a; font-size: .74rem; }

/* Credibility, skills, and contact */
.stats-bar { padding: 2.4rem 0; background: #24232d; }
.stats-row { text-align: left; }
.stats-row > div { padding: .25rem 1.8rem; border-left: 1px solid rgba(255,255,255,.13); }
.stats-row > div:first-child { border-left: 0; }
.stats-row strong { margin-bottom: .35rem; color: #fff; background: none; font-size: 2.5rem; letter-spacing: -.06em; -webkit-text-fill-color: currentColor; }
.stats-row span { color: rgba(255,255,255,.62); font-size: .71rem; letter-spacing: .1em; }
.about-skills { background: var(--bg); }
.about-skills > .container { max-width: 900px; }
.about-skills .section-title { max-width: 18ch; }
.skills-pills { gap: .5rem; margin-top: 1.75rem; }
.skills-pills span { padding: .47rem .8rem; border-color: #e6e4de; background: #f6f5f0; color: #5e5e67; font-size: .78rem; font-weight: 600; }
.contact { background: #f0efea; }
.contact-layout { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.contact-layout > div:first-child .section-title { max-width: 12ch; }
.contact-list { gap: .65rem; margin-top: 1.75rem; }
.contact-item { padding: .85rem .95rem; border-color: rgba(228,226,220,.9); border-radius: 12px; box-shadow: 0 2px 8px rgba(29,28,39,.025); }
.contact-item i { width: 2.15rem; height: 2.15rem; border-radius: 9px; background: #f0edff; color: #6152c5; }
.contact-item h4 { color: #87858d; font-size: .65rem; }
.contact-item p, .contact-item a { font-size: .89rem; font-weight: 600; }
.contact-form-wrap { padding: clamp(1.4rem,3vw,2.1rem); border-color: #e7e5df; border-radius: 18px; box-shadow: 0 20px 50px rgba(35,33,46,.06); }
.contact-form-wrap h3 { font-size: 1.25rem; font-weight: 650; }
.form-group label { color: #5d5c65; font-size: .74rem; font-weight: 650; }
.form-group input, .form-group textarea { border: 1px solid #e7e5df; border-radius: 9px; background: #faf9f6; font-size: .88rem; }
.form-group input:focus, .form-group textarea:focus { border-color: #9f94e2; box-shadow: 0 0 0 3px rgba(100,83,220,.11); }
.form-group textarea { min-height: 115px; }

/* Closing invitation and footer */
.cta-band { padding: 1rem 0 5.5rem; background: #f0efea; }
.cta-inner {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 24px;
  background: #24232d;
  color: #fff;
}
.cta-inner::after {
  position: absolute;
  top: -12rem;
  right: -3rem;
  width: 32rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02);
  content: "";
  pointer-events: none;
}
.cta-inner .eyebrow { margin-bottom: .85rem; color: rgba(255,255,255,.52); }
.cta-inner h2 { position: relative; z-index: 1; max-width: 14ch; font-size: clamp(2.25rem, 4.4vw, 3.7rem); font-weight: 600; letter-spacing: -.055em; }
.cta-orb {
  position: relative;
  z-index: 1;
  width: 132px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid rgba(255,255,255,.28);
  background: #7565dc;
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
  font-size: .83rem;
  line-height: 1.3;
  letter-spacing: .015em;
  text-transform: none;
  animation: none;
}
.cta-orb:hover { transform: scale(1.04); }
.cta-orb i { font-size: .72rem; }
.footer { background: var(--bg); border-top-color: var(--line); }
.footer-content { color: #777781; font-size: .79rem; }
.footer-social { gap: .45rem; }
.footer-social a { width: 2.1rem; height: 2.1rem; border-color: #e6e4de; color: #676771; }
.footer-social a:hover { background: var(--ink); border-color: var(--ink); }

/* Inner project listing page */
.page-hero { padding: calc(var(--nav-h) + 4.3rem) 0 2.75rem; }
.page-hero .section-title { max-width: 15ch; font-size: clamp(3rem, 6vw, 5rem); }
.page-hero .section-desc { max-width: 36rem; }
.page-hero .section-eyebrow { margin-bottom: 1.1rem; }
.page-hero + .projects-home .project-rows { grid-template-columns: 1fr; gap: 1rem; }
.page-hero + .projects-home .project-row {
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(220px,.72fr) 70px;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(30,31,36,.08);
  border-radius: 18px;
}
.page-hero + .projects-home .project-row > div:first-child { order: 0; padding: 0; }
.page-hero + .projects-home .project-row .project-thumb { order: 0; border-radius: 12px; aspect-ratio: 1.7; }
.page-hero + .projects-home .project-stat { position: static; display: grid; justify-items: end; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.page-hero + .projects-home .project-stat strong { font-size: 1.45rem; }
.page-hero + .projects-home .project-stat span { font-size: .72rem; }
.page-hero + .projects-home .project-row:hover { transform: translateY(-2px); }
.feature-list { margin-top: .8rem; }
.feature-list li { font-size: .83rem; }
.feature-list li::before { background: #6555cb; }
.page-hero + .projects-home .project-links { margin-top: 1rem; }
.page-hero + .projects-home .project-stat { text-align: right; }

/* Responsive */
@media (max-width: 960px) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
  .hero-grid { grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); gap: 2rem; }
  .hero-title { font-size: clamp(3rem, 6vw, 4.8rem); }
  .photo-frame { height: 430px; }
  .services-grid { gap: 3.5rem; }
  .project-rows { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sites-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .page-hero + .projects-home .project-row { grid-template-columns: minmax(0,1.1fr) minmax(190px,.8fr); }
  .page-hero + .projects-home .project-stat { display: none; }
}
@media (max-width: 768px) {
  .container, .nav-container { width: min(100% - 2rem, var(--max)); }
  .nav-menu {
    top: var(--nav-h);
    padding: 1.15rem 1rem 1.5rem;
    background: rgba(250,249,246,.98);
    box-shadow: 0 18px 24px rgba(29,28,39,.06);
  }
  .nav-menu.active { opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 1rem; }
  .nav-toggle { padding: .5rem; }
  .hero { padding: calc(var(--nav-h) + 2rem) 0 3.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-title { max-width: 11ch; font-size: clamp(3rem, 11vw, 4.5rem); }
  .hero-lead { max-width: 38rem; font-size: .98rem; }
  .hero-meta { margin-top: 2rem; }
  .hero-meta > div { padding-inline: .95rem; }
  .hero-meta > div:first-child { padding-left: 0; }
  .hero-meta strong { font-size: .98rem; }
  .hero-meta span { font-size: .64rem; }
  .hero-visual { justify-content: center; }
  .photo-frame { width: min(100%, 440px); height: clamp(360px, 100vw, 445px); margin-inline: auto; }
  .photo-frame img { width: min(67%, 265px); }
  .portrait-halo { width: 72%; }
  section { padding: 4.5rem 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .section-heading .section-desc { max-width: 32rem; }
  .services-grid, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .service-item { padding: 1.1rem 0; }
  .sites { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .sites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-card { min-height: 132px; }
  .stats-row { grid-template-columns: repeat(3,1fr); gap: .4rem; }
  .stats-row > div { padding: .2rem .8rem; }
  .stats-row strong { font-size: 2rem; }
  .stats-row span { font-size: .61rem; }
  .contact-layout { gap: 2rem; }
  .cta-band { padding: 0 0 4rem; }
  .cta-inner { min-height: 250px; padding: 2rem; }
  .page-hero { padding: calc(var(--nav-h) + 2.8rem) 0 1rem; }
  .page-hero + .projects-home .project-row { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.1rem; }
  .page-hero + .projects-home .project-row .project-thumb { grid-row: 1; width: 100%; }
  .page-hero + .projects-home .project-stat { display: none; }
}
@media (max-width: 540px) {
  .hero-eyebrow { flex-wrap: wrap; gap: .55rem; font-size: .59rem; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { justify-content: space-between; }
  .hero-meta > div { padding-inline: .55rem; }
  .hero-meta span { max-width: 8ch; line-height: 1.35; }
  .photo-frame { height: 370px; border-radius: 22px; }
  .photo-badge { top: .85rem; right: .8rem; padding: .5rem .62rem; font-size: .59rem; }
  .frame-index { top: 1.1rem; left: 1rem; font-size: .59rem; }
  .portrait-caption { right: 1rem; bottom: 1rem; left: 1rem; }
  .portrait-caption span { font-size: .64rem; }
  .section-title { font-size: clamp(2rem, 9vw, 2.9rem); }
  .project-rows { grid-template-columns: 1fr; }
  .project-thumb { aspect-ratio: 1.75; }
  .sites-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .site-card { min-height: 124px; padding: .85rem; }
  .site-card-body h3 { font-size: .84rem; }
  .site-card-body p { font-size: .67rem; }
  .site-arrow { width: 1.8rem; height: 1.8rem; }
  .stats-row { grid-template-columns: 1fr; text-align: center; gap: 1.1rem; }
  .stats-row > div { border-left: 0; padding: .25rem 0; }
  .stats-row strong { margin-bottom: .15rem; font-size: 1.8rem; }
  .stats-row span { font-size: .62rem; }
  .contact-item { align-items: flex-start; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta-orb { width: 104px; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
