:root {
  --black: #030303;
  --soft-black: #0a0a0a;
  --white: #f4f4f0;
  --muted: #9a9a95;
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.1);
  --header-height: 84px;
  --max-width: 1440px;
  --page-gutter: clamp(24px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell,
.site-header,
.hero {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 50;
  background: var(--black);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 52px);
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding-block: 10px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 180ms ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--white);
  transition: right 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
}

/* Shared typography */
.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Home carousel */
.carousel {
  position: relative;
  height: calc(100svh - var(--header-height) - 24px);
  min-height: 560px;
  max-height: 920px;
  overflow: hidden;
  background: #151515;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 800ms ease, transform 1400ms ease, visibility 800ms;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) saturate(0.72) contrast(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent 55%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 32px;
}

.hero h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  margin: 20px 0 0;
  font-size: clamp(0.72rem, 1.15vw, 0.98rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.carousel-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, background 180ms ease;
}

.carousel:hover .carousel-control,
.carousel-control:focus-visible {
  opacity: 1;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.76);
}

.previous {
  left: 24px;
}

.next {
  right: 24px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  display: flex;
  gap: 11px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: #fff;
}

/* Home process */
.process-section {
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 110px 0;
}

.process-shell {
  text-align: center;
}

.process-shell h2,
.contact-intro h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.process-shell h2 {
  font-size: clamp(3rem, 6vw, 6.6rem);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 60px);
  margin-top: clamp(54px, 7vw, 95px);
}

.process-step {
  min-height: 190px;
  padding: 26px 22px;
  color: var(--black);
  background: var(--white);
  text-align: left;
  border: 1px solid var(--white);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.process-step:hover {
  color: var(--white);
  background: var(--black);
  transform: translateY(-8px);
}

.step-number {
  display: block;
  margin-bottom: 30px;
  color: currentColor;
  opacity: 0.55;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.process-step h3 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  letter-spacing: -0.055em;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.process-step:hover p,
.process-step:focus-within p {
  opacity: 0.78;
  transform: translateY(0);
}

/* Contact footer */
.contact-section {
  min-height: 100vh;
  padding: 130px 0 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(70px, 11vw, 190px);
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 34px;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
}

.contact-intro > a {
  display: block;
  width: fit-content;
  margin: 0 0 16px;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
}

.contact-intro > a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 66px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--black);
  background: var(--white);
  border-radius: 4px;
  transition: transform 180ms ease;
}

.social-links a:hover {
  transform: translateY(-4px);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 14px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-label,
.form-field > span,
.form-field label > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.form-field small,
.form-field label small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.submit-button {
  min-width: 110px;
  height: 48px;
  padding: 0 26px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  color: var(--white);
  background: var(--black);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  margin: 0;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.form-status.is-error {
  color: #ffb4b4;
}

.form-status.is-success {
  color: #bce7c8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 100px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Expertise page */
.projects-page,
.about-page {
  padding-bottom: 90px;
}

.projects-intro {
  min-height: 36vh;
  padding: clamp(80px, 10vw, 150px) 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(40px, 8vw, 130px);
  border-bottom: 1px solid var(--line-soft);
}

.projects-intro h1 {
  margin: 0;
  font-size: clamp(4.5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.projects-intro-copy {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}

.project-list {
  padding: 72px 0 110px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.project-card {
  min-width: 0;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.22) saturate(0.8);
  transition: transform 650ms cubic-bezier(.2, .7, .1, 1), filter 300ms ease;
}

.project-image:hover img,
.project-image:focus-visible img {
  transform: scale(1.045);
  filter: grayscale(0) saturate(1);
}

.project-image:hover::after,
.project-image:focus-visible::after {
  opacity: 1;
}

.project-index {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.78);
}

.project-card-copy {
  padding: 20px 0 0;
}

.project-card h2 {
  margin: 0;
  min-height: 2.4em;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.project-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* About page */
.manifesto {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(72px, 9vw, 130px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(60px, 10vw, 160px);
  border-bottom: 1px solid var(--line-soft);
}

.manifesto-copy h1 {
  max-width: 980px;
  margin: 0 0 44px;
  font-size: clamp(3rem, 5.6vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.manifesto-copy > p:not(.section-kicker) {
  max-width: 980px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.58;
}

.manifesto-mark {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.manifesto-mark img {
  width: min(100%, 360px);
  height: auto;
}

.manifesto-mark p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.86rem, 1.2vw, 1.1rem);
}

.manifesto-mark span {
  margin-inline: 5px;
  color: rgba(255, 255, 255, 0.35);
}

.founders {
  padding: 60px 0 90px;
}

.founder-profile {
  min-height: 76vh;
  padding: 90px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: clamp(60px, 10vw, 160px);
  border-bottom: 1px solid var(--line-soft);
}

.founder-profile-reverse .founder-copy {
  order: 2;
}

.founder-profile-reverse .founder-photo {
  order: 1;
}

.profile-number {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.founder-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.founder-role {
  margin: 16px 0 40px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

.founder-copy > p:not(.profile-number):not(.founder-role) {
  max-width: 920px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.96rem, 1.12vw, 1.08rem);
  line-height: 1.58;
}

.founder-photo {
  margin: 0;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.founder-photo figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Shared subpage CTA and footer */
.page-cta {
  padding: 78px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.page-cta p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-cta a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.page-cta a:hover {
  border-color: #fff;
}

.compact-footer {
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.compact-footer div {
  display: flex;
  gap: 24px;
}

.compact-footer a:hover {
  color: #fff;
}

@media (max-width: 1150px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 60px;
  }

  .founder-profile,
  .manifesto {
    gap: 70px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
    --page-gutter: 20px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    place-content: center;
    gap: 28px;
    background: var(--black);
    font-size: 2.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 200ms ease, visibility 200ms, transform 200ms ease;
  }

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

  .main-nav a {
    text-align: center;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step p {
    opacity: 0.74;
    transform: none;
  }

  .contact-layout,
  .projects-intro,
  .manifesto,
  .founder-profile {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    min-height: auto;
    align-items: start;
  }

  .projects-intro-copy {
    max-width: 680px;
  }

  .manifesto-mark {
    justify-items: start;
    text-align: left;
  }

  .manifesto-mark img {
    width: min(62vw, 360px);
  }

  .founder-profile {
    min-height: auto;
    padding: 80px 0;
  }

  .founder-profile-reverse .founder-copy,
  .founder-profile-reverse .founder-photo {
    order: initial;
  }

  .founder-photo {
    max-width: 620px;
  }

  .page-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 12px;
  }

  .brand {
    font-size: 1.65rem;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .carousel {
    min-height: 540px;
    height: calc(100svh - var(--header-height) - 12px);
  }

  .hero-copy {
    padding: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .carousel-control {
    display: none;
  }

  .process-section,
  .contact-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .process-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: auto;
  }

  .projects-intro {
    padding-top: 72px;
    padding-bottom: 54px;
  }

  .projects-intro h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  .project-list {
    padding-top: 44px;
  }

  .project-card h2 {
    min-height: 0;
  }

  .manifesto {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .manifesto-copy h1 {
    margin-bottom: 34px;
  }

  .founders {
    padding-top: 18px;
  }

  .founder-profile {
    padding: 72px 0;
  }

  .founder-copy h2 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .name-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 72px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }

  .footer-bottom,
  .compact-footer {
    flex-direction: column;
  }

  .footer-bottom {
    margin-top: 76px;
  }

  .compact-footer div {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
