:root {
  --ink: #111111;
  --dark-grey: #2b2b2b;
  --mid-grey: #858585;
  --paper: #f7f7f4;
  --white: #ffffff;
  --red: #ff3b30;
  --blue: #2563ff;
  --green: #b6ff00;
  --line: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  padding: 0 5vw;
  background: var(--paper);
  border-bottom: var(--line) solid var(--red);
}

.brand { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.07em; white-space: nowrap; }
.brand .first { color: var(--dark-grey); }
.brand .last { color: var(--mid-grey); }
.brand .domain { color: var(--red); }

nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2.2rem); text-transform: uppercase; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; }
nav a { position: relative; padding: 11px 0; white-space: nowrap; }
nav a::after { position: absolute; right: 100%; bottom: 3px; left: 0; height: 2px; content: ""; background: var(--blue); transition: right 0.25s ease; }
nav a:hover::after { right: 0; }

.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* Language switch: left of the logo, just below the red divider line */
.lang-switch {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--mid-grey);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--red); }

/* HERO IS PURE WHITE FROM THE RED MENU LINE TO THE BLACK SECTION DIVIDER */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 86px);
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
  border-bottom: var(--line) solid var(--ink);
}

.hero-photo {
  position: absolute;
  z-index: -3;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(70vw, 1040px);
  background-color: var(--white);
  background-image: url("hero-landscape.jpg");
  background-position: left center;
  background-size: cover;
  filter: grayscale(1) contrast(1.05);
}

/* The image fades only into white: no #f7f7f4 transition inside the hero. */
.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 29%,
    rgba(255, 255, 255, 0.12) 43%,
    rgba(255, 255, 255, 0.55) 59%,
    rgba(255, 255, 255, 0.90) 77%,
    #ffffff 100%
  );
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(to right, #111 1px, transparent 1px), linear-gradient(to bottom, #111 1px, transparent 1px);
  background-size: 8.333% 100%, 100% 12.5%;
  mask-image: linear-gradient(90deg, transparent, black 28%, black 72%, transparent);
}

/* Analysis pages: hero image backgrounds are dark, so headings must not be dark */
.project-page .story-head h1 { color: var(--red); }

/* Case studies hub and case-study page cards reuse .hero with these overlays */

/* Seb's story card — appears in the same spot as the dashboard chart */
.hero-story {
  position: absolute;
  z-index: -1;
  top: 22%;
  left: 35%;
  width: 36%;
  height: 46%;
  overflow-y: auto;
  padding: 22px 26px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-top: var(--line) solid var(--blue);
  box-shadow: 0 16px 45px rgba(17, 17, 17, 0.08);
}
.hero-story .story-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-story .story-eyebrow::before { width: 22px; height: 2px; content: ""; background: var(--blue); }
.hero-story p { margin: 0 0 13px; font-size: 0.86rem; line-height: 1.55; color: var(--dark-grey); }
.hero-story p:last-child { margin-bottom: 0; }
.story-body p { opacity: 0; transform: translateY(14px); animation: story-in 0.9s cubic-bezier(.2, .8, .2, 1) forwards; }
.story-body p:nth-child(1) { animation-delay: 0.2s; }
.story-body p:nth-child(2) { animation-delay: 0.55s; }
.story-body p:nth-child(3) { animation-delay: 0.9s; }
.story-body p:nth-child(4) { animation-delay: 1.25s; }
.story-body p:nth-child(5) { animation-delay: 1.6s; }
.story-body p:nth-child(6) { animation-delay: 1.95s; }
.story-body p:nth-child(7) { animation-delay: 2.3s; }
.story-body p:empty { display: none; }
@keyframes story-in { to { opacity: 1; transform: none; } }
.hero-story::-webkit-scrollbar { width: 6px; }
.hero-story::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.hero-story::-webkit-scrollbar-track { background: transparent; }

