@import "tailwindcss";

:root {
  --ink: #0b0b0a;
  --paper: #e9e4d8;
  --paper-2: #d7d0c1;
  --copper: #b94e3d;
  --line: rgba(233, 228, 216, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Baskerville, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--copper);
  color: var(--paper);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #f3eee4;
}

.wordmark {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.wordmark span {
  position: relative;
  top: -8px;
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 7px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.site-header nav a {
  position: relative;
  padding: 5px 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header .nav-contact {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #171310;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1585439196022-d84c935c137f?auto=format&fit=crop&fm=jpg&q=90&w=2400");
  background-position: center 44%;
  background-size: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.58) sepia(0.16);
  transform: scale(1.02);
  animation: heroReveal 1800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.8) 0%, rgba(9, 9, 8, 0.24) 55%, rgba(9, 9, 8, 0.38) 100%),
    linear-gradient(0deg, rgba(9, 9, 8, 0.68), transparent 45%);
}

.hero-kicker {
  position: absolute;
  z-index: 2;
  top: 116px;
  right: 42px;
  left: 42px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title-wrap {
  position: absolute;
  z-index: 2;
  bottom: 72px;
  left: 42px;
  width: calc(100% - 84px);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--copper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero-title-wrap h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 17vw, 18rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.075em;
}

.hero-cn {
  margin: 30px 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.5em;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 8px;
  letter-spacing: 0.24em;
  transform: rotate(90deg) translateX(-20px);
  transform-origin: right bottom;
}

.scroll-cue i {
  display: block;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: white;
  animation: scrollLine 2s ease-in-out infinite;
}

.intro {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) 2.35fr;
  gap: 6vw;
  padding: 148px 7vw 165px;
  background: var(--paper);
  color: var(--ink);
}

.intro-copy > p:first-child {
  max-width: 1060px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 6rem);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.intro-copy > p:first-child span {
  color: #8d877a;
}

