/* ============================================
   Brad Beam — Portfolio
   Built from BradS website Specs@3x.pdf
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg:            #F5F5F7;   /* light section bg */
  --bg-dark:       #000000;   /* dark hero/process bg */
  --bg-dark-2:     #141414;   /* deep section bg */
  --bg-dark-3:     #313031;   /* dark section gradient */
  --card:          #FFFFFF;
  --card-neutral:  #E3E3E3;
  --stroke:        #DDDDDD;

  /* type */
  --ink:           #000000;
  --ink-title:     #3D3C3C;   /* big title gray */
  --ink-sub:       #6A6A6B;   /* light section subhead */
  --ink-sub-dark:  #919191;   /* dark section subhead */
  --on-dark:       #FFFFFF;

  /* accents */
  --teal-1:        #44D7B6;   /* primary button accent */
  --teal-2:        #30BAA4;   /* mid accent */
  --teal-3:        #93E8D5;   /* dark-section header */
  --teal-4:        #49998B;   /* gradient end + deep teal */

  /* effects */
  --shadow-card:   0 2px 15px rgba(0,0,0,0.10);
  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  /* layout — spec values scaled ~32% to fit a 1440 viewport
     (spec artboard was ~4900px wide @3x) */
  --max:           1280px;        /* 1420 * 0.9 */
  --pad-x:         clamp(16px, 2.2vw, 32px);   /* 101 * 0.32 ≈ 32 */
  --section-pad:   clamp(28px, 4vw, 48px);     /* 140 * 0.32 ≈ 45 */

  /* type scale — spec values (80/36/34/20) scaled ~33% */
  --t-display:     clamp(28px, 3.4vw, 44px);   /* 80 → ~26, bumped to 44 max for the giant brand mark space */
  --t-h2:          clamp(18px, 1.6vw, 22px);   /* 36 → ~12, lifted to 22 for readability */
  --t-h3:          clamp(16px, 1.4vw, 20px);   /* 34 → ~11, lifted to 20 */
  --t-body:        clamp(13px, 1vw, 15px);     /* 20 → ~6.4, lifted to 15 for readability */
  --t-eyebrow:     clamp(11px, 0.9vw, 13px);   /* 18 → ~6, lifted to 13 */
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", "SF Pro Display", BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

ul { margin: 0; padding: 0; list-style: none; }

p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-weight: 400;        /* SF Pro Regular per spec */
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-body);
  font-weight: 400;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--teal-1);
  color: var(--teal-1);
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--teal-1);
  color: #fff;
  opacity: 1;
}
.btn:active { transform: translateY(1px); }

.btn--pill { min-width: 120px; }

