:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --line: rgba(255, 255, 255, 0.15);
  --text: #f4f0ea;
  --muted: rgba(244, 240, 234, 0.64);
  --dim: rgba(244, 240, 234, 0.42);
  --serif: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", Arial, sans-serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: auto;
  max-width: 100vw;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.15vw;
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.0rem, 0.5vw, 0.5rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.nav,
.site-footer nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 16rem 4.15vw 4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.06), rgba(5, 5, 5, 0.92)),
    url("./images/947A8318.jpg") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  mix-blend-mode: multiply;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), transparent 68%);
}

.hero__content,
.hero__note {
  position: relative;
  z-index: 1;
}

.hero h1,
.about h2,
.contact h2,
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 1.9rem 0 2rem;
  font-size: clamp(4.8rem, 3vw, 3rem);
  line-height: 1.5;
}

.hero h1 em {
  font-weight: 400;
}

.eyebrow {
  margin: 0;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.46em;
  line-height: 1.4;
  text-transform: uppercase;
}

.outline-button,
.contact-form button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.outline-button:hover,
.contact-form button:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__note {
  position: absolute;
  right: 4.15vw;
  bottom: 5.8rem;
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.65;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 4.15vw;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.section-heading--stacked h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow),
.project__meta p,
.practice-grid span {
  margin: 0;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.98fr);
  align-items: start;
  gap: 1rem;
}

.works-more {
  margin-top: 3.5rem;
  text-align: center;
}

.works-more[hidden] {
  display: none;
}

.works-page {
  padding-top: 66px;
}

.works-page .work {
  border-top: 0;
}

.works-page__intro {
  max-width: 760px;
  margin: 1.5rem 0 4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.section-title {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
}

.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project__media {
  position: relative;
  overflow: hidden;
  background: #191919;
  cursor: zoom-in;
  height: clamp(360px, 38vw, 560px);
}

.project__image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(0) contrast(1.03);
  background-color: #191919;
  transition: filter 220ms ease, transform 220ms ease;
}

.project__image[data-src="images/947A7573.jpg"] {
  background-image: url("images/947A7573.jpg");
}

.project__image[data-src="images/947A7519.jpg"] {
  background-image: url("images/947A7519.jpg");
}

.project__image[data-src="images/947A3057.jpg"] {
  background-image: url("images/947A3057.jpg");
}

.project__image[data-src="images/947A4065.jpg"] {
  background-image: url("images/947A4065.jpg");
}

.project__image[data-src="images/947A5819.jpg"] {
  background-image: url("images/947A5819.jpg");
}

.project__image[data-src="images/947A5697.jpg"] {
  background-image: url("images/947A5697.jpg");
}

.project:hover .project__image {
  filter: grayscale(0.2) contrast(1);
  transform: scale(1.006);
}

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.52) 45%,
    rgba(0, 0, 0, 0.86) 100%
  );
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project__overlay p {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project:hover .project__overlay,
.project__media:hover .project__overlay {
  opacity: 1;
  transform: translateY(0);
}
.project__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.75rem 0 1.15rem;
}

.project__meta h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.work-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.work-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity 360ms ease;
}

.work-modal.is-open .work-modal__backdrop {
  opacity: 1;
}

.work-modal__dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(760px, 88vh);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(72px) scale(0.72);
  transform-origin: center;
  transition:
    opacity 320ms ease,
    transform 460ms cubic-bezier(0.18, 0.9, 0.18, 1);
}

.work-modal.is-open .work-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 5, 5, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.work-modal__close:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.work-modal__image-wrap {
  position: relative;
  min-height: 520px;
  background: #111;
}

.work-modal__image {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.work-modal__image[hidden],
.work-modal__video[hidden] {
  display: none;
}

.work-modal__video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
  background: #000;
}

.work-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.35rem;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
  border-left: 1px solid var(--line);
}

