/* ============================================================
   Jah Brown — Portfolio
   Light editorial · oversized type · B&W portrait · red accent
   ============================================================ */

:root {
  --bg: #f4f2ee;            /* warm off-white */
  --surface: #ffffff;
  --ink: #131313;
  --ink-dim: #6d6d68;
  --accent: #e8442e;        /* warm red — used sparingly */
  --border: rgba(19, 19, 19, 0.14);
  --font-name: "Anton", sans-serif;        /* giant condensed name */
  --font-display: "Archivo", sans-serif;   /* wide light section titles */
  --font-body: "Inter", sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0325rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.accent { color: var(--accent); }
.dim { color: var(--ink-dim); }

a { color: inherit; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

a.pill:hover { background: var(--ink); color: var(--bg); }

.pill-dark { background: var(--ink); color: var(--bg); }
a.pill-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.pill-light { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
a.pill-light:hover { background: #fff; color: var(--ink); }

.pill-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
a.pill-accent:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Circle buttons ---------- */
.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.circle-btn:hover { background: var(--ink); color: var(--bg); transform: translateY(2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(244, 242, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-pills { display: flex; gap: 0.5rem; }

/* ---------- Hero ---------- */
.hero { padding: 7.5rem 0 4rem; overflow: hidden; }

.hero-name {
  font-family: var(--font-name);
  font-weight: 400;
  text-align: center;
  font-size: clamp(4.5rem, 16.5vw, 13.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  user-select: none;
}

.hero-name-line { display: block; }

/* Portrait overlaps the name from below */
.hero-stage {
  position: relative;
  margin-top: clamp(-4.5rem, -7vw, -2rem);
  min-height: clamp(340px, 46vw, 560px);
}

.hero-portrait {
  position: relative;
  width: clamp(250px, 34vw, 420px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  z-index: 2;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05);
  display: block;
}

/* soft fade so the photo's white bg melts into the page */
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18px 6px var(--bg);
  pointer-events: none;
}

.portrait-note { display: none; }

.hero-portrait.missing {
  border: 1px dashed var(--border);
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(19,19,19,0.03) 12px, rgba(19,19,19,0.03) 24px);
}

.hero-portrait.missing img { display: none; }

.hero-portrait.missing .portrait-note {
  display: block;
  position: absolute;
  inset: auto 0 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* Floating collage fragments — clickable shortcuts to case studies */
.fragment {
  position: absolute;
  z-index: 3;
  width: clamp(84px, 10vw, 132px);
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(19, 19, 19, 0.10);
  display: block;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.fragment:hover {
  transform: rotate(var(--rot, 0deg)) translateY(-8px) scale(1.05);
  box-shadow: 0 18px 38px rgba(19, 19, 19, 0.18);
  z-index: 5;
}

.fragment::after {
  content: attr(data-note);
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.frag-1 { top: 1%; left: 10%; --rot: -5deg; }
.frag-2 { top: 56%; left: 15%; --rot: 3deg; }
.frag-3 { top: 4%; right: 17%; --rot: 4deg; }
.frag-4 { top: 56%; right: 11%; --rot: -3deg; }

/* Side texts */
.hero-side {
  position: absolute;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 240px;
}

.hero-side-left { left: 0; top: 28%; }
.hero-side-right { right: 0; top: 26%; text-align: right; text-transform: none; letter-spacing: 0.01em; font-family: var(--font-body); color: var(--ink-dim); }
.hero-side-right .accent { font-weight: 600; }

/* Capability list — bottom right, like ref 1 */
.hero-tags {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 4%;
  list-style: none;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-tags li { padding: 0.32rem 0; }

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-sub {
  flex: 1;
  color: var(--ink-dim);
  max-width: 54ch;
}

/* ---------- Stat cards ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 3.5rem;
}

.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}

.stat-press { font-size: 1.15rem; line-height: 1.4; padding-top: 0.7rem; font-weight: 400; }

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-year { color: var(--accent); }
.title-btn { width: 46px; height: 46px; flex: none; }

/* ---------- Showreel ---------- */
.showreel { padding: 6rem 0 5rem; }

.showreel-caption {
  text-align: center;
  color: var(--ink-dim);
  margin-top: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---------- Placeholders ---------- */
.video-placeholder,
.image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(19,19,19,0.03) 12px, rgba(19,19,19,0.03) 24px),
    var(--surface);
  border: 1px dashed rgba(19, 19, 19, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder::after,
.image-placeholder::after {
  content: attr(data-note);
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.image-placeholder { aspect-ratio: 4 / 3; }

.play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 5px;
}

/* ---------- Real media in case studies ---------- */
.cs-figure { margin: 0; }

.cs-video {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #000;
}

.cs-figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cs-figure figcaption {
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.cs-figure figcaption strong { color: var(--accent); }

/* ---------- AI case study — extra spec projects ---------- */
.ai-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.below-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.below-sheets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .ai-projects, .below-grid { grid-template-columns: 1fr; }
  .below-grid .cs-figure img { max-width: 420px; margin: 0 auto; }
  .below-sheets .cs-figure img { max-width: 100%; }
}

.witness-figure { margin-top: 2.5rem; }

.witness-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.witness-strip video {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #000;
}

@media (max-width: 700px) {
  .witness-strip { grid-template-columns: 1fr; }
}

.hub-block {
  max-width: 640px;
  margin-top: 2.5rem;
}

.hub-figure { margin-top: 1.5rem; }

.fragment.filled { border: none; overflow: hidden; }

.fragment.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Short-form video grid (case study 05) ---------- */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sf-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
}

.sf-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  display: block;
}

/* ---------- Press coverage (case study 04) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.press-video-link {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.press-video-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: none;
  display: block;
  transition: transform 0.3s ease;
}

.press-video-link:hover img { transform: scale(1.03); }

.press-video-link .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  font-size: 1.1rem;
}

.press-list { list-style: none; }

.press-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.93rem;
}

.press-outlet {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.press-list a { color: var(--ink); text-decoration: none; }
.press-list a:hover { color: var(--accent); }

.brand-block { margin-top: 3rem; }

/* Avanti — mixed-format grid: two post cards + vertical video */
.avanti-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.72fr;
  gap: 1.5rem;
  align-items: start;
}

.avanti-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  display: block;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 10px 28px rgba(19, 19, 19, 0.06);
}

.post-card img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: block;
  aspect-ratio: auto;
}

.post-card figcaption { margin-top: 0.1rem; }
.post-card figcaption strong { color: var(--accent); }

@media (max-width: 900px) {
  .avanti-grid { grid-template-columns: 1fr; }
  .avanti-grid video { max-width: 380px; margin: 0 auto; }
}

.brand-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.1rem;
}

.brand-block .sf-grid { margin-top: 0; }

.sf-note {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.needs-detail {
  color: var(--ink-dim);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

/* ---------- Case studies ---------- */
.work-title { margin: 4rem 0 1rem; }

.case-study { padding: 4.5rem 0; }

.case-study + .case-study { border-top: 1px solid var(--border); }

.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cs-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.cs-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.cs-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin-bottom: 2.5rem;
}

.cs-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.cs-text h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 1.9rem 0 0.5rem;
}

.cs-text h4:first-child { margin-top: 0; }
.cs-text p { color: #3c3c38; }

.cs-side { display: flex; flex-direction: column; gap: 1.5rem; }

.cs-numbers { list-style: none; }

.cs-numbers li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 0.97rem;
}

.cs-numbers li strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 0.3rem;
}

.cs-role {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.cs-role strong { color: var(--ink); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.1em; }

/* ---------- Workflow strip ---------- */
.workflow {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

.workflow-step {
  flex: 1;
  min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.workflow-step span { color: var(--accent); font-size: 0.78rem; font-weight: 600; }
.workflow-step small { font-family: var(--font-body); font-weight: 400; color: var(--ink-dim); font-size: 0.76rem; }

/* ---------- Services (numbered list) ---------- */
.services { padding: 6rem 0; border-top: 1px solid var(--border); }

.services-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.services-list li:hover { background: var(--ink); color: var(--bg); }

.svc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.svc-name { flex: 1; text-align: center; }
.svc-arrow { flex: none; }

.services-list li.svc-active { background: var(--ink); color: var(--bg); }
.services-list li.svc-active:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Tools marquee ---------- */
.tools {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.tools-label { text-align: center; margin-bottom: 2rem; }

.tools-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tools-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  padding-right: 4rem;
  animation: tools-scroll 52s linear infinite;
}

.tools-marquee:hover .tools-track { animation-play-state: paused; }

@keyframes tools-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.tool img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---------- About ---------- */
.about { padding: 6rem 0; border-top: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05);
  display: block;
}

.about-portrait.missing img { display: none; }

.about-portrait.missing {
  border: 1px dashed var(--border);
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(19,19,19,0.03) 12px, rgba(19,19,19,0.03) 24px);
}

.about-text p { margin-bottom: 1.2rem; color: #3c3c38; }

.about-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
}

/* ---------- Certifications ---------- */
.certs { max-width: 980px; margin: 4rem auto 0; }

.certs .brand-label a { color: inherit; }
.certs .brand-label a:hover { color: var(--accent); }

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.certs-grid img { box-shadow: 0 10px 30px rgba(19, 19, 19, 0.08); }

@media (max-width: 700px) {
  .certs-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer — inverted black ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 5.5rem 0 2.5rem;
  position: relative;
}

.to-top {
  position: absolute;
  right: 1.5rem;
  bottom: 2.5rem;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.to-top:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.footer-lede {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.footer-headline {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-pills {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin-top: 3.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 900px) {
  .hero-side-right { display: none; }
  .hero-tags { position: static; text-align: center; margin-top: 1.5rem; }
  .hero-stage { min-height: 0; display: flex; flex-direction: column; margin-top: 1.5rem; }
  .hero-side-left { position: static; text-align: center; order: -1; margin-bottom: 1rem; max-width: none; }
  .fragment { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cs-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sf-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .nav-pills { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .services-list li { padding: 0.75rem 1rem; font-size: 0.8rem; }
}
