/* Hashmi Traders — v2 */

:root {
  --charcoal: #141414;
  --charcoal-raised: #1e1e1d;
  --ivory: #ede8dd;
  --paper: #fbf8f2;
  --red: #c53b32;
  --gray: #777773;
  /* Gray tuned per background so small text clears WCAG AA. */
  --gray-on-dark: #a3a39e;
  --gray-on-light: #5c5c58;
  --rule-on-dark: rgba(237, 232, 221, 0.2);
  --rule-on-light: rgba(20, 20, 20, 0.18);

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 2vw, 28px);
  --ease-out: cubic-bezier(0.2, 0.75, 0.15, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
figure, h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  background: var(--ivory); color: var(--charcoal); padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared pieces ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
}

.tech-label {
  font: 500 0.72rem/1.45 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__mark { flex: none; width: 1.3em; height: 1.04em; color: var(--red); }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 400; }

.arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.35s var(--ease-out); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.5rem;
  padding: 0 1.4rem;
  border: 0;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.button:hover .arrow { transform: translateX(4px); }
.button--red { background: var(--red); color: var(--paper); }
.button--red:hover { background: #a9302a; }
.button--ivory { background: var(--ivory); color: var(--charcoal); }
.button--ivory:hover { background: var(--charcoal); color: var(--ivory); }
.button--ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--rule-on-dark); }
.button--ghost:hover { box-shadow: inset 0 0 0 1px var(--ivory); }
.button--block { display: flex; width: 100%; min-height: 4rem; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 2rem;
  --header-pad: 1.1rem;
  padding: var(--header-pad) var(--pad);
  color: var(--ivory);
  transition: background-color 0.3s, padding 0.3s;
}
.site-header.is-solid { --header-pad: 0.75rem; background: var(--charcoal); }
.announce {
  order: -1;
  width: calc(100% + 2 * var(--pad));
  margin: calc(var(--header-pad) * -1) calc(var(--pad) * -1) var(--header-pad);
  padding: 0.5rem var(--pad);
  border-bottom: 1px solid var(--rule-on-dark);
  background: var(--charcoal);
  color: var(--gray-on-dark);
  font-size: 0.82rem;
  text-align: right;
  transition: margin 0.3s;
}
.announce a { color: var(--ivory); font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.site-header__brand { text-decoration: none; margin-right: auto; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a,
.site-header__cta {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a { padding: 0.5rem 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat; transition: background-size 0.3s var(--ease-out); }
.site-nav a:hover { background-size: 100% 1px; }
.site-header__cta { padding: 0.75rem 1rem; box-shadow: inset 0 0 0 1px var(--rule-on-dark); white-space: nowrap; }
.site-header__cta:hover { background: var(--red); }
.site-header__toggle { display: none; }

@media (max-width: 899px) {
  .site-header { column-gap: 0.75rem; }
  .announce { text-align: center; font-size: 0.75rem; }
  .site-header__toggle {
    display: block;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 1px var(--rule-on-dark);
    font: 500 0.75rem/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 var(--pad);
    background: var(--charcoal);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .site-nav a {
    font: 800 clamp(3rem, 15vw, 5rem)/1 var(--font-display);
    font-stretch: 62%;
    letter-spacing: 0;
    background: none;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .site-header__cta { padding: 0.75rem 0.8rem; }
}
@media (max-width: 599px) {
  /* The full logo and the menu button need the whole row; the hero repeats this call to action. */
  .site-header__cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gap);
  min-height: 100svh;
  padding: 0 var(--pad);
  overflow: hidden;
  background: var(--charcoal);
}
.hero__media {
  position: relative;
  grid-column: 6 / -1;
  grid-row: 1 / -1;
  margin-right: calc(var(--pad) * -1);
  overflow: hidden;
  background: #000;
}
.hero__img {
  position: absolute;
  inset: -6% 0 auto;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 60% 55%;
  /* The hero photo is a bright daylight street shot; pull it down toward the charcoal page. */
  filter: brightness(0.72) contrast(1.08) saturate(0.85);
}
/* Fades the photo into the page on the text side, under the header and into the facts bar. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--charcoal) 0%, rgb(20 20 20 / 0.6) 14%, rgb(20 20 20 / 0) 42%),
    linear-gradient(180deg, rgb(20 20 20 / 0.75) 0%, rgb(20 20 20 / 0) 24%, rgb(20 20 20 / 0) 68%, var(--charcoal) 100%);
}
.hero__caption {
  position: absolute;
  top: 8.5rem;
  right: var(--pad);
  color: var(--gray-on-dark);
  text-align: right;
}
.hero__copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 11;
  grid-row: 1;
  align-self: end;
  padding: 9rem 0 clamp(2rem, 3.5vw, 3rem);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--gray-on-dark);
}
.dot { width: 0.5rem; height: 0.5rem; background: var(--red); }
.hero__title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 700;
  font-size: clamp(3.2rem, 7.4vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.hero__title .line { display: block; overflow: hidden; padding-top: 0.04em; }
.hero__title .line > span { display: block; animation: line-rise 1s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.09s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.18s; }
.hero__title em { font-style: normal; color: var(--red); }
@keyframes line-rise { from { transform: translateY(105%); } }

.hero__lede {
  display: grid;
  grid-template-columns: minmax(0, 30rem);
  align-items: end;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
  animation: fade-in 1s 0.45s both;
}
.hero__lede p { font-size: 1.1rem; color: var(--ivory); }
.hero__lede .button { justify-self: start; }
@keyframes fade-in { from { opacity: 0; } }

.hero__facts {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 2fr;
  margin: 0 calc(var(--pad) * -1);
  padding: 1.1rem var(--pad) 1.4rem;
  border-top: 1px solid var(--rule-on-dark);
  background: var(--charcoal);
}
.hero__facts div { padding-right: 1rem; }
.hero__facts dt { font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-on-dark); }
.hero__facts dd { margin-top: 0.3rem; font-weight: 500; font-size: 0.95rem; }

@media (max-width: 899px) {
  .hero { grid-template-rows: auto auto auto; min-height: 0; }
  .hero__media {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 64svh;
    min-height: 26rem;
    margin: 0 calc(var(--pad) * -1);
  }
  .hero__caption { top: 7.5rem; }
  /* On phones the headline overlaps the bottom of the photo, so the fade is deeper there. */
  .hero__media::after {
    background: linear-gradient(180deg, rgb(20 20 20 / 0.9) 0%, rgb(20 20 20 / 0.35) 20%, rgb(20 20 20 / 0) 34%, rgb(20 20 20 / 0) 45%, var(--charcoal) 96%);
  }
  .hero__copy { grid-column: 1 / -1; grid-row: 2; margin-top: -5.8rem; padding-top: 0; }
  .hero__title { font-size: clamp(3rem, 13vw, 6rem); }
  .hero__lede { grid-template-columns: 1fr; }
  .hero__lede .button { justify-self: start; }
  .hero__facts { grid-row: 3; grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .hero__facts div:last-child { grid-column: 1 / -1; }
}

/* ---------- What we do ---------- */

.what {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(4rem, 9vw, 9rem) var(--pad);
  background: var(--ivory);
  color: var(--charcoal);
}
.what .tech-label { color: var(--gray-on-light); }
.what__head { grid-column: 1 / 10; grid-row: 1; }
.what__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.what__media {
  position: relative;
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: start;
  margin-top: clamp(3rem, 6vw, 6rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.what__media img { width: 100%; height: 112%; object-fit: cover; }
.what__media figcaption,
.history__media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  background: var(--ivory);
  color: var(--gray-on-light);
}
.what__list { grid-column: 7 / -1; grid-row: 2; margin-top: clamp(3rem, 6vw, 6rem); }
.what__list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.6rem 0 1.9rem;
  border-top: 1px solid var(--rule-on-light);
}
.what__list li:last-child { border-bottom: 1px solid var(--rule-on-light); }
.what__index { grid-row: 1 / 3; font: 500 0.8rem/2.4 var(--font-mono); color: var(--red); }
.what__list h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.05;
}
.what__list p { max-width: 34rem; color: #2c2c2a; }

@media (max-width: 899px) {
  .what__head { grid-column: 1 / -1; grid-row: 1; }
  .what__media { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 4 / 3; margin-top: 2.5rem; }
  .what__list { grid-column: 1 / -1; grid-row: 3; margin-top: 2.5rem; }
}

/* ---------- Product areas ---------- */

.cats { padding: clamp(4rem, 9vw, 9rem) var(--pad) clamp(3rem, 5vw, 5rem); background: var(--charcoal); }
.cats .tech-label { color: var(--gray-on-dark); }
.cats__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.cats__head > .tech-label { grid-column: 1 / -1; margin-bottom: 1rem; }
.cats__title {
  grid-column: 1 / 9;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: 0.92;
}
.cats__note { grid-column: 9 / -1; max-width: 26rem; color: var(--gray-on-dark); }

.cats__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 14vw, 230px);
  gap: var(--gap);
  grid-template-areas:
    'lig lig lig lig lig ext ext ext ext ext ext ext'
    'lig lig lig lig lig ext ext ext ext ext ext ext'
    'car car car car whe whe whe whe sus sus sus sus'
    'car car car car whe whe whe whe sus sus sus sus';
}
.cat { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.cat--lig { grid-area: lig; }
.cat--ext { grid-area: ext; }
.cat--car { grid-area: car; }
.cat--whe { grid-area: whe; }
.cat--sus { grid-area: sus; }
.cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.9);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.cat:hover .cat__img { transform: scale(1.045); filter: brightness(0.72) saturate(1); }
.cats .cat__index { position: absolute; top: 1rem; left: 1rem; color: var(--ivory); }
.cat__body { position: absolute; inset: auto 0 0 0; padding: clamp(1rem, 2vw, 1.75rem); }
.cat__title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1;
}
.cat--lig .cat__title,
.cat--ext .cat__title { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.cat__title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.75rem;
  background: var(--red);
  transition: width 0.6s var(--ease-out);
}
.cat:hover .cat__title::after { width: 6rem; }
.cat__detail { max-width: 26rem; margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.45; }
.cat--car .cat__detail,
.cat--whe .cat__detail,
.cat--sus .cat__detail { display: none; }
.cats__credit { margin-top: 1.5rem; }

@media (max-width: 1099px) {
  .cats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 22vw, 220px);
    grid-template-areas:
      'lig lig lig ext ext ext'
      'lig lig lig ext ext ext'
      'car car whe whe sus sus';
  }
  .cat--ext .cat__detail { display: none; }
}
@media (max-width: 899px) {
  .cats__title { grid-column: 1 / -1; }
  .cats__note { grid-column: 1 / -1; margin-top: 1.25rem; }
}
@media (max-width: 599px) {
  .cats__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 44vw;
    grid-template-areas:
      'lig lig' 'lig lig' 'ext ext'
      'car car' 'car car' 'whe sus';
  }
  .cat--whe .cat__title, .cat--sus .cat__title { font-size: 1.5rem; }
}