/* ---------- Top nav (floating dark pill) ---------- */
.topnav {
  position: sticky;
  top: clamp(12px, 1.5vw, 22px);
  z-index: 50;
  width: 100%;
  padding-inline: var(--pad-x);
  pointer-events: none;
}
.topnav__pill {
  width: 100%;
  max-width: calc(var(--max) - 60px);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 8px 22px;
  background: linear-gradient(180deg, #2c2c2e 0%, #1a1a1c 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__logo { width: 28px; height: 28px; object-fit: contain; }
.brand__name { font-size: 18px; color: #fff; letter-spacing: 0.01em; }

.topnav__divider {
  flex: 0 0 auto;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
}

.topnav__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}
.topnav__link {
  color: #9a9a9c;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.topnav__link:hover { color: var(--teal-1); opacity: 1; }
.topnav__link.is-active { color: var(--teal-1); }

.topnav__links { display: flex; gap: 10px; flex: 0 0 auto; }

/* keep anchored sections clear of the sticky pill */
section[id] { scroll-margin-top: clamp(80px, 9vh, 100px); }

.btn--on-dark {
  color: var(--teal-1);
  border-color: var(--teal-1);
  background: transparent;
  padding: 8px 22px;
  font-size: 16px;
}
.btn--on-dark:hover {
  background: var(--teal-1);
  color: #0c0c0c;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 48px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
/* Brad portrait floats on the right edge as background art */
.hero__art {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: -10%;
  width: 60%;        /* larger */
  z-index: 0;
  pointer-events: none;
}
.hero__art img {
  width: 110%;       /* slightly oversized so portrait fills + extends inward */
  height: 110%;
  margin-left: -10%; /* shift inward toward the body text */
  transform: translateX(60px);  /* nudge back outward by 60px total */
  object-fit: contain;
  object-position: center bottom;
}
/* Content block centered on the whole screen */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  min-height: 56vh;
  display: grid;
  place-items: center;
}
.hero__copy {
  text-align: center;
  max-width: 640px;
  padding-block: clamp(16px, 2vw, 24px);
}
.hero__mark {
  width: clamp(80px, 7.5vw, 112px);
  margin: 0 auto 36px;
  display: block;
}
.hero__sub {
  font-size: clamp(20px, 2.3vw, 30px);   /* per request: size 30 */
  color: var(--teal-2);
  margin: 0 0 18px;
  line-height: 1.15;
}
.hero__body {
  font-size: var(--t-body);
  color: var(--ink);
  margin: 0 auto;
  max-width: 52ch;
  line-height: 1.55;
}

/* ---------- Sidebar (5 nav items) ---------- */
.sidebar {
  position: absolute;
  left: clamp(8px, 1.4vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.sidebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  color: var(--ink-title);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.sidebar__item:hover {
  background: var(--teal-3);
  color: var(--bg-dark);
  opacity: 1;
}
.sidebar__icon {
  width: 16px;
  height: 16px;
  color: inherit;
}
.sidebar__label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: inherit;
}

/* ---------- How I Work with AI ---------- */
.ai {
  position: relative;
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: clamp(40px, 5vw, 64px) 0 var(--section-pad);
  /* No overflow:hidden so the robotic woman can bleed up into the hero */
  overflow: visible;
}
/* Robotic woman: sized so the whole figure is visible — head pokes up
   into the white hero section above; chest/torso sit inside the dark section. */
.ai__art,
.ai__art.reveal,
.ai__art.reveal.is-visible {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  top: 23px;                          /* dropped down 23px from the section edge */
  width: clamp(390px, 42vw, 590px);
  z-index: 45;                        /* above hero content, below top nav (50) */
  pointer-events: none;
  transform: translateY(-14%);
  opacity: 1;
}
.ai__copy { position: relative; z-index: 50; }
.ai__art img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45));
}
.ai__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: clamp(260px, 28vw, 360px);
}
.ai__art-spacer { display: block; }

