/* ============================================================
   V4 HOME — reference direction (art-directed editorial system)
   Scope: home hero + selected work (first review gate).
   Frame: charcoal, warm off-white, acid-lime accent, thin grid,
   grain, monumental condensed display. LTR base, Arabic inside.
   ============================================================ */

@font-face {
  font-family: "V4 ThmanyahSans";
  src: url("./fonts/thmanyahsans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "V4 ThmanyahSans";
  src: url("./fonts/thmanyahsans-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "V4 ThmanyahSans";
  src: url("./fonts/thmanyahsans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "V4 ThmanyahSans";
  src: url("./fonts/thmanyahsans-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "V4 ThmanyahSerifDisplay";
  src: url("./fonts/thmanyahserifdisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "V4 ThmanyahSerifDisplay";
  src: url("./fonts/thmanyahserifdisplay-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --v4-bg: #0b0b0a;
  --v4-bg-2: #101010;
  --v4-ink: #f2efe9;
  --v4-mut: #a8a49b;
  --v4-faint: rgba(242, 239, 233, 0.45);
  --v4-line: rgba(242, 239, 233, 0.14);
  --v4-line-soft: rgba(242, 239, 233, 0.07);
  --v4-lime: #d7ff3f;
  --v4-lime-ink: #131507;
  --v4-latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --v4-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --v4-script: "Kaushan Script", "Segoe Script", cursive;
  --v4-ar: "V4 ThmanyahSans", "Segoe UI", Arial, sans-serif;
  --v4-ar-display: "V4 ThmanyahSerifDisplay", "V4 ThmanyahSans", serif;
  --v4-shell: min(1440px, 100%);
  --v4-header-h: 58px;
}

* { box-sizing: border-box; }

html.v4-root {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  -webkit-text-size-adjust: 100%;
}

body.v4 {
  margin: 0;
  background: var(--v4-bg);
  color: var(--v4-ink);
  font-family: var(--v4-ar);
  line-height: 1.7;
  overflow-x: clip;
}

body.v4 img { display: block; max-width: 100%; }
body.v4 ::selection { background: var(--v4-lime); color: var(--v4-lime-ink); }
body.v4 :focus-visible { outline: 2px solid var(--v4-lime); outline-offset: 3px; }

/* analog grain */
body.v4::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.v4-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--v4-lime);
  color: var(--v4-lime-ink);
  padding: 8px 14px;
  text-decoration: none;
  font: 700 12px/1 var(--v4-latin);
}
.v4-skip:focus { top: 10px; }

.v4-shell {
  width: var(--v4-shell);
  margin-inline: auto;
}

/* structural grid */
.v4-gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    var(--v4-line-soft) 0 1px,
    transparent 1px 25%
  );
}

/* ============================================================
   HEADER
   ============================================================ */

.v4-top {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 10, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v4-line);
}

.v4-top-in {
  width: var(--v4-shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 11px 32px;
}

.v4-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--v4-ink);
}

.v4-mark {
  width: 34px;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.v4-brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.v4-brand-copy b {
  font: 700 13px/1.2 var(--v4-latin);
  letter-spacing: 0.14em;
}
.v4-brand-copy span {
  font: 600 8px/1.4 var(--v4-latin);
  letter-spacing: 0.3em;
  color: var(--v4-mut);
}

.v4-nav {
  margin-inline: auto;
  display: flex;
  gap: 30px;
}

.v4-nav a {
  position: relative;
  padding-bottom: 6px;
  color: var(--v4-ink);
  text-decoration: none;
  font: 700 11px/1 var(--v4-latin);
  letter-spacing: 0.22em;
  opacity: 0.9;
  transition: color 0.25s ease;
}
.v4-nav a:hover { color: var(--v4-lime); opacity: 1; }
.v4-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--v4-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.v4-nav a:hover::after { transform: scaleX(1); }

.v4-tools { display: flex; align-items: center; gap: 20px; }

.v4-lang {
  display: flex;
  gap: 8px;
  font: 700 10px/1 var(--v4-latin);
  letter-spacing: 0.2em;
  color: var(--v4-faint);
}
.v4-lang b { color: var(--v4-ink); }

.v4-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--v4-lime);
  color: var(--v4-lime);
  padding: 9px 15px;
  text-decoration: none;
  font: 700 10.5px/1 var(--v4-latin);
  letter-spacing: 0.2em;
  transition: background 0.25s ease, color 0.25s ease;
}
.v4-cta:hover { background: var(--v4-lime); color: var(--v4-lime-ink); }

