/* ==========================================================================
   Patrick Westwood — portfolio
   styles.css
   ========================================================================== */

/* Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a0a0a;
  --bg-elevated:   #121212;
  --fg:            #ededeb;
  --fg-strong:     #f4f4f2;
  --fg-soft:       #cfcfcb;
  --muted:         #9a9a96;
  --muted-2:       #8c8c88;
  --muted-3:       #7c7c78;
  --muted-4:       #6f6f6c;
  --muted-5:       #5a5a57;

  --line:          rgba(255, 255, 255, 0.12);
  --line-strong:   rgba(255, 255, 255, 0.18);
  --line-soft:     rgba(255, 255, 255, 0.10);

  --font-sans:     'Archivo', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);

  /* horizontal page inset, capped to a 1600px reading column */
  --gutter:        max(clamp(20px, 5vw, 90px), calc((100% - 1600px) / 2));

  --z-cursor:      9999;
  --z-progress:    9500;
  --z-header:      9000;
  --z-menu:        8980;
}

/* Reset & base
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: #262626; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* Shared utilities
   -------------------------------------------------------------------------- */

/* Mono micro-label, e.g. "(01) — About", "Off the clock" */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-4);
}

.section-index {
  margin-bottom: 18px;
}

/* Animated underline on inline links */
.link {
  position: relative;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 25px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
}
.btn__icon { font-size: 14px; }

.btn--solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--solid:hover {
  background: transparent;
  color: var(--fg);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 34px;
  gap: 12px;
  font-size: 13px;
}
.btn--lg .btn__icon { font-size: 15px; }
.btn--lg:hover { transform: translateY(-3px); }

/* WebGL text overlay canvas (one per animated heading) */
.gl-text {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Wrapper that anchors a gl-text canvas to its heading */
.gl-head {
  position: relative;
  display: inline-block;
}

/* Scroll-reveal blocks */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Fixed chrome
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  z-index: var(--z-progress);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  will-change: transform;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-size: 170px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22120%22%20height=%22120%22%3E%3Cfilter%20id=%22n%22%3E%3CfeTurbulence%20type=%22fractalNoise%22%20baseFrequency=%220.85%22%20numOctaves=%222%22%20stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect%20width=%22100%25%22%20height=%22100%25%22%20filter=%22url(%23n)%22/%3E%3C/svg%3E");
}

/* Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.45s var(--ease);
}
.site-header__logo:hover {
  transform: scale(1.14) rotate(4deg);
}
.site-header__logo img {
  display: block;
  height: 31px;
  width: auto;
  transform-origin: center;
  filter: brightness(0) invert(1);
  animation: logo-in 0.8s var(--ease) both,
             logo-float 5.5s ease-in-out 0.9s infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.nav__sep {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.22);
}
.nav__link--muted { opacity: 0.5; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.burger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease);
}
.burger.is-open .burger__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open .burger__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu__link {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--fg-strong);
}
.mobile-menu__link--alt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 118px var(--gutter) 38px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(52vw, 820px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 72%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 72%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 28%;
  filter: grayscale(1) contrast(1.06) brightness(0.82);
}

.hero__spacer {
  position: relative;
  z-index: 2;
}

.hero__head {
  position: relative;
  z-index: 2;
  margin: clamp(20px, 4vh, 40px) 0;
  padding-right: clamp(150px, 18vw, 330px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vh, 24px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__eyebrow span {
  white-space: nowrap;
  line-height: 1.7;
}

.hero__title {
  font-weight: 800;
  font-variation-settings: 'wdth' 116;
  font-size: clamp(2.7rem, 10.2vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--fg-strong);
  transition: color 0.6s ease;
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.hero__lead {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}
.hero__intro {
  max-width: 34ch;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  color: #b6b6b2;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 38px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-4);
  transition: opacity 0.4s ease;
}
.scroll-cue__label { writing-mode: vertical-rl; }
.scroll-cue__track {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.scroll-cue__bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--fg);
  animation: scroll-cue 2.4s var(--ease) infinite;
}

/* Marquee bands
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(16px, 2.2vw, 30px) 0;
}
.marquee--cta {
  padding: clamp(14px, 1.8vw, 24px) 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.marquee__item {
  padding: 0 0.42em;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  font-size: clamp(1.6rem, 4.6vw, 4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee__sep {
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: var(--muted-5);
}
.marquee--cta .marquee__item {
  padding: 0 0.4em;
  font-variation-settings: 'wdth' 100;
  font-size: clamp(1.3rem, 3.6vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--muted-4);
}
.marquee--cta .marquee__sep {
  font-size: clamp(0.9rem, 1.6vw, 1.5rem);
  color: #3a3a37;
}

/* About
   -------------------------------------------------------------------------- */