.ai__title {
  font-size: clamp(20px, 1.9vw, 26px);   /* slightly larger */
  color: var(--teal-3);
  margin-bottom: 12px;
}
.ai__body {
  font-size: var(--t-body);
  color: var(--on-dark);
  max-width: 52ch;
  line-height: 1.5;
}
.ai__caption {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
/* ---------- My Lens — gradient card (spec: W-1421 H-651 → scaled) ---------- */
.my-lens {
  background: var(--bg-dark);
  padding: clamp(16px, 2vw, 28px) 0 40px;
}
.lens-card {
  background: linear-gradient(135deg, #49998B 0%, #E3E3E3 45%, #E3E3E3 100%);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 32px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: center;
  /* spec aspect ratio 1421:651 ≈ 2.18:1 */
  aspect-ratio: 2.18 / 1;
  min-height: 0;
  overflow: visible;       /* allow image to protrude */
  position: relative;
  z-index: 46;             /* sit above the robotic woman image (45), below top nav (50) */
}
.lens-card__text {
  padding-left: 20px;            /* nudge text inward toward the card center */
}
.lens-card__h {
  max-width: 18ch;               /* squeeze title so it wraps */
}
.lens-card__h {
  /* spec: SF Pro 36 Regular #000 — scaled */
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: #000;
  margin: 0 0 12px;
  line-height: 1.2;
}
.lens-card__body {
  /* spec: SF Pro 20 Regular #000 — scaled */
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.5;
  max-width: 48ch;
}
.lens-card__art {
  display: flex;
  justify-content: center;
  align-items: flex-end;     /* anchor image to bottom of cell */
  align-self: stretch;
}
.lens-card__art img {
  width: 100%;               /* back to original size */
  max-width: 100%;
  height: auto;
  margin-top: -60px;         /* still protrudes above the card top */
  border-radius: 8px;
  display: block;
  /* No drop shadow */
}

/* ---------- Cassie — gradient card (mirror of My Lens, teal at bottom-right) ---------- */
.cassie {
  background: var(--bg-dark);
  padding: 0 0 clamp(66px, 6vw, 78px);   /* keep +50px black under the tag-strip */
}
.cassie .tag-strip {
  max-width: 56ch;            /* squeeze so the skill list wraps to two lines */
  margin-left: auto;
  margin-right: auto;
}
.cassie-card {
  /* same dimensions as My Lens, gradient flipped so teal ends at bottom-right */
  background: linear-gradient(135deg, #E3E3E3 0%, #E3E3E3 55%, #49998B 100%);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 32px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: center;
  aspect-ratio: 2.18 / 1;
  min-height: 0;
  overflow: visible;
  position: relative;
}
.cassie-card__text {
  padding-left: 20px;             /* nudge text inward toward the card center */
}
.cassie-card__h {
  max-width: 18ch;                /* squeeze title so it wraps */
}
.cassie-card__h {
  /* spec: SF Pro 36 Regular #000 — scaled */
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: #000;
  margin: 0 0 4px;
  line-height: 1.2;
}
.cassie-card__sub {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  color: #000;
}
.cassie-card__org {
  font-size: clamp(13px, 1.1vw, 16px);
  color: #000;
  margin: 0 0 14px;
}
.cassie-card__body {
  /* spec: SF Pro 20 Regular #000 — scaled */
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.5;
  max-width: 48ch;
}
.cassie-card__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cassie-card__art img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  /* No drop shadow */
}

/* ---------- Nextiva (light card on dark bg) ---------- */
.nextiva {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: 0 0 40px;
}
/* spec: Card #E3E3E3, W:703 H:625, Header SF Pro 36 Regular #000, Body SF Pro 20 Regular #000 */
.nextiva__card {
  background: #E3E3E3;
  color: #000;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 64px);    /* more breathing room between image and copy */
  align-items: center;
}
.nextiva__copy { padding-right: 8px; }
.nextiva__title { max-width: 14ch; }   /* squeeze so title wraps onto a second line */
.nextiva__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nextiva__art-main {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  /* No drop shadow */
}
.nextiva__title {
  /* spec: SF Pro 36 Regular #000 — scaled */
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: #000;
  margin: 0 0 14px;
  line-height: 1.2;
}
.nextiva__sub {
  font-size: clamp(13px, 1.1vw, 16px);
  color: #000;
  font-weight: 400;
  display: inline;
}
.nextiva__body {
  /* spec: SF Pro 20 Regular #000 — scaled */
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: #000;
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}

/* Legacy / card eyebrow (used by UI/UX cards) */
.card__eyebrow {
  font-size: var(--t-eyebrow);
  color: var(--on-dark);
  opacity: 0.7;
  margin-bottom: 18px;
}
.card__body {
  font-size: var(--t-body);
  max-width: 60ch;
}

.tag-strip {
  margin-top: 56px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.tag-strip--center { color: var(--ink-sub); }

/* Squeeze the UI/UX section's tag-strip so it wraps onto 2–3 lines */
.uiux-grid .tag-strip {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- UI/UX intro ---------- */
.uiux-intro {
  background: var(--bg);
  /* +60px between the black/white border and the design icon */
  padding: calc(var(--section-pad) + 60px) 0 0;
  text-align: center;
}
.uiux-intro__icon {
  width: 56px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.uiux-intro__title {
  font-size: var(--t-display);
  color: var(--teal-2);
  margin-bottom: 12px;
}
.uiux-intro__sub {
  font-size: var(--t-body);
  color: var(--ink-sub);
  /* squeeze so the subtitle wraps onto two more even lines */
  max-width: 36ch;
  margin: 0 auto;
}

/* The UI/UX grid lives in a separate section — give it 174px of breathing
   room from the bottom of the .uiux-intro subtitle. */
.uiux-grid { background: var(--bg); padding: 134px 0 var(--section-pad); }

/* ---------- UI/UX cards grid ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  margin-bottom: clamp(20px, 2.5vw, 28px);
}
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--tight { gap: 20px; margin-bottom: 20px; }   /* 20px between the protrude cards */

.card {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: var(--radius);
  /* spec: shadow #000 / 10% / Y:2 X:0 Blur:15 */
  box-shadow: 0 2px 15px rgba(0,0,0,0.10);
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  min-height: 280px;
}

/* Cards where the phone image protrudes out the top of the card —
   text on the left, phone bottom-anchored on the right but bleeds upward. */
.card--protrude {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
  overflow: visible;            /* allow phone to escape upward */
  /* spec aspect ratio 703:625 ≈ 1.124 — applied to the card box itself */
  aspect-ratio: 1.124 / 1;
  min-height: 0;
  padding: clamp(20px, 2.5vw, 32px);
}
.card--protrude .card__text {
  align-self: start;            /* top-align text so both cards start at same height */
  padding-right: 8px;
}
.card--protrude .card__art {
  display: flex;
  justify-content: center;
  align-items: flex-end;        /* phone hangs from bottom, top extends upward */
  align-self: stretch;
  height: 100%;
}
.card--protrude .card__art img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  transform: translateY(-105px);   /* Amex Actions: brought down another 15px */
}
/* First protrude card (Amex Actions) — phone is 55px larger than RC, nudged right + up */
.grid--tight .card--protrude:first-child .card__art img {
  width: calc(100% + 55px);
  max-width: none;
  margin-left: 18.5px;           /* shifted right another 7px visible (flex centering halves margin) */
  transform: translateY(-115px); /* was -105; another 10px up */
}
/* Second protrude card (RC / Concept Work) — phone on the LEFT (handled by HTML order) */
.grid--tight .card--protrude:nth-child(2) .card__art img {
  width: calc(100% + 7px);
  max-width: none;
  margin-left: 6.5px;              /* shifted right 5px visible (flex centering halves margin) */
  transform: translateY(-105px);   /* match Amex Actions vertical position */
}
.card__text { max-width: 60ch; }
.card__h {
  font-size: clamp(20px, 1.85vw, 25px);   /* slightly larger card titles */
  color: var(--ink);
}
.card__h--accent { color: var(--teal-2); }
.card .card__eyebrow { color: var(--ink-sub); opacity: 1; }
.card .card__body { color: var(--ink); }
.card__art img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Industrial 3D UX wide card — spec: #FFFFFF, W:1420 H:719, no stroke,
   shadow #000/10%/Y:2/X:0/Blur:15 */
.card--wide {
  min-height: auto;
  border: 0;                       /* no stroke per spec */
  aspect-ratio: 1420 / 600;        /* spec dimensions — height reduced 719 → 600 */
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: 20px;             /* match the 20px gap between Amex grid and Industrial 3D */
}
.card--wide .card__art img { max-width: 720px; margin-inline: auto; }

.card--gradient {
  background: linear-gradient(180deg, #E3E3E3 0%, var(--teal-4) 100%);
  border: 0;
}
.card--gradient .card__body { color: var(--ink); }

.card--dark {
  background: var(--bg-dark-2);
  color: var(--on-dark);
  border: 0;
  box-shadow: none;
}
.card--dark .card__h { color: var(--teal-3); }
.card--dark .card__h--accent { color: var(--teal-3); }
.card--dark .card__eyebrow { color: rgba(255,255,255,0.7); }
.card--dark .card__body { color: var(--on-dark); }

/* Stretch the card--wide layout horizontally on desktop */
@media (min-width: 900px) {
  .card--wide {
    flex-direction: row;
    align-items: center;
  }
  .card--wide .card__text { flex: 1 1 40%; }
  .card--wide .card__art  { flex: 1 1 60%; }
}

/* ---------- My Process ---------- */
.process {
  background: linear-gradient(180deg, #000000 0%, #141414 100%);
  color: var(--on-dark);
  padding: 140px 0 140px;                /* extra space above the icon AND below the columns */
  text-align: center;
}
.process__head { max-width: 720px; margin: 0 auto 56px; }
.process__head-icon {
  width: 84px;                  /* slightly bigger so it reads */
  height: auto;
  margin: 0 auto 24px;          /* more breathing room below the icon */
  display: block;
  /* image is already white — no invert needed */
}
.process__title {
  font-size: var(--t-display);
  color: var(--teal-2);
  margin-bottom: 18px;
}
.process__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
  margin: 0 auto;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: end;
  margin-bottom: 18px;
}
.process__step {
  display: flex;
  justify-content: center;
}
.process__icon {
  width: clamp(120px, 16vw, 160px);   /* slightly bigger again */
  height: auto;
}

/* The arrow line connecting Discover → Ideate → Validate.
   Margin = container-width / 6 so the arrow's left and right ends sit
   directly under the FIRST and THIRD icon centers in the 3-column grid. */
.process__arrow {
  position: relative;
  height: 28px;
  margin: 8px calc(100% / 6) 8px;
}
.process__arrow-line {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  /* fade from blue → green across the arrow */
  background: linear-gradient(90deg, #70B6DF 0%, #A4F5A9 100%);
  transform: translateY(-50%);
}
/* Arrowheads at both ends — blue on the left, green on the right */
.process__arrow-line::before,
.process__arrow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
}
.process__arrow-line::before {
  left: -2px;
  border-top: 1px solid #70B6DF;
  border-right: 1px solid #70B6DF;
  transform: translateY(-50%) rotate(-135deg);
}
.process__arrow-line::after {
  right: -2px;
  border-top: 1px solid #A4F5A9;
  border-right: 1px solid #A4F5A9;
  transform: translateY(-50%) rotate(45deg);
}
.process__dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-2);
  transform: translate(-50%, -50%);
}
/* Dots match the gradient stops */
.process__dot:nth-of-type(1) { background: #70B6DF; }
.process__dot:nth-of-type(2) { background: #8AD6C9; }   /* midpoint */
.process__dot:nth-of-type(3) { background: #A4F5A9; }

.process__labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 40px);
  text-align: center;
  margin-bottom: 32px;
}
.process__step-title {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--on-dark);
  margin: 0;
}

.process__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 48px;
  text-align: left;
}
.process__col {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
}
.process__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--on-dark);
  margin-bottom: 16px;
}
.process__col ul {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  list-style: disc;
  padding-left: 1.1em;
}
.process__col ul li::marker { color: var(--teal-2); }
.process__foot {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin: 0;
}

