:root {
  --bg: #f3f0ea;
  --paper: #fbfaf7;
  --ink: #101010;
  --muted: #64645f;
  --line: rgba(16, 16, 16, 0.14);
  --blue: #1769ff;
  --green: #2bd6a3;
  --radius: 8px;
  --header: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background: var(--ink);
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  pointer-events: none;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor.is-large {
  width: 5.4rem;
  height: 5.4rem;
  background: #fff;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.9s ease;
}

.loader.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
}

.loader-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.loader-dot {
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.55rem rgba(43, 214, 163, 0.16);
}

.loader p {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: 0;
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  pointer-events: none;
}

.navbar {
  width: min(1240px, calc(100% - 2rem));
  min-height: var(--header);
  margin: 0.85rem auto 0;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(16, 16, 16, 0.08);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.brand-text {
  max-width: 15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.72rem 0.82rem;
  border-radius: 999px;
  color: #2d2d2a;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: var(--radius);
  background: #eeece5;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.22rem auto;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header) + 4rem) max(1rem, 4vw) 3rem;
  display: grid;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 16, 16, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 84px 84px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.82);
  font-weight: 800;
}

.hero-name h1 {
  margin: 0;
  max-width: 1220px;
  font-size: clamp(4.3rem, 12vw, 12.2rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(260px, 0.24fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-top: 2rem;
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #34342f;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-light {
  background: rgba(251, 250, 247, 0.82);
}

.hero-note {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.72);
}

.hero-note span {
  font-weight: 900;
}

.hero-note p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  right: max(1rem, 4vw);
  bottom: 8.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-weight: 900;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 4.5rem;
  background: var(--ink);
  transform-origin: top;
  animation: scrollLine 1.8s ease-in-out infinite;
}

.section,
.work-section,
.contact-section {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-reveal {
  position: relative;
  min-height: 220vh;
  background: #111;
  color: #fff;
}

.portrait-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: calc(var(--header) + 3rem) max(1rem, 4vw) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  overflow: hidden;
}

.portrait-copy h2 {
  max-width: 860px;
  margin: 1rem 0;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.portrait-copy p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.portrait-stage {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pixel-frame {
  --pixel-opacity: 1;
  --portrait-blur: 14px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #222;
  aspect-ratio: 4 / 5;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
}

.pixel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--portrait-blur)) saturate(0.65) contrast(1.15);
  transform: scale(1.04);
  transition: filter 0.12s linear;
}

.pixel-grid {
  position: absolute;
  inset: 0;
  opacity: var(--pixel-opacity);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(23, 105, 255, 0.16), rgba(43, 214, 163, 0.1));
  background-size: 18px 18px, 18px 18px, 100% 100%;
  mix-blend-mode: screen;
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.portrait-caption strong {
  color: #fff;
}

.intro-video-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(4rem, 6vw, 6.5rem) 0;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.07), transparent 26rem),
    #111;
  overflow: hidden;
}

.intro-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.intro-video-grid {
  position: relative;
  z-index: 1;
  display: block;
  min-height: auto;
}

.intro-video-grid::after {
  content: "";
  display: block;
  clear: both;
}

.video-card {
  position: relative;
  z-index: 1;
  float: right;
  width: min(32vw, 430px);
  margin: 0 0 2rem clamp(2rem, 4vw, 4rem);
}

.video-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #1b1b1b;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02) brightness(0.82);
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
}