.about {
  padding: clamp(80px, 13vh, 180px) var(--gutter);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 3.3fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}
.about__lead {
  max-width: 28ch;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}
.about__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(34px, 5vw, 64px);
}
.about__col {
  flex: 1 1 320px;
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
}
.about__block { margin-top: clamp(34px, 5vw, 60px); }
.about__block-label {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-4);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tag {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* Labelled note row ("Off the clock", "Freelance & advisory") */
.note-row {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.note-row--about {
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.note-row--work {
  padding-top: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}
.note-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-4);
}
.note-row__label::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--muted-4);
}
.note-row__text {
  flex: 1 1 340px;
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
}

/* Work / experience
   -------------------------------------------------------------------------- */
.work {
  padding: clamp(70px, 10vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5vw, 64px);
}
.section-head__note {
  max-width: 42ch;
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}
.section-head__link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

.section-title {
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  font-size: clamp(2.2rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--fg-strong);
  transition: color 0.6s ease;
}
.section-title--muted {
  color: var(--muted-4);
}

.job-grid { display: block; }

.job-row {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 1fr 44px;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  padding: clamp(20px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: background 0.55s var(--ease), padding 0.55s var(--ease);
}
.job-row:hover {
  background: var(--bg-elevated);
  padding-left: clamp(14px, 2vw, 38px);
  padding-right: clamp(14px, 2vw, 38px);
}
.job-row__company {
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.job-row__company span {
  display: inline-block;
  transition: transform 0.55s var(--ease);
}
.job-row:hover .job-row__company span { transform: translateX(12px); }

.job-row__roles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
  line-height: 1.3;
  color: var(--fg-soft);
}
.job-row__roleline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.job-row__roleline--second { color: var(--muted); }
.job-row__then {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--muted-4);
}

.job-row__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted);
}
.job-row__meta b {
  font-weight: 400;
  color: var(--muted-4);
}

.job-row__arrow {
  justify-self: end;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--fg);
  opacity: 0;
  transform: translateX(-14px);
  transition: transform 0.55s var(--ease), opacity 0.4s;
}
.job-row:hover .job-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Recommendations carousel
   -------------------------------------------------------------------------- */
.recs {
  padding: clamp(70px, 10vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.recs__carousel { position: relative; }

.recs__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(125% 120% at 28% -10%, #181818 0%, #0d0d0d 52%, #080808 100%);
  cursor: grab;
  touch-action: pan-y;
}
.recs__gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.recs__slides {
  position: relative;
  z-index: 2;
  min-height: clamp(210px, 22vw, 300px);
  transition: height 0.55s var(--ease);
}

.rec {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 34px);
  padding: clamp(40px, 4.5vw, 68px) clamp(34px, 6vw, 104px);
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.rec__mark {
  position: absolute;
  top: clamp(6px, 2vw, 28px);
  left: clamp(22px, 5vw, 80px);
  font-family: Georgia, serif;
  font-size: clamp(6rem, 12vw, 13rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}
.rec__quote {
  position: relative;
  max-width: 54ch;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.15vw, 2.35rem);
  line-height: 1.45;
  letter-spacing: -0.018em;
  color: #f2f2ef;
  text-wrap: pretty;
}
.rec__cite {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}
.rec__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-soft);
}
.rec__person {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rec__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.rec__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

.recs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(6px);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: border-color 0.35s, background 0.35s, color 0.35s, opacity 0.35s;
}
.recs__arrow:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  opacity: 1;
}
.recs__arrow--prev { left: clamp(10px, 1.4vw, 18px); }
.recs__arrow--next { right: clamp(10px, 1.4vw, 18px); }

.recs__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--fg);
  z-index: 4;
}

