/* Yaser Nazzal portfolio — static replica of Figma frame 40011047:1837 (1440px design) */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Fixed pill ends at 116px (50px top offset + 66px height). */
section[id] { scroll-margin-top: 116px; }

:root {
  --bg-dark: #252223;
  --bg-alt: #2b2829;
  --bg-card: #383435;
  --bg-panel: #242122;
  --bg-statement: #433e3f;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --muted: #999999;
  --muted-blue: #aab2c3;
  --muted-light: #c8cedc;
  --purple: #8473d9;
  --purple-light: #9b87ff;
  --purple-pale: #bfb2ff;
  --lavender: #eae6ff;
  --lavender-text: #463d73;
  --ink: #0a0d13;
  --hairline: rgba(255, 255, 255, 0.1);
  --card-border: #6f686a;
  --section-border: #4e4649;
  --input-border: #5e5558;
  --req-red: #d92a2a;
  --progress-inactive: #d2d6db;
  --progress-green: #39a634;
}

body {
  font-family: 'Cairo', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 1220px) {
  .container { padding-left: 0; padding-right: 0; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--off-white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 21.7px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.85; }

/* "Let's Connect Fast" button: Figma spec (h40/pad16/radius4, transparent w/ 1px white border)
   differs from .btn on nearly every axis (h44/radius12/off-white fill), so it's its own class,
   not a .btn variant. Hover state unspecified in Figma; ponytail: subtle white-tint fill picked. */
.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-connect:hover { background: rgba(255, 255, 255, 0.08); }
.btn-connect svg, .btn-connect img { flex: none; width: 24px; height: 24px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 1012px;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
/* Figma: solid #252223 fill with COLOR blend mode on top of the bg image */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #252223;
  mix-blend-mode: color;
}
.hero-visual {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 1012px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  left: 744px;
  top: 280px;
  width: 653px;
  height: 655px;
  isolation: isolate;
}
/* Figma applies a #bfb2ff HUE-blend fill over the (red) ring image.
   ponytail: hue-rotate approximates it; mask-based blend fails on file:// CORS */
.hero-ring img { width: 100%; height: 100%; filter: hue-rotate(262deg) saturate(0.9); }
.hero-portrait {
  position: absolute;
  left: 766px;
  top: 205px;
  width: 544px;
  height: 807px;
}
.hero-content {
  position: absolute;
  top: 333px;
  left: 50%;
  width: 1440px;
  transform: translateX(-50%);
  padding-left: 130px;
}
.hero-content h1 {
  width: 618px;
  max-width: 100%;
  font-size: 96px;
  font-weight: 700;
  line-height: 101px;
  letter-spacing: -3px;
  color: var(--off-white);
}
.hero-content p {
  width: 618px;
  max-width: 100%;
  margin-top: 40px;
  font-size: 22px;
  font-weight: 400;
  line-height: 34.1px;
  color: var(--muted);
}
.hero-ctas { display: flex; align-items: center; gap: 16px; margin-top: 40px; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 50px 0;
}

.site-header .nav-pill {
  max-width: 1180px;
  margin: 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
}
.logo-mark img { position: absolute; top: -20px; left: -28px; width: 90px; height: 90px; max-width: none; }
.logo-text {
  font-size: 16px;
  font-weight: 760;
  line-height: 24.8px;
  letter-spacing: -0.48px;
  color: var(--off-white);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  line-height: 21.7px;
  color: var(--muted-blue);
  text-decoration: underline;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }
/* Figma: header nav links are white; footer nav + bottom-marquee social links are white too. */
.site-header .nav-links a { color: var(--white); }
.footer-nav a { color: var(--white); }

/* Hamburger: hidden on desktop, shown under the mobile breakpoint */
.hamburger {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--off-white);
  border-radius: 1px;
}
.mobile-nav { display: none; }

/* ============ Marquee strip ============ */
.marquee-strip {
  height: 92px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
}
.marquee-strip .marquee-label {
  flex: none;
  margin-left: max(20px, calc(50vw - 590px));
  font-size: 16px;
  line-height: 34.1px;
  color: var(--muted-blue);
}
.marquee-track-wrap {
  flex: none;
  margin-left: auto;
  margin-right: max(20px, calc(50vw - 590px));
}
.marquee-track {
  display: flex;
}
.marquee-set {
  display: flex;
  gap: 30px;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 20.15px;
  color: var(--muted-light);
}
.marquee-item img { width: 24px; height: 24px; }
.marquee-item .marquee-linkedin { width: 19px; height: 19px; }
a.marquee-item { text-decoration: underline; color: var(--white); }