/* ---------- Experience ---------- */
.experience {
  /* spec: gradient #313030 (top) → #000000 (bottom) */
  background: linear-gradient(180deg, #313030 0%, #000000 100%);
  color: var(--on-dark);
  padding: 140px 0 60px;            /* +more space above the Clock icon */
}
.experience__head {
  text-align: center;
  margin: 0 auto clamp(40px, 6vw, 88px);
}
.experience__head-icon {
  width: 56px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
.experience__head .experience__title {
  color: var(--teal-2);
  margin: 0 0 16px;
}
.experience__head .experience__lead {
  color: rgba(255,255,255,0.85);
  max-width: 44ch;
  margin: 0 auto;
}
.experience__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;        /* equal columns so the separator sits dead-center */
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  position: relative;
}
/* Vertical separator between the two columns */
.experience__body {
  position: relative;
  padding-left: clamp(40px, 6vw, 80px);
}
/* Separator line — anchored to the grid container so it sits at the exact
   horizontal center of the page, lining up with the Clock icon above. */
.experience__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.18) 8%, rgba(255,255,255,0.18) 92%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
}
.experience__bio {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: clamp(80px, 12vw, 160px); /* nudge content further toward the center line */
}
.experience__portrait {
  margin-top: -220px;                  /* lift portrait, nudged down a bit */
}
.experience__portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: grayscale(0.15) contrast(1.05);
}
/* Name + bio overlay the lower portion of the portrait */
.experience__name {
  margin: -88px 0 14px 0;              /* pull up over the portrait, aligned to jobs list bottom */
  font-size: clamp(28px, 3vw, 38px);   /* slightly smaller again */
  font-weight: 400;
  color: var(--teal-3);
  position: relative;
  z-index: 1;
  padding-inline: 0;
}
.experience__about {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  max-width: 38ch;            /* narrower so the bio wraps onto more lines */
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.experience__title {
  font-size: var(--t-display);
  color: var(--teal-3);
  margin-bottom: 12px;
}
.experience__lead {
  font-size: var(--t-body);
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 56ch;
}
.experience__jobs {
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  max-width: 46ch;        /* squeeze so it wraps and gets taller, matching the bio side */
}
.experience__jobs strong { color: var(--teal-3); font-weight: 600; }

.logo-strip {
  max-width: var(--max);
  margin: 96px auto 80px;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(6px, 0.8vw, 12px);     /* tighter spacing between logos */
  align-items: center;
}
.logo-strip img {
  width: 100%;
  max-height: 48px;                 /* enlarged from 32px */
  object-fit: contain;
  filter: grayscale(1) brightness(2) opacity(0.8);
  transition: filter 0.2s ease;
}
.logo-strip img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Additional Skills ---------- */
.skills {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 0 var(--section-pad);     /* more space above the art icon */
}
.skills__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.skills__icon { width: 80px; margin: 0 auto 20px; display: block; }   /* enlarged to match other section icons */
.skills__title {
  font-size: var(--t-display);
  color: var(--teal-2);
  margin-bottom: 14px;
}
.skills__sub {
  font-size: var(--t-body);
  color: var(--ink-sub);
  max-width: 48ch;                   /* squeeze so subtitle wraps onto an extra line */
  margin: 0 auto;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(12px, 1.6vw, 18px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  overflow: hidden;
  min-height: 200px;
}
.skill-card--dark {
  background: var(--bg-dark-2);
  border-color: transparent;
  color: var(--on-dark);
}

/* Digital Art + Fine Art cards — spec: bg #000, W:728 H:575,
   no stroke, shadow #000/10%/Y:2/X:0/Blur:15 */
.skills .grid--2 .skill-card--dark {
  background: #000000;
  border: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.10);
  aspect-ratio: 728 / 575;
  min-height: 0;
}

/* 3D Animations card — spec: bg #000, W:1476 H:554, no stroke,
   shadow #000/10%/Y:2/X:0/Blur:15, Dino bleeds out the top */
.skill-card--dino {
  background: #000000;
  border: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.10);
  aspect-ratio: 1476 / 554;
  min-height: 0;
  overflow: visible;            /* let the dino escape upward */
  padding: clamp(28px, 3.5vw, 48px);
  position: relative;
}
.skill-card--dino .skill-card__text { align-self: center; }
.skill-card--dino .skill-card__art {
  position: static;
  align-self: stretch;
}
/* Pin the dino absolutely to the card's bottom-right; height > card height so
   feet sit at card bottom and head protrudes above. */