.intro-en {
  max-width: 520px;
  margin: 68px 0 0 auto;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.works {
  padding: 140px 42px 170px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  align-items: end;
  margin-bottom: 72px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 7.8rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.section-head > p:last-child {
  max-width: 180px;
  margin: 0 0 4px auto;
  color: #928d83;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 88px 22px;
}

.work-card:first-child {
  grid-column: 1 / 13;
}

.work-card:nth-child(2) {
  grid-column: 1 / 7;
}

.work-card:nth-child(3) {
  grid-column: 8 / 13;
  margin-top: 170px;
}

.work-image-wrap {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: #181817;
}

.work-card:nth-child(n + 2) .work-image-wrap {
  aspect-ratio: 4 / 5;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
  transform: scale(1.01);
  transition: filter 700ms ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover .work-image {
  filter: grayscale(0.12) contrast(1.04) brightness(0.9) sepia(0.15);
  transform: scale(1.045);
}

.work-index,
.view-work {
  position: absolute;
  top: 18px;
  color: white;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.work-index {
  left: 18px;
}

.view-work {
  right: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.work-card:hover .view-work {
  opacity: 1;
  transform: translateY(0);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.work-meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.work-meta p {
  margin: 10px 0 0;
  color: #8d877e;
  font-size: 11px;
  letter-spacing: 0.17em;
}

.work-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: #8d877e;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.practice {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  padding: 140px 7vw;
  background: var(--copper);
  color: var(--ink);
}

.practice .section-label {
  color: var(--ink);
}

.practice-content {
  position: relative;
  z-index: 2;
}

.practice h2 {
  max-width: 1100px;
  margin: 104px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7vw, 8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.practice-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 720px;
  margin: 95px 0 0 auto;
  font-size: 12px;
  line-height: 1.9;
}

.practice-note p {
  margin: 0;
}

.practice-orbit {
  position: absolute;
  z-index: 1;
  right: -8vw;
  bottom: -24vw;
  width: 60vw;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 11, 10, 0.25);
  border-radius: 50%;
}

.practice-orbit::before,
.practice-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(11, 11, 10, 0.25);
  border-radius: 50%;
}

.practice-orbit::before {
  inset: 12%;
}

.practice-orbit::after {
  inset: 24%;
}

.practice-orbit span {
  position: absolute;
  font-size: 8px;
  letter-spacing: 0.25em;
}

.practice-orbit span:first-child {
  top: 18%;
  left: 7%;
}

.practice-orbit span:nth-child(2) {
  top: 9%;
  left: 44%;
}

.practice-orbit span:last-child {
  top: 23%;
  right: 10%;
}

.services {
  padding: 150px 42px 165px;
  background: var(--paper);
  color: var(--ink);
}

.services-head {
  grid-template-columns: 1fr 3.4fr;
  margin-bottom: 90px;
}

.service-list {
  border-top: 1px solid rgba(11, 11, 10, 0.28);
}

.service-row {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr 1fr 1.7fr;
  align-items: center;
  min-height: 132px;
  border-bottom: 1px solid rgba(11, 11, 10, 0.28);
  transition: background 260ms ease, padding 260ms ease;
}

.service-row:hover {
  padding: 0 18px;
  background: var(--paper-2);
}

.service-number,
.service-en {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.service-description {
  max-width: 300px;
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
}

.quote {
  padding: 180px 7vw 190px;
  background: var(--paper-2);
  color: var(--ink);
  text-align: center;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.quote p:nth-child(2) {
  color: #8e877a;
}

.quote span {
  display: block;
  margin-top: 48px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.contact {
  padding: 145px 42px 80px;
  color: var(--paper);
}

.contact h2 {
  margin: 85px 0 130px;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 12vw, 14rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.08em;
}

.contact h2 em {
  color: var(--copper);
  font-weight: 400;
}

.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-bottom p {
  max-width: 440px;
  margin: 0;
  color: #99938a;
  font-size: 11px;
  line-height: 1.8;
}

.contact-bottom a {
  display: flex;
  gap: 70px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2.6rem);
  transition: color 260ms ease;
}

.contact-bottom a:hover {
  color: var(--copper);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  padding: 34px 42px 30px;
  border-top: 1px solid var(--line);
  color: #79746c;
  font-size: 8px;
  letter-spacing: 0.11em;
  line-height: 1.7;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.footer-mark {
  color: var(--paper);
  font-size: 20px;
}

.credits {
  text-align: right;
}

.credits a {
  border-bottom: 1px solid #514e49;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateX(-102%);
  }
  55%,
  100% {
    transform: translateX(102%);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 22px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:not(.nav-contact) {
    display: none;
  }

  .hero-kicker {
    top: 102px;
    right: 22px;
    left: 22px;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero-title-wrap {
    bottom: 55px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero-title-wrap h1 {
    font-size: clamp(4.5rem, 21vw, 9rem);
  }

  .hero-cn {
    margin-top: 22px;
  }

  .scroll-cue {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 90px 22px 110px;
  }

  .intro-copy > p:first-child {
    font-size: clamp(2.7rem, 10vw, 5rem);
  }

  .intro-en {
    margin-top: 48px;
  }

  .works,
  .services,
  .contact {
    padding-right: 22px;
    padding-left: 22px;
  }

  .works {
    padding-top: 90px;
    padding-bottom: 110px;
  }

  .section-head,
  .services-head {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 48px;
  }

  .section-head > p:last-child {
    margin-left: 0;
  }

  .work-grid {
    display: block;
  }

  .work-card,
  .work-card:nth-child(3) {
    margin: 0 0 72px;
  }

  .work-card:first-child .work-image-wrap,
  .work-card:nth-child(n + 2) .work-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .practice {
    min-height: auto;
    padding: 95px 22px 115px;
  }

  .practice h2 {
    margin-top: 70px;
    font-size: clamp(3rem, 11vw, 5.5rem);
  }

  .practice-note {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 65px;
  }

  .practice-orbit {
    right: -28vw;
    bottom: -16vw;
    width: 92vw;
  }

  .service-row {
    grid-template-columns: 0.4fr 1.6fr;
    gap: 12px;
    padding: 26px 0;
  }

  .service-row:hover {
    padding: 26px 10px;
  }

  .service-en,
  .service-description {
    grid-column: 2;
  }

  .quote {
    padding: 110px 22px 120px;
  }

  .contact {
    padding-top: 95px;
  }

  .contact h2 {
    margin: 68px 0 90px;
    font-size: clamp(4rem, 18vw, 8rem);
    line-height: 0.82;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 48px;
  }

  .contact-bottom a {
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 30px 22px;
  }

  .credits {
    text-align: left;
  }
}

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