.recs__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2vw, 26px);
}
.recs__counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.recs__dots {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.recs__dot {
  width: 14px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: var(--fg);
  opacity: 0.3;
  cursor: pointer;
  transition: width 0.4s var(--ease), opacity 0.4s;
}

/* Writing / publications
   -------------------------------------------------------------------------- */
.writing {
  padding: clamp(70px, 10vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.section-head--writing { margin-bottom: clamp(30px, 4vw, 52px); }

.pub-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--line);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease);
}
.pub-row:hover {
  background: var(--bg-elevated);
  padding-left: clamp(14px, 2vw, 32px);
  padding-right: clamp(14px, 2vw, 32px);
}
.pub-row__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-4);
}
.pub-row__title {
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.pub-row__title span {
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.pub-row:hover .pub-row__title span { transform: translateX(10px); }
.pub-row__end {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.pub-row__host {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pub-row__arrow {
  font-size: 1.3rem;
  color: var(--fg);
  opacity: 0;
  transform: translateX(-12px);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.pub-row:hover .pub-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

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

/* Contact
   -------------------------------------------------------------------------- */
.contact {
  padding: clamp(90px, 16vh, 200px) var(--gutter) clamp(60px, 8vh, 90px);
}
.contact__index { margin-bottom: clamp(24px, 4vw, 44px); }
.contact__title {
  font-weight: 800;
  font-variation-settings: 'wdth' 116;
  font-size: clamp(3rem, 15vw, 15rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transition: color 0.6s ease;
}
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px);
}
.contact__text {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.5;
  color: #b6b6b2;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(30px, 4vw, 46px) var(--gutter) clamp(34px, 4vw, 46px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-4);
}
.site-footer__social {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
  color: var(--fg-soft);
}
.site-footer__sep { color: #3a3a38; }
.site-footer__link { white-space: nowrap; }
.site-footer__top { color: var(--fg-soft); }

/* Keyframes
   -------------------------------------------------------------------------- */
@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes logo-in {
  0%   { opacity: 0; transform: translateY(-7px) scale(0.7) rotate(-12deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-2.5px) rotate(-1.5deg); }
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero {
    justify-content: flex-start;
    min-height: auto;
    gap: clamp(28px, 6vw, 44px);
    padding-top: 120px;
    padding-bottom: 64px;
  }
  .hero__photo {
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    height: 62%;
    width: 78vw;
    z-index: 0;
    opacity: 0.5;
  }
  .hero__spacer { display: none; }
  .hero__eyebrow { order: 1; }
  .hero__head { order: 2; margin: 0; padding-right: 0; }
  .hero__bottom { order: 4; }

  .about__grid { grid-template-columns: 1fr; gap: 26px; }

  .nav { gap: 16px; font-size: 10.5px; }

  .job-row {
    grid-template-columns: 1fr 38px;
    gap: 5px 12px;
    align-items: center;
  }
  .job-row__company  { grid-column: 1; grid-row: 1; }
  .job-row__roles    { grid-column: 1; grid-row: 2; gap: 15px; }
  .job-row__meta     { grid-column: 1; grid-row: 3; }
  .job-row__arrow    { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; }
  .job-row__roleline { flex-direction: column; align-items: flex-start; gap: 3px; }

  .pub-row {
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    align-items: start;
  }
  .pub-row__end { grid-column: 1 / -1; justify-self: start; margin-top: 3px; }
}

@media (max-width: 540px) {
  .site-header { padding: 15px 20px; }
  .nav { display: none; }
  .burger { display: flex; }

  .hero {
    padding: 100px 22px 44px;
    min-height: 70svh;
    justify-content: center;
    gap: 26px;
  }
  .hero__photo {
    inset: 0 0 0 auto;
    top: 0;
    right: 0;
    height: 100%;
    width: min(88vw, 400px);
    opacity: 0.28;
    z-index: 0;
  }
  .hero__head { margin: 0; }
  .hero__title {
    font-size: clamp(2.1rem, 11.6vw, 4.6rem);
    letter-spacing: -0.045em;
  }
  .hero__lead { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__intro { max-width: 100%; }
  .hero__eyebrow { width: 100%; }
  .hero__eyebrow span {
    white-space: normal;
    max-width: 100%;
    display: block;
    line-height: 1.9;
    letter-spacing: 0.06em;
  }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header__logo img,
  .scroll-cue__bar { animation: none; }
}
