/* v4.2.3: Bernina Sans Compressed (Exbold) — blockier sans for the hero
   cutout name treatment (AUGUST / HORVATH). Replaces the Gimlet serif,
   which was kept around as a fallback in case the cutout font fails to
   load. */
@font-face {
  font-family: 'Bernina Sans Compressed';
  src: url('/assets/fonts/BerninaSans-CompressedExbold.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gimlet Display Condensed';
  src: url('/assets/fonts/GimletDisplayCond-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #1f1f1f;
  --bg2: #272727;
  --bg3: #2f2f2f;
  --text: #EBEBEB;
  --text2: #D7CDCC;
  --muted: #9a9590;
  --terra: #C9A68A;
  --blue: #8FA9B3;
  --mauve: #C99CAD;
  --r: 6px;
  --g: 16px;
  --f: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* v4.2.3 */
  --hero-cutout-font: 'Gimlet Display Condensed', 'Inter', sans-serif;
  --color-tint: rgba(255, 255, 255, 0.03);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--g)
}

/* SCROLL REVEAL */
.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease-out, transform .8s ease-out
}

.sr.vis {
  opacity: 1;
  transform: translateY(0)
}

.sr-d1 {
  transition-delay: .15s
}

.sr-d2 {
  transition-delay: .3s
}

.sr-d3 {
  transition-delay: .45s
}

.sr-d4 {
  transition-delay: .6s
}

/* TRIO */
.trio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 0
}

.trio span {
  display: block;
  height: 3px;
  border-radius: 1.5px;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1)
}

.trio span:nth-child(1) {
  width: 45%;
  background: var(--terra)
}

.trio span:nth-child(2) {
  width: 35%;
  background: var(--blue);
  transition-delay: .2s
}

.trio span:nth-child(3) {
  width: 25%;
  background: var(--mauve);
  transition-delay: .4s
}

.trio.vis span {
  transform: scaleX(1)
}

.trio-sm {
  padding: 0;
  gap: 4px;
  align-items: flex-start
}

.trio-sm span {
  height: 2px
}

.trio-sm span:nth-child(1) {
  width: 40px
}

.trio-sm span:nth-child(2) {
  width: 30px
}

.trio-sm span:nth-child(3) {
  width: 20px
}

/* §1 NAV — the standalone .site-nav top bar is no longer used on the homepage
   in v4.2.3 (the nav is now integrated into the hero — see
   .hero-cyberpunk__nav). The old rules are removed; only the .nav-pill
   hamburger toggle survives because landing-controller.initNavCollapse
   still uses it to bring the hero-nav back after scroll-down. */

.nav-pill {
  position: fixed;
  top: 12px;
  right: var(--g);
  z-index: 101;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31, 31, 31, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, .15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease
}

.nav-pill.vis {
  opacity: 1;
  pointer-events: auto
}

.nav-pill span {
  display: block;
  height: 2px;
  border-radius: 1px
}

.nav-pill span:nth-child(1) {
  width: 18px;
  background: var(--terra)
}

.nav-pill span:nth-child(2) {
  width: 13px;
  background: var(--blue)
}

.nav-pill span:nth-child(3) {
  width: 8px;
  background: var(--mauve)
}

/* §2 HERO SCROLL WRAPPER */
/* v4.2.3 hero rules live further down (.hero-cyberpunk).
   The previous flip-headline / hero-stats / hero-visual / hero-img-scroll /
   hero-trio-bridge / hero-cta / flip-* / stat-* / hero-scroll-wrapper /
   hero-sticky / hero-content / hero-byline rules were removed because the
   old hero block is gone from index.html. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  letter-spacing: .01em;
  transition: transform .15s, background .15s;
  font-family: var(--f)
}

.btn:active {
  transform: scale(.96)
}

.btn-primary {
  background: var(--terra);
  color: var(--bg)
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, .12)
}

/* v4.2.3: showcase, tabs, project-cards, hero-trio-bridge, and the
   homepage-scoped .tag pill were removed because the old homepage
   regions are gone from index.html. The entry-page .tag styling
   lives in styles.css and is untouched. */

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 20px
}

/* §4 CREDENTIALS */
.credentials {
  padding: 48px 0
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Narrower than the .container's 1200px so the credential cards don't
     read as full-width banners on desktop — same boxed feel as the
     Achievements list below. */
  max-width: 56rem;
  margin: 0 auto
}

