/* Dark editorial theme overlay */

:root {
  --ink-bg: #1c1d20;
  --ink-bg-soft: #232428;
  --ink-text: #f4f4f2;
  --ink-muted: #9a9ba0;
  --ink-line: rgba(244, 244, 242, 0.14);
}

body {
  background-color: var(--ink-bg);
  color: var(--ink-text);
}

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

/* ---------- navbar ---------- */
.navbar { background-color: transparent; }
.text-block, .brand { color: var(--ink-text); }

/* ---------- hero ---------- */
.header { padding-bottom: 24px; }

.avatar-circle {
  background-color: var(--ink-bg-soft);
  border: 1px solid var(--ink-line);
  width: 132px;
  height: 132px;
}

.title, h1, h2, h3, h4 { color: var(--ink-text); }

.hero-display {
  color: var(--ink-text);
  font-size: 92px;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.paragraph-display { color: var(--ink-muted); }
.paragraph-display strong { color: var(--ink-text); }

/* hide the pastel doodle underlines; they fight the dark palette */
.accent-line { background-image: none; padding-left: 0; padding-right: 0; }
.accent { display: none; }

/* ---------- name marquee ---------- */
.sh-marquee {
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
}

.sh-marquee-track {
  display: inline-block;
  animation: sh-scroll 28s linear infinite;
}

.sh-marquee-track span {
  color: var(--ink-text);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-right: 24px;
}

.sh-marquee-track span:nth-child(2n) {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-muted);
}

@keyframes sh-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections & labels ---------- */
.client-section, .resume-section { padding-top: 90px; }

.title-wrap h3, .title-wrap-large h3 {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  font-weight: 500;
}

/* Resume display heading stays large */
.resume-section .title-wrap-large:first-child h3,
.resume-section > .container > .title-wrap-large h3 {
  color: var(--ink-text);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 56px;
}