/* ---------- History ---------- */

.history {
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) var(--pad) clamp(4rem, 9vw, 9rem);
  background: var(--ivory);
  color: var(--charcoal);
}
.history .tech-label { color: var(--gray-on-light); }
.history__year {
  margin: 0 0 0 -0.03em;
  font: 700 clamp(6rem, 24vw, 26rem)/0.8 var(--font-display);
  font-stretch: 75%;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.history__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(1rem, 3vw, 3rem);
}
.history__media {
  position: relative;
  grid-column: 1 / 6;
  align-self: start;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--ivory);
}
.history__media img { width: 100%; height: 100%; object-fit: cover; }
.history__story { grid-column: 7 / -1; }
.history__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.history__text { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; color: #2c2c2a; font-size: 1rem; }
.history__timeline { margin-top: 3rem; }
.history__timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule-on-light);
}
.history__timeline li:first-child .tech-label { color: var(--red); }
.history__timeline p { font-size: 1rem; }

@media (max-width: 899px) {
  .history__year { font-size: 34vw; }
  .history__grid { margin-top: 2rem; }
  .history__media { grid-column: 1 / -1; aspect-ratio: 7 / 5; box-shadow: none; }
  .history__story { grid-column: 1 / -1; padding-top: 2.5rem; }
  .history__text { grid-template-columns: 1fr; }
}