/* Align the "Experience" heading with the left edge of the .cred-list cards
   instead of letting it sit at the full container width. Same max-width +
   auto margins so it stacks directly above the cards. */
.credentials .section-heading {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto
}

.cred-item {
  display: block;
  background: var(--bg2);
  border-radius: var(--r);
  padding: 14px 48px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease
}

.cred-item:hover {
  background: rgba(255, 255, 255, .06)
}

.cred-item:hover .cred-company {
  color: var(--mauve)
}

.cred-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px
}

.cred-company {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--terra);
  text-decoration: none
}

a.cred-company:hover {
  color: var(--text);
  text-decoration: underline
}

.cred-dates {
  font-size: .6875rem;
  color: var(--muted)
}

.cred-role {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3
}

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px
}

.cred-tags .tag {
  white-space: nowrap;
  display: inline-block;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  pointer-events: none;        /* visually present, not individually clickable */
  user-select: none
}

/* v4.2.3: old .process-scroll / .process-card / .process-num / .process-indicator
   shape was removed; the new .process / .process-step / .process-step__word /
   .process-step__body shape lives further down in the v4.2.3 block. The
   .creative and .impact sections were dropped from the homepage. */

/* §8 ACHIEVEMENTS — narrow container (Sean: "more narrow, 600-900px") so the
   list reads as a scannable index. Bottom padding tight so CTA below feels
   like part of the same conversation. */
.achievements {
  padding: 48px 0 24px
}

.achievements__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding-inline: var(--g, 24px)
}

.ach-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.ach-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text);
  font-family: var(--f)
}

.ach-accent {
  flex-shrink: 0;
  padding-top: 6px
}

.ach-title {
  font-size: 1rem;
  font-weight: 700;
  flex: 1
}

.ach-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .3s ease;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2
}

.ach-item.open .ach-icon {
  transform: rotate(45deg)
}

.ach-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease-out, opacity .4s ease;
  opacity: 0
}

.ach-item.open .ach-body {
  max-height: 200px;
  opacity: 1
}

.ach-body-inner {
  padding: 12px 0 0 56px;
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.6
}

/* Inline source link at the end of an expanded achievement body — links
   to the entry where the achievement happened. Italic-serif accent to
   echo the homepage spine + entry h5 treatment. */
.ach-source {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.0625em;
  color: var(--terra);
  text-decoration: none;
  margin-left: .35em;
  white-space: nowrap;
  transition: color .2s ease
}

.ach-source:hover {
  color: var(--mauve)
}

.ach-source span {
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s ease
}

.ach-source:hover span {
  transform: translateX(2px)
}

/* §9 CTA */
.cta-section {
  padding: 64px 0;
  text-align: center
}

.cta-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 16px;
  max-width: 38rem
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 var(--g)
}

.cta-body {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text2)
}

.cta-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px
}

.cta-actions .btn {
  min-width: 200px
}

@media (max-width: 31.9375rem) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto
  }
  .cta-actions .btn {
    min-width: 0
  }
}

/* CTA trio — three colored bars (terra / blue / mauve) used in two variants:
   1. .cta-trio--minimal: small, near-static spacer BETWEEN achievements and CTA.
   2. .cta-trio--full: large, scroll-reveal animated finisher AFTER the CTA.
   Default base styles cover both; modifier classes tune size + motion. */
.cta-trio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.cta-trio span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--terra);
  opacity: 1;
  transform: none
}

.cta-trio span:nth-child(1) { background: var(--terra) }
.cta-trio span:nth-child(2) { background: var(--blue) }
.cta-trio span:nth-child(3) { background: var(--mauve) }

/* ---- minimal variant (between Achievements and CTA) ---- */
.cta-trio--minimal {
  padding: 12px 0;
  gap: 4px
}

.cta-trio--minimal span {
  height: 1.5px;
  border-radius: 1px;
  opacity: .7
}

.cta-trio--minimal span:nth-child(1) { width: 96px }
.cta-trio--minimal span:nth-child(2) { width: 72px }
.cta-trio--minimal span:nth-child(3) { width: 48px }

/* ---- full variant (after CTA, before footer) — animated entrance ---- */
.cta-trio--full {
  padding: 56px 0 24px;
  gap: 10px
}

.cta-trio--full span {
  height: 3px;
  border-radius: 1.5px;
  transform: scaleX(0) translateY(30px);
  transform-origin: left center;
  opacity: 0;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1), opacity .6s ease
}