/* Story page: heading on top, story card below (wider, full text, no inner scroll), copy under the text */
@media (min-width: 761px) {
  body.story-page .hero { flex-direction: column; align-items: flex-start; justify-content: center; padding: 7vh 5vw 7vh 40vw; }
  body.story-page .hero-photo { width: 100%; height: 100%; background-position: left center; }
  body.story-page .hero-photo::after { background: linear-gradient(90deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.85) 62%, #ffffff 75%); }
  body.story-page .hero-grid { opacity: 0.07; }
  body.story-page .story-head { position: relative; z-index: 1; width: min(700px, 62%); }
  body.story-page .story-head h1 { font-size: clamp(2.6rem, 5vw, 6rem); }
  body.story-page .hero-story { position: relative; z-index: 1; top: auto; left: auto; width: min(755px, 62%); height: auto; max-height: none; overflow: visible; margin: 0; padding: 30px 34px; }
  body.story-page .hero-story p { font-size: 0.85rem; line-height: 1.55; }
  body.story-page .story-foot { position: relative; z-index: 1; width: min(755px, 62%); margin-top: 28px; padding: 0; }
  body.story-page .story-foot .hero-copy { max-width: none; margin: 0; font-size: 1rem; }
  body.story-page .story-foot .hero-actions { margin-top: 24px; }
}

.hero-content { width: min(650px, 46vw); margin-left: 49vw; padding: 8vh 5vw 8vh 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow i { display: inline-block; width: 34px; height: 3px; background: var(--red); }
h1 { max-width: 800px; margin: 0; font-size: clamp(3rem, 7vw, 7.9rem); font-weight: 900; line-height: 0.87; letter-spacing: -0.095em; }
.contact-h1 { font-size: clamp(2.2rem, 5vw, 5rem); }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 480px; margin: 34px 0 0 4px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.35; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 16px 20px; color: #fff; background: var(--ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; transition: background 0.2s ease, transform 0.2s ease; }
.button:hover { background: var(--red); transform: translateY(-3px); }
.scroll-note { color: #737373; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; }

.section { display: grid; grid-template-columns: 1fr 2fr; gap: 5vw; min-height: 280px; padding: 8vh 5vw; background: var(--paper); border-bottom: var(--line) solid var(--ink); }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.08em; }
.section p { max-width: 620px; margin: 0; font-size: 1.1rem; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { padding: 8px 11px; border: 1px solid var(--ink); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* AI LAB CTA (homepage) */
.ai-lab-card { position: relative; display: flex; align-items: flex-end; min-height: 320px; margin-top: 30px; background-image: url("/public/img/ai-lab-cta-hero.png"); background-size: cover; background-position: center; text-decoration: none; overflow: hidden; border: 1px solid var(--line); }
.ai-lab-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,.82), rgba(17,17,17,.15) 72%); }
.ai-lab-body { position: relative; z-index: 1; padding: 30px 32px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ai-lab-body p { max-width: 440px; font-size: 1rem; line-height: 1.5; color: #fff; }
.ai-lab-btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 19px; color: #fff; background: var(--red); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; transition: background 0.2s ease, transform 0.2s ease; }
.ai-lab-card:hover .ai-lab-btn { background: var(--ink); transform: translateY(-3px); }

/* EVIDENCE CARDS (homepage) */
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.ev-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: var(--line) solid var(--ink); box-shadow: 0 16px 45px rgba(17, 17, 17, 0.06); overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(17, 17, 17, 0.14); }
.ev-card .ev-img { position: relative; height: 150px; overflow: hidden; }
.ev-card .ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card .ev-img:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,17,17,.5), transparent 50%); }
.ev-card .ev-img span { position: absolute; left: 14px; bottom: 10px; z-index: 2; color: #fff; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.ev-card .ev-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.ev-card h3 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.04em; }
.ev-card p { margin: 0; color: var(--mid-grey); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 900px) {
  nav { gap: 0.9rem; font-size: 0.56rem; }
  .hero-content { margin-left: 47vw; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 6vw; }
  .lang-switch { left: 6vw; top: calc(100% + 9px); font-size: 0.56rem; }
  nav { display: none; }
  .mobile-menu { display: block; }
  .site-header nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 6vw 18px;
    background: var(--paper);
    border-bottom: var(--line) solid var(--red);
    box-shadow: 0 18px 30px rgba(17, 17, 17, 0.12);
  }
  .site-header nav.open a { width: 100%; padding: 13px 0; font-size: 0.62rem; }
  .site-header nav.open a::after { display: none; }
  .hero { align-items: flex-end; min-height: calc(100svh - 70px); }
  .hero-photo { top: 0; bottom: auto; width: 100%; height: 65%; background-image: url("hero-square.jpg"); background-position: left top; background-size: cover; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(255,255,255,0) 18%, rgba(255,255,255,0.07) 39%, rgba(255,255,255,0.60) 64%, #ffffff 88%); }
  .hero-grid { opacity: 0.07; background-size: 25% 100%, 100% 10%; mask-image: linear-gradient(transparent, black 40%); }
  .hero-story { position: relative; top: auto; left: auto; width: 100%; height: auto; max-height: none; margin: 0; padding: 0 6vw 6vh; background: transparent; border: 0; border-top: 0; box-shadow: none; }
  .hero-story p { font-size: 0.88rem; }
  .story-body p { animation: none; opacity: 1; transform: none; }
  .story-head { width: 100%; padding: 0 6vw; }
  .story-foot { width: 100%; padding: 0 6vw; }
  body.story-page .hero { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  body.story-page .story-head { padding-top: 66%; }
  body.story-page .story-head h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  body.story-page .story-foot .hero-copy { max-width: none; margin-top: 0; font-size: 1rem; }
  body.story-page .story-foot .hero-actions { margin-top: 25px; }
  .hero-content { width: 100%; margin: 0; padding: 0 6vw 0; }
  .eyebrow { margin-bottom: 18px; font-size: 0.58rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .hero-copy { max-width: 390px; margin-top: 25px; font-size: 1rem; }
  .hero-actions { display: block; margin-top: 25px; }
  .scroll-note { display: none; }
  .section { display: block; padding: 9vh 6vw; }
  .section h2 { margin-bottom: 25px; }
  .ev-grid { grid-template-columns: 1fr; }
}

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; max-width: 520px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; }
.creative-form label > span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid-grey); }
.contact-form label > span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid-grey); }