.skill-card--dino .skill-card__art img {
  position: absolute !important;
  right: clamp(28px, 4vw, 64px) !important;
  bottom: 0 !important;
  width: 720px !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
}
.skill-card__h {
  font-size: clamp(22px, 2.5vw, 30px);   /* slightly smaller card titles */
  color: var(--teal-2);
  margin-bottom: 12px;
}
.skill-card--dark .skill-card__h { color: var(--teal-3); }
.skill-card__h--accent { color: var(--teal-2); }
.skill-card__body {
  font-size: var(--t-body);
  color: var(--ink);
  max-width: 46ch;
}
.skill-card--dark .skill-card__body { color: rgba(255,255,255,0.9); }

.skill-card .skill-card__art img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Tighter spacing between the skill-card rows in the Additional Skills section */
.skills .grid--2 { margin-bottom: 18px; gap: 18px; }

/* Inside a grid--2, skill-card stays as a single column (image visible) */
.grid--2 .skill-card { grid-template-columns: 1fr; min-height: auto; }
.grid--2 .skill-card .skill-card__art { order: 2; }
.grid--2 .skill-card .skill-card__text { order: 1; }

/* Technical Animations + Graphic Designs — spec: #FFFFFF, W:728 H:573,
   stroke 1px #DDDDDD, shadow #000/10%/Y:2/X:0/Blur:15.
   Text LEFT, image RIGHT. */