.cta-trio--full span:nth-child(1) { width: 45% }
.cta-trio--full span:nth-child(2) { width: 35%; transition-delay: .2s }
.cta-trio--full span:nth-child(3) { width: 25%; transition-delay: .4s }

.cta-trio--full.vis span {
  transform: scaleX(1) translateY(0);
  opacity: 1
}

/* FOOTER */
.site-footer {
  padding: 32px 0;
  text-align: center
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px
}

.footer-email {
  margin-bottom: 6px;
  font-size: .8125rem
}

.footer-email a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease
}

.footer-email a:hover {
  color: var(--text);
  border-bottom-color: currentColor
}

.footer-icons a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--muted)
}

.footer-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor
}

/* Mobile: lay the 8 social icons out as two tidy rows of four. */
@media (max-width: 47.9375rem) {
  .footer-icons {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 18px 28px;
  }
}

.footer-copy {
  font-size: .75rem;
  color: var(--muted)
}

@media(max-width:340px) {
  .nav-links {
    gap: 12px;
    font-size: .75rem
  }
}

/* v4.2.3: the pre-rewrite `.cta-buttons {flex-direction: row}` desktop
   override was removed — the new CTA shape stacks body above an actions
   row (.cta-actions handles its own horizontal layout). */

@media(min-width:1024px) {
  .section-heading {
    font-size: 2.25rem
  }
}

/* ============================================
   v4.2.3 HOMEPAGE COMPONENTS
   Cyberpunk hero, narrative spine, featured
   tiles, and the new process shape.
   ============================================ */

/* ---- Hero (cyberpunk) ----
   Full-viewport-height. Background video covers; left half is blur-overlaid;
   centerpiece "AUGUST" cutout uses mix-blend-mode against the blurred half. */
/* HERO — cyberpunk video background with a WHITE-frosted left half. The
   composition follows the EMBER/bg-anim-stills reference:
   - Top-left: favicon logo + lowercase +prefix nav links
   - Top-right: +contact label
   - AUGUST cutout top-left over the frosted half (mix-blend-mode)
   - ABOUT + body line + explore-work CTA + socials in bottom-left
   - HORVATH cutout bottom-right over the unfrosted half
   Sean: "this should be the smartest design of the whole site". */
.hero-cyberpunk {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: #fff
}

.hero-cyberpunk__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0
}

/* Frost overlay — light/white blur (was dark) so the left half reads as
   "frosted glass" against the cyberpunk video, not as a black dim. */
.hero-cyberpunk__blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  background: rgba(255, 255, 255, .16);
  border-right: 1px solid rgba(255, 255, 255, .08);
  z-index: 1
}

/* ---- Integrated nav overlay (top bar of the hero) ----
   Layout: logo top-left of the FROSTED HALF, +work/+process/+about
   right-aligned within the same frosted half, +contact top-right of the
   UNFROSTED HALF. Achieved via 50% width left & right groupings. */
.hero-cyberpunk__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 3vw, 48px);
  gap: clamp(16px, 3vw, 48px);
  background: transparent;
  transition: transform .3s ease
}

.hero-cyberpunk__nav.hide {
  transform: translateY(-100%);
}

/* Left half of the nav grid — holds the logo (left edge) AND the nav
   links (right edge of the frosted half). */
.hero-cyberpunk__nav > .hero-cyberpunk__logo {
  justify-self: start
}

.hero-cyberpunk__nav-links {
  list-style: none;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  justify-self: end;   /* right-align inside the left half (frosted side) */
  grid-column: 1;
  grid-row: 1
}

.hero-cyberpunk__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s ease;
  grid-column: 1;
  grid-row: 1
}

.hero-cyberpunk__logo img {
  height: 1.875rem;
  width: auto;
  display: block
}

.hero-cyberpunk__logo:hover {
  opacity: 1
}

.hero-cyberpunk__nav-links a,
.hero-cyberpunk__contact {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease
}

.hero-cyberpunk__nav-links a:hover,
.hero-cyberpunk__contact:hover {
  color: #fff
}

.hero-cyberpunk__contact {
  grid-column: 2;
  grid-row: 1;
  justify-self: end
}

/* ---- Name cutouts ---- */
.hero-cyberpunk__name {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  font-family: 'Bernina Sans Compressed', 'Agency FB', var(--hero-cutout-font);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: .85;
  text-transform: uppercase
}

.hero-cyberpunk__name h1,
.hero-cyberpunk__name span {
  display: block;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit
}

