:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off: #f4f4f4;
  --line: #2a2a2a;
  --line-light: #dcdcdc;
  --gray: #828282;
  --ff-display: "Space Grotesk", sans-serif;
  --ff-body: "Inter", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--black);
  color: var(--white);
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* GENERAL */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gray);
  display: inline-block;
}
.button {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--white) !important;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: 0;
}
.button-solid {
  background: var(--white);
  color: var(--black);
}
.button-solid:hover {
  background: transparent;
  color: var(--white);
}
.button-outline {color: var(--white);}
.button-outline-black {
  border-color: var(--black) !important;
  color: var(--black);
}
.button-outline:hover {
  background: var(--white);
  color: var(--black);
}
.button-outline-black:hover {
  background-color: var(--black) !important;
  color: var(--white);
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
header,
header a,
header .burger span {
  color: var(--white);
}
.logo {
  font-family: var(--ff-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.logo .dot {
  color: var(--white);
  opacity: 0.5;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}
nav ul li a {position: relative;}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
nav ul li a:hover::after {width: 100%;}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: block;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
#sphere {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(62vw, 780px);
  height: min(62vw, 780px);
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gray);
}
.hero p.lead {
  margin-top: 26px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: #b9b9b9;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  align-items: center;
}


.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: #8a8a8a;
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% {
    top: -100%;
  }
  50% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

section {padding: 150px 0;}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 70px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.section-head .head-note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 420px;
  justify-self: end;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.about-copy p {
  font-size: 19px;
  line-height: 1.75;
  color: #1c1c1c;
  max-width: 560px;
}
.about-copy p + p {
  color: var(--gray);
  font-size: 16px;
}
.stat-list {
  border-top: 1px solid var(--line-light);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.stat-row .num {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 600;
}
.stat-row .label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: right;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--black);
  color: var(--white);
}
.services .eyebrow {
  color: #9a9a9a;
}
.services .eyebrow::before {
  background: #9a9a9a;
}
.services .section-head .head-note {
  color: #9a9a9a;
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.1fr;
  gap: 40px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding-left 0.35s ease;
  cursor: default;
}
.service-row:hover {
  padding-left: 16px;
}
.service-row .idx {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: #7a7a7a;
}
.service-row h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
}
.service-row p {
  font-size: 15px;
  line-height: 1.6;
  color: #a3a3a3;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  background: var(--white);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.work-card {
  background: var(--white);
  padding: 50px 44px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
.work-card:hover {
  background: var(--black);
  color: var(--white);
}
.work-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.work-year {display:none;}
.work-card:hover .work-top {
  color: #9a9a9a;
}
.work-card h3 {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 600;
  margin-top: 60px;
}
.work-card .tags {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray);
}
.work-card:hover .tags {
  color: #b9b9b9;
}
.work-arrow {
  position: absolute;
  right: 40px;
  bottom: 40px;
  font-size: 22px;
  transform: rotate(45deg);
  transition: transform 0.35s ease;
}
.work-card:hover .work-arrow {
  transform: rotate(90deg);
}

.portfolio-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

#load-more-portfolio {background: none;}

/* ---------- SINGLE PORTFOLIO ---------- */
.single-portfolio {
  background: var(--white);
}
.project-hero {
  padding: 120px 0 70px;
  background: var(--black);
  color: var(--white);
}
.project-hero .eyebrow {
  color: #929292;
}
.project-hero .eyebrow::before {
  background: #929292;
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  margin-bottom: 50px;
}
.project-back:hover {
  color: var(--white);
}
.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 90px;
  align-items: end;
}
.project-heading h1 {
  max-width: 860px;
  margin-top: 22px;
  font-family: var(--ff-display);
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.project-intro p {
  max-width: 470px;
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.75;
}
.project-intro .button {
  margin-top: 30px;
}
.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 88px 0 0;
  border-top: 1px solid var(--line);
}
.project-meta-strip > div {
  min-width: 0;
  padding: 24px 32px 0 0;
}
.project-meta-strip dt {
  margin-bottom: 9px;
  color: #717171;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-meta-strip dd {
  margin: 0;
  color: #d2d2d2;
  font-size: 13px;
  line-height: 1.6;
}
.project-showcase {
  padding: 0 0 132px;
  background: linear-gradient(to bottom, var(--black) 0 90px, var(--off) 90px 100%);
}