.creative-form input,
.creative-form textarea { padding: 11px 14px; border: 1px solid var(--line); border-top: var(--line) solid var(--ink); background: var(--white); color: var(--ink); font-family: inherit; font-size: 0.92rem; outline: none; transition: border-color 0.2s ease; }
.creative-form input:focus,
.creative-form textarea:focus { border-top-color: var(--blue); }
.contact-form input,
.contact-form textarea { padding: 11px 14px; border: 1px solid var(--line); border-top: var(--line) solid var(--ink); background: var(--white); color: var(--ink); font-family: inherit; font-size: 0.92rem; resize: vertical; outline: none; transition: border-color 0.2s ease; }
.contact-form input:focus,
.contact-form textarea:focus { border-top-color: var(--blue); }
.contact-form textarea { min-height: 100px; }
.cf-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.cf-status { font-size: 0.85rem; color: var(--mid-grey); }
.cf-status.ok { color: var(--green); }
.cf-status.error { color: var(--red); }
.cf-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* COURSES */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.course-card {
  display: flex; flex-direction: column; padding: 28px 24px 26px;
  background: var(--white); border: 1px solid var(--line); border-top: var(--line) solid var(--ink);
  box-shadow: 0 16px 45px rgba(17,17,17,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(17,17,17,0.14); }
.course-card:nth-child(1) { border-top-color: var(--red); }
.course-card:nth-child(2) { border-top-color: var(--blue); }
.course-card:nth-child(3) { border-top-color: var(--green); }
.course-card h3 { margin: 12px 0 10px; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.04em; line-height: 1.2; }
.course-card p { margin: 0 0 18px; color: var(--mid-grey); font-size: 0.88rem; line-height: 1.55; flex: 1; }
.course-card .button { align-self: flex-start; }
.course-card .soon { display: inline-block; padding: 5px 10px; background: var(--red); color: #fff; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px; }

@media (max-width: 900px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cf-row { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
}

/* CASE STUDY PAGES */
.case-study-page .button { background: var(--red); border-radius: 999px; }
.case-study-page .button:hover { background: var(--ink); }
.case-study-content { width: min(840px, 56vw); margin-left: 40vw; padding: 8vh 5vw 8vh 0; }
.case-study-content h1 { font-size: clamp(2.3rem, 5.5vw, 5.8rem); }
.hero-copy { max-width: 520px; font-size: 1.05rem; line-height: 1.6; margin-top: 16px; color: var(--mid-grey); }
.foot { font-size: 0.78rem; line-height: 1.6; color: var(--mid-grey); max-width: 560px; margin-top: 14px; font-style: italic; }

/* KPI STRIP */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 30px; }
.kpi { border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--white); padding: 24px 26px; }
.kpi b { display: block; font-size: clamp(1.9rem, 3.4vw, 3.2rem); letter-spacing: -0.06em; line-height: 1; }
.kpi span { display: block; margin-top: 12px; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-grey); }