/* AUGUST — top-left of the frosted half. Sized to fill the left half;
   slight overflow into the right half is intentional (EMBER reference). */
.hero-cyberpunk__name--top {
  top: clamp(84px, 14vh, 160px);
  left: clamp(20px, 3vw, 48px);
  width: 60%;
  max-width: 60vw
}

.hero-cyberpunk__name--top h1 {
  font-size: clamp(5rem, 17vw, 16rem)
}

/* HORVATH — bottom-right of the unfrosted half. Smaller than AUGUST so
   it reads as the family name to AUGUST's first-name accent. */
.hero-cyberpunk__name--bottom {
  bottom: clamp(28px, 4.5vh, 56px);
  right: clamp(20px, 3vw, 48px);
  text-align: right
}

.hero-cyberpunk__name--bottom span {
  font-size: clamp(2.5rem, 8.5vw, 8rem)
}

/* Subtle vertical rule connecting the nav area to the footer-block ABOUT
   label (EMBER reference annotation #3). Sits on the same left margin as
   the AUGUST cutout and the ABOUT label, drawing the eye downward. */
.hero-cyberpunk__rule {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3vw, 48px);
  top: 35%;
  bottom: clamp(160px, 24vh, 220px);
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35));
  pointer-events: none
}

@media (max-width: 47.9375rem) {
  .hero-cyberpunk__rule {
    display: none
  }
}

/* ---- Footer block (bottom-left): ABOUT + body + CTA + socials ---- */
.hero-cyberpunk__footer {
  position: absolute;
  z-index: 2;
  bottom: clamp(28px, 4.5vh, 56px);
  left: clamp(20px, 3vw, 48px);
  max-width: 38%;
  color: #fff
}

.hero-cyberpunk__about-block {
  margin-bottom: clamp(20px, 3vh, 32px)
}

.hero-cyberpunk__about-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 10px
}

.hero-cyberpunk__about {
  margin: 0;
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .005em;
  color: #fff;
  transition: opacity .4s ease
}

.hero-cyberpunk__about.is-fading {
  opacity: 0
}

/* Full-image scrim: above the video, below the left blur — tints the bright
   right half so +contact reads, without muddying the frosted left (v4.4.x). */
.hero-cyberpunk__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  pointer-events: none;
  z-index: 0
}

/* Socials sit bottom-left in the hero footer; EXPLORE is pulled out (in the
   markup) and positioned at the bottom-right corner of the blur rectangle. */
.hero-cyberpunk__cta-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap
}

.hero-cyberpunk__cta {
  position: absolute;
  bottom: 40px;
  right: calc(50% + 40px);
  z-index: 4;
  display: inline-flex;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  transition: opacity .2s ease
}

@media (max-width: 47.9375rem) {
  .hero-cyberpunk__cta {
    right: var(--g)
  }
}

.hero-cyberpunk__cta-label {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap
}

.hero-cyberpunk__cta:hover {
  opacity: .85
}

.hero-cyberpunk__cta:hover .hero-cyberpunk__cta-label > span {
  transform: translateX(2px);
  transition: transform .2s ease
}

.hero-cyberpunk__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.hero-cyberpunk__socials li {
  display: flex;
  align-items: center;
  gap: 8px
}

.hero-cyberpunk__socials li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, .8);
  border-radius: 0
}

.hero-cyberpunk__socials a {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .2s ease
}

.hero-cyberpunk__socials a:hover {
  color: #fff
}

/* Mobile: rework the hero composition so the nav, names, and footer block
   don't collide. Layout becomes:
   - Top: single-row flex nav (logo | links | contact) — no grid stacking.
   - Upper-third: AUGUST cutout, full available width.
   - Just below AUGUST: HORVATH, right-aligned, smaller — stacked under
     AUGUST instead of bottom-right (which collided with the ABOUT body).
   - Bottom: ABOUT label + body + CTA + socials. */