.work-modal__eyebrow,
.work-modal__year,
.work-modal__counter {
  margin: 0;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.work-modal__counter {
  margin-top: -0.75rem;
  color: var(--dim);
}

.work-modal__nav[hidden] {
  display: none;
}

.work-modal__content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 2.15vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.work-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(5, 5, 5, 0.56);
  color: var(--text);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.work-modal__nav::before {
  content: "";
  width: 16px;
  height: 16px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.work-modal__nav:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.work-modal__nav--prev {
  left: 1rem;
}

.work-modal__nav--prev::before {
  transform: translateX(3px) rotate(-135deg);
}

.work-modal__nav--next {
  right: 1rem;
}

.work-modal__nav--next::before {
  transform: translateX(-3px) rotate(45deg);
}

.work-modal__description {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: stretch;
}
.about-extra-image {
  width: min(100%, 220px);
  max-width: 220px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 2rem 0 0;
}

.about-extra-image .inti-logo {
  width: 100% !important;
  aspect-ratio: 3.6 / 1;
  display: block;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: #fff url("images/inti logo.jpg") center / calc(100% - 2.1rem) auto no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.about__portrait {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: url("./images/6272eeae62de97b7450891db3eef116c.jpg") center / cover no-repeat;
  filter: grayscale(0);
}

.about__copy {
  min-width: 0;
  padding-top: 0;
}

.about h2 {
  margin: 2rem 0 1.8rem;
  font-size: clamp(3.2rem, 3vw, 3rem);
  letter-spacing: 0.035em;
  line-height: 1.15;
}

.about h2 span {
  display: block;
}

.about p:not(.eyebrow),
.practice-grid p,
.contact__intro > p:not(.eyebrow) {
  color: var(--muted);
}

.about p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 0 1.4rem;
  font-size: 1.03rem;
}

.section-heading--stacked {
  display: block;
}

.section-heading--stacked h2 {
  margin-top: 1.2rem;
  text-transform: uppercase;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practice-grid article {
  min-height: 214px;
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-grid h3 {
  margin: 1.6rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.practice-grid p {
  max-width: 650px;
  margin: 0;
}

.practice {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.quote {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 5rem 4.15vw;
  overflow: hidden;
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.34)),
    url("./images/L1023117.jpg") center / cover,
    #050505;
}

.quote::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  z-index: 3;
  height: 20px;
  background: linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.94) 38%, rgba(5, 5, 5, 0) 100%);
  pointer-events: none;
}

.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.36) 18%, rgba(5, 5, 5, 0.36) 82%, rgba(5, 5, 5, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.54) 0%, rgba(5, 5, 5, 0.24) 10%, rgba(5, 5, 5, 0.24) 90%, rgba(5, 5, 5, 0.54) 100%);
  pointer-events: none;
}

.quote__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.quote__video.is-loaded {
  opacity: 1;
}

.quote blockquote {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  font-size: clamp(3rem, 3.5vw, 3rem);
  font-style: italic;
  line-height: 1.12;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.contact h2 {
  margin: 2rem 0 1.6rem;
  font-size: clamp(3.6rem, 6vw, 6.8rem);
  line-height: 0.95;
}

.contact__intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0 0 3rem;
}

.contact-list {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-list span {
  width: 1.25rem;
  color: var(--muted);
}

.contact-form {
  border: 1px solid var(--line);
}

.contact-form label {
  display: block;
  padding: 1.5rem 1.55rem;
  border-bottom: 1px solid var(--line);
}

.contact-form span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 240, 234, 0.28);
}

.form-status {
  min-height: 1.5rem;
  margin: 1.25rem 1.55rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

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

.contact-form button {
  margin: 1.55rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 86px;
  padding: 1.6rem 4.15vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brand--small {
  color: var(--text);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
}

.site-footer nav {
  justify-content: end;
  gap: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
  }

  .nav,
  .site-footer nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.24em;
  }

  .hero {
    min-height: 92svh;
    padding: 12rem 1.4rem 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 10vw, 4.2rem);
    line-height: 1.22;
  }

  .hero__note {
    position: static;
    max-width: 320px;
    margin-top: 2rem;
    text-align: left;
  }

  .section {
    padding: 4rem 1.4rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 2rem;
  }

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

  .gallery > *,
  .about > *,
  .contact > * {
    min-width: 0;
    max-width: 100%;
  }

  .project img {
    min-height: 260px;
  }

  .project--wide .project__media {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project--portrait .project__media {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .about__copy {
    padding-top: 0;
  }

  .about__portrait {
    height: auto;
    min-height: 0;
    aspect-ratio: 0.76;
  }

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

  .quote {
    min-height: 340px;
  }

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

  .site-footer p,
  .site-footer nav {
    text-align: left;
    justify-content: start;
  }

  .work-modal {
    padding: 1rem;
  }

  .work-modal__dialog {
    max-height: 90vh;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .work-modal__image-wrap {
    min-height: 300px;
  }

  .work-modal__image {
    max-height: 54vh;
  }

  .work-modal__video {
    min-height: 300px;
    aspect-ratio: 16 / 9;
  }

  .work-modal__content {
    padding: 2rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    background-position: center;
  }

  .hero h1 {
    margin-top: 1.3rem;
    font-size: clamp(2.45rem, 9.5vw, 3rem);
    line-height: 1.24;
  }

  .outline-button,
  .contact-form button {
    width: 100%;
    padding-inline: 1rem;
    letter-spacing: 0.24em;
  }

  .contact-form button {
    width: calc(100% - 3.1rem);
  }

  .project__meta {
    display: block;
  }

  .project__meta p {
    margin-top: 0.35rem;
  }

  .about h2,
  .contact h2 {
    overflow-wrap: break-word;
    font-size: clamp(2.05rem, 8.5vw, 2.45rem);
    line-height: 1.12;
  }

  .about h2 span {
    display: inline;
  }

  .about-extra-image {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .quote blockquote {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    line-height: 1.16;
  }

  .contact-list li {
    align-items: flex-start;
  }
}