/* ============ Shared section shells ============ */
.section-dark { background: var(--bg-dark); padding: 130px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--section-border);
  border-bottom: 1px solid var(--section-border);
  padding: 130px 0;
}

/* ============ What I bring ============ */
.bring-grid {
  display: grid;
  grid-template-columns: 570px 1fr;
  column-gap: 40px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--purple-pale);
  border-radius: 999px;
  background: var(--lavender);
  color: var(--lavender-text);
  font-size: 12px;
  font-weight: 760;
  line-height: 18.6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.bring-intro h2 {
  margin-top: 40px;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--white);
}
.bring-intro p {
  padding-top: 20px;
  font-size: 18px;
  line-height: 27.9px;
  color: var(--muted);
}
.numbered-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  border-bottom: 1px solid var(--hairline);
}
.numbered-item .num {
  flex: none;
  width: 44px;
  font-size: 32px; /* Figma: text node "01".."04" style.fontSize (Cairo SemiBold 600) */
  font-weight: 800;
  line-height: 42px; /* Figma style.lineHeightPx, was 18.6px (too short for a 32px glyph) */
  color: var(--purple-light);
}
.numbered-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 27.9px;
  letter-spacing: -0.36px;
  color: var(--white);
}
.numbered-item p {
  font-size: 14px;
  line-height: 21.7px;
  color: var(--muted);
}

/* ============ Statement ============ */
.statement-section {
  background: var(--bg-statement);
  padding: 80px 0;
}
.statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.statement-inner h2 {
  max-width: 824px;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--off-white);
}
.statement-inner .btn {
  margin-top: 50px;
  min-width: 199px;
}

/* ============ Process ============ */
.process-section { padding: 129px 0; }
.process-heading { text-align: center; }
.process-heading h2 {
  margin-top: 50px;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--white);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  padding: 23px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg-alt);
}
.process-card {
  height: 175px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2314);
}
.process-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}
.process-card h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24.8px;
  color: var(--white);
}
.process-card p {
  margin-top: 12px;
  font-size: 13.3333px;
  line-height: 20.6667px;
  color: var(--muted);
}

/* ============ Selected Work ============ */
.work-intro h2 {
  margin-top: 24px;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--white);
}
.work-intro p {
  max-width: 630px;
  margin-top: 14px;
  font-size: 18px;
  line-height: 27.9px;
  color: var(--muted);
}
.work-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--purple-pale); }
.card-image {
  width: calc(100% + 60px);
  max-width: none; /* override global `img{max-width:100%}` which was capping this short of the card's right edge */
  margin: -30px -30px 0;
  height: 250px;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  background: #d9d9d9;
}
.tags { display: flex; flex-wrap: nowrap; gap: 6px; }
.tag {
  display: inline-block;
  white-space: nowrap;
  /* ponytail: shrunk from 12px/5px 10px/0.6px so the widest 3-pill row
     (Concept / Discovery & Strategy / UI/UX Design) fits one line inside
     an equal-width (373px) card without wrapping or clipping. */
  padding: 5px 7px;
  background: var(--lavender);
  border: 1px solid var(--purple-pale);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  line-height: 17px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--lavender-text);
}
.card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 34.1px;
  letter-spacing: -0.77px;
  color: var(--white);
}
.card-body p {
  font-size: 15px;
  line-height: 23.25px;
  color: var(--muted);
}
.view-link {
  margin-top: auto;
  font-size: 15px;
  line-height: 23.25px;
  color: var(--white);
  text-decoration: underline;
}
.view-link:hover { opacity: 0.8; }

/* ============ Final CTA ============ */
.final-cta {
  display: flex;
  height: 316px;
  align-items: center; /* Figma: text-block center and button center share the same y — was flex-end */
  justify-content: space-between;
  gap: 40px;
  padding: 60px 50px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: #333030;
}
.final-cta-text { padding-top: 20px; }
.final-cta-text h2 {
  max-width: 648px;
  margin-top: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--off-white);
}
.final-cta .btn {
  min-width: 223px;
  flex: none;
}
.final-cta-actions { display: flex; align-items: center; gap: 16px; flex: none; }