.v4-menu-btn { display: none; }
.v4-mobile-nav { display: none; }

/* ============================================================
   HERO
   ============================================================ */

.v4-hero {
  position: relative;
  padding-top: var(--v4-header-h);
  border-bottom: 1px solid var(--v4-line);
  overflow: clip;
  background:
    radial-gradient(58% 52% at 36% 42%, rgba(244, 241, 234, 0.05), transparent 72%),
    var(--v4-bg);
}

.v4-hero-in {
  position: relative;
  height: calc(100svh - var(--v4-header-h));
  min-height: 640px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(300px, 344px);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 18px;
  padding: 14px 32px 26px;
}

.v4-rail {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font: 700 8.5px/1 var(--v4-latin);
  letter-spacing: 0.24em;
  color: var(--v4-faint);
}
.v4-rail i {
  width: 26px;
  height: 1px;
  background: var(--v4-lime);
  margin-bottom: 4px;
}

.v4-scroll {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--v4-mut);
  font: 700 8.5px/1 var(--v4-latin);
  letter-spacing: 0.24em;
  margin-bottom: 4px;
}
.v4-scroll i {
  width: 40px;
  height: 40px;
  border: 1px solid var(--v4-line);
  border-radius: 50%;
  position: relative;
}
.v4-scroll i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--v4-lime);
}
.v4-scroll:hover { color: var(--v4-ink); }

.v4-hero-type {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 12px;
}

.v4-eyebrow {
  margin: 0;
  font: 700 11px/1 var(--v4-latin);
  letter-spacing: 0.3em;
  color: var(--v4-ink);
}
.v4-eyebrow-sub {
  margin: 8px 0 0;
  font: 600 10px/1 var(--v4-latin);
  letter-spacing: 0.26em;
  color: var(--v4-mut);
}

.v4-name {
  font-family: var(--v4-display);
  font-weight: 400;
  font-size: clamp(84px, 14.4vw, 208px);
  line-height: 0.84;
  letter-spacing: 0.004em;
  margin: 30px 0 0;
  text-transform: uppercase;
  color: var(--v4-ink);
}
.v4-name span { display: block; }

.v4-script {
  font-family: var(--v4-script);
  color: var(--v4-lime);
  font-size: clamp(24px, 2.85vw, 43px);
  line-height: 1.15;
  margin: 14px 0 0 6px;
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* proof strip — positioning-led, 3 blocks */
.v4-proof {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 4;
  margin-left: 72px;
  padding-bottom: 4px;
  display: flex;
  align-items: flex-end;
  gap: 38px;
}
.v4-proof div { display: flex; flex-direction: column; gap: 8px; }
.v4-proof b {
  font-family: var(--v4-display);
  font-weight: 400;
  line-height: 1;
}
.v4-proof-num { font-size: 38px; }
.v4-proof-text {
  font-family: var(--v4-latin);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-bottom: 3px;
}
.v4-proof-code {
  font-size: 24px;
  letter-spacing: 0.04em;
  padding-bottom: 1px;
}
.v4-proof span {
  font: 600 8.5px/1.6 var(--v4-latin);
  letter-spacing: 0.22em;
  color: var(--v4-mut);
}

/* portrait collage — editorial crop, blended into the composition */
.v4-hero-portrait {
  position: absolute;
  left: 46.6%;
  top: 3.5%;
  bottom: 0;
  width: min(27.5vw, 386px);
  height: auto;
  margin: 0;
  z-index: 3;
  overflow: hidden;
}
.v4-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transform: scale(1.25);
  transform-origin: 50% 20%;
  filter: grayscale(1) contrast(1.18) brightness(0.92);
}
.v4-hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.85) 0%, rgba(11, 11, 10, 0.05) 26%, rgba(11, 11, 10, 0.14) 48%, rgba(11, 11, 10, 0.96) 100%),
    linear-gradient(90deg, rgba(11, 11, 10, 0.6) 0%, rgba(11, 11, 10, 0) 22%),
    radial-gradient(62% 46% at 50% 44%, rgba(11, 11, 10, 0) 56%, rgba(11, 11, 10, 0.6) 100%);
}