.video-placeholder p {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(4.2rem, 8vw, 6.8rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.05rem solid #fff;
  transform: translate(-38%, -50%);
}

.video-copy h2 {
  max-width: none;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.65rem, 4.9vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.video-copy p:not(.section-label) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.78;
}

.profile-quote {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 900;
}

.text-reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(1.4rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-copy.is-visible .text-reveal,
.text-reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.video-copy.is-visible .text-reveal:nth-of-type(1) {
  transition-delay: 0.05s;
}

.video-copy.is-visible .text-reveal:nth-of-type(2) {
  transition-delay: 0.16s;
}

.video-copy.is-visible .text-reveal:nth-of-type(3) {
  transition-delay: 0.27s;
}

.video-copy.is-visible .text-reveal:nth-of-type(4) {
  transition-delay: 0.38s;
}

.profile-points {
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.profile-points span {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.intro-text h2,
.split-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.intro-text p,
.about-copy p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.work-section {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.work-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

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

.work-row a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 8.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.28s ease, opacity 0.28s ease;
}

.work-row a:hover {
  padding-left: 1rem;
}

.work-index,
.work-type {
  color: var(--muted);
  font-weight: 900;
}

.work-row h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.work-row p {
  max-width: 720px;
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.work-preview {
  position: fixed;
  z-index: 95;
  width: 280px;
  height: 190px;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-4deg) scale(0.92);
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.2);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.work-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: 3rem;
}

.services-section {
  min-height: 165svh;
  padding: 0;
}

.services-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 6vw, 6.8rem) 0;
}

.services-heading {
  grid-template-columns: minmax(150px, 0.18fr) minmax(0, 0.82fr);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.services-heading h2 {
  max-width: 980px;
  font-size: clamp(3.2rem, 5.1vw, 4.9rem);
  line-height: 0.92;
}

.services-title-line {
  display: block;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.5em);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-section.line-1 .services-title-line:nth-child(1),
.services-section.line-2 .services-title-line:nth-child(2),
.services-section.line-3 .services-title-line:nth-child(3) {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.service-list {
  --veil-x: 50%;
  --veil-y: 50%;
  --veil-opacity: 0.76;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.service-list::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  pointer-events: none;
  opacity: var(--veil-opacity);
  background:
    radial-gradient(circle 185px at var(--veil-x) var(--veil-y),
      rgba(243, 240, 234, 0) 0%,
      rgba(243, 240, 234, 0.08) 42%,
      rgba(251, 250, 247, 0.88) 74%),
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    rgba(251, 250, 247, 0.68);
  background-size: auto, 22px 22px, 22px 22px, auto;
  backdrop-filter: blur(4px);
  transition: opacity 0.22s ease;
}

.service-list::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.76);
  opacity: 0.9;
}

.service-list.is-revealing {
  --veil-opacity: 0.94;
}

.service-item {
  position: relative;
  z-index: 1;
  min-height: 240px;
  display: grid;
  align-content: space-between;
  gap: 1.6rem;
  padding: clamp(1rem, 1.8vw, 1.45rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: color 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item:hover {
  background: rgba(16, 16, 16, 0.035);
  transform: translateY(-2px);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item span,
.step span {
  color: var(--muted);
  font-weight: 900;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.35vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.service-item p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-item p {
  max-width: 18rem;
}

.workflow-section {
  min-height: 240svh;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #101010;
  background-size: 64px 64px;
}

.workflow-section .section-label {
  color: rgba(255, 255, 255, 0.48);
}

.workflow-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.53fr) minmax(360px, 0.47fr);
  grid-template-areas:
    "copy board"
    "steps board";
  gap: clamp(1rem, 3vw, 2.8rem);
  align-content: center;
  padding: clamp(3.1rem, 4.5vw, 4.6rem) 0;
}

.workflow-copy {
  grid-area: copy;
  max-width: 760px;
}

.workflow-copy h2 {
  max-width: 720px;
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(3.2rem, 5.4vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.workflow-copy p:not(.section-label) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.95rem, 1.12vw, 1.08rem);
  line-height: 1.65;
}

.workflow-steps {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.workflow-step {
  position: relative;
  min-height: 158px;
  padding: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.42;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    background 0.45s ease;
}

.workflow-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.workflow-step.is-active {
  opacity: 1;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.055);
}

.workflow-step.is-active::after {
  transform: scaleX(1);
}

.workflow-step span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 900;
}

.workflow-step h3 {
  margin: 1.55rem 0 0.55rem;
  font-size: clamp(1rem, 1.35vw, 1.34rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.workflow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
}

.workflow-board {
  grid-area: board;
  position: relative;
  min-height: 0;
  display: grid;
  gap: 0.65rem;
  align-content: center;
  padding-top: 2.4rem;
}

.workflow-map {
  position: absolute;
  inset: 0.25rem 8% auto auto;
  z-index: 1;
  width: min(62%, 420px);
  height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow-map::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.08));
  transform: scaleX(var(--workflow-progress, 0.05));
  transform-origin: left;
  transition: transform 0.35s ease;
}

.map-node {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.map-node:nth-child(1) { left: 0%; }
.map-node:nth-child(2) { left: 33.33%; }
.map-node:nth-child(3) { left: 66.66%; }
.map-node:nth-child(4) { left: calc(100% - 14px); }

.map-node.is-active {
  background: #fff;
  transform: scale(1.28);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.board-panel {
  position: relative;
  z-index: 2;
  padding: clamp(0.85rem, 1.35vw, 1.08rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
}

.board-panel p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.46);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-cloud,
.system-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tool-cloud span,
.system-grid span {
  padding: 0.5rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 850;
  font-size: 0.92rem;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.tool-cloud span.is-active,
.system-grid span.is-active {
  color: #111;
  border-color: rgba(255, 255, 255, 0.95);
  background: #fff;
  transform: translateY(-2px);
}

.board-panel-output strong {
  display: block;
  max-width: 430px;
  color: #fff;
  font-size: clamp(1.6rem, 2.45vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.contact-section {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(16, 16, 16, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 74px 74px;
  border-top: 1px solid var(--line);
}

.contact-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-network::before,
.contact-network::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 12%;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 16, 16, 0.22), transparent);
  transform-origin: left;
  animation: contactRoute 5.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.contact-network::after {
  top: 38%;
  left: 32%;
  right: 22%;
  animation-delay: 1.7s;
}

.contact-network span {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0.7rem rgba(16, 16, 16, 0.055);
  opacity: 0.16;
  animation: contactPulse 3.8s ease-in-out infinite;
}

.contact-network span:nth-child(1) { left: 14%; top: 29%; }
.contact-network span:nth-child(2) { left: 52%; top: 51%; animation-delay: 0.8s; }
.contact-network span:nth-child(3) { right: 16%; top: 38%; animation-delay: 1.4s; }
.contact-network span:nth-child(4) { right: 28%; bottom: 18%; animation-delay: 2.1s; }

.contact-section .container {
  width: min(1500px, calc(100% - 2rem));
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(430px, 0.48fr);
  gap: clamp(2rem, 4.8vw, 5.5rem);
  align-items: center;
}

.contact-copy {
  transform: translateX(clamp(-3.5rem, -3vw, -1.5rem));
}

.contact-copy h2 {
  max-width: 720px;
  margin: 0.65rem 0 1rem;
  font-size: clamp(4.35rem, 7.4vw, 8.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-copy p:not(.section-label) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.contact-wallet {
  position: relative;
  min-height: 34rem;
  width: min(100%, 520px);
  margin-left: auto;
  overflow: visible;
  perspective: 1100px;
  transform: translateX(clamp(0.75rem, 2vw, 2.5rem));
}

.wallet-pocket {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(88%, 360px);
  height: 18rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.4rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 42%),
    linear-gradient(180deg, #1b1a22, #09090b);
  box-shadow:
    0 34px 80px rgba(16, 16, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 36px rgba(0, 0, 0, 0.28);
}

.wallet-pocket::before {
  content: "JDC";
  position: absolute;
  inset: 1rem 1rem auto;
  height: 3.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.13);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  background: rgba(255, 255, 255, 0.06);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 -1px 0 rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.wallet-pocket::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.6rem;
  width: 3.7rem;
  height: 0.72rem;
  transform: translateX(-50%);
  opacity: 0.34;
  background:
    radial-gradient(circle at 0.36rem 50%, rgba(255, 255, 255, 0.28) 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24) 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at calc(100% - 0.36rem) 50%, rgba(255, 255, 255, 0.2) 0 0.16rem, transparent 0.18rem),
    linear-gradient(90deg, transparent 0.36rem, rgba(255, 255, 255, 0.16) 0.36rem calc(100% - 0.36rem), transparent calc(100% - 0.36rem));
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.65));
}

.wallet-pocket span {
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.wallet-pocket span:first-child {
  left: 1.35rem;
  bottom: 1.35rem;
}

.wallet-pocket span:last-child {
  right: 1.35rem;
  bottom: 1.35rem;
}

.wallet-card {
  --card-color: #111;
  --card-ink: #fff;
  --slot: 0;
  --pull: -5rem;
  position: absolute;
  left: 50%;
  top: calc(1rem + (var(--slot) * 3.45rem));
  z-index: calc(10 + var(--slot));
  width: min(70vw, 320px);
  height: 16.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.8rem 1rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.05rem;
  color: var(--card-ink);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 45%),
    var(--card-color);
  box-shadow: 0 18px 38px rgba(16, 16, 16, 0.14);
  transform: translateX(-50%) translateY(0) rotate(0deg);
  transform-origin: 50% 100%;
  will-change: transform;
  transition:
    transform 35.2s cubic-bezier(0.42, 0, 0.24, 1),
    box-shadow 35.2s cubic-bezier(0.42, 0, 0.24, 1);
}

.wallet-card:hover,
.wallet-card:focus-visible {
  transform: translateX(-50%) translateY(var(--pull)) rotate(0deg);
  box-shadow: 0 20px 42px rgba(16, 16, 16, 0.16);
}

.wallet-whatsapp {
  --slot: 0;
  --pull: -7.2rem;
  --card-color: #128c7e;
}

.wallet-linkedin {
  --slot: 1;
  --pull: -7.05rem;
  --card-color: #0a66c2;
}

.wallet-email {
  --slot: 2;
  --pull: -6.9rem;
  --card-color: #f4f1ea;
  --card-ink: #111;
}

.wallet-github {
  --slot: 3;
  --pull: -6.75rem;
  --card-color: #171515;
}

.wallet-logo {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.wallet-logo svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.wallet-copy {
  align-self: start;
  grid-column: 1 / 4;
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  opacity: 1;
  transform: none;
  transition: none;
}

.wallet-card:hover .wallet-copy,
.wallet-card:focus-visible .wallet-copy {
  opacity: 1;
  transform: none;
}

.wallet-copy strong {
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.wallet-copy small {
  max-width: 16rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0.78;
}

.wallet-card i {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: var(--card-color);
  background: var(--card-ink);
  font-style: normal;
  opacity: 0;
  transform: translate(-0.35rem, 0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wallet-card:hover i,
.wallet-card:focus-visible i {
  opacity: 1;
  transform: translate(0, 0);
}

.site-footer {
  padding: 2.2rem 0;
  color: rgba(255, 255, 255, 0.7);
  background: #111;
}

.site-footer .container {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.floating-whatsapp {
  bottom: 1rem;
  background: #128c7e;
}

.back-to-top {
  bottom: 4.75rem;
  background: #111;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes contactRoute {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  18%,
  68% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes contactPulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.12;
  }
  50% {
    transform: scale(1);
    opacity: 0.26;
  }
}

@media (max-width: 980px) {
  .intro-video-grid {
    display: grid;
    gap: 1.5rem;
    min-height: auto;
  }

  .video-card {
    float: none;
    position: relative;
    width: min(100%, 520px);
    margin: 0;
    order: 2;
  }

  .video-copy {
    order: 1;
  }

  .video-copy h2,
  .video-copy p:not(.section-label),
  .profile-points {
    max-width: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header) + 1rem);
    display: grid;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero-lower,
  .portrait-sticky,
  .intro-video-grid,
  .intro-grid,
  .split-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    transform: none;
  }

  .contact-section {
    min-height: auto;
    padding: clamp(5rem, 9vw, 8rem) 0;
  }

  .contact-copy h2 {
    font-size: clamp(3.3rem, 13vw, 6rem);
  }

  .contact-network {
    opacity: 0.55;
  }

  .contact-wallet {
    margin: 0 auto;
    min-height: 33rem;
    transform: none;
  }

  .workflow-section {
    min-height: auto;
  }

  .workflow-stage {
    position: static;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "steps"
      "board";
  }

  .workflow-board {
    min-height: auto;
  }

  .workflow-map {
    display: none;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-section {
    min-height: auto;
  }

  .services-stage {
    position: static;
    min-height: auto;
  }

  .services-title-line {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }

  .services-heading h2 {
    font-size: clamp(3rem, 8vw, 4.4rem);
  }

  .work-row a {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .work-type {
    grid-column: 2;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 680px) {
  .container,
  .navbar {
    width: min(100% - 1rem, 1240px);
  }

  .brand-text {
    max-width: 11rem;
  }

  .hero {
    padding: calc(var(--header) + 2rem) 0.5rem 2.5rem;
    background-size: 58px 58px;
  }

  .hero-name h1 {
    font-size: clamp(3.8rem, 18vw, 5.7rem);
    line-height: 0.9;
  }

  .hero-meta span,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    display: none;
  }

  .portrait-reveal {
    min-height: 190vh;
  }

  .portrait-sticky {
    padding: calc(var(--header) + 1.8rem) 0.5rem 2rem;
  }

  .portrait-copy h2,
  .intro-text h2,
  .split-heading h2,
  .about-copy h2,
  .workflow-copy h2 {
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  .portrait-caption {
    display: grid;
  }

  .video-placeholder {
    min-height: auto;
  }

  .video-copy h2 {
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  .work-heading {
    display: grid;
  }

  .work-row a {
    min-height: 10rem;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .work-type {
    grid-column: auto;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 190px;
  }

  .contact-wallet {
    min-height: 29rem;
  }

  .wallet-pocket {
    width: min(92%, 320px);
    height: 15.8rem;
  }

  .wallet-card {
    left: 50%;
    top: calc(0.8rem + (var(--slot) * 3rem));
    width: min(80vw, 280px);
    height: 14.2rem;
    padding: 0.9rem;
  }

  .wallet-card:hover,
  .wallet-card:focus-visible {
    transform: translateX(-50%) translateY(var(--pull)) rotate(0deg);
  }

  .wallet-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 160px;
  }

  .workflow-step h3 {
    margin-top: 1.8rem;
  }

  .services-heading {
    margin-bottom: 1.6rem;
  }

  .services-heading h2 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .contact-copy h2 {
    font-size: clamp(3.1rem, 17vw, 5.5rem);
  }

  .cursor,
  .work-preview {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .service-list::before,
  .service-list::after {
    display: none;
  }
}

/* Refined hero and node menu */
.navbar {
  width: min(100% - 2rem, 1480px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.brand {
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(16, 16, 16, 0.08);
  display: none;
}

.language-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(16, 16, 16, 0.08);
}

.language-switch button {
  min-width: 2.65rem;
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #fff;
  background: var(--ink);
}

.menu-toggle,
.node-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 18px 55px rgba(16, 16, 16, 0.14);
  overflow: hidden;
}

.node-toggle::before,
.node-toggle::after {
  content: "";
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.node-toggle::before {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    -0.72rem -0.42rem 0 -0.08rem #fff,
    0.75rem 0.42rem 0 -0.08rem #fff;
}

.node-toggle::after {
  width: 1.8rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(28deg);
}

.node-toggle span {
  display: none;
}

.node-toggle[aria-expanded="true"]::before {
  transform: scale(0.76);
}

.node-toggle[aria-expanded="true"]::after {
  transform: rotate(135deg) scaleX(0.85);
}

.nav-links {
  position: fixed;
  right: max(1rem, 4vw);
  top: calc(var(--header) + 1.1rem);
  display: grid;
  gap: 0.45rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(16, 16, 16, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.94);
  transform-origin: top right;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.nav-links::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.45rem;
  bottom: 1.45rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-links.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 0.8rem 0.65rem 2.2rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-weight: 850;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0.22rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid #111;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding-bottom: 2.8rem;
  align-content: center;
  padding-top: 5.25rem;
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(52vw, 920px);
  height: 100%;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(243, 240, 234, 0.74) 14%, rgba(243, 240, 234, 0) 34%),
    linear-gradient(180deg, rgba(243, 240, 234, 0.16), rgba(243, 240, 234, 0.08));
  pointer-events: none;
}

.hero-meta,
.hero-name,
.hero-lower {
  position: relative;
  z-index: 2;
}

.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(52vw, 920px);
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  opacity: 0.76;
  filter: saturate(0.84) contrast(1.02);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.hero .scroll-cue {
  position: absolute;
  right: max(1rem, 4vw);
  bottom: 8.5rem;
  z-index: 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.location-pill {
  gap: 0.48rem;
}

.location-pill i {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #75aadb 0 33%, #fff 33% 66%, #75aadb 66% 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 16, 16, 0.12);
}

.hero-lower {
  display: block;
  margin-top: 1.1rem;
}

.hero-actions {
  margin-top: 0;
}

.hero-name h1 {
  font-size: clamp(4rem, 10vw, 10.6rem);
  line-height: 0.88;
}

.hero-meta {
  margin-bottom: 2.35rem;
  transform: translateY(-1.2rem);
}

.hero-next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 900;
}

.hero-next::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 980px) {
  .navbar {
    width: min(100% - 0.65rem, 1480px);
    margin-top: 0.35rem;
  }

  .nav-links {
    left: auto;
    right: 0.35rem;
    top: calc(var(--header) + 1rem);
  }

  .hero-photo {
    width: min(56vw, 620px);
    opacity: 0.42;
  }
}

@media (max-width: 680px) {
  .navbar {
    width: min(100% - 0.65rem, 1480px);
  }

  .brand {
    max-width: calc(100vw - 5rem);
  }

  .menu-toggle,
  .node-toggle {
    width: 3rem;
    height: 3rem;
  }

  .hero-photo {
    right: 0;
    width: 88vw;
    height: 100%;
    bottom: 0;
    opacity: 0.12;
    mask-image: linear-gradient(90deg, transparent 0%, #000 50%, #000 100%);
  }

  .hero-meta span {
    width: auto;
  }

  .hero-meta span:first-child,
  .hero-meta span:nth-child(2) {
    width: 100%;
  }
}

/* Final hero composition tweaks */
.hero .scroll-cue,
.hero-next,
.hero-lower {
  display: none;
}

.hero-meta {
  margin-bottom: 2.8rem;
  transform: translateY(-4.6rem);
}

.hero-photo {
  right: 0;
  width: min(58vw, 1080px);
}

.hero-photo img {
  object-position: 64% center;
}

.nav-links {
  left: 0.65rem;
  right: auto;
  transform-origin: top left;
}

.navbar {
  width: calc(100% - 0.8rem);
  margin-top: 0.4rem;
}

@media (max-width: 980px) {
  .nav-links {
    left: 0.4rem;
    right: auto;
  }

  .hero-meta {
    transform: translateY(-3.5rem);
  }

  .hero-photo {
    right: 0;
    width: 68vw;
  }

  .hero-photo img {
    object-position: 62% center;
  }
}

@media (max-width: 680px) {
  .hero-meta {
    transform: translateY(-2.2rem);
  }

  .hero-photo {
    right: -10vw;
    width: 106vw;
  }

  .hero-photo img {
    object-position: 60% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
