/* ==========================================================================
   Shaheen Soft — site styles
   Rebuilt from scratch against the original theme's design tokens.
   Accent #29A587 · cream #F0EBE3 · dark #222831 · Roboto / Roboto Slab
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --accent: #29a587;
  --accent-dark: #1a7a4a;
  --bg: #f0ebe3;
  --bg-dark: #222831;

  --surface: #ffffff;
  --surface-2: #faf7f2;
  --ink: #262626;
  --ink-soft: #5d5d5d;
  --ink-faint: #8b8b8b;
  --line: rgba(38, 38, 38, 0.12);
  --watermark: rgba(38, 38, 38, 0.045);
  --shadow: 0 18px 50px -24px rgba(34, 40, 49, 0.35);
  --shadow-lg: 0 34px 80px -30px rgba(34, 40, 49, 0.45);

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto Slab", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1320px;
  --gutter: clamp(18px, 5vw, 48px);
  --section-y: clamp(46px, 6vw, 88px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-skin="dark"] {
  --bg: #222831;
  --surface: #2a313c;
  --surface-2: #31363c;
  --ink: #eaeaea;
  --ink-soft: #b3b9c2;
  --ink-faint: #7f8894;
  --line: rgba(234, 234, 234, 0.14);
  --watermark: rgba(234, 234, 234, 0.05);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 34px 80px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  /* `clip`, not `hidden`: hidden would make body a scroll container and
     break position:sticky on the project page's spec rail. */
  overflow-x: clip;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }

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

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: var(--section-y); }
.section + .section,
.hero + .section { padding-top: 0; }
.section--tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 5%, transparent)); }

/* Giant ghost word behind a section heading (the theme's "bgtitle"). */
.bgtitle {
  position: absolute;
  top: clamp(-6px, 1vw, 18px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(64px, 15vw, 190px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--watermark);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section > .wrap { position: relative; z-index: 1; }

.sec-head { text-align: center; margin-bottom: clamp(26px, 3.2vw, 46px); }
.sec-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font);
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-head .eyebrow::before,
.sec-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 50px); }
.sec-head p { max-width: 62ch; margin: 16px auto 0; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -14px var(--accent); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 18px 34px -14px var(--accent); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--accent);
}
.lnk svg { transition: transform 0.25s var(--ease); }
.lnk:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-block: 16px;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 58px; width: auto; transition: height 0.3s; }
.header.is-stuck .logo img { height: 46px; }
/* Light/dark logo swap. Driven by the same [data-skin] attribute the theme
   toggle sets, so it follows the mode instantly with no JS of its own. */
.logo__img--dark { display: none; }
[data-skin="dark"] .logo__img--light { display: none; }
[data-skin="dark"] .logo__img--dark { display: block; }

.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.1; }
.logo__text small { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.skin-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.skin-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-18deg); }
.skin-toggle .icon-sun { display: none; }
[data-skin="dark"] .skin-toggle .icon-sun { display: block; }
[data-skin="dark"] .skin-toggle .icon-moon { display: none; }

.burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background-color 0.2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: 80;
    flex-direction: column; justify-content: center; gap: 6px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }

  /* The sticky header uses backdrop-filter, which makes it the containing
     block for its position:fixed children — that would clip this overlay to
     the header strip. Drop the filter while the menu is open so the overlay
     is sized to the viewport again. */
  body.menu-open .header.is-stuck {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  /* Keep the logo and the close button above the overlay. */
  body.menu-open .logo,
  body.menu-open .header__actions { position: relative; z-index: 85; }
  .nav a { font-family: var(--font-head); font-size: 26px; padding: 12px 20px; }
  .nav a::after { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(104px, 14vw, 158px); padding-bottom: clamp(30px, 4vw, 56px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 60vw; aspect-ratio: 1; right: -18vw; top: -22vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; gap: clamp(36px, 6vw, 70px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }


.hero h1 { font-size: clamp(34px, 6.2vw, 68px); line-height: 1.06; }
.hero h1 .accent { color: var(--accent); }
.hero h1 span { display: block; }
.hero__intro { margin-top: 22px; max-width: 56ch; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- hero figure: portrait on a colour disc ---------- */
.hero__figure {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  isolation: isolate;
}

/* the filled circle behind the portrait */
.hero__disc {
  position: absolute;
  left: 50%; bottom: 7%;
  width: 84%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

/* the cut-out portrait, sized so the head breaks above the circle */
.hero__portrait {
  position: absolute;
  left: 50%; bottom: 7%;
  width: 88%; height: auto;
  transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 22px 34px rgba(34, 40, 49, 0.22));
}

/* dot grids */
.hero__dots {
  position: absolute;
  width: 34%; aspect-ratio: 1;
  background-image: radial-gradient(circle, currentColor 1.7px, transparent 1.8px);
  background-size: 21px 21px;
  color: var(--ink-faint);
  opacity: 0.45;
  z-index: 0;
}
.hero__dots--tr { top: 2%; right: -4%; -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 78%); mask-image: linear-gradient(225deg, #000 30%, transparent 78%); }
.hero__dots--bl { bottom: 1%; left: -7%; -webkit-mask-image: linear-gradient(45deg, #000 30%, transparent 78%); mask-image: linear-gradient(45deg, #000 30%, transparent 78%); }

.hero__pip {
  position: absolute; left: -2%; top: 46%;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-faint); opacity: 0.35; z-index: 0;
}

.hero__watermark {
  position: absolute; left: 50%; bottom: -2%;
  transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(42px, 9vw, 104px); line-height: 1;
  letter-spacing: -0.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-faint);
  opacity: 0.22; z-index: 0; pointer-events: none; user-select: none;
}

.hero__role {
  position: absolute; left: 0; top: 6%;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; z-index: 3;
}
.hero__role .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* floating stat pills */
.hero__pills { margin: 0; }
.hero-pill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 26px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(34, 40, 49, 0.16), var(--shadow);
  white-space: nowrap;
}
.hero-pill__value {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1;
  color: var(--ink);
}
.hero-pill__label {
  font-size: clamp(10px, 1.1vw, 12.5px); font-weight: 700;
  line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.hero-pill__label br + * , .hero-pill__label { display: inline-block; }
.hero-pill--1 { left: -6%;  bottom: 20%; }
.hero-pill--2 { right: -6%; bottom: 4%; }
.hero-pill--3 { left: -4%;  top: 8%; }

/* the second line of each pill label picks up the accent, as in the design */
.hero-pill__label { color: var(--ink); }
.hero-pill__label br ~ br { display: none; }

@media (max-width: 1100px) {
  .hero-pill { padding: 11px 18px; gap: 10px; }
  .hero-pill--1 { left: -2%; }
  .hero-pill--2 { right: -2%; }
}
@media (max-width: 560px) {
  .hero-pill { padding: 9px 14px; gap: 8px; box-shadow: 0 4px 0 rgba(34,40,49,.14), var(--shadow); }
  .hero-pill--1 { left: 0; bottom: 17%; }
  .hero-pill--2 { right: 0; bottom: 2%; }
  .hero-pill--3 { display: none; }
  .hero__dots { width: 30%; }
}


/* ==========================================================================
   Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }

.service {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }

.service__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); margin-bottom: 20px;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.service:hover .service__icon { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service__img {
  display: block; width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
  margin-bottom: 20px; background: var(--surface-2);
  transition: transform 0.35s var(--ease);
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service:hover .service__img { transform: rotate(-6deg) scale(1.05); }

.service__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.service h3 { font-size: 20px; margin-top: 6px; }
.service p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); flex: 1; }
.service .lnk { margin-top: 22px; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.filters button {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 2.6vw, 30px); }
.work { display: block; opacity: 1; transition: opacity 0.3s, transform 0.3s; }
.work[hidden] { display: none; }

.work__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 11; background: var(--surface-2);
  box-shadow: var(--shadow);
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.work:hover .work__media img { transform: scale(1.07); }
.work__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 22px;
  background: linear-gradient(0deg, rgba(20, 24, 30, 0.88) 0%, rgba(20, 24, 30, 0.25) 45%, transparent 75%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.work:hover .work__overlay, .work:focus-visible .work__overlay { opacity: 1; }
.work__overlay .lnk { color: #fff; }
.work__body { padding: 20px 4px 0; }
.work__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.work h3 { font-size: 21px; margin-top: 8px; transition: color 0.25s; }
.work:hover h3 { color: var(--accent); }
.work p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }

.works-more { display: flex; justify-content: center; margin-top: clamp(34px, 4vw, 52px); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 2.6vw, 28px); align-items: start; }

.plan {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.plan h3 { font-size: 22px; }
.plan__prefix { margin-top: 18px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.plan__price b { font-family: var(--font-head); font-size: clamp(34px, 4vw, 44px); font-weight: 700; line-height: 1; }
.plan__price span { font-size: 15px; font-weight: 600; color: var(--accent); }
.plan__desc { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan .btn { margin-top: 28px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: clamp(20px, 2.6vw, 28px); }

.quote {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote__mark { font-family: var(--font-head); font-size: 76px; line-height: 0.8; color: var(--accent); opacity: 0.18; }
.quote p { margin-top: 6px; font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.quote__stars { display: flex; gap: 3px; margin-top: 20px; color: #f5b301; }
.quote__who { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote__avatar {
  flex: none; width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__who b { display: block; font-family: var(--font-head); font-size: 16px; }
.quote__who small { color: var(--ink-faint); font-size: 13.5px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.contact-card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.contact-card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.contact-card b, .contact-card span { font-weight: 500; font-size: 15.5px; }
.contact-card a:hover { color: var(--accent); }

.form-card { padding: clamp(26px, 3.4vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h3 { font-size: clamp(22px, 2.6vw, 28px); }
.form-card > p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

/* honeypot — must stay invisible but reachable by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 16px; font-size: 13px; color: var(--ink-faint); text-align: center; }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14.5px; margin-bottom: 18px; border: 1px solid transparent; }
.alert--success { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: var(--accent); color: var(--accent-dark); }
[data-skin="dark"] .alert--success { color: var(--ink); }
.alert--error { background: rgba(207, 46, 46, 0.1); border-color: rgba(207, 46, 46, 0.5); color: #b32424; }
[data-skin="dark"] .alert--error { color: #ff9a9a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-block: clamp(32px, 4vw, 50px); border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__copy { font-size: 14px; color: var(--ink-soft); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer__links a { color: var(--ink-soft); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

/* floating whatsapp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.9);
  transition: transform 0.25s var(--ease);
}
.wa:hover { transform: scale(1.08); }

/* ==========================================================================
   Motion
   ========================================================================== */

/* Scroll reveal — JS adds .is-in as each element enters the viewport. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero animates on load rather than on scroll: it is already in view. */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(0.86); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero__text > * { animation: rise 0.85s var(--ease) backwards; }
.hero__text > :nth-child(1) { animation-delay: 0.05s; }
.hero__text > :nth-child(2) { animation-delay: 0.15s; }
.hero__text > :nth-child(3) { animation-delay: 0.25s; }
.hero__text > :nth-child(4) { animation-delay: 0.35s; }
.hero__disc { animation: pop 0.9s var(--ease) 0.15s backwards; }
/* Uses its own keyframes: the shared "rise" ends at transform:none, which
   would wipe the translateX(-50%) that centres the portrait on the disc. */
.hero__portrait { animation: rise-centred 1s var(--ease) 0.3s backwards; }
@keyframes rise-centred {
  from { opacity: 0; transform: translateX(-50%) translateY(28px); }
  to   { opacity: 1; transform: translateX(-50%); }
}
.hero__dots, .hero__pip, .hero__watermark { animation: fade 1.2s var(--ease) 0.7s backwards; }
.hero-pill--1 { animation: rise 0.7s var(--ease) 0.75s backwards; }
.hero-pill--2 { animation: rise 0.7s var(--ease) 0.9s backwards; }
.hero-pill--3 { animation: rise 0.7s var(--ease) 1.05s backwards; }
.hero__role { animation: rise 0.7s var(--ease) 0.65s backwards; }


/* The counter swaps to a monospace-ish tabular figure while ticking so the
   layout does not jitter as digits change width. */
.hero-pill__value { font-variant-numeric: tabular-nums; }

/* Anything that moves on hover gets the same easing curve. */
.work__media, .service, .plan, .quote, .contact-card, .pj-shot { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__text > *, .hero__disc, .hero__portrait, .hero__dots, .hero__pip, .hero__watermark, .hero-pill, .hero__role { animation: none; }
}

/* ==========================================================================
   Static pages / 404
   ========================================================================== */
.page-hero { padding-top: clamp(130px, 16vw, 180px); padding-bottom: clamp(30px, 4vw, 50px); text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5.4vw, 56px); }
.page-hero p { margin-top: 14px; color: var(--ink-soft); }

.prose { max-width: 76ch; margin-inline: auto; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 38px; }
.prose p { margin-top: 15px; color: var(--ink-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.center-stack { display: grid; place-items: center; gap: 18px; text-align: center; min-height: 52vh; padding-top: 120px; }
.center-stack .code { font-family: var(--font-head); font-size: clamp(80px, 16vw, 160px); line-height: 1; color: var(--accent); opacity: 0.25; }

/* ==========================================================================
   Carousel — scroll-snap track with buttons and dots.
   Native scrolling does the dragging/momentum; JS only drives the controls,
   so it still works (as a swipeable strip) if JS never runs.
   ========================================================================== */
.carousel { position: relative; }

.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* room for card hover-lift and shadows, clipped otherwise */
  padding: 10px 0 18px;
  margin: -10px 0 -18px;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__viewport { scroll-behavior: auto; } }

.carousel__track { display: flex; gap: clamp(18px, 2.4vw, 28px); }

.carousel__slide {
  flex: 0 0 calc((100% - 2 * clamp(18px, 2.4vw, 28px)) / 3);
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1000px) { .carousel__slide { flex-basis: calc((100% - clamp(18px, 2.4vw, 28px)) / 2); } }
@media (max-width: 680px)  { .carousel__slide { flex-basis: 100%; } }

/* slides stretch so cards in a row match height */
.carousel__track > .carousel__slide > * { height: 100%; }

.carousel__ctrl {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: clamp(24px, 3vw, 36px);
}
.carousel__btn {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}
.carousel__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }

.carousel__dots { display: flex; align-items: center; gap: 8px; }
.carousel__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: var(--ink-faint); opacity: 0.4;
  transition: opacity 0.25s, width 0.3s var(--ease), background-color 0.25s;
}
.carousel__dots button.is-active { opacity: 1; width: 26px; border-radius: 6px; background: var(--accent); }

/* Hide controls entirely when everything already fits on screen. */
.carousel[data-fits="true"] .carousel__ctrl { display: none; }
.carousel[data-fits="true"] .carousel__viewport { overflow-x: visible; }

.flip { transform: rotate(180deg); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  position: relative; z-index: 95;
  background: var(--accent); color: #fff;
  font-size: 14px;
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; }
.announce a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { opacity: 0.85; }
.announce__close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; opacity: 0.8;
}
.announce__close:hover { background: rgba(255, 255, 255, 0.18); opacity: 1; }
/* The bar sits in normal flow; the fixed header is offset by its height
   until the page scrolls, at which point the header returns to the top. */
body.has-announce { --announce-h: 42px; }
body.has-announce .header { top: var(--announce-h); }
body.has-announce .header.is-stuck { top: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }

.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow); }