.skills .grid--2 .skill-card:not(.skill-card--dark) {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  box-shadow: 0 2px 15px rgba(0,0,0,0.10);
  aspect-ratio: 728 / 573;
  min-height: 0;
  grid-template-columns: 1fr 1fr;     /* text left, image right */
  padding: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
}
.skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__text {
  order: 1;
  align-self: start;
}
.skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__art {
  order: 2;
  position: relative;               /* containing block for the absolutely-placed image */
  align-self: stretch;              /* fill the card's content height via grid stretch
                                       (resolves in Safari, unlike a %-height against aspect-ratio) */
}
.skills .grid--2 .skill-card:not(.skill-card--dark) {
  overflow: visible;                /* allow TB image to bleed below the card */
}
.skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__art img {
  /* Absolutely positioned so height:100% resolves against the cell's USED height.
     Normal-flow %-heights don't resolve against an aspect-ratio box in Safari,
     which made the image fall back to intrinsic size and threw the transform off. */
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  max-width: 130%;
  object-fit: contain;
  border-radius: 0;
  transform: scale(1.12) translateY(21.8%); /* TB Inno Mag: bleeds ~91px below the card */
  transform-origin: right center;
}
/* Nuclear Ad (Graphic Designs) — smaller so it doesn't overlap text, stays inside the card */
.skills .grid--2 .skill-card:not(.skill-card--dark):last-child .skill-card__art img {
  transform: scale(0.98);
  max-width: 100%;
}