/* right column */
.v4-hero-aside {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 22px;
  min-width: 0;
}

.v4-hero-aside > * { position: relative; z-index: 1; }

.v4-meta {
  margin: 0;
  font: 700 10px/1.9 var(--v4-latin);
  letter-spacing: 0.24em;
  color: var(--v4-ink);
}
.v4-meta span { color: var(--v4-mut); }

.v4-ar-title {
  font-family: var(--v4-ar-display);
  font-weight: 900;
  font-size: clamp(44px, 4.5vw, 70px);
  line-height: 1.24;
  margin: 14px 0 0;
  text-align: right;
  max-width: 7ch;
  margin-left: auto;
}
.v4-ar-title em { font-style: normal; color: var(--v4-lime); }

.v4-ar-body {
  margin: 6px 0 0;
  text-align: right;
  color: var(--v4-mut);
  font-size: 14.5px;
  line-height: 2;
}

.v4-see {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  color: var(--v4-ink);
  text-decoration: none;
  font: 700 10px/1 var(--v4-latin);
  letter-spacing: 0.24em;
}
.v4-see i {
  width: 38px;
  height: 38px;
  border: 1px solid var(--v4-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  color: var(--v4-lime);
  font-size: 14px;
}
.v4-see:hover { color: var(--v4-lime); }

.v4-featured {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--v4-line);
  min-width: 0;
}
.v4-featured-label {
  margin: 0 0 6px;
  font: 700 8.5px/1 var(--v4-latin);
  letter-spacing: 0.28em;
  color: var(--v4-mut);
}
.v4-featured a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--v4-line-soft);
  text-decoration: none;
  color: var(--v4-ink);
}
.v4-featured a:last-child { border-bottom: 0; }
.v4-featured img {
  width: 58px;
  height: 38px;
  object-fit: cover;
  filter: grayscale(0.2);
}
.v4-featured a span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v4-featured a b {
  font: 700 12px/1 var(--v4-latin);
  letter-spacing: 0.15em;
}
.v4-featured a small {
  font: 600 9px/1 var(--v4-latin);
  letter-spacing: 0.18em;
  color: var(--v4-mut);
}
.v4-featured a > i {
  margin-left: auto;
  font-style: normal;
  color: var(--v4-lime);
}
.v4-featured a:hover b { color: var(--v4-lime); }

/* ============================================================
   SELECTED WORK
   ============================================================ */

.v4-work {
  position: relative;
  border-bottom: 1px solid var(--v4-line);
  overflow: clip;
}

.v4-work-in {
  padding: 44px 32px 0;
}

.v4-rail-work {
  position: absolute;
  left: 32px;
  top: 46%;
  z-index: 1;
}

.v4-work-kicker {
  margin: 0;
  text-align: center;
  font: 700 10px/1 var(--v4-latin);
  letter-spacing: 0.32em;
  color: var(--v4-mut);
}

.v4-work-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-top: 10px;
  padding-left: 56px;
}

.v4-work-title {
  font-family: var(--v4-display);
  font-weight: 400;
  font-size: clamp(64px, 10.3vw, 150px);
  line-height: 0.92;
  letter-spacing: 0.004em;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--v4-ink);
  background-image:
    linear-gradient(180deg, rgba(14, 14, 13, 0.3), rgba(14, 14, 13, 0.04) 55%, rgba(14, 14, 13, 0.22)),
    url("./img/portfolio/ahmed-salem/(5).webp");
  background-size: cover, cover;
  background-position: 50% 32%, 50% 32%;
  background-color: #efeade;
  background-blend-mode: normal, soft-light;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.v4-work-script {
  position: absolute;
  left: 11%;
  bottom: -12px;
  margin: 0;
  font-size: clamp(24px, 2.8vw, 40px);
}