.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.6vw, 30px);
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 1.9vw, 19px);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

.faq__sign { position: relative; flex: none; width: 22px; height: 22px; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--accent); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.faq__sign::before { width: 14px; height: 2.5px; }
.faq__sign::after { width: 2.5px; height: 14px; }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__answer { padding: 0 clamp(20px, 2.6vw, 30px) clamp(20px, 2.4vw, 26px); }
.faq__answer p { color: var(--ink-soft); font-size: 15.5px; }
.faq__answer p + p { margin-top: 12px; }

.faq__foot { text-align: center; margin-top: clamp(28px, 3.4vw, 40px); color: var(--ink-faint); font-size: 15px; }
.faq__foot a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   WhatsApp prompt after a contact submission
   ========================================================================== */
.wa-modal {
  border: 0; padding: 0; background: transparent;
  max-width: min(460px, calc(100vw - 32px));
  color: var(--ink);
}
.wa-modal::backdrop { background: rgba(20, 24, 30, 0.6); backdrop-filter: blur(3px); }

/* Fallback for browsers that render <dialog open> non-modally: centre it
   over the page rather than leaving it inline in the document flow. */
.wa-modal[open] {
  position: fixed; inset: 0; margin: auto;
  z-index: 200;
}

.wa-modal__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
  animation: wa-in 0.35s var(--ease);
}
@keyframes wa-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-modal__box { animation: none; } }

.wa-modal__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%; background: #25d366; color: #fff;
}
.wa-modal h3 { font-size: clamp(20px, 2.6vw, 25px); }
.wa-modal p { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }

.wa-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.wa-modal__actions form { margin: 0; }

.btn--wa { background: #25d366; color: #fff; box-shadow: 0 12px 26px -14px rgba(37, 211, 102, 0.9); }
.btn--wa:hover { background: #1da851; color: #fff; }

/* Skip link — off-screen until focused, then visible for keyboard users. */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  padding: 12px 22px; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--accent); color: #fff; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; }

.empty-note { text-align: center; color: var(--ink-faint); padding: 40px 0; }

/* The page must not scroll behind the open mobile menu. */
body.menu-open { overflow: hidden; }
