/* ============================================================
   Esther Wang — Portfolio
   Type: Newsreader (serif headlines) + Hanken Grotesk (sans body)
   Palette: warm off-white canvas, warm near-black ink, gold #B8860B
   ============================================================ */

:root {
  /* Warm neutrals */
  --bg:        #FAF7F1;
  --bg-alt:    #F2ECE1;
  --card:      #FFFFFF;
  --ink:       #1C1A15;
  --ink-soft:  #4A463D;
  --ink-faint: #837C6E;
  --line:      #E7E0D0;
  --line-soft: #EFE9DC;

  /* Gold accent (used sparingly) */
  --gold:        #B8860B;
  --gold-deep:   #8F6907;
  --gold-bright: #D8A93F;   /* for dark backgrounds */
  --gold-wash:   rgba(184, 134, 11, 0.08);

  /* Dark section */
  --dark-bg:    #1A1712;
  --dark-bg2:   #221E17;
  --dark-ink:   #F2ECE1;
  --dark-soft:  #B8B0A0;
  --dark-line:  rgba(242, 236, 225, 0.13);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gut:  clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(72px, 11vw, 140px);
}
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 18px;
}
.section-head .sub {
  margin-top: 20px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-deep);
  text-decoration: none;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .25s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand .dot { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a:not(.nav__cta) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
  transition: none;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: none;
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(.45); opacity: .5; }
.nav__links a.is-active {
  color: var(--gold-deep);
  font-weight: 600;
}
.nav__links a.is-active::after { transform: scaleX(1); opacity: 1; }
.nav__cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.nav__cta:hover { border-color: var(--ink); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(64px, 11vw, 132px);
  padding-bottom: clamp(72px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: 920px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  margin-top: 26px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero__lede {
  margin-top: 30px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 660px;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* hero reveal — transition-based (only hide when JS is active) */
.js .reveal-hero > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal-hero.go > * { opacity: 1; transform: none; }
.js .reveal-hero.go > *:nth-child(1) { transition-delay: .05s; }
.js .reveal-hero.go > *:nth-child(2) { transition-delay: .15s; }
.js .reveal-hero.go > *:nth-child(3) { transition-delay: .27s; }
.js .reveal-hero.go > *:nth-child(4) { transition-delay: .39s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-hero > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.cred {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 34px;
}
.cred__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.cred__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}
.cred__logo {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  opacity: .72;
  transition: opacity .25s, color .25s;
  white-space: nowrap;
}
.cred__logo:hover { opacity: 1; color: var(--ink); }

/* ============================================================
   PRODUCT WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -28px rgba(28,26,21,.5);
  border-color: #D9D1BD;
}
.work-card__media {
  height: 196px;
  position: relative;
  background:
    radial-gradient(120% 140% at 82% -20%, rgba(184,134,11,.10), transparent 60%),
    repeating-linear-gradient(135deg, var(--bg-alt) 0 11px, var(--bg) 11px 22px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work-card__media image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.work-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.work-card__media--portrait {
  background:
    radial-gradient(120% 130% at 30% -10%, rgba(124,108,233,.55), transparent 60%),
    linear-gradient(150deg, #4338CA 0%, #2563EB 55%, #1E1B4B 100%);
}
.work-card__img--contain {
  object-fit: contain;
  object-position: center;
  padding: 16px 16px 0;
}
.work-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(184,134,11,.24);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.work-card__num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.work-card__ph {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 3px;
}
.work-card__body { padding: 26px 28px 26px; flex: 1; display: flex; flex-direction: column; }
.work-card__meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.work-card h3 { font-size: 24px; line-height: 1.12; }
.work-card__role {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work-card__by {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-faint);
}
.work-card__desc { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.work-card__chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.work-card__chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.work-card__links {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.proj-link svg { width: 17px; height: 17px; }
.proj-link:hover { color: var(--gold-deep); }
.proj-link--primary { color: var(--gold-deep); }
.work-card p { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }
.work-card__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   HOW I CAN HELP
   ============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.help-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -30px rgba(28,26,21,.45);
  border-color: #D9D1BD;
}
.help-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 22px;
}
.help-card h3 { font-size: 26px; }
.help-card p { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }
.help-cta {
  margin-top: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ============================================================
   WHO AM I
   ============================================================ */
.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.bio__photo {
  position: sticky;
  top: 100px;
}
.bio__ph {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, var(--bg-alt) 0 13px, var(--bg) 13px 26px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio__ph span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 3px;
}
.bio__photo-cap {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bio__photo-cap .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bio__body p { color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.bio__body p + p { margin-top: 18px; }
.bio__body p strong { color: var(--ink); font-weight: 600; }
.bio__body p.eyebrow { color: var(--gold-deep); font-size: 12.5px; line-height: 1; }
.bio__highlights {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  gap: 16px;
}
.bio__hl {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink);
}
.bio__hl svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--gold-deep); }

/* ============================================================
   THINKING & WRITING
   ============================================================ */
.write-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.write-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.write-card:hover { transform: translateY(-4px); border-color: #D9D1BD; }
.write-card__tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.write-card h3 { font-size: 21px; line-height: 1.18; }
.write-card p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.write-card .arrow-link { margin-top: 18px; font-size: 14px; }

/* ============================================================
   BEYOND PRODUCT
   ============================================================ */
.beyond {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.beyond h2 { font-size: clamp(30px, 4vw, 40px); }
.beyond p { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.beyond__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.beyond__chips .tag { background: transparent; }

/* ============================================================
   CONTACT (dark)
   ============================================================ */
.contact {
  background: var(--dark-bg);
  color: var(--dark-ink);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 78% 0%, rgba(184,134,11,.14), transparent 60%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact__inner { max-width: 820px; }
.contact .eyebrow { color: var(--gold-bright); }
.contact .eyebrow::before { background: var(--gold-bright); }
.contact h2 {
  font-size: clamp(38px, 6vw, 66px);
  margin-top: 20px;
  letter-spacing: -0.02em;
}
.contact__sub {
  margin-top: 24px;
  font-size: clamp(18px, 2.3vw, 21px);
  color: var(--dark-soft);
  max-width: 640px;
  line-height: 1.6;
}
.contact__links {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.clink {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  border: 1px solid var(--dark-line);
  border-radius: 3px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--dark-ink);
  text-decoration: none;
  background: rgba(242,236,225,.02);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.clink:hover { border-color: var(--gold-bright); background: rgba(184,134,11,.10); transform: translateY(-2px); }
.clink svg { width: 18px; height: 18px; }
.clink .copied {
  font-size: 12px;
  color: var(--gold-bright);
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  margin-left: 2px;
}
.clink.is-copied .copied { opacity: 1; }

.footer {
  border-top: 1px solid var(--dark-line);
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--dark-soft);
}
.footer__brand { font-family: var(--serif); font-size: 18px; color: var(--dark-ink); }
.footer__brand .dot { color: var(--gold-bright); }

/* ============================================================
   HERO PHOTO + LOGO WALL + SOLO BIO  (added)
   ============================================================ */
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__grid .hero__inner { max-width: none; }
.hero__photo { position: relative; }
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 34px 64px -36px rgba(28, 26, 21, .55);
}
.hero__photo-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(28, 26, 21, .5);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero__photo-cap .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }

.logos__grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 96px);
  max-width: 1040px;
  margin: clamp(44px, 6vw, 64px) auto 0;
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}
.logo-img {
  height: 46px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform .25s;
}
.logo-img:hover { transform: scale(1.04); }
.logo-img--tesla { height: 60px; }
.logo-img--mercedes { height: 58px; }
.logo-img--disney { height: 54px; }
.logo-img--softbank { height: auto; width: 200px; max-width: 200px; }
.logo-slot { width: 150px; height: 46px; }

@media (max-width: 600px) {
  .logos__grid { grid-template-columns: repeat(2, auto); }
}

.bio--solo { grid-template-columns: 1fr; max-width: 760px; }

/* Tweak: photo side */
.photo-left .hero__grid { grid-template-columns: 0.85fr 1.35fr; }
.photo-left .hero__photo { order: -1; }

/* Tweak: entrance motion off */
.no-motion .reveal,
.no-motion .reveal-hero > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .work-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .write-grid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio__photo { position: static; max-width: 360px; }
  .beyond { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .photo-left .hero__grid { grid-template-columns: 1fr; }
  .photo-left .hero__photo { order: 0; }
  .hero__photo { max-width: 380px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 22px;
  }
  .nav.open .nav__links a { padding: 10px 0; font-size: 17px; }
  .nav.open .nav__cta { display: inline-block; margin-top: 8px; border: none; background: none; padding: 10px 0; font-size: 17px; font-weight: 500; color: var(--ink-soft); border-radius: 0; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .logos__grid { gap: 24px 20px; }
  .logo-cell { width: 130px; height: 44px; }
  .logo-img, .logo-img--tesla, .logo-img--mercedes, .logo-img--disney, .logo-img--softbank { width: 100%; height: 100%; max-width: none; object-fit: contain; }
  .work-card__body { padding: 20px 20px; }
  .contact__links { flex-direction: column; }
  .clink { width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .hero__photo { max-width: 100%; }
  .logo-cell { width: 110px; height: 38px; }
}