.v4-work-aside {
  margin-left: auto;
  width: 268px;
  padding-bottom: 8px;
  text-align: right;
}
.v4-work-aside h3 {
  font-family: var(--v4-ar-display);
  font-weight: 900;
  font-size: clamp(35px, 3.05vw, 50px);
  line-height: 1.28;
  margin: 0 0 10px;
}
.v4-work-aside h3 em { font-style: normal; color: var(--v4-lime); }
.v4-work-aside p {
  margin: 0 0 12px;
  color: var(--v4-mut);
  font-size: 13px;
  line-height: 1.95;
}
.v4-work-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 700 8.5px/1.4 var(--v4-latin);
  letter-spacing: 0.24em;
  color: var(--v4-faint);
}

/* cards */
.v4-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.v4-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--v4-line);
  background: var(--v4-bg-2);
  text-decoration: none;
  color: var(--v4-ink);
}

.v4-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 8 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--v4-line);
}
.v4-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.v4-card:hover figure img { transform: scale(1.035); }

.v4-card-no {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 4px 7px;
  background: rgba(11, 11, 10, 0.55);
  font: 700 11px/1 var(--v4-latin);
  letter-spacing: 0.18em;
  color: rgba(242, 239, 233, 0.92);
}

.v4-card-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 16px 16px;
}
.v4-card-names {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.v4-card-names b {
  font-family: var(--v4-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.v4-card-names span {
  font-family: var(--v4-ar-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--v4-mut);
}
.v4-card-names i {
  margin-left: auto;
  font-style: normal;
  color: var(--v4-lime);
  font-size: 17px;
  transition: transform 0.3s ease;
}
.v4-card:hover .v4-card-names i { transform: translateX(4px); }
.v4-card-foot small {
  font: 600 8.5px/1.5 var(--v4-latin);
  letter-spacing: 0.2em;
  color: var(--v4-mut);
}

/* ManageX card: tighter crop on the KPI/dashboard area + subtle framing */
.v4-card--managex figure img {
  object-position: 50% 24%;
  transform: scale(1.3);
  transform-origin: 50% 26%;
}
.v4-card--managex:hover figure img { transform: scale(1.36); }
.v4-card--managex figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(118% 96% at 50% 38%, transparent 52%, rgba(11, 11, 10, 0.4) 100%);
}

/* bottom strip */
.v4-work-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--v4-line);
  margin-top: 40px;
  padding: 20px 0 24px 56px;
}

.v4-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--v4-ink);
  font: 700 9px/1 var(--v4-latin);
  letter-spacing: 0.26em;
  white-space: nowrap;
}
.v4-all i {
  width: 42px;
  height: 42px;
  border: 1px solid var(--v4-line);
  border-radius: 50%;
  position: relative;
}
.v4-all i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--v4-lime);
}
.v4-all:hover { color: var(--v4-lime); }

.v4-quote {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: var(--v4-mut);
  font: 600 9.5px/1.7 var(--v4-latin);
  letter-spacing: 0.18em;
}
.v4-quote span[dir="rtl"] {
  font-family: var(--v4-ar-display);
  font-size: 17px;
  letter-spacing: 0;
  color: var(--v4-ink);
}

.v4-globe {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v4-mut);
  font: 600 9px/1.6 var(--v4-latin);
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.v4-globe i {
  width: 22px;
  height: 22px;
  border: 1px solid var(--v4-line);
  border-radius: 50%;
  position: relative;
}
.v4-globe i::before,
.v4-globe i::after {
  content: "";
  position: absolute;
  inset: 5px 2px;
  border: 1px solid var(--v4-line);
  border-radius: 50%;
}
.v4-globe i::after { inset: 10px 1px; border-radius: 0; border-width: 1px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */

.v4-foot {
  border-top: 1px solid var(--v4-line);
}

.v4-foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px 32px 15px;
  color: var(--v4-mut);
  font: 600 9px/1.6 var(--v4-latin);
  letter-spacing: 0.18em;
}
.v4-foot-in nav { display: flex; gap: 24px; }
.v4-foot-in a {
  color: var(--v4-mut);
  text-decoration: none;
}
.v4-foot-in a:hover { color: var(--v4-lime); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .v4-name { font-size: clamp(76px, 13vw, 172px); }
  .v4-hero-in { height: auto; min-height: calc(100svh - var(--v4-header-h)); }
  .v4-hero-portrait { left: 45%; width: min(27vw, 330px); }
  .v4-work-head { padding-left: 0; }
  .v4-work-aside { width: 250px; }
  .v4-work-foot { padding-left: 0; }
}