.project-featured::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20px 19px, #757575 0 3px, transparent 3.5px),
    radial-gradient(circle at 34px 19px, #555 0 3px, transparent 3.5px),
    radial-gradient(circle at 48px 19px, #3f3f3f 0 3px, transparent 3.5px),
    rgba(10, 10, 10, 0.92);
  pointer-events: none;
}

.project-featured {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #303030;
  background: #151515;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

.project-featured-image {
  position: absolute;
  top: 38px;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  transform: translateY(0);
  transition: transform 3.5s ease-in-out;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .project-featured.is-scrollable:hover .project-featured-image {
    transform: translateY(calc(-1 * var(--scroll-distance)));
    transition-duration: var(--scroll-duration);
    transition-timing-function: linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-featured-image {
    transition: none;
  }
}

.project-featured-placeholder {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 80px 30px 40px;
  background:
    radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.11) 0 2px, transparent 3px) 0 0 / 34px 34px,
    #111;
}
.project-featured-placeholder span {
  color: #5e5e5e;
  font-family: var(--ff-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: center;
}
.project-details {
  padding: 130px 0 150px;
}
.project-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}
.project-content h2 {
  max-width: 700px;
  margin-top: 22px;
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.project-copy {
  max-width: 720px;
  margin-top: 54px;
  color: #353535;
  font-size: 17px;
  line-height: 1.8;
}
.project-copy > * + * {
  margin-top: 24px;
}
.project-copy h2,
.project-copy h3,
.project-copy h4 {
  margin-top: 48px;
  color: var(--black);
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.2;
}
.project-copy h2 {
  font-size: 34px;
}
.project-copy h3 {
  font-size: 26px;
}
.project-copy ul,
.project-copy ol {
  padding-left: 22px;
}
.project-copy a {
  border-bottom: 1px solid currentColor;
}
.project-copy img {
  width: 100%;
  height: auto;
}
.project-copy blockquote {
  padding-left: 24px;
  border-left: 2px solid var(--black);
  color: var(--black);
  font-family: var(--ff-display);
  font-size: 24px;
  line-height: 1.45;
}
.project-facts {
  position: sticky;
  top: 120px;
  border-top: 1px solid var(--black);
}
.project-facts-title {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-fact {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}
.project-fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-fact strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.project-live-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid var(--black);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.project-live-link:hover {
  background: var(--black);
  color: var(--white);
}
.project-navigation {
  background: var(--off);
  border-top: 1px solid var(--line-light);
}
.project-navigation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-nav-link {
  min-width: 0;
  min-height: 190px;
  padding: 46px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: padding 0.3s ease;
}
.project-nav-prev {
  padding-right: 45px;
  border-right: 1px solid var(--line-light);
}
.project-nav-next {
  padding-left: 45px;
  text-align: right;
}
.project-nav-link:not(.project-nav-empty):hover {
  padding-left: 16px;
  padding-right: 16px;
}
.project-nav-label {
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-nav-link strong {
  display: block;
  overflow: hidden;
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- PROCESS (optional extra section) ---------- */
.process {
  background: var(--off);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-grid::before {
  /* the connecting rail running through every node */
  content: "";
  position: absolute;
  top: 44px;
  left: 44px;
  right: 44px;
  height: 1px;
  background: var(--line-light);
  z-index: 0;
}
.process-card {
  position: relative;
  z-index: 1;
  background: var(--off);
  padding: 0 30px 40px;
  border-right: 1px solid var(--line-light);
}
.process-card:last-child {
  border-right: none;
}
.process-card .node {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  margin-bottom: 34px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.process-card:hover .node {
  background: var(--black);
  color: var(--off);
  transform: scale(1.12);
}
.process-card .stage {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.process-card h4 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
  transition: transform 0.3s ease;
}
.process-card:hover h4 {
  transform: translateX(4px);
}
.process-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray);
  min-height: 80px;
}
.process-card .meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #9a9a9a;
}
.process-card .meta .deliverable {
  color: var(--black);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--black);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}
.contact h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 560px;
}
.contact-email {
  display: inline-block;
  margin-top: 38px;
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--white);
  padding-bottom: 6px;
}
.contact-meta {
  margin-top: 60px;
  display: flex;
  gap: 60px;
}
.contact-meta div {
  font-family: var(--ff-mono);
  font-size: 13px;
}
.contact-meta .k {
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a8a;
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  resize: none;
}
.field textarea {
  height: 70px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5a5a5a;
}
.submit-btn {
  margin-top: 10px;
  align-self: flex-start;
  background: var(--white);
  color: var(--black);
  font-family: var(--ff-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 34px;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.submit-btn:hover {
  background: transparent;
  color: var(--white);
}
.form-note {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: #7a7a7a;
  margin-top: 4px;
  min-height: 16px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black);
  color: #8a8a8a;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-row a {
  border-bottom: 1px solid transparent;
}
.footer-row a:hover {
  border-color: #8a8a8a;
}

@media (max-width: 860px) {
  .hero {align-items: start;}
  #sphere {
    opacity: 0.25;
    width: 100vw;
    height: 100vw;
    right: 0;
    transform: none;
    top: 120%;
  }
  nav ul {
    display: none;
  }
  .burger {
    display: flex;
  }
  .about-grid,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 50px;
  }
  .section-head .head-note {
    justify-self: start;
  }
  .service-row {
    grid-template-columns: 50px 1fr;
    row-gap: 10px;
  }
  .service-row p {
    grid-column: 2/3;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-hero-grid,
  .project-details-grid {
    grid-template-columns: 1fr;
  }
  .project-hero-grid {
    gap: 44px;
  }
  .project-details-grid {
    gap: 70px;
  }
  .project-facts {
    position: static;
  }
  section {
    padding: 75px 0;
  }
  .work-card {
    min-height: 220px;
    padding: 30px;
  }
  
}
@media (max-width: 575.98px) {
  header {
    padding: 22px 20px;
  }
  .project-hero {
    padding: 118px 0 58px;
  }
  .project-back {
    margin-bottom: 58px;
  }
  .project-heading h1 {
    font-size: clamp(44px, 15vw, 68px);
  }
  .project-meta-strip {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }
  .project-meta-strip > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .project-showcase {
    padding-bottom: 88px;
    background: linear-gradient(to bottom, var(--black) 0 46px, var(--off) 46px 100%);
  }
  .project-featured-placeholder {
    min-height: 390px;
  }
  .project-details {
    padding: 86px 0 100px;
  }
  .project-copy {
    margin-top: 38px;
    font-size: 16px;
  }
  .project-navigation-grid {
    grid-template-columns: 1fr;
  }
  .project-nav-link {
    min-height: 150px;
    padding: 32px 0;
  }
  .project-nav-prev {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
  .project-nav-next {
    padding-left: 0;
  }
  .project-nav-link:not(.project-nav-empty):hover {
    padding-left: 0;
    padding-right: 0;
  }
  .project-nav-empty {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-cue .line::after {
    animation: none;
  }
}


/* ===================================
   PORTFOLIO ARCHIVE
=================================== */

.portfolio-archive-page {
  background: var(--white);
}


/* HERO */
.portfolio-archive-hero {
  position: relative;
  min-height: 760px;
  padding: 165px 0 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.portfolio-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  -webkit-mask-image:
    linear-gradient(to left, #000, transparent 70%);
  mask-image:
    linear-gradient(to left, #000, transparent 70%);
  pointer-events: none;
}

.portfolio-archive-hero .container {
  position: relative;
  z-index: 1;
}

.portfolio-archive-hero .eyebrow {
  color: #8e8e8e;
}

.portfolio-archive-hero .eyebrow::before {
  background: #8e8e8e;
}

.portfolio-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.portfolio-total {
  color: #777;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(300px, 0.55fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: end;
  margin-top: 100px;
}

.portfolio-hero-heading h1 {
  max-width: 900px;
  font-family: var(--ff-display);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.portfolio-hero-heading h1 em {
  color: #757575;
  font-style: normal;
}

.portfolio-hero-copy p {
  max-width: 440px;
  color: #aaa;
  font-size: 16px;
  line-height: 1.75;
}

.portfolio-scroll-link {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 38px;
  padding: 17px 0;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  color: #d0d0d0;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    padding 0.25s ease;
}

.portfolio-scroll-link:hover {
  padding-right: 10px;
  color: var(--white);
}


/* HERO META */
.portfolio-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 95px;
  border-top: 1px solid var(--line);
}

.portfolio-hero-meta > div {
  padding: 23px 30px 25px 0;
}

.portfolio-hero-meta span {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portfolio-hero-meta strong {
  color: #c4c4c4;
  font-size: 13px;
  font-weight: 500;
}


/* PROJECT INDEX */
.portfolio-project-index {
  padding: 140px 0 150px;
  background: var(--off);
}

.portfolio-index-heading {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 70px;
}

.portfolio-index-heading h2 {
  margin-top: 22px;
  font-family: var(--ff-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.portfolio-index-heading h2 sup {
  position: relative;
  top: -1.8em;
  margin-left: 10px;
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.portfolio-index-heading > p {
  max-width: 440px;
  justify-self: end;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}


/* PORTFOLIO GRID */
.portfolio-work-grid {
  counter-reset: portfolio-project;
}

.portfolio-work-grid .work-card {
  counter-increment: portfolio-project;
  min-height: 320px;
  padding: 46px 42px;
}

.portfolio-work-grid .work-card::before {
  content: counter(portfolio-project, decimal-leading-zero);
  position: absolute;
  top: 46px;
  right: 42px;
  color: #aaa;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: color 0.35s ease;
}

.portfolio-work-grid .work-card:hover::before {
  color: #666;
}

.portfolio-work-grid .work-card .work-top {
  padding-right: 45px;
}

.portfolio-work-grid .work-year {
  display: inline-block;
}

.portfolio-work-grid .work-card h3 {
  max-width: 80%;
}


/* LOAD MORE */
.portfolio-more {
  margin-top: 45px;
}

.portfolio-load-more {
  min-width: 220px;
  background: transparent;
  cursor: pointer;
}

.portfolio-load-more::after {
  content: " ↓";
}


/* EMPTY STATE */
.portfolio-empty {
  grid-column: 1 / -1;
  padding: 100px 40px;
  background: var(--white);
  text-align: center;
}

.portfolio-empty span {
  color: var(--gray);
  font-family: var(--ff-mono);
  font-size: 11px;
}

.portfolio-empty h3 {
  margin-top: 20px;
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 600;
}

.portfolio-empty p {
  margin-top: 12px;
  color: var(--gray);
}


/* TABLET */
@media (max-width: 860px) {
  .portfolio-archive-hero {
    min-height: auto;
    padding-top: 140px;
  }

  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 75px;
  }

  .portfolio-hero-copy {
    max-width: 520px;
  }

  .portfolio-hero-meta {
    margin-top: 80px;
  }

  .portfolio-project-index {
    padding: 100px 0;
  }

  .portfolio-index-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-index-heading > p {
    justify-self: start;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .portfolio-work-grid .work-card {
    min-height: 280px;
    padding: 34px 28px;
  }

  .portfolio-work-grid .work-card::before {
    top: 34px;
    right: 28px;
  }

  .portfolio-work-grid .work-card h3 {
    max-width: 100%;
    padding-right: 20px;
    font-size: 30px;
  }
}
 
/* ===================================
   HOMEPAGE REDESIGN
   Scoped to the front page so shared theme templates remain unchanged.
=================================== */

/* ---------- HEADER ---------- */
body.home header {
  padding: 25px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.home header nav ul {
  gap: clamp(22px, 3vw, 42px);
}

/* ---------- HERO ---------- */
body.home .hero {
  min-height: 100svh;
  padding: 120px 0 74px;
  isolation: isolate;
}

body.home .hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 45%;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
  pointer-events: none;
}

body.home .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

body.home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 40px;
  align-items: center;
}

body.home .hero-content {
  position: relative;
  z-index: 3;
  padding: 52px 0;
}

body.home .hero h1 {
  max-width: 920px;
  margin-top: 24px;
  font-size: clamp(58px, 7.3vw, 106px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

body.home .hero h1 em {
  color: #747474;
}

body.home .hero p.lead {
  max-width: 520px;
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.72;
}

body.home .hero-cta {
  margin-top: 38px;
}

body.home #sphere {
  top: 50%;
  right: -3%;
  width: min(59vw, 820px);
  height: min(59vw, 820px);
  opacity: 0.83;
}

body.home .scroll-cue {
  left: max(28px, calc((100vw - 1320px) / 2));
  bottom: 26px;
}

/* ---------- SHARED HOME HEADINGS ---------- */
body.home .about,
body.home .services,
body.home .portfolio,
body.home .process,
body.home .contact {
  position: relative;
}

body.home .section-head {
  margin-bottom: 62px;
}

body.home .section-head h2 {
  margin-top: 20px !important;
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.035em;
}

/* ---------- ABOUT ---------- */
body.home .about {
  padding: 132px 0 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}

body.home .about .container {
  position: relative;
}

body.home .about > .container > .eyebrow,
body.home .about-grid {
  position: relative;
  z-index: 1;
}

body.home .about-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.68fr);
  gap: clamp(75px, 11vw, 170px);
  margin-top: 48px !important;
}

body.home .about-copy p {
  max-width: 650px;
}

body.home .about-copy p:first-child {
  font-family: var(--ff-display);
  font-size: clamp(27px, 3.2vw, 43px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

body.home .about-copy p + p {
  max-width: 570px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.8;
}

body.home .about-copy .button {
  margin-top: 34px;
}

body.home .stat-list {
  align-self: center;
  border-top-color: var(--black);
}

body.home .stat-row {
  min-height: 96px;
  padding: 24px 0;
  transition: padding 0.3s ease, background 0.3s ease;
}

body.home .stat-row:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--off);
}

body.home .stat-row .num {
  font-size: clamp(34px, 3.5vw, 50px);
  letter-spacing: -0.04em;
}

/* ---------- SERVICES ---------- */
body.home .services {
  padding: 135px 0;
  border-bottom: 1px solid var(--line);
}

body.home .services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent);
  mask-image: linear-gradient(to right, #000, transparent);
  pointer-events: none;
}

body.home .services .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(65px, 9vw, 135px);
  align-items: start;
}

body.home .services .section-head {
  position: sticky;
  top: 125px;
  display: block;
  margin: 0;
}

body.home .services .section-head .head-note {
  max-width: 350px;
  margin-top: 30px;
  justify-self: auto;
}

body.home .services .service-list {
  border-top-color: #3a3a3a;
}

body.home .services .service-row {
  grid-template-columns: 52px minmax(170px, 0.68fr) minmax(260px, 1fr);
  gap: 26px;
  min-height: 112px;
  padding: 27px 0;
  transition: padding 0.3s ease, background 0.3s ease;
}

body.home .services .service-row:hover {
  padding-right: 16px;
  padding-left: 16px;
  background: #111;
}

body.home .services .service-row h3 {
  font-size: clamp(21px, 2vw, 27px);
}

body.home .services .service-row p {
  font-size: 14px;
}

/* ---------- PORTFOLIO ---------- */
body.home .portfolio {
  padding: 135px 0 145px;
  overflow: hidden;
}

body.home .portfolio .container {
  position: relative;
  z-index: 1;
}

body.home .portfolio .work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
}

body.home .portfolio .work-card {
  min-height: 310px;
  padding: 38px 32px;
}

body.home .portfolio .work-card h3 {
  max-width: 86%;
  margin-top: 76px;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.1;
}

body.home .portfolio .work-arrow {
  right: 30px;
  bottom: 30px;
}

body.home .portfolio-more {
  margin-top: 42px;
}

/* ---------- PROCESS ---------- */
body.home .process {
  padding: 125px 0 135px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

body.home .process-grid {
  gap: 1px;
  padding: 1px;
  background: var(--line-light);
}

body.home .process-grid::before {
  display: none;
}

body.home .process-card {
  min-height: 335px;
  padding: 32px 28px;
  border-right: none;
  background: var(--off);
  transition: background 0.3s ease, transform 0.3s ease;
}

body.home .process-card:hover {
  z-index: 2;
  background: var(--white);
  transform: translateY(-7px);
}

body.home .process-card .node {
  width: 43px;
  height: 43px;
  margin-bottom: 42px;
  background: var(--off);
}

body.home .process-card:hover .node {
  background: var(--black);
}

body.home .process-card h4 {
  margin-top: 10px;
  font-size: 24px;
}

body.home .process-card p {
  min-height: 0;
  margin-top: 18px;
}

body.home .process-card .meta {
  margin-top: 34px;
}

/* ---------- CONTACT ---------- */
body.home .contact {
  padding: 130px 0 120px;
  overflow: hidden;
}

body.home .contact::before {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border: 1px solid #242424;
  border-radius: 50%;
  box-shadow:
    0 0 0 95px rgba(255, 255, 255, 0.014),
    0 0 0 190px rgba(255, 255, 255, 0.009);
  pointer-events: none;
}

body.home .contact .container {
  position: relative;
  z-index: 1;
}

body.home .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(80px, 11vw, 170px);
}

body.home .contact h2 {
  font-size: clamp(45px, 5.3vw, 72px);
  letter-spacing: -0.035em;
}

body.home .contact-email {
  margin-top: 42px;
}

body.home .contact form {
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

body.home .contact .field {
  padding-bottom: 16px;
}

/* ---------- LARGE TABLET ---------- */
@media (max-width: 1100px) {
  body.home .portfolio .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .services .container {
    gap: 60px;
  }

  body.home .services .service-row {
    grid-template-columns: 46px minmax(150px, 0.7fr) minmax(230px, 1fr);
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 860px) {
  body.home .hero {
    min-height: 820px;
    padding-top: 130px;
    align-items: flex-start;
  }

  body.home .hero-inner {
    display: block;
  }

  body.home .hero-content {
    padding-top: 65px;
  }

  body.home #sphere {
    top: 5%;
    right: -25%;
    width: 92vw;
    height: 92vw;
    opacity: 0.27;
    transform: none;
  }

  body.home .about-grid,
  body.home .contact-grid {
    grid-template-columns: 1fr;
  }

  body.home .about-grid,
  body.home .contact-grid {
    gap: 70px;
  }

  body.home .services .container {
    grid-template-columns: 1fr;
  }

  body.home .services .section-head {
    position: static;
  }

  body.home .services .section-head .head-note {
    max-width: 520px;
  }

  body.home .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .process-card {
    min-height: 310px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 575.98px) {
  body.home header {
    padding: 20px;
  }

  body.home .hero {
    min-height: 760px;
    padding: 105px 0 70px;
  }

  body.home .hero-content {
    padding-top: 58px;
  }

  body.home .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  body.home .hero-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  body.home .scroll-cue {
    left: 20px;
  }

  body.home .about,
  body.home .services,
  body.home .portfolio,
  body.home .process,
  body.home .contact {
    padding-top: 90px;
    padding-bottom: 96px;
  }

  body.home .about-grid {
    margin-top: 38px !important;
  }

  body.home .about-copy p:first-child {
    font-size: 27px;
  }

  body.home .services::before {
    width: 100%;
  }

  body.home .services .service-row {
    grid-template-columns: 34px 1fr;
    gap: 10px 18px;
    min-height: 0;
    padding: 25px 0;
  }

  body.home .services .service-row p {
    grid-column: 2;
  }

  body.home .services .service-row:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  body.home .portfolio .work-grid,
  body.home .process-grid {
    grid-template-columns: 1fr;
  }

  body.home .portfolio .work-card {
    min-height: 270px;
    padding: 34px 28px;
  }

  body.home .portfolio .work-card h3 {
    margin-top: 62px;
    font-size: 28px;
  }

  body.home .process-card {
    min-height: 0;
  }

  body.home .process-card:hover {
    transform: none;
  }

  body.home .contact form {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .process-card,
  body.home .service-row,
  body.home .stat-row {
    transition: none;
  }
}