@media (max-width: 47.9375rem) {
  /* On mobile, drop the backdrop-filter entirely — iOS Safari handles
     backdrop-filter animation unreliably AND a full-coverage frost hides
     too much of the cyberpunk art. Replace with a flat dark tint that
     dims the whole backdrop uniformly: all the white text + lowercase
     nav reads cleanly against the darkened painting, the art stays
     fully visible (just darker / more cinematic), and the AUGUST/HORVATH
     pink cutouts pop harder via mix-blend-mode against the dimmer base. */
  .hero-cyberpunk__blur {
    width: 100%;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(37, 36, 36, 0.73)
  }
  /* Drop the 2-col grid — use flex so logo, links, and contact don't
     overlap each other. */
  .hero-cyberpunk__nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px
  }
  .hero-cyberpunk__nav > .hero-cyberpunk__logo {
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 auto;
    justify-self: auto
  }
  .hero-cyberpunk__logo img {
    height: 1.5rem
  }
  .hero-cyberpunk__nav-links {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 12px;
    margin-left: 8px
  }
  .hero-cyberpunk__nav-links a,
  .hero-cyberpunk__contact {
    font-size: .75rem
  }
  .hero-cyberpunk__contact {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    flex: 0 0 auto
  }
  .hero-cyberpunk__name--top {
    top: clamp(76px, 11vh, 120px);
    left: 16px;
    width: calc(100% - 32px);
    max-width: none
  }
  .hero-cyberpunk__name--top h1 {
    font-size: clamp(3rem, 17vw, 6.5rem)
  }
  /* HORVATH: tucked directly under AUGUST, left-aligned to AUGUST's
     x-start so the pair reads as a stacked first/last name. */
  .hero-cyberpunk__name--bottom {
    top: calc(clamp(76px, 11vh, 120px) + clamp(2.6rem, 15vw, 5.8rem));
    bottom: auto;
    left: 16px;
    right: auto;
    text-align: left
  }
  .hero-cyberpunk__name--bottom span {
    font-size: clamp(1.5rem, 7vw, 3rem)
  }
  .hero-cyberpunk__footer {
    left: 16px;
    right: 16px;
    bottom: 24px;
    max-width: none
  }
  .hero-cyberpunk__about-block {
    margin-bottom: 18px
  }
  .hero-cyberpunk__about {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500
  }
  .hero-cyberpunk__cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px
  }
}


/* ---- Narrative spine ----
   Motion.ai "About" section pattern: centered narrow column, small-caps top
   label, a flowing heading with normal-sans prefix + italic-serif accent
   (Instrument Serif italic from Google Fonts loaded in index.html), body
   paragraph below. Three sections stacked vertically with generous spacing;
   even sections take a subtle tint background. */
.spine {
  display: flex;
  flex-direction: column
}

.spine-section {
  display: block;
  padding-block: clamp(48px, 8vh, 96px);
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease
}

/* Subtle alternating tint — per annotation #5, "JUST BARELY different
   from the actual background. This is that important kind of detail that
   people FEEL more than they see." */
.spine-section:nth-child(odd) {
  background: rgba(255, 255, 255, .015)
}

.spine-section:nth-child(even) {
  background: rgba(255, 255, 255, .035)
}

.spine-section:hover {
  background: rgba(255, 255, 255, .065)
}

.spine-section__inner {
  max-width: 56rem;        /* motion.ai's max-w-3xl analog */
  margin: 0 auto;
  padding-inline: var(--g);
  text-align: center
}

.spine-section__label {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--terra);
  margin-bottom: var(--space-md)
}

.spine-section__heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 400;        /* motion.ai uses font-normal; weight contrast is achieved via italic-serif */
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0 0 var(--space-lg)
}

.spine-section__heading-prefix {
  font-family: 'Inter', sans-serif;
  font-weight: 400
}

.spine-section__heading-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  /* Slight bump for the serif's apparent size — serifs tend to read smaller */
  font-size: 1.05em
}

.spine-section__heading-period {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400
}

.spine-section__body {
  font-size: 0.8rem;        /* smaller per Sean — "spine body can be 0.8rem" */
  line-height: 1.65;
  color: var(--text2);
  max-width: 34rem;         /* tighter readable measure */
  margin: 0 auto;
  text-align: left
}

.spine-section__body p + p {
  margin-top: 1em
}

@media (max-width: 47.9375rem) {
  .spine-section__body {
    text-align: left
  }
}

/* ---- Featured tiles (Prisma reference) ----
   Section heading row at top, then a 4-card grid below:
   Card 1 = random feature_tile video with subtle sepia filter.
   Cards 2-4 = phase title + 4 bullets + Learn more link.
   Subtle bg-tint per annotation #5 — JUST barely different from the
   page background, "more felt than seen". */
.feature-tiles {
  background: rgba(255, 255, 255, .02);
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 72px);
  /* L/R padding slightly larger than top/bottom per annotation #1-4 —
     intentional asymmetry so the section feels framed, not stale. */
}

.feature-tiles__header {
  max-width: 56rem;
  margin: 0 auto clamp(24px, 4vh, 48px);
  text-align: left
}

