:root {
  --bg: #f6f4ef;
  --fg: #171717;
  --muted: #737373;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #d4dccd;
  --accent-fg: #1f4d2e;
  --black: #0a0a0a;
  --white: #f6f4ef;
  --max-width: 90rem;
  --pad-x: clamp(1.5rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #f6f4ef;
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.20;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

ul {
  list-style: none;
}

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

em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-fg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

.accent-text {
  color: var(--accent-fg);
}

.code-mark {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-fg);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.code-mark--tr,
.code-mark--tl,
.code-mark--br,
.code-mark--bl {
  position: absolute;
}

.code-mark--tr {
  top: clamp(5rem, 8vw, 7rem);
  right: var(--pad-x);
}

.code-mark--tl {
  top: clamp(2rem, 6vw, 4rem);
  left: var(--pad-x);
}

.code-mark--br {
  bottom: clamp(2rem, 6vw, 4rem);
  right: var(--pad-x);
}

.code-mark--bl {
  bottom: clamp(2rem, 6vw, 4rem);
  left: var(--pad-x);
}

.code-mark--inline {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.35em;
  vertical-align: super;
  opacity: 0.6;
  letter-spacing: 0;
}

.code-mark--light {
  color: var(--accent);
  opacity: 0.45;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #f6f4ef;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.preloader.is-out {
  transform: translateY(-100%);
}

.preloader__center {
  position: relative;
  text-align: center;
  opacity: 0;
  animation: preFade 0.6s var(--ease) 0.1s forwards;
}

.preloader__name {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
}

.preloader__name sup {
  font-size: 0.4em;
  font-weight: 500;
  margin-left: 0.15em;
  margin-top: 0.4em;
  color: var(--muted);
}

.preloader__counter {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: preFade 0.4s var(--ease) 0.3s forwards;
}

@keyframes preFade {
  to {
    opacity: 1;
  }
}

.cursor,
.cursor-dot {
  display: none;
}

@media (hover: none) {
  .cursor,
  .cursor-dot {
    display: none !important;
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--pad-x);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.35s var(--ease);
}

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

.nav.is-scrolled {
  background: #f6f4ef;
}

.nav__logo {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav__logo-dot {
  color: var(--accent-fg);
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav__links a:hover {
  color: var(--accent-fg);
}

.nav__menu {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: inherit;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .nav__menu {
    display: none;
  }
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--pad-x) 3rem;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(2.25rem, 12vw, 14rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}

.reveal-line.is-in > span {
  transform: translateY(0);
}

.reveal-line:nth-child(1) > span {
  transition-delay: 0.15s;
}
.reveal-line:nth-child(2) > span {
  transition-delay: 0.3s;
}
.reveal-line:nth-child(3) > span {
  transition-delay: 0.45s;
}

.hero__title-row {
  display: flex !important;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero__title-row {
    gap: 2rem;
  }
}

.hero__title-rule {
  display: inline-block;
  height: 2px;
  width: 3rem;
  background: var(--fg);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__title-rule {
    width: 8rem;
  }
}

.hero__bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.hero__bottom p {
  max-width: 28rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
  text-wrap: balance;
}

.hero__glow {
  position: absolute;
  top: 25%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  animation: glowIn 2s var(--ease) 0.4s forwards;
}

@keyframes glowIn {
  to {
    opacity: 0.45;
  }
}

.section {
  padding: clamp(5rem, 12vw, 12rem) 0;
  position: relative;
}

.section__header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 6rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section__header {
    flex-direction: row;
  }
}

.section__title {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.section__meta {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.work {
  background: var(--white);
}

.work .container {
  max-width: none;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}

@media (min-width: 768px) {
  .work__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .work__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.work__card {
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.work__card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.work__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(212, 220, 205, 0.25);
  margin-bottom: 1.5rem;
}

.work__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.work__card:hover .work__cover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.work__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}

.work__card:hover .work__title {
  color: var(--accent-fg);
}

.work__category {
  color: var(--muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work__year {
  font-size: 0.8125rem;
  font-weight: 500;
}

.marquee {
  padding: 6rem 0;
  background: var(--white);
  overflow: hidden;
}

.marquee__rotate {
  width: 100%;
  transform: rotate(-2deg);
}

.marquee__row {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  will-change: transform;
}

.marquee__track span {
  display: inline-block;
  padding-right: 2rem;
}

.services {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: 4fr 8fr;
    gap: 2rem;
  }
}

.services__sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .services__sticky {
    position: sticky;
    top: 8rem;
    align-self: start;
  }
}

.services__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .services__list {
    gap: 6rem;
  }
}

.service {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service.is-in {
  opacity: 1;
  transform: translateY(0);
}

.service__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .service__head {
    flex-direction: row;
    align-items: baseline;
    gap: 3rem;
  }
}

.service__num {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
}

.service__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}

.service:hover .service__title {
  color: var(--accent-fg);
}

.service__desc {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .service__desc {
    margin-left: 4.5rem;
    font-size: 1.25rem;
  }
}

.about {
  background: var(--black);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 4fr 8fr;
    gap: 2rem;
  }
}

.about__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-bottom: 2.5rem;
  background: rgba(212, 220, 205, 0.08);
  border: 1px dashed rgba(212, 220, 205, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.about__photo-hint {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  pointer-events: none;
}

.about__photo.is-empty .about__photo-hint {
  display: flex;
}

.about__photo-hint small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  text-transform: none;
}

.about__photo-hint code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.55);
}

.about__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

.about__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.about__statement {
  font-size: clamp(1.875rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  text-wrap: balance;
}

.about__statement em {
  color: var(--accent);
}

.about__paragraphs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .about__paragraphs {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about__details {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about__details {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about__details-wide {
  grid-column: span 2;
}

.about__details h4 {
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.about__details ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 6rem;
  padding-bottom: 1.5rem;
}

.contact__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact__email {
  display: block;
  font-size: clamp(2.5rem, 10vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 3rem;
  transition: color 0.3s var(--ease);
}

.contact__email:hover {
  color: var(--accent-fg);
}

.contact__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

@media (min-width: 768px) {
  .contact__details {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact__details h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact__details p,
.contact__details a,
.contact__details li {
  font-size: 1.125rem;
}

.contact__details ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__details a:hover {
  color: var(--accent-fg);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 6rem;
  padding-top: 1.5rem;
}

.social-dock {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-dock__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--fg);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.social-dock__link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--accent-fg);
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .social-dock {
    right: 0.75rem;
  }
}

@media (max-width: 767px) {
  .hero__bottom {
    justify-content: flex-start;
    margin-top: 2rem;
  }
  .hero__bottom p {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .nav.is-open {
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: var(--bg) !important;
    transform: none !important;
  }

  .nav.is-open .nav__logo {
    position: absolute;
    top: 1.5rem;
    left: var(--pad-x);
  }

  .nav.is-open .nav__menu {
    position: absolute;
    top: 1.5rem;
    right: var(--pad-x);
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  .footer {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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