/* ============ FAQ ============ */
.faq-section { height: auto; }
.faq-grid {
  display: grid;
  grid-template-columns: 409px 1fr;
  column-gap: 50px;
}
.faq-intro h2 {
  margin-top: 50px;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--white);
}
.accordion { display: grid; gap: 10px; }
.accordion-item { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.accordion-heading { font: inherit; }
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 680;
  line-height: 24.8px;
  color: var(--white);
}
.accordion-summary:hover { color: var(--purple-pale); }
.accordion-summary .chevron {
  flex: none;
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.accordion-item.open .chevron { transform: none; }
/* grid-rows 0fr->1fr: animates to the panel's real content height with no
   guessed max-height ceiling. min-height:0 on the <p> defeats the grid item's
   default min-height:auto floor, which would otherwise refuse to shrink to 0. */
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  padding: 0 16px;
  transition: grid-template-rows 0.25s ease, padding 0.25s ease;
}
.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
  padding: 8px 16px 25px;
}
.accordion-panel p {
  max-width: 689px;
  min-height: 0;
  font-size: 13.3333px;
  line-height: 20.6667px;
  color: var(--muted);
}

/* ============ Tools ============ */
.tools-card {
  display: flex;
  gap: 50px;
  padding: 60px;
  max-width: 1180px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.tools-left { flex: none; width: 380px; }
.tools-heading h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
  color: var(--white);
}
.tools-heading p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 26.35px;
  color: var(--muted);
}
.tools-right {
  flex: none;
  width: 628px;
  padding: 20px 30px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.expertise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.expertise-row-last { height: 60px; border-bottom: none; }
.tool-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 20.15px;
  color: var(--white);
}
.tool-icon { display: grid; width: 32px; height: 32px; place-items: center; }
/* Fixed px (not %): percentage height doesn't resolve here (place-items:center
   makes the grid item's cross size non-definite), so a non-square intrinsic
   image would fall back to aspect-ratio auto-height and overflow the box. */