.feature-tiles__heading {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 4px
}

.feature-tiles__subheading {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, .45);
  margin: 0
}

.feature-tiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 80rem;
  margin: 0 auto
}

@media (min-width: 48rem) {
  .feature-tiles__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width: 64rem) {
  .feature-tiles__grid {
    grid-template-columns: repeat(4, 1fr);
    min-height: clamp(380px, 50vh, 480px)
  }
}

.feature-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: inherit;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease
}

/* --- Video card (first tile): aesthetic-only, sepia-tinted --- */
.feature-tile--video {
  min-height: 380px;
  background: #1a1a1a
}

.feature-tile--video .feature-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subtle warm wash — not full sepia, just a tint that pulls the video
     toward the brand palette so it reads as "aesthetic mood", not as a
     project teaser. */
  filter: sepia(.25) saturate(.7) brightness(.95) contrast(1.05);
}

/* --- Content card (cards 2-4): phase / title / bullets / Learn more --- */
.feature-tile--card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .04);
  min-height: 380px
}

.feature-tile--card:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .08)
}

.feature-tile__phase {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 12px
}

.feature-tile__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -.005em
}

.feature-tile__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.feature-tile__bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .68)
}

.feature-tile__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--terra);
  line-height: 1.5
}

.feature-tile__more {
  display: inline-block;
  margin-top: 20px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color .2s ease
}

.feature-tile__more:hover {
  color: var(--terra)
}

.feature-tile__more span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s ease
}

.feature-tile__more:hover span {
  transform: translateX(2px) rotate(-45deg)
}

/* Legacy flip utility kept for the featured-tile-controller — it toggles
   .feature-tile__flip on the active tile. Now applies only the subtle
   scale transform, not the autoplay sequence (which is no longer used
   since card 1 always autoplays a single random video). */
.feature-tile__flip {
  transform: scale(1.01)
}

/* ---- Process (v4.2.3 shape) ----
   Vertical stack of clickable steps. Each step shows a large all-caps brand
   word alongside body copy. */
/* §5 PROCESS — restored from pre-v4.2.3 layout per v4_1_0_IMPLEMENT
   "Final Keepers Of Current Homepage Components". Horizontal scroll of 3
   numbered cards (01/02/03 in terra/blue/mauve) with subtle indicator bars. */
.process {
  padding: 48px 0
}

.process-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--g) 8px;
  margin: 0 calc(var(--g) * -1)
}

.process-scroll::-webkit-scrollbar {
  display: none
}

.process-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block
}

.process-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px
}

.process-card:nth-child(1) .process-num {
  color: var(--terra)
}

.process-card:nth-child(2) .process-num {
  color: var(--blue)
}

.process-card:nth-child(3) .process-num {
  color: var(--mauve)
}

.process-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px
}

.process-card-body {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.6
}

.process-source {
  display: inline-block;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--blue);
  font-weight: 500
}

/* Process scroll indicator (3 bars beneath the scrolling cards) */
.process-indicator {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--g) 0;
  overflow: hidden
}

.process-indicator span {
  display: block;
  height: 2px;
  border-radius: 1px
}

.process-indicator span:nth-child(1) {
  width: 100%;
  background: var(--terra)
}

.process-indicator span:nth-child(2) {
  width: 85%;
  margin-left: 15%;
  background: var(--blue)
}

.process-indicator span:nth-child(3) {
  width: 75%;
  margin-left: 25%;
  background: var(--mauve)
}

/* Homepage Bleed Images Component — justified art wall (v4.4.x).
   Mixed-aspect art tiled at one shared height per row (each item's flex-grow is
   set to its aspect ratio in JS), bleeding 100vw, accent matting in the gaps,
   random 3–5 images per row. The row height self-balances by image count. */
.art-bleed {
  padding: 140px 0;
}
.art-bleed__heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 24px;
  opacity: .85;
}
.art-bleed__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--terra);
  padding: 6px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.art-bleed__row {
  display: flex;
  gap: 6px;
}
.art-bleed__item {
  flex-grow: 1;   /* overwritten per-image to its aspect ratio (JS) */
  flex-basis: 0;
  min-width: 0;
  line-height: 0;
}
.art-bleed__item img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  transition: transform .35s ease;
}
.art-bleed__item:hover img {
  transform: translateY(-2px);
}

/* Toast for the mailto clipboard fallback (v4.4.x). */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20, 20, 20, .94);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: .875rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