/* Digital-Art variant: image on top spanning the full card, centered text below */
.grid--2 .skill-card--centered {
  text-align: center;
  padding: 0 0 clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;   /* image row capped to available space */
  overflow: hidden;
}
.grid--2 .skill-card--centered .skill-card__art--full {
  order: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;                /* don't clip the dancer */
}
.grid--2 .skill-card--centered .skill-card__art--full img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transform: translateY(30px);      /* nudge dancer down */
}
.grid--2 .skill-card--centered .skill-card__text {
  order: 2;
  padding-inline: clamp(24px, 3vw, 40px);
  margin-top: -64px;                /* nudge text up further toward the dancer */
}
.grid--2 .skill-card--centered .skill-card__body { margin-inline: auto; max-width: 36ch; }

/* Fine Art card — text LEFT, Gandalf RIGHT, sized to fit */
.skills .grid--2 .skill-card--dark:not(.skill-card--centered) {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  padding: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
}
.skills .grid--2 .skill-card--dark:not(.skill-card--centered) .skill-card__text {
  order: 1;
  align-self: start;
}
.skills .grid--2 .skill-card--dark:not(.skill-card--centered) .skill-card__art {
  order: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.skills .grid--2 .skill-card--dark:not(.skill-card--centered) .skill-card__art img {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  transform: scale(1.025);      /* ~+10px on a ~408px image */
  transform-origin: right center;
}
.skills .grid--2 .skill-card--dark:not(.skill-card--centered) .skill-card__body {
  max-width: 24ch;      /* squeeze so the bio wraps to many lines */
}

.skills__tags {
  margin: 32px auto 0;
  color: var(--ink-sub);
  max-width: 44ch;       /* squeeze the skills list so it wraps onto more lines */
}

/* Technical Animations + Graphic Designs body — narrow so they wrap to more lines */
.skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__body {
  max-width: 22ch;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 100px) 0 40px;
  text-align: center;
}
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot__mark { width: 64px; }
.foot__name {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--on-dark);
  margin: 0;
}
.foot__downloads {
  color: var(--teal-3);
  font-size: 16px;
  margin: 18px 0 0;
}
.foot__buttons { display: flex; gap: 14px; margin: 12px 0 26px; }
.foot__contact {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin: 0;
}
.foot__contact a { color: var(--teal-3); }
.foot__copy { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 26px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .nextiva__card { grid-template-columns: 1fr; aspect-ratio: auto; }
  .experience__inner { grid-template-columns: 1fr; gap: 32px; }
  .experience__inner::before { display: none; }

  .ai__inner { grid-template-columns: 1fr; gap: 24px; }
  .lens-card,
  .cassie-card,
  .card--protrude,
  .card--wide { grid-template-columns: 1fr; aspect-ratio: auto; }

  /* Robotic woman: drop the absolute bleed and let it flow at the top of the section */
  .ai__art {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transform: none;
  }
  .ai__art-spacer { display: none; }

  /* My Lens dashboard sits below the copy when stacked — no upward protrude */
  .lens-card__art img { margin-top: 0; }

  /* Protruding phones flow below the text instead of bleeding up over it.
     The translateY lives in the :first/:nth-child rules, so reset those too. */
  .card--protrude .card__art img,
  .grid--tight .card--protrude:first-child .card__art img,
  .grid--tight .card--protrude:nth-child(2) .card__art img {
    transform: none;
    width: 100%;
    max-width: 260px;
    margin: 14px auto 0;
  }

  /* Don't crop Brad's portrait on smaller screens */
  .experience__portrait { margin-top: 0; }

  /* Dino render scales down to fit inside its card */
  .skill-card--dino { grid-template-columns: 1fr; aspect-ratio: auto; overflow: hidden; }
  .skill-card--dino .skill-card__text { align-self: start; }
  .skill-card--dino .skill-card__art img {
    position: static !important;
    width: 100% !important;
    max-width: 360px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 12px auto 0 !important;
  }

  /* Technical Animations / Graphic Designs: stack copy over a contained image */
  .skills .grid--2 .skill-card:not(.skill-card--dark) {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__art {
    position: static;
    align-self: auto;
  }
  .skills .grid--2 .skill-card:not(.skill-card--dark) .skill-card__art img,
  .skills .grid--2 .skill-card:not(.skill-card--dark):last-child .skill-card__art img {
    position: static;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 12px auto 0;
    transform: none;
  }

  /* Tighten the very tall process section on smaller screens */
  .process { padding: 72px 0; }

  .hero { padding-left: 0; padding-right: 0; }
  .hero__art { order: 2; min-height: auto; }
  .hero__copy { order: 1; }
  .sidebar {
    position: static;
    transform: none;
    flex-direction: row;
    margin: 12px auto 24px;
    width: max-content;
  }

  .nextiva__art-phone { right: 0; bottom: -12%; width: 32%; }

  .process__steps,
  .process__cols,
  .process__labels { grid-template-columns: 1fr; }
  .process__arrow { display: none; }

  .topnav__pill { padding: 6px 8px 6px 16px; }
  .brand__name { font-size: 16px; }
  .topnav__nav,
  .topnav__divider { display: none; }

  .logo-strip { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
}

@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }
  .card { min-height: auto; padding: 24px; }
  .skill-card { grid-template-columns: 1fr; padding: 22px; }
  .topnav__inner { padding: 12px var(--pad-x); }
  .brand__name { display: none; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .foot__buttons { flex-direction: column; width: 100%; max-width: 240px; }
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