.tool-icon img { width: 32px; height: 32px; object-fit: contain; }
.expertise-row .pct {
  font-size: 20px;
  font-weight: 700;
  line-height: 17.05px;
  color: var(--purple-light);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--section-border);
  padding: 50px 0 0;
}
.footer-top {
  display: flex;
  height: 67px;
  align-items: center;
  justify-content: space-between;
}
.footer-divider {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 11px;
  line-height: 17.05px;
  color: var(--muted);
}
.footer-watermark {
  width: 100vw;
  height: 12.2vw;
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.footer-watermark span {
  display: block;
  font-family: 'Cairo', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 18.3vw;
  line-height: 1;
  margin-top: -3.42vw;
  white-space: nowrap;
  color: var(--off-white);
}

/* ============ Connect modal ============ */
/* Structure/behavior ported from ~/Desktop/portfolio (say-hi modal); restyled to Yaser's
   dark/purple/Cairo theme instead of the portfolio's cream/clay palette. */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__card {
  position: relative;
  width: min(440px, 100%);
  border-radius: 24px;
  padding: 32px 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.is-open .modal__card { opacity: 1; transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.modal__close:hover { color: var(--white); border-color: var(--purple-light); }
.modal__kicker {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal__title { font-size: 28px; font-weight: 600; color: var(--white); margin-bottom: 24px; }
.modal__options { display: grid; gap: 12px; }
.modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--bg-panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.modal__option:hover { border-color: var(--purple-light); transform: translateX(4px); }
.modal__option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-light);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.modal__option-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.modal__option-text strong { font-size: 16px; color: var(--white); }
.modal__option-text small { font-size: 13px; color: var(--muted); }
.modal__option-arrow { color: var(--muted); font-size: 18px; transition: transform 0.2s ease, color 0.2s ease; }
.modal__option:hover .modal__option-arrow { transform: translateX(4px); color: var(--white); }
.modal__copy {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed var(--card-border);
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal__copy:hover { border-color: var(--purple-light); color: var(--white); }
.modal__copy-hint { font-size: 12px; letter-spacing: 0.4px; color: var(--muted); white-space: nowrap; }

/* ============ Responsive text/number swaps (copy differs mobile vs desktop) ============ */
.m-only, .m-only-block { display: none; }

/* ============ Contact page ============ */
.contact-body { background: var(--bg-panel); }
.contact-page {
  display: grid;
  grid-template-columns: 758fr 682fr;
  min-height: 100vh;
}
.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 128px;
  background: var(--bg-panel);
}
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  padding: 80px 128px;
  background: var(--bg-card);
}

.contact-topbar { display: flex; align-items: center; justify-content: space-between; }
.contact-brand { display: flex; align-items: center; gap: 20px; }
.contact-back { display: grid; place-items: center; width: 24px; height: 24px; }
.contact-arabic { font-size: 16px; font-weight: 500; color: var(--white); }

.contact-card {
  width: 100%;
  max-width: 502px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.contact-card h1 {
  font-size: 23.65px;
  font-weight: 700;
  line-height: 33.79px;
  color: var(--white);
}

/* Progress indicator */
.contact-progress {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-panel);
  border-radius: 8px;
}
/* width:32px + min-width:0 pins this box to the circle's own width (32px) so the
   trailing connector — a flex sibling, not a child — starts flush against the
   circle instead of after the (much wider) label; overflow:visible lets the
   nowrap label spill past that box without affecting sibling layout. */
.progress-step { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 32px; min-width: 0; }
.progress-step.is-done { cursor: pointer; }
.progress-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--progress-inactive);
  color: var(--progress-inactive);
  font-size: 16px;
  font-weight: 500;
}
.progress-step.is-active .progress-circle { border-color: var(--purple-light); color: var(--purple-light); }
.progress-step.is-done .progress-circle { background: var(--progress-green); border-color: var(--progress-green); color: var(--white); }
.progress-label { font-size: 16px; color: #828282; white-space: nowrap; }
.progress-step.is-active .progress-label,
.progress-step.is-done .progress-label { color: var(--white); }
.progress-connector { flex: 1; height: 2px; margin-top: 15px; background: var(--progress-inactive); }
/* Step 1's trailing connector is purple while step 1 is active, then turns the same
   green as the completed step-1 circle once step 1 is done (step 2 active). Step 2's
   trailing connector lights up purple once step 2 is the active step. */
.progress-step[data-step="1"].is-active + .progress-connector { background: var(--purple-light); }
.progress-step[data-step="1"].is-done + .progress-connector { background: var(--progress-green); }
.progress-step[data-step="2"].is-active + .progress-connector { background: var(--purple-light); }

/* Form */
#contact-form { margin-top: 24px; }
.form-step { display: flex; flex-direction: column; gap: 20px; }
.form-step[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; gap: 24px; }
.field-row .field { flex: 1; min-width: 0; }
.field label { font-size: 14px; color: var(--white); }
.field .req { color: var(--req-red); margin-right: 2px; }
.field input,
.field select,
.field textarea {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}
.field textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--purple-light); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field select option[value=""] { color: var(--muted); }

.contact-tz-note { margin-top: -8px; font-size: 12px; color: var(--muted); }

.contact-submit-btn {
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--white);
  color: #171426;
}

.form-notice { margin-top: 4px; font-size: 13px; color: var(--muted); }
.form-notice.is-error { color: #ff8a8a; }
.form-notice.is-success { color: var(--purple-light); }

.contact-copyright { font-size: 14px; color: var(--muted); }

/* .tools-right's 628px fixed width is sized for the homepage tools card;
   the contact page's right column is narrower, so let it fill instead. */
.contact-right .tools-right { width: auto; }

.contact-right-heading { max-width: 460px; text-align: center; margin: 0 auto; }
.contact-right-heading h2 { font-size: 40px; font-weight: 600; line-height: 50px; color: var(--white); }
.contact-right-heading p { margin-top: 16px; font-size: 22px; line-height: 34.1px; color: var(--muted); }

/* Figma: 3 equal 161x159 boxes, gap 20, radius 12, 1px white border, 20/30 padding.
   flex:1 (not a fixed 161px) so the trio stays equal-width against the fluid column
   instead of a hardcoded px that would overflow/underflow off the 1440 design width. */
.contact-stats { display: flex; gap: 20px; }
.contact-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}
.contact-stat-label { font-size: 22px; line-height: 30px; color: var(--purple-light); }
.contact-stat-value { font-size: 49px; line-height: 49px; font-weight: 700; color: var(--white); }

/* ============ Contact page: desktop fits viewport, no scroll ============ */
/* ponytail: clamp(min, vh, design-px) scales spacing to viewport height so
   the 1440x1024 design frame fits at 800-1080px tall without scrolling;
   coefficients are design-px/1024*100vh. Mobile untouched (own block below). */
@media (min-width: 769px) {
  body.contact-body { overflow: hidden; }
  .contact-page { height: 100vh; overflow: hidden; }
  /* min-height:0 stops these flex/grid items from blowing out past the 100vh
     row when content wants more space than available (default min-height:auto
     sizes to content, which silently clips instead of compressing). */
  .contact-left { padding: clamp(18px, 4.3vh, 56px) 128px; gap: clamp(10px, 2.3vh, 40px); min-height: 0; overflow: hidden; }
  /* gap trimmed 5.5vh->4.5vh (was already tight at exactly 900 tall before the stat
     boxes existed; adding them needed ~18px back, taken from this rhythm, not the
     boxes' own Figma-specified 30px padding). */
  /* Horizontal padding trimmed 128px->90px: the 3 stat boxes' single-token content
     ("Clients"/"100+" etc.) needs more width than 128px padding left for 3 equal
     columns without one box shrinking narrower than the others (min-content floor). */
  /* Figma right column: no vertical padding, 40px gap, group vertically
     centered (justify-content:center from base). Vertical padding capped low
     so the centered heading+tools+stats group keeps real breathing room below
     the stat boxes instead of pinning them to the viewport bottom. 80px
     horizontal = Figma's 522px content width -> stat boxes render at 160.7px. */
  .contact-right { padding: clamp(20px, 3.5vh, 44px) 80px; gap: clamp(20px, 3vh, 40px); min-height: 0; overflow: hidden; }
  .contact-card { padding: 30px; }
  .contact-progress { margin-top: clamp(6px, 1.3vh, 20px); padding: clamp(6px, 1.2vh, 16px); }
  #contact-form { margin-top: clamp(8px, 1.5vh, 24px); }
  .form-step { gap: clamp(5px, 1vh, 20px); }
  .field { gap: clamp(4px, 0.8vh, 8px); }
  .field input, .field select { height: clamp(30px, 3.9vh, 40px); }
  .field textarea { min-height: clamp(48px, 9.4vh, 96px); }
  .contact-submit-btn { height: clamp(34px, 4.3vh, 44px); }
  .tools-right { padding: clamp(10px, 2vh, 20px) 30px clamp(4px, 1vh, 10px); }
  .expertise-row { height: clamp(40px, 6vh, 61px); }
  .expertise-row-last { height: clamp(40px, 5.9vh, 60px); }
}

/* ============ Fluid tablet ============ */
@media (max-width: 1240px) {
  .site-header { padding: 50px 20px; }
  .contact-left, .contact-right { padding-left: 60px; padding-right: 60px; }
}
@media (max-width: 1000px) and (min-width: 769px) {
  .bring-grid, .faq-grid { grid-template-columns: 1fr; row-gap: 50px; }
  .work-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .tools-card { flex-direction: column; }
  .tools-right { width: auto; }
  .final-cta { flex-direction: column; align-items: flex-start; }
  .hero-content { width: auto; left: 0; transform: none; padding: 0 20px; }
  .hero-content h1 { font-size: 64px; line-height: 70px; }
  /* Sub-desktop = mobile container treatment (user rule): the moment the tools
     card leaves the desktop row layout, it becomes the mobile flat full-bleed
     band — straight edges, no border/radius, no dark section band before the
     flush statement section. Desktop curves must never leak below 1000px.
     Section rhythm goes mobile too (48px, not 130px); declared before
     .tools-wrap so its padding:0 still wins the cascade. */
  .section-dark, .section-alt { padding: 48px 0; }
  .tools-wrap { padding: 0; }
  .tools-card { padding: 48px 20px; border: none; border-radius: 0; }
  .tools-heading p { display: none; }
  .tools-right { border-radius: 12px; }
  .statement-section { padding: 48px 0; }
  /* Final CTA stacks here too, so it takes the mobile card skin: statement-bg
     wrap, radius 16, padding 30, stretched full-width buttons — never the
     desktop 24/60x50 left-hugging version. */
  .final-cta-wrap { background: var(--bg-statement); padding: 48px 20px; }
  .final-cta { height: auto; align-items: stretch; padding: 30px; gap: 40px; border-radius: 16px; }
  .final-cta-text { padding-top: 0; }
  .final-cta-actions { flex-direction: column; align-items: stretch; gap: 20px; width: 100%; }
  .final-cta .btn, .final-cta .btn-connect { width: 100%; }
}