@media (max-width: 1023px) {
  .v4-nav { display: none; }
  .v4-lang { display: none; }
  .v4-menu-btn {
    display: inline-block;
    background: none;
    border: 1px solid var(--v4-line);
    color: var(--v4-ink);
    padding: 8px 13px;
    font: 700 10px/1 var(--v4-latin);
    letter-spacing: 0.2em;
    cursor: pointer;
  }
  .v4-menu-btn:hover { border-color: var(--v4-lime); color: var(--v4-lime); }
  .v4-mobile-nav {
    display: none;
    flex-direction: column;
    padding: 6px 32px 18px;
  }
  .v4-mobile-nav.open { display: flex; }
  .v4-mobile-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--v4-line-soft);
    color: var(--v4-ink);
    text-decoration: none;
    font: 700 12px/1 var(--v4-latin);
    letter-spacing: 0.22em;
  }
  .v4-mobile-nav a:first-child { border-top: 0; }
  .v4-mobile-cta { color: var(--v4-lime) !important; }

  .v4-hero-in {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
    padding: 12px 24px 24px;
  }
  .v4-rail, .v4-scroll { display: none; }
  .v4-hero-type { grid-column: 1; grid-row: auto; order: 1; }
  .v4-hero-aside { grid-column: 1; grid-row: auto; order: 3; padding-top: 26px; }
  .v4-hero-portrait { order: 2; }
  .v4-proof { grid-column: 1; grid-row: auto; order: 4; }
  .v4-featured { grid-column: 1; grid-row: auto; order: 5; }

  .v4-hero-portrait {
    position: relative;
    left: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 26px 0 0;
  }
  .v4-hero-portrait img {
    object-position: 50% 8%;
    transform: scale(1.42);
    transform-origin: 50% 16%;
  }

  .v4-proof {
    margin-left: 0;
    padding-bottom: 0;
    gap: 24px;
    margin-top: 28px;
  }
  .v4-proof div { flex: 1; }

  .v4-work-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .v4-work-title { white-space: normal; }
  .v4-work-script { position: static; transform: rotate(-3deg); margin-top: 8px; }
  .v4-work-aside { width: 100%; margin-top: 18px; text-align: right; }
  .v4-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-rail-work { display: none; }
  .v4-work-in { padding: 34px 24px 0; }
  .v4-work-foot { flex-wrap: wrap; gap: 18px; }
  .v4-quote { align-items: flex-start; text-align: left; }
  .v4-foot-in { padding-inline: 24px; }
}

@media (max-width: 640px) {
  .v4-top-in { padding: 10px 18px; gap: 12px; }
  .v4-mobile-nav { padding-inline: 18px; }
  .v4-cta { display: none; }
  .v4-brand-copy b { font-size: 12px; }

  .v4-hero-in { padding: 8px 18px 20px; }
  .v4-name { font-size: clamp(58px, 20vw, 96px); margin-top: 20px; }
  .v4-eyebrow { font-size: 9.5px; }
  .v4-eyebrow-sub { font-size: 8.5px; }
  .v4-script { font-size: 24px; }
  .v4-hero-portrait { aspect-ratio: 5 / 4; max-width: none; margin-top: 22px; }
  .v4-proof { gap: 12px; margin-top: 24px; justify-content: space-between; }
  .v4-proof-num { font-size: 22px; }
  .v4-proof-text { font-size: 9.5px; letter-spacing: 0.12em; padding-bottom: 2px; }
  .v4-proof-code { font-size: 15px; }
  .v4-proof span { font-size: 7px; letter-spacing: 0.14em; }
  .v4-ar-title { font-size: 34px; }
  .v4-ar-body { font-size: 13.5px; }

  .v4-work-in { padding: 26px 18px 0; }
  .v4-work-title { font-size: clamp(42px, 13vw, 72px); }
  .v4-work-kicker { font-size: 8.5px; letter-spacing: 0.24em; }
  .v4-work-aside h3 { font-size: 30px; }
  .v4-cards { grid-template-columns: 1fr; margin-top: 26px; }
  .v4-work-foot { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .v4-quote { align-items: flex-start; }
  .v4-foot-in { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px 18px; }
  .v4-foot-in nav { flex-wrap: wrap; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html.v4-root { scroll-behavior: auto; }
}

