:root {
  --ink: #11110f;
  --paper: #eee9df;
  --paper-deep: #d7d0c2;
  --accent: #b65d3f;
  --signal: #c6a96b;
  --line: rgba(238, 233, 223, 0.24);
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(17, 17, 15, 0.88);
  border-color: rgba(238, 233, 223, 0.12);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--paper);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.06em;
}

.brand-rule {
  width: 100%;
  height: 1px;
  margin: 0.28rem 0 0.34rem;
  background: currentColor;
}

.brand-est {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: clamp(9rem, 13vw, 12rem);
  height: auto;
}

.brand-logo-crop {
  display: block;
  width: clamp(9rem, 13vw, 12rem);
  aspect-ratio: 1077 / 490;
  overflow: hidden;
}

.brand-logo-crop .brand-logo {
  width: 100%;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  color: rgba(238, 233, 223, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.language-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.language-switch button.is-active,
.language-switch button:hover,
.language-switch button:focus-visible {
  color: var(--paper);
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.72rem;
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a,
.site-footer a {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem var(--gutter) 2.2rem;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,0.08) 25%),
    repeating-radial-gradient(circle at 20% 20%, transparent 0, rgba(255,255,255,0.025) 1px, transparent 2px, transparent 5px);
  pointer-events: none;
}

.hero-light {
  position: absolute;
  z-index: -2;
  width: min(80vw, 920px);
  aspect-ratio: 1;
  right: -18vw;
  top: -20vw;
  border-radius: 50%;
  filter: blur(28px);
  background:
    radial-gradient(circle at 36% 40%, rgba(255, 224, 145, 0.82), transparent 10%),
    radial-gradient(circle at 45% 46%, rgba(182, 93, 63, 0.7), transparent 28%),
    radial-gradient(circle at 56% 58%, rgba(73, 26, 13, 0.8), transparent 58%);
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.16;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 9.2vw, 9.2rem);
}

em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.75rem;
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-footer p {
  margin: 0;
}

.round-link {
  width: 5.8rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  color: var(--ink);
  background: var(--paper);
  transform: rotate(-4deg);
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-number {
  position: absolute;
  top: 2rem;
  right: var(--gutter);
  font-size: 0.67rem;
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.section h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.about-copy {
  align-self: end;
  max-width: 34rem;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 1.5rem;
}

.about-copy .lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1.25;
}

.projects {
  background: var(--paper);
  color: var(--ink);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 8vw, 7rem);
}

.project-card:nth-child(2) {
  margin-top: clamp(3rem, 8vw, 8rem);
}

.project-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(1rem, 2vw, 2rem);
  color: var(--paper);
}

.project-image-wrap {
  background: #24231f;
}

.project-image-wrap::after {
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 17, 15, 0.62));
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-title-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 2vw, 2rem);
  left: clamp(1rem, 2vw, 2rem);
  max-width: 80%;
  color: var(--paper);
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-card:hover .project-image {
  transform: scale(1.035);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
}

.visual-one {
  background: #24231f;
}

.visual-one::before {
  width: 130%;
  aspect-ratio: 1;
  left: -45%;
  top: -32%;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 58%, #e2b78f 0, #b65d3f 18%, #54251b 43%, transparent 66%);
  filter: blur(4px);
}

.visual-one::after {
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.2) 50%, transparent 54%);
  transform: translateX(-58%);
}

.visual-two {
  background: var(--accent);
}

.visual-two::before {
  width: 76%;
  aspect-ratio: 1;
  right: -8%;
  top: 12%;
  border: 1px solid rgba(238, 233, 223, 0.7);
  border-radius: 50%;
  box-shadow: -5rem 6rem 0 -1px var(--accent), -5rem 6rem 0 0 rgba(238,233,223,0.45);
}

.visual-two::after {
  width: 3px;
  height: 70%;
  left: 28%;
  top: 15%;
  background: var(--signal);
  transform: rotate(22deg);
}

.project-visual span {
  position: relative;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.project-visual .project-title-overlay {
  position: absolute;
  font-size: clamp(1.35rem, 2.4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17, 17, 15, 0.24);
}

.project-meta h3,
.project-meta p {
  margin: 0;
  font-family: "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
}

.project-meta h3 {
  font-size: 1rem;
}

.project-meta p {
  max-width: 16rem;
  color: rgba(17, 17, 15, 0.65);
  font-size: 0.75rem;
  text-align: right;
}

.project-meta .nowrap {
  white-space: nowrap;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.project-video {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 1px;
  background: #11110f;
}

.contact {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 75%, rgba(182, 93, 63, 0.48), transparent 28%),
    var(--ink);
}

.contact h2 {
  max-width: 14ch;
  font-size: clamp(3.7rem, 9vw, 9rem);
}

.contact-note {
  width: fit-content;
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .brand-logo {
  width: clamp(10rem, 15vw, 14rem);
}

.site-footer .brand-logo-crop {
  width: clamp(10rem, 15vw, 14rem);
}

.site-footer p {
  margin: 0;
}

.site-footer > :last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 800ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-delay-1 { animation-delay: 110ms; }
.reveal-delay-2 { animation-delay: 230ms; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .site-header .brand-logo {
    width: 7.4rem;
  }

  .site-header .brand-logo-crop {
    width: 7.4rem;
  }

  nav {
    gap: 0.65rem;
    font-size: 0.58rem;
  }

  .language-switch {
    margin-left: 0.1rem;
    font-size: 0.58rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 6.5rem);
  }

  .hero-light {
    width: 125vw;
    right: -55vw;
    top: -18vw;
  }

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

  .about-copy {
    max-width: 28rem;
  }

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

  .project-card:nth-child(2) {
    margin-top: 1rem;
  }

  .project-meta {
    display: block;
  }

  .project-meta p {
    margin-top: 0.4rem;
    text-align: left;
  }

  .contact {
    min-height: 72vh;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p {
    order: 3;
    grid-column: 1 / -1;
  }
}

@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;
  }
}