/* ---------- Partners ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(4rem, 9vw, 9rem) var(--pad);
  background: var(--charcoal-raised);
  color: var(--ivory);
}
.partners .tech-label { color: var(--gray-on-dark); }
.partners__head { grid-column: 1 / -1; }
.partners__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: 0.95;
}
.partners__body {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(251, 248, 242, 0.4);
}
.partners__intro { grid-column: 1 / 6; }
.partners__lede {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}
.partners__hint { max-width: 26rem; margin-top: 1.5rem; font-size: 1rem; }
.partner-form {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(251, 248, 242, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 1.05rem/1.4 var(--font-body);
  resize: vertical;
}
.field input::placeholder { color: rgba(251, 248, 242, 0.6); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--red); }
.partner-form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.partner-form__submit p { font-size: 0.9rem; }

@media (max-width: 899px) {
  .partners__intro, .partner-form { grid-column: 1 / -1; }
  .partner-form { margin-top: 2.5rem; }
}
@media (max-width: 599px) {
  .partner-form { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(4rem, 9vw, 9rem) var(--pad) clamp(3rem, 6vw, 6rem);
  background: var(--charcoal);
}
.contact .tech-label { color: var(--gray-on-dark); }
.contact__head { grid-column: 1 / 6; }
.contact__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: 0.95;
}
.contact__reps { grid-column: 7 / -1; display: grid; gap: 2rem; }
.rep { padding-top: 1.5rem; border-top: 1px solid var(--rule-on-dark); }
.rep__name {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
}
.rep__name a { text-decoration: none; }
.rep__name a:hover { color: var(--red); }
.rep__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 1.75rem; }
.rep__actions a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-on-dark);
}
.rep__actions a:not(.button):hover { border-color: var(--red); }

@media (max-width: 899px) {
  .contact__head, .contact__reps { grid-column: 1 / -1; }
  .contact__reps { margin-top: 2.5rem; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 0 var(--pad) 2rem; background: var(--charcoal); overflow: hidden; }
.site-footer__mark { padding-top: 2rem; border-top: 1px solid var(--rule-on-dark); }
.site-footer__mark .wordmark { font-size: clamp(1.5rem, 6.4vw, 6rem); line-height: 0.8; letter-spacing: -0.01em; }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; margin-top: 2rem; color: var(--gray-on-dark); font-size: 0.85rem; }
.site-footer__credits { max-width: 40rem; }
.site-footer a { color: var(--ivory); }

/* ---------- Representative card page ---------- */