/* ============ Mobile (390px reference design) ============ */
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .d-only, .d-only-block { display: none; }
  .m-only { display: inline; }
  .m-only-block { display: block; }

  /* Buttons: Figma mobile Button instance is h40/pad0-16/16px-500/lh24 across
     every CTA (hero, statement, final-cta, mobile-nav, contact submit) — smaller
     than desktop's h44/14px/720. .btn-connect already matched except height. */
  .btn { height: 40px; padding: 0 16px; font-size: 16px; font-weight: 500; line-height: 24px; }
  .btn-connect { height: 40px; }

  /* Header: static full-width bar, hamburger replaces nav + contact button */
  .site-header { position: static; padding: 0; }
  .site-header .nav-pill {
    max-width: none;
    height: auto;
    padding: 20px;
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }
  .nav-links, .nav-actions { display: none; }
  /* Figma: 30x30 bg-card rounded button (not a bare 40x40 icon) */
  .hamburger {
    display: flex;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border-radius: 6px;
    gap: 2.25px;
  }
  .hamburger span { width: 12px; }
  .mobile-nav.is-open {
    display: block;
    padding: 12px 20px 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--hairline);
  }
  .mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav-links a {
    display: block;
    padding: 5px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--muted-blue);
    text-decoration: underline;
  }
  .mobile-nav-cta { display: flex; width: 100%; margin-top: 12px; }
  section[id] { scroll-margin-top: 20px; }

  /* Hero: normal document flow instead of absolute 1440-canvas layout.
     flex + order (not DOM order) puts heading/button before the portrait,
     matching the mobile render — hero-bg stays absolute so it's unaffected. */
  .hero { height: auto; padding: 32px 0 0; display: flex; flex-direction: column; }
  .hero-content {
    order: 1;
    /* ponytail: relative (not static) — hero-bg is position:absolute and would
       otherwise paint over static in-flow content regardless of DOM order */
    position: relative;
    width: auto;
    left: auto;
    top: auto;
    transform: none;
    padding: 0 20px;
  }
  .hero-content h1 {
    width: auto;
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
    letter-spacing: 0;
  }
  .hero-content p { display: none; }
  .hero-ctas, .final-cta-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-ctas { margin-top: 20px; }
  .hero-content .hero-cta, .btn-connect { width: 100%; }
  .hero-visual {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    width: 300px;
    height: 370px;
    margin: 44px auto 0;
    transform: none !important;
  }
  .hero-ring { left: 0; top: 35px; width: 300px; height: 300px; }
  .hero-portrait { left: 50%; top: 0; width: 249px; height: 370px; transform: translateX(-50%); }

  /* Marquee: label stacked above the icon row. Bottom marquee (last section
     element before <footer>) is centered in Figma; top one stays left-aligned. */
  .marquee-strip { height: auto; flex-direction: column; align-items: flex-start; padding: 32px 20px; gap: 12px; }
  .marquee-strip .marquee-label { margin-left: 0; font-size: 13px; line-height: 24.36px; }
  .marquee-track-wrap { margin: 0; }
  .marquee-set { flex-wrap: wrap; gap: 16px; }
  .marquee-item img { width: 16px; height: 16px; }
  .marquee-item .marquee-linkedin { width: 16px; height: 16px; }
  .marquee-strip:last-of-type { align-items: center; }
  .marquee-strip:last-of-type .marquee-label { text-align: center; }
  .marquee-strip:last-of-type .marquee-set { justify-content: center; }

  /* Shared section rhythm */
  .section-dark, .section-alt { padding: 48px 0; }

  /* Section intros: label pill isn't uppercase/bold on mobile, and every
     intro (portfolio/services/process/faq) sits 30px below it, no subtitle. */
  .section-label { padding: 0 5px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 22px; }
  .work-intro h2, .bring-intro h2, .process-heading h2, .faq-intro h2 {
    font-size: 40px; line-height: 50px; letter-spacing: 0; margin-top: 30px;
  }

  /* Portfolio: single column cards */
  .work-intro p { max-width: none; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 24px; margin-top: 40px; }
  .card-image { height: 250px; }
  .tags { flex-wrap: wrap; }
  .tag {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
    text-transform: none;
  }
  .card h3 { font-size: 24px; font-weight: 600; line-height: 34px; letter-spacing: 0; }
  .card-body p { font-size: 16px; line-height: 26px; }
  .view-link { font-size: 16px; font-weight: 500; line-height: 26px; }

  /* Services */
  .bring-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .numbered-item { flex-wrap: wrap; gap: 4px 18px; min-height: 0; padding: 16px 0; }
  .numbered-item .num { width: auto; }

  /* Tools: whole section bleeds edge-to-edge as one flat bg-card surface on
     mobile (no card border/radius, no double section+card padding). */
  .tools-wrap { padding: 0; }
  .tools-card { flex-direction: column; padding: 48px 20px; gap: 26px; border: none; border-radius: 0; }
  .tools-left, .tools-right { width: auto; }
  .tools-heading h2 { font-size: 40px; line-height: 50px; letter-spacing: 0; }
  /* Figma mobile: heading block is heading-only (h66 = 50 text + 16 pad), no subtitle;
     rows panel radius 12 on mobile vs desktop's 16. */
  .tools-heading p { display: none; }
  .tools-right { border-radius: 12px; }
  .tools-right { padding: 10px 16px 0; }
  .expertise-row { padding: 5px 0; }
  .field textarea { padding: 5px 14px; }

  /* Statement */
  .statement-section { padding: 48px 0; }
  .statement-inner h2 { font-size: 40px; line-height: 50px; letter-spacing: 0; }

  /* Process */
  .process-section { padding: 60px 0; }
  .process-grid { grid-template-columns: 1fr; padding: 0; border: none; background: none; gap: 20px; margin-top: 36px; }
  .process-card { height: auto; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .faq-section { height: auto; }
  .accordion { gap: 16px; }
  .accordion-item.open .accordion-panel { padding: 8px 48px 24px 16px; }

  /* Final CTA: card sits on the lighter statement background on mobile,
     radius16 (not desktop's 24), padding30/gap40 (not 40x24/24). */
  /* Final CTA (Figma mobile 40011085): section padding 48/20 insets the card
     20px off both edges (card w=350, must NOT touch sides); card radius 16,
     padding 30; both buttons FILL width with centered text (never left-hugged). */
  .final-cta-wrap { background: var(--bg-statement); padding: 48px 20px; }
  .final-cta { flex-direction: column; align-items: stretch; height: auto; padding: 30px; gap: 40px; border-radius: 16px; }
  .final-cta-text { padding-top: 0; }
  .final-cta-text h2 { font-size: 40px; line-height: 50px; letter-spacing: 0; }
  .final-cta-actions { width: 100%; }
  .final-cta .btn, .final-cta .btn-connect { width: 100%; }

  /* Footer: logo + copyright only, nav and tagline are desktop-only. Figma
     centers both, no divider line, 32px section padding (not 50). */
  .site-footer { padding: 32px 0 0; }
  .footer-divider { display: none; }
  .footer-top { height: auto; padding: 0; justify-content: center; }
  .footer-nav, .footer-tagline { display: none; }
  .footer-bottom { justify-content: center; }
  .footer-watermark { margin-top: 20px; }

  /* Contact page: single column, right panel (heading + tools) not shown on mobile */
  .contact-page { grid-template-columns: 1fr; }
  .contact-right { display: none; }
  .contact-left { padding: 48px 20px; gap: 30px; }
  .contact-card { max-width: none; padding: 16px; }
  #contact-form { margin-top: 20px; }
  .contact-progress { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
  .progress-step { flex-direction: row; align-items: center; width: auto; }
  .progress-connector { width: 2px; height: 17px; flex: none; margin: 4px 0 4px 15px; }
  .field-row { flex-direction: column; gap: 20px; }
}