/* ---------- brand logos on light chips ---------- */
.logo-card {
  background: none;
  margin: 0 10px;
  padding: 24px 18px;
  transition: transform 0.3s;
}
.logo-card:hover { transform: translateY(-4px); }
.company-logo {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

/* ---------- resume list ---------- */
.item-wrap {
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 0;
  padding: 30px 0 26px;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.item-wrap:hover { padding-left: 14px; }

.resume-heading, .grid-column h4 { color: var(--ink-text); }
.resume-type { color: var(--ink-text); }
.item-wrap p { color: var(--ink-muted); }

.arrow-right { filter: invert(1) grayscale(1) brightness(1.6); }

/* ---------- footer ---------- */
.footer-wrap { border-top-color: var(--ink-line); }

.social-link { border: 1px solid var(--ink-line); }
.social-link:hover { background: var(--ink-bg-soft); }
.social-link img { filter: invert(1) grayscale(1) brightness(1.4); }

.footer-section a {
  color: var(--ink-text);
  text-decoration: none;
}

/* email as a rounded pill */
a[href^="mailto:"] {
  color: var(--ink-text);
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  padding: 14px 26px;
  transition: background 0.3s, color 0.3s;
}
a[href^="mailto:"]:hover { background: var(--ink-text); color: var(--ink-bg); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hero-display { font-size: 64px; }
  .sh-marquee-track span { font-size: 52px; }
}

@media (max-width: 479px) {
  .hero-display { font-size: 42px; }
  .sh-marquee-track span { font-size: 36px; }
  .resume-section .title-wrap-large h3 { font-size: 40px; }
}

/* ---------- editorial hero: left-aligned ---------- */
.header-title-wrap {
  text-align: left;
  align-items: flex-start;
  max-width: 1160px;
}
.hero-display { max-width: 1050px; }
.paragraph-display { margin-left: 0; }

/* ---------- location chip ---------- */
.sh-chips { display: flex; gap: 12px; }
.sh-chip {
  color: var(--ink-muted);
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
  display: inline-flex;
}
.sh-dot {
  background: #7fd99a;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  animation: sh-pulse 2.4s ease-in-out infinite;
}
@keyframes sh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- footer CTA ---------- */
.sh-cta { padding: 130px 0 90px; }
.sh-cta-heading {
  color: var(--ink-text);
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 0 44px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  font-weight: 600;
}
a.sh-cta-btn {
  color: var(--ink-text);
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  padding: 22px 40px;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}
a.sh-cta-btn:hover { background: var(--ink-text); color: var(--ink-bg); }
.sh-meta {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  gap: 36px;
  margin-top: 56px;
  font-size: 12px;
  display: flex;
}

/* ---------- nav link underline hover ---------- */
.nav-link { color: var(--ink-text); position: relative; }
.nav-link:after {
  content: "";
  background: var(--ink-text);
  height: 1px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover:after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 479px) {
  .sh-cta { padding-top: 90px; }
  .sh-meta { flex-direction: column; gap: 10px; }
}

/* ---------- floating menu button + slide-in panel ---------- */
.sh-burger {
  cursor: pointer;
  z-index: 1002;
  background: var(--ink-bg-soft);
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 62px;
  height: 62px;
  display: flex;
  position: fixed;
  top: 22px;
  right: 22px;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s;
}
.sh-burger:hover { background: #2c2d31; }
.sh-burger span {
  background: var(--ink-text);
  width: 24px;
  height: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sh-burger {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
body.sh-open .sh-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.sh-open .sh-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.sh-nav-backdrop {
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  transition: opacity 0.5s;
}
body.sh-open .sh-nav-backdrop { opacity: 1; pointer-events: auto; }

.sh-panel {
  z-index: 1001;
  background: #26272b;
  flex-direction: column;
  justify-content: space-between;
  width: min(440px, 88vw);
  height: 100dvh;
  padding: 108px 48px 48px;
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(110%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
body.sh-open .sh-panel { transform: translateX(0); }

.sh-panel-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 28px;
  padding-bottom: 14px;
  font-size: 12px;
}
.sh-panel-links { display: flex; flex-direction: column; }
.sh-panel-links a {
  color: var(--ink-text);
  padding: 10px 0 10px 26px;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}
.sh-panel-links a:before {
  content: "";
  background: var(--ink-text);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sh-panel-links a:hover:before { transform: translateY(-50%) scale(1); }

.sh-panel-socials { display: flex; gap: 26px; flex-wrap: wrap; }
.sh-panel-socials a {
  color: var(--ink-text);
  font-size: 16px;
  text-decoration: none;
}
.sh-panel-socials a:hover { color: var(--ink-muted); }

/* panel mailto links are plain links, not pills */
.sh-panel a[href^="mailto:"] {
  border: none;
  border-radius: 0;
  padding: 10px 0 10px 26px;
}
.sh-panel .sh-panel-socials a[href^="mailto:"] { padding: 0; }

body.sh-open { overflow: hidden; }

/* replace webflow's stock hamburger with ours */
.menu-button.w-nav-button { display: none !important; }

@media (max-width: 767px) {
  .sh-panel-links a { font-size: 38px; }
}

/* ---------- subpages ---------- */
.sh-page-head { padding: 40px 3% 20px; }
.sh-page-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  font-size: 13px;
}
.sh-page-title {
  color: var(--ink-text);
  letter-spacing: -0.025em;
  max-width: 980px;
  margin: 0 0 20px;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.04;
  font-weight: 600;
}
.sh-section { padding: 70px 3%; }
.sh-section-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--ink-line);
  margin: 0 0 34px;
  padding-bottom: 14px;
  font-size: 12px;
}
.sh-prose {
  color: var(--ink-muted);
  max-width: 720px;
  margin-bottom: 38px;
  font-size: 22px;
  line-height: 1.5;
}
.sh-prose p { margin: 0 0 22px; }
.sh-prose p:first-child { color: var(--ink-text); }

.sh-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.sh-list { display: flex; flex-direction: column; }
.sh-row {
  border-bottom: 1px solid var(--ink-line);
  flex-direction: column;
  padding: 28px 0 24px;
  text-decoration: none;
  display: flex;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sh-row:hover { padding-left: 14px; }
.sh-row-title { color: var(--ink-text); font-size: 26px; font-weight: 500; }
.sh-row-type {
  color: var(--ink-text);
  letter-spacing: 0.03em;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}
.sh-row-meta { color: var(--ink-muted); margin-top: 8px; font-size: 15px; }

.sh-empty { max-width: 720px; }
.sh-empty p { color: var(--ink-muted); font-size: 22px; line-height: 1.5; margin: 0 0 20px; }
.sh-empty-note { font-size: 17px !important; margin-bottom: 34px !important; }

.sh-panel-links a.is-current { color: var(--ink-muted); }
.sh-panel-links a.is-current:before { transform: translateY(-50%) scale(1); background: var(--ink-muted); }

@media (max-width: 479px) {
  .sh-section { padding: 48px 3%; }
  .sh-prose, .sh-empty p { font-size: 19px; }
  .sh-row-title { font-size: 21px; }
}

/* stacked Red Bull mark needs more height to match the horizontal logos */
.company-logo[src$="redbull.png"] { max-height: 74px; }

/* ---------- hero portrait ---------- */
.sh-hero {
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  max-width: 1300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 400px);
}
.sh-hero-text { max-width: none; }
.sh-hero .hero-display {
  max-width: none;
  font-size: clamp(38px, 5.2vw, 76px);
}
.sh-portrait {
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
}
.sh-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .sh-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .sh-portrait { max-width: 78vw; }
}

/* ---------- full-bleed hero photo ---------- */
.sh-hero-bg {
  min-height: 100svh;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}
.sh-hero-media {
  z-index: 0;
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}
.sh-hero-media img {
  object-fit: cover;
  object-position: 74% 22%;
  width: 100%;
  height: 100%;
  display: block;
}
/* scrim keeps the type legible over a busy photograph */
.sh-hero-media:after {
  content: "";
  background:
    linear-gradient(90deg, var(--ink-bg) 0%, rgba(28,29,32,0.92) 34%,
      rgba(28,29,32,0.55) 58%, rgba(28,29,32,0.28) 100%),
    linear-gradient(180deg, rgba(28,29,32,0.75) 0%, rgba(28,29,32,0) 26%,
      rgba(28,29,32,0) 74%, var(--ink-bg) 100%);
  position: absolute;
  inset: 0;
}
.sh-hero-bg .sh-hero {
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  position: relative;
}
.sh-hero-bg .hero-display { max-width: 15ch; }
.sh-hero-bg .paragraph-display { max-width: 46ch; }

@media (max-width: 991px) {
  .sh-hero-media img { object-position: 68% 18%; }
  .sh-hero-media:after {
    background:
      linear-gradient(180deg, rgba(28,29,32,0.86) 0%, rgba(28,29,32,0.62) 42%,
        rgba(28,29,32,0.72) 68%, var(--ink-bg) 100%);
  }
  .sh-hero-bg { min-height: 92svh; }
}

/* composites carry their own dark area, so the scrim only needs to soften edges */
.sh-hero-media picture { display: contents; }
.sh-hero-media img { object-position: center; }
.sh-hero-media:after {
  background:
    linear-gradient(90deg, var(--ink-bg) 0%, rgba(28,29,32,0.55) 26%,
      rgba(28,29,32,0) 52%),
    linear-gradient(180deg, rgba(28,29,32,0.55) 0%, rgba(28,29,32,0) 22%,
      rgba(28,29,32,0) 76%, var(--ink-bg) 100%);
}
@media (max-width: 767px) {
  .sh-hero-bg { align-items: flex-start; padding-top: 108px; }
  .sh-hero-media img { object-position: center top; }
  .sh-hero-media:after {
    background:
      linear-gradient(180deg, rgba(28,29,32,0.72) 0%, rgba(28,29,32,0.15) 34%,
        rgba(28,29,32,0.25) 62%, var(--ink-bg) 100%);
  }
}

@media (max-width: 767px) {
  .sh-hero-media:after {
    background:
      linear-gradient(180deg, rgba(28,29,32,0.93) 0%, rgba(28,29,32,0.82) 44%,
        rgba(28,29,32,0.5) 68%, rgba(28,29,32,0.22) 86%, var(--ink-bg) 100%);
  }
}

/* ---------- marquee now lives inside the hero ---------- */
.sh-hero-bg .sh-marquee {
  z-index: 2;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---------- mobile: photo band with the name scrolling over it,
              all copy moved below the header ---------- */
@media (max-width: 767px) {
  .sh-hero-bg {
    --band: 58svh;
    min-height: 0;
    align-items: stretch;
    padding-bottom: 0;
    display: block;
  }
  .sh-hero-media {
    /* reach up behind the transparent navbar */
    height: calc(58svh + 128px);
    top: -128px;
    bottom: auto;
    left: 0;
    right: 0;
  }
  .sh-hero-media img { object-position: center 12%; }
  .sh-hero-media:after {
    background:
      linear-gradient(180deg, rgba(28,29,32,0.62) 0%, rgba(28,29,32,0.12) 15%,
        rgba(28,29,32,0.06) 46%, rgba(28,29,32,0.55) 74%, rgba(28,29,32,0.9) 90%,
        var(--ink-bg) 100%);
  }
  .sh-hero-bg .sh-marquee {
    border: 0;
    padding: 0;
    top: calc(var(--band) - 96px);
    bottom: auto;
  }
  .sh-hero-bg .sh-marquee-track span { font-size: 40px; }
  .sh-hero-bg .sh-hero {
    position: relative;
    padding-top: calc(58svh + 34px);
  }
  .sh-hero-bg .hero-display { max-width: none; }
}

/* ---------- oversized scrolling name ---------- */
.sh-marquee .sh-marquee-track span {
  font-size: clamp(58px, 9vw, 150px);
  padding-right: 0.3em;
}
/* navbar sits above the hero photo */
.navbar { position: relative; z-index: 5; }

@media (max-width: 767px) {
  /* pull the hero under the transparent navbar so the photo starts at y=0,
     keeping overflow hidden so the parallax stays clipped to the band */
  .sh-hero-bg { margin-top: -128px; }
  .sh-hero-media {
    top: 0;
    height: calc(58svh + 128px);
  }
  .sh-hero-media:after {
    background:
      linear-gradient(180deg, rgba(28,29,32,0.45) 0%, rgba(28,29,32,0.05) 14%,
        rgba(28,29,32,0.05) 46%, rgba(28,29,32,0.55) 74%,
        rgba(28,29,32,0.9) 90%, var(--ink-bg) 100%);
  }
  .sh-hero-bg .sh-hero { padding-top: calc(58svh + 162px); }
  .sh-hero-bg .sh-marquee { top: calc(58svh + 6px); }
  .sh-marquee .sh-marquee-track span { font-size: 58px; }

  /* the scrolling name covers this, but keep it for screen readers */
  .sh-hero .title-wrapper {
    clip-path: inset(50%);
    border: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }
}

/* the marquee inherited the 20px body line-height, which clipped the
   oversized glyphs top and bottom */
.sh-marquee-track,
.sh-marquee .sh-marquee-track span {
  line-height: 1.15;
}
@media (max-width: 767px) {
  .sh-hero-bg .sh-marquee { padding: 6px 0; }
}

@media (max-width: 767px) {
  /* line the wordmark up with the fixed menu button's centre */
  .navbar .brand { transform: translateY(-11px); }
}

/* ---------- light content: resume through the footer ---------- */
.resume-section,
.footer-section {
  /* re-point the theme tokens; everything inside inherits them */
  --ink-bg: #ffffff;
  --ink-bg-soft: #f0efec;
  --ink-text: #1c1d20;
  --ink-muted: #5f6167;
  --ink-line: rgba(28, 29, 32, 0.16);
  background: #ffffff;
  color: #1c1d20;
}
/* icons ship dark, so undo the inversion used on the dark canvas */
.footer-section .social-link img,
.resume-section .arrow-right { filter: none; }
.footer-section .sh-cta-heading,
.footer-section a { color: var(--ink-text); }

/* hero photo reaches the top of the page, behind the transparent navbar
   (the navbar is 128px tall and sits above via z-index) */
.sh-hero-bg { margin-top: -128px; }

@media (max-width: 767px) {
  /* bigger, and solid throughout: no outlined alternates on phones */
  .sh-marquee .sh-marquee-track span { font-size: 76px; }
  .sh-marquee .sh-marquee-track span:nth-child(2n) {
    color: var(--ink-text);
    -webkit-text-stroke: 0;
  }
}

/* the scrolling name is a mobile-only device now */
@media (min-width: 768px) {
  .sh-hero-bg .sh-marquee { display: none; }
}

@media (max-width: 767px) {
  .sh-marquee .sh-marquee-track span { font-size: 92px; }
  /* larger type needs a little more room inside the photo band */
  .sh-hero-bg .sh-marquee { top: calc(58svh - 14px); }
  /* wider track at this size, so slow the loop well down */
  .sh-marquee .sh-marquee-track { animation-duration: 60s; }
}

@media (max-width: 767px) {
  /* clearance so no ascender or descender can touch the clip edge */
  .sh-hero-bg .sh-marquee { padding: 14px 0; top: calc(58svh - 30px); }
}

/* ---------- typeface ----------
   General Sans (Fontshare, ITF Free Font License), self-hosted.
   Chosen as a freely-licensed stand-in for the reference site's
   commercial Neue Montreal. */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/generalsans/GeneralSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/generalsans/GeneralSans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/generalsans/GeneralSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/generalsans/GeneralSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
button,
input,
select,
textarea {
  font-family: "General Sans", "Plus Jakarta Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