/* BEFORE-AFTER */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.ba-card { padding: 28px 24px; background: var(--white); border: 1px solid var(--line); }
.ba-card.before { border-top: 4px solid var(--red); }
.ba-card.after { border-top: 4px solid #7bc67e; }
.ba-card h4 { margin: 0 0 10px; font-size: 1rem; letter-spacing: -0.02em; }
.ba-card p { margin: 0; font-size: 0.82rem; color: var(--mid-grey); line-height: 1.6; }

/* TECH GRID */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.cs-panel { padding: 22px 20px; background: var(--white); border: 1px solid var(--line); }
.cs-panel.blu { border-top: 4px solid var(--blue); }
.cs-panel.aut { border-top: 4px solid var(--mid-grey); }
.cs-panel.c1 { border-top: 3px solid var(--red); }
.cs-panel.c2 { border-top: 3px solid var(--blue); }
.cs-panel.c3 { border-top: 3px solid #f5a623; }
.cs-panel.c4 { border-top: 3px solid #7bc67e; }
.cs-panel h4 { margin: 0 0 8px; font-size: 0.95rem; letter-spacing: -0.02em; }
.cs-panel p { margin: 0; font-size: 0.78rem; color: var(--mid-grey); line-height: 1.5; }

/* ARCH STEPS */
.arch { margin-top: 24px; }
.arch-step { display: flex; align-items: stretch; border: 1px solid var(--line); border-left: 5px solid var(--blue); background: var(--white); margin-bottom: -1px; }
.arch-step:last-child { margin-bottom: 0; }
.arch-icon { display: flex; align-items: center; justify-content: center; width: 48px; background: rgba(85,119,255,0.06); font-weight: 900; font-size: 0.85rem; color: var(--blue); flex-shrink: 0; }
.arch-body { padding: 16px 20px; flex: 1; }
.arch-body strong { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.arch-body p { margin: 0; font-size: 0.82rem; color: var(--mid-grey); line-height: 1.5; }

/* PROCESS FLOW */
.pf-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pf-item { padding: 10px 14px; border: 1px solid var(--line); background: var(--white); font-size: 0.75rem; font-weight: 600; color: var(--mid-grey); white-space: nowrap; }
.pf-arrow { color: var(--red); font-size: 1rem; font-weight: 900; padding: 0 2px; }

/* CONSTRAINT BOX */
.constraint-box { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--blue); background: rgba(85,119,255,0.04); font-size: 0.82rem; line-height: 1.7; color: var(--mid-grey); }
.constraint-box strong { color: var(--blue); }

/* STATUS BANNER */
.status-banner { margin-top: 20px; padding: 18px 22px; background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.2); font-size: 0.82rem; line-height: 1.6; color: var(--mid-grey); }
.status-banner strong { color: #f5a623; }

/* INSIGHT */
.insight { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--red); background: rgba(208,0,0,0.03); font-size: 0.82rem; line-height: 1.6; color: var(--mid-grey); }
.insight strong { color: var(--red); }

/* CHECKLIST */
.checklist { list-style: none; padding: 0; margin-top: 18px; }
.checklist li { padding: 8px 0; font-size: 0.85rem; color: var(--mid-grey); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.checklist li .icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.7rem; font-weight: 900; margin-top: 2px; }
.checklist li.done .icon { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.checklist li.pending .icon { border: 1px solid var(--line); color: var(--mid-grey); }

/* LESSONS */
.lessons { list-style: none; padding: 0; margin-top: 20px; }
.lessons li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; line-height: 1.7; color: var(--mid-grey); }
.lessons li:last-child { border-bottom: none; }

/* STEPS-6 */
.steps-6 { list-style: none; padding: 0; margin-top: 22px; }
.steps-6 li { display: flex; gap: 14px; padding: 10px 0; font-size: 0.88rem; line-height: 1.6; color: var(--mid-grey); }
.steps-6 li b { min-width: 50px; color: var(--ink); }

/* MONO LIST */
.mono-list { margin-top: 18px; padding-left: 18px; }
.mono-list li { font-size: 0.85rem; line-height: 1.7; color: var(--mid-grey); margin-bottom: 6px; }

/* SECTION NAV */
.section-nav { display: flex; gap: 24px; }
.section-nav a { color: var(--red); text-decoration: none; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* FOOTER */
.site-footer { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3vw; padding: 8vh 5vw; background: var(--white); border-top: var(--line) solid var(--ink); }
.site-footer .brand { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.site-footer p { margin: 0; font-size: 0.85rem; color: var(--mid-grey); line-height: 1.6; margin-top: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: clamp(0.7rem, 1.5vw, 1.6rem); text-transform: uppercase; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--mid-grey); }
.site-footer nav a { padding: 4px 0; transition: color 0.2s ease; }
.site-footer nav a:hover { color: var(--ink); }
.ft-col { display: flex; flex-direction: column; }
.ft-project { gap: 10px; justify-content: center; text-align: right; }
.ft-project .ft-proj-name { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ft-project .ft-proj-data { font-size: 0.68rem; color: var(--mid-grey); line-height: 1.5; }

/* SCROLL ANIMATIONS */
.js .kpi-strip .kpi, .js .before-after .ba-card, .js .tech-grid .cs-panel, .js .arch .arch-step, .js .steps-6 li { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; transition-delay: calc(var(--i,0) * 70ms); }
.js .kpi-strip.show .kpi, .js .before-after.show .ba-card, .js .tech-grid.show .cs-panel, .js .arch.show .arch-step, .js .steps-6.show li { opacity: 1; transform: none; }

/* RESPONSIVE OVERRIDES */
@media (max-width: 900px) {
  .case-study-content { width: 58vw; margin-left: 38vw; }
  .hero-content { margin-left: 47vw; }
}
@media (max-width: 760px) {
  .before-after, .tech-grid { grid-template-columns: 1fr; }
  .case-study-content { width: 100%; margin-left: 0; padding: 0 6vw; }
  .case-study-content h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .pf-row { flex-direction: column; align-items: flex-start; }
  .pf-arrow { transform: rotate(90deg); }
  .hero-copy { max-width: none; }
  .section-nav { flex-direction: column; gap: 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding: 6vh 6vw; }
  .site-footer nav { flex-direction: column; gap: 10px; }
}