.page-card { min-height: 100svh; }
.card {
  display: grid;
  gap: 2.25rem;
  max-width: 34rem;
  min-height: 100svh;
  margin: 0 auto;
  padding: 1.25rem var(--pad) 2rem;
}
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red);
}
.card__header a { text-decoration: none; }
.card__header .tech-label { color: var(--gray-on-dark); text-align: right; }
.card__role { color: var(--gray-on-dark); margin-bottom: 1rem; }
.card__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(3.4rem, 17vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.card__name span { display: block; animation: line-rise 0.9s var(--ease-out) both; }
.card__name span + span { animation-delay: 0.08s; }
.card__org { margin-top: 1.25rem; font-size: 1rem; }
.card__links { margin-top: 0.5rem; }
.card-link {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  border-bottom: 1px solid var(--rule-on-dark);
  text-decoration: none;
}
.card-link__label { color: var(--gray-on-dark); }
.card-link__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.card-link:hover .arrow { transform: translateX(4px); color: var(--red); }
.card__share {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--charcoal-raised);
}
.card__qr { display: block; width: 8.5rem; padding: 0.6rem; border: 0; background: var(--ivory); cursor: zoom-in; }
.card__qr svg { width: 100%; height: auto; }
.card__image-link { color: var(--ivory); font-size: 0.8rem; }
.card__share-text { display: grid; gap: 0.6rem; justify-items: start; font-size: 0.92rem; color: var(--gray-on-dark); }
.card__share-text h2 { color: var(--ivory); }
.card__share-text .button { min-height: 2.75rem; padding: 0 1rem; font-size: 0.85rem; }
.card__share-status { min-height: 1.2em; font-size: 0.8rem; }
.card__footer { align-self: end; display: grid; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-on-dark); color: var(--gray-on-dark); font-size: 0.88rem; }
.card__footer a { color: var(--ivory); }
.card__home { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }

@media (min-width: 960px) {
  .card {
    max-width: 82rem;
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
      'header header'
      'identity actions'
      'identity share'
      'footer footer';
    column-gap: 6vw;
    row-gap: 2rem;
    padding-top: 2rem;
  }
  .card__header { grid-area: header; }
  .card__identity { grid-area: identity; align-self: center; }
  .card__actions { grid-area: actions; align-self: end; }
  .card__share { grid-area: share; align-self: start; }
  .card__footer { grid-area: footer; grid-template-columns: 1fr auto; align-items: center; }
  .card__name { font-size: clamp(5rem, 8vw, 8rem); }
}

/* Full-screen QR: ivory and as large as the screen allows, so it scans from across a table. */
.qr-full { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ivory); color: var(--charcoal); }
.qr-full::backdrop { background: var(--ivory); }
.qr-full__inner { display: grid; place-content: center; justify-items: center; gap: 1rem; min-height: 100%; padding: 1.5rem; text-align: center; }
.qr-full__inner .tech-label { color: var(--gray-on-light); }
.qr-full__code { width: min(80vw, 62vh, 32rem); }
.qr-full__code svg { width: 100%; height: auto; }
.qr-full__name { margin-top: 0.5rem; font: 700 2rem/1 var(--font-display); font-stretch: 75%; }
.qr-full__org { color: var(--gray-on-light); }
.qr-full__close { position: fixed; inset: 0; width: 100%; padding: 0 0 1.5rem; border: 0; background: none; color: var(--gray-on-light); display: flex; align-items: end; justify-content: center; cursor: zoom-out; }

/* ---------- Motion ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
