/* JDJ Design — jdjdesignco.com */

:root {
  --ground: #FFFFFF;
  --paper: #F7FAFD;
  --panel: #EDF3FA;
  --line: #D7E2EF;
  --line-soft: #E6EDF6;

  --ink: #0B1622;
  --ink-2: #3C4E62;
  --ink-3: #5E7086;
  --ink-4: #6B7D93;

  --accent: #0A6FC2;
  --accent-deep: #08579A;
  --accent-bright: #2E9BF5;
  --accent-wash: #E4F0FC;

  --display: 'Archivo', 'Helvetica Neue', sans-serif;
  --body: 'Karla', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gut: 72px;
  --max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

.band { border-top: 1px solid var(--line-soft); }
.band--raised { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.section { padding-block: 84px; }
.section--tight { padding-block: 60px; }

.stack { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; }

h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.h1--sub { font-size: clamp(2.35rem, 5.2vw, 3.875rem); line-height: 1.02; }

h2 { font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-weight: 600; font-size: 1.5rem; }

p { margin: 0; }

.lede { font-size: 1.1875rem; line-height: 1.62; color: var(--ink-2); max-width: 38em; }
.body { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); max-width: 40em; }
.small { font-size: .9375rem; line-height: 1.65; color: var(--ink-3); }
.tiny { font-size: .875rem; color: var(--ink-3); }

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--accent);
  line-height: 1.6;
}

.label {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink-4);
}

.figure { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}

.masthead__inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }

.wordmark { display: flex; align-items: center; gap: 14px; }
.wordmark:hover { color: var(--ink); }

.wordmark__logo { display: block; width: 88px; height: auto; flex-shrink: 0; }

.wordmark__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .24em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
  display: flex;
  align-items: center;
  height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }

/* the CTA inside the nav is a button, not a nav link — win the specificity fight */
.nav a.btn--primary { color: #fff; }
.nav a.btn--primary:hover { color: #fff; background: var(--accent-deep); }
.nav a.btn--ghost { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 4px;
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn--sm { height: 44px; padding: 0 20px; font-size: .875rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--ground); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--invert { background: #fff; color: var(--accent-deep); }
.btn--invert:hover { background: var(--panel); color: var(--accent-deep); }
.btn--outline-dark { border-color: rgba(255,255,255,.6); color: #fff; font-weight: 500; }
.btn--outline-dark:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--block { width: 100%; }

.textlink { font-size: .9375rem; font-weight: 500; color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding-block: 92px 76px; display: flex; gap: 72px; align-items: flex-start; }
.hero__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 30px; max-width: 760px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.pagehead { padding-block: 92px 56px; display: flex; justify-content: space-between; gap: 72px; align-items: flex-start; }
.pagehead__body { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.pagehead__aside { width: 340px; flex-shrink: 0; font-size: 1rem; line-height: 1.7; color: var(--ink-3); padding-top: 12px; }

/* ---------- specs panel ---------- */

.specs {
  width: 400px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.specs__row:last-child { padding-bottom: 0; border-bottom: none; }
.specs__key { font-size: .9375rem; color: var(--ink-3); }
.specs__val { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }

/* ---------- credits ---------- */

.credits { display: flex; align-items: center; gap: 28px; padding-block: 30px; flex-wrap: wrap; }
.pills { display: flex; gap: 12px; flex-wrap: wrap; }

.pill {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--ink-2);
  background: var(--ground);
}

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ground);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--plain { background: transparent; border-color: transparent; padding: 0; }
.card__index { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--accent); }
.card__body { flex-grow: 1; }
.card__meta { font-size: .875rem; color: var(--ink-2); font-weight: 500; }

.step { border-top: 2px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step--lead { border-top-color: var(--accent); }
.step__num { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--ink-4); }
.step__title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }

.rule { border-left: 2px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.rule--lead { border-left-color: var(--accent); }
.rule__title { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

.tier {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ground);
}

.tier--featured { border-color: var(--accent); background: var(--accent-wash); }
.tier__name { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; }
.tier__price { font-family: var(--display); font-weight: 700; font-size: 2.875rem; letter-spacing: -0.03em; line-height: 1; }
.tier__unit { font-size: .9375rem; color: var(--ink-3); }
.tier__copy { font-size: .9375rem; line-height: 1.65; color: var(--ink-2); flex-grow: 1; }
.tier__copy strong { color: var(--ink); font-weight: 600; }

.tag {
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}

/* ---------- service rows ---------- */

.srow { display: flex; gap: 72px; align-items: flex-start; padding: 76px 0; border-top: 1px solid var(--line-soft); }
.srow__head { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.srow__price { font-family: var(--display); font-weight: 700; font-size: 2.375rem; letter-spacing: -0.03em; color: var(--accent); }
.srow__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 22px; }

.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.ticks li { font-size: .9375rem; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 16px; }

.callout {
  border: 1px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 6px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callout__items { display: flex; gap: 40px; flex-wrap: wrap; font-size: 1rem; color: var(--ink); font-weight: 500; }

/* ---------- process timeline ---------- */

.phase { display: flex; gap: 48px; align-items: flex-start; padding: 46px 0; border-top: 1px solid var(--line-soft); }
.phase__stamp { width: 190px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.phase__num { font-family: var(--display); font-weight: 700; font-size: 2.25rem; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.phase__time { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-4); }
.phase__name { width: 320px; flex-shrink: 0; font-family: var(--display); font-weight: 600; font-size: 1.625rem; letter-spacing: -0.02em; }
.phase__copy { flex: 1 1 auto; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }

/* ---------- faq ---------- */

.qa { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.qa__q { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; }

/* ---------- form ---------- */

.formwrap { display: flex; gap: 56px; align-items: flex-start; padding-bottom: 84px; }

.form {
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field { display: flex; flex-direction: column; gap: 9px; }

.field label, .fieldset__legend {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.field input, .field select, .field textarea {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: .9375rem;
  padding: 0 16px;
  height: 52px;
  width: 100%;
}

.field textarea { height: auto; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }

.fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground);
  font-size: .9375rem;
  cursor: pointer;
  font-family: var(--body);
  color: var(--ink);
}

.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.choice input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }

.aside { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.aside__card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--ground); }
.aside__card--accent { border-color: var(--accent); background: var(--accent-wash); }
.aside__email { font-family: var(--display); font-weight: 600; font-size: 1.3125rem; letter-spacing: -0.02em; color: var(--accent); }

/* ---------- cta band ---------- */

.cta { background: var(--accent); color: #fff; padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta h2 { max-width: 680px; font-weight: 700; color: #fff; }
.cta p { font-size: 1.125rem; max-width: 620px; color: rgba(255,255,255,.88); margin-top: 12px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 60px 0; }
.foot__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__col a, .foot__col span:not(.label) { font-size: .9375rem; color: var(--ink-2); }
.foot__col a:hover { color: var(--accent); }
.foot__note { font-size: .9375rem; color: var(--ink-3); }
.foot .wordmark__logo { width: 104px; }

.foot__bar {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--ink-4);
}

.foot__bar a { color: var(--ink-4); }
.foot__bar a:hover { color: var(--accent); }

/* ---------- imagery ---------- */

.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.shot img { width: 100%; height: auto; display: block; }
.shot--dark { background: #05070A; border-color: #1A222E; }

/* the device renders are shot on black — keep that as a deliberate contrast band */
.showcase { background: #05070A; overflow: hidden; }
.showcase__inner { max-width: var(--max); margin: 0 auto; position: relative; }
.showcase img { width: 100%; height: auto; display: block; }

.showcase__caption { position: absolute; left: var(--gut); bottom: 36px; max-width: 30em; }
.showcase__caption .label { color: var(--accent-bright); }

.showcase__caption p {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.workcard { display: flex; flex-direction: column; gap: 16px; }

.workcard__frame {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4 / 5;
}

.workcard__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workcard__name { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; }

.feature { display: flex; gap: 60px; align-items: center; }
.feature__media { flex: 1 1 50%; min-width: 0; }
.feature__body { flex: 1 1 50%; display: flex; flex-direction: column; gap: 18px; }

.range { display: flex; gap: 60px; align-items: center; }
.range__media { flex: 0 0 42%; }
.range__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---------- legal pages ---------- */

.legal { max-width: 44em; padding-bottom: 84px; }
.legal h2 { font-size: 1.4375rem; margin: 54px 0 0; }
.legal h3 { font-size: 1.125rem; margin: 30px 0 0; font-weight: 600; }
.legal p, .legal li { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin-top: 14px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-top: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__meta { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-4); padding-bottom: 8px; }

.flag {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 20px 24px;
  margin-top: 20px;
  border-radius: 0 6px 6px 0;
}

.flag p { margin-top: 0; font-size: .9375rem; color: var(--ink-2); }

/* ---------- case study / infographic ---------- */

.mark { display: block; height: auto; }
.mark--lg { width: 190px; }
.mark--sm { width: 145px; }
.mark--lead { width: 260px; align-self: center; margin-inline: auto; }

.casehead { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }

.casehead__marks {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-right: 48px;
  border-right: 1px solid var(--line);
}

.casehead__body { flex: 1 1 22em; display: flex; flex-direction: column; gap: 18px; }

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }

.versus__col {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ground);
}

.versus__col--good { border-color: var(--accent); background: var(--accent-wash); }

.versus__mid {
  align-self: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-4);
  letter-spacing: .08em;
}

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink-2);
}

.flow span { border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: var(--ground); }
.flow em { font-style: normal; color: var(--ink-4); }
.versus__col--good .flow span { border-color: rgba(10,111,194,.35); }

.bignum {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
}

.bignum--muted { color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--line); padding-top: 20px; }
.pillar--lead { border-top-color: var(--accent); }
.pillar__name { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }

.extracts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.extracts__group { display: flex; flex-direction: column; gap: 12px; }

.taglist { display: flex; gap: 8px; flex-wrap: wrap; }
.taglist span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; color: var(--ink-2); background: var(--ground); }

.footnote { font-size: .8125rem; line-height: 1.6; color: var(--ink-4); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  :root { --gut: 48px; }
  .hero, .pagehead, .formwrap { gap: 48px; }
  .specs { width: 340px; }
  .aside { width: 320px; }
  .phase__name { width: 240px; }
}

@media (max-width: 980px) {
  :root { --gut: 32px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 32px 24px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }
  .nav a { height: 54px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 16px; height: 52px; }
  .nav .btn--primary:hover { color: #fff; }

  .hero, .pagehead, .formwrap, .srow, .phase, .feature, .range { flex-direction: column; }
  .hero { padding-block: 60px; }
  .pagehead { padding-block: 60px 40px; }
  .section { padding-block: 60px; }
  .feature, .range { gap: 32px; }
  .range__media { flex: 1 1 auto; width: 100%; max-width: 420px; }
  .specs, .aside, .pagehead__aside, .srow__head, .phase__stamp, .phase__name { width: 100%; }
  .phase { gap: 16px; padding: 38px 0; }
  .phase__stamp { flex-direction: row; align-items: baseline; gap: 14px; }
  .srow { padding: 52px 0; }
  .grid-3, .grid-4, .tiers, .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .versus { grid-template-columns: minmax(0,1fr); }
  .versus__mid { justify-self: start; }
  .form { padding: 28px; }

  .showcase__caption { position: static; padding: 20px var(--gut) 28px; max-width: none; }
  .showcase__caption p { font-size: 1.25rem; }

  .casehead__marks {
    flex-direction: row;
    align-items: center;
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .mark--lg { width: 125px; }
  .mark--sm { width: 105px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; }
  .masthead__inner { height: 68px; }
  .nav { top: 68px; padding: 12px 20px 24px; }
  .wordmark__logo { width: 68px; }
  .foot .wordmark__logo { width: 88px; }
  .wordmark__name { font-size: .75rem; letter-spacing: .2em; }
  .grid-2, .grid-3, .grid-4, .tiers, .ticks, .choices, .pillars, .extracts { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .credits { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cta { padding: 56px 0; }
  .cta__actions { width: 100%; }
  .foot__cols { gap: 36px; }
  .casehead__marks { flex-wrap: wrap; gap: 18px; }
}

/* ---------- portrait ---------- */

.portrait { padding: 0; overflow: hidden; gap: 0; }
.portrait img { width: 100%; height: auto; display: block; }

.portrait__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portrait__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- factory gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.gframe {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gframe__img {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 3 / 2;
}

.gframe__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gframe__stage { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; color: var(--accent); }
.gframe__cap { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

.bandshot { background: var(--panel); border-block: 1px solid var(--line-soft); overflow: hidden; }
.bandshot__inner { max-width: var(--max); margin: 0 auto; }
.bandshot img { width: 100%; height: auto; display: block; }

.bandshot__note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gut) 22px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}

@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------- client branding grid ---------- */

.brandgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.brandcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ground);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.brandcard:hover { border-color: var(--accent-bright); transform: translateY(-2px); }

.brandcard__img { aspect-ratio: 4 / 3; background: #fff; }
.brandcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brandcard__img--fill img { object-fit: cover; }

.brandcard__body {
  padding: 17px 20px 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brandcard__meta {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
}

.brandcard__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: var(--ink);
}

.brandcard__note { font-size: .875rem; line-height: 1.6; color: var(--ink-3); }

.brandnote {
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 6px;
}

@media (max-width: 980px) { .brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .brandgrid { grid-template-columns: minmax(0, 1fr); } }

.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .gallery--2 { grid-template-columns: minmax(0, 1fr); } }
