:root {
  --bg: #ebe7e1;
  --text: #22201d;
  --line: #8f8a83;
  --accent: #d96b2b;
  --max: 1440px;
  --bar-height: 64px;
  --footer-space: var(--bar-height);
  --header-space: var(--bar-height);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  overflow-x: visible;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

button {
  font: inherit;
}

a,
button,
input,
textarea,
select,
label {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(217, 107, 43, 0.78);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease,
    opacity 0.18s ease;
}

.custom-cursor.is-hovering {
  width: 30px;
  height: 30px;
  background: rgba(217, 107, 43, 0.92);
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
  padding-top: var(--header-space);
  padding-bottom: var(--footer-space);
}

footer {
  position: static;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: var(--bar-height);
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px) 0 16px;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 50;
}

.brand {
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 0.8;
  font-weight: 500;
  width: min-content;
  text-transform: lowercase;
  transition: transform 0.25s ease, color 0.25s ease;
}

.brand:hover {
  color: #bc5720;
  transform: translateY(-2px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 42px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  height: 100%;
}

.nav a {
  display: inline-block;
  line-height: 1;
  transition: color 0.25s ease;
}

.nav-link {
  display: inline-block;
  position: relative;
  padding: 0 2px 6px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link:active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link:active::after {
  transform: scaleX(1);
}

.lang-toggle {
  position: relative;
  display: inline-block;
  padding: 0 2px 6px;
  transition: color 0.25s ease;
  line-height: 1;
}

.lang-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible,
.lang-toggle:active {
  color: var(--accent);
}

.lang-toggle:hover::after,
.lang-toggle:focus-visible::after,
.lang-toggle:active::after {
  transform: scaleX(1);
}

.hero-title {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 160px;
  padding: 0 28px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 300;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.04em;
  line-height: 1.16;
  overflow: visible;
}

.hero-title em {
  font-style: italic;
}

.hero-title-inner {
  display: inline-block;
  max-width: min(100%, 23ch);
  padding: 0.3em 0.42em 0.42em;
  overflow: visible;
}

.hero-letter {
  display: inline-block;
  transform-origin: center 80%;
  color: var(--text);
  transition: transform 0.2s ease, color 0.2s ease;
  will-change: transform;
  line-height: 1;
}

.hero-letter.is-hovered {
  color: hsl(var(--hero-hue, 18) 54% 58%);
  transform: translateY(-0.02em) scale(1.1);
}

.hero-letter.is-neighbor {
  color: hsl(var(--hero-hue, 18) 44% 63%);
  transform: scale(1.05);
}

.hero-letter.is-neighbor-2 {
  color: hsl(var(--hero-hue, 18) 34% 68%);
  transform: scale(1.02);
}

.hero-space {
  white-space: pre;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 470px;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  min-height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: clamp(32px, 6vw, 60px) clamp(20px, 6vw, 70px);
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.intro-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
}

.intro-portrait {
  display: flex;
  justify-content: center;
}

.intro-portrait img {
  width: 230px;
  aspect-ratio: 1 / 1;
}

.projects {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 520px;
}

.projects-side {
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  font-style: italic;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 36px) clamp(32px, 5vw, 56px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.1 / 0.82;
  margin-bottom: 18px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card {
  transition: transform 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.project-card:hover h3 {
  color: var(--accent);
}

.project-card h3 {
  font-size: 1.95rem;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 28ch;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 300;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: #ded8d0;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(34, 32, 29, 0.08);
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: clamp(32px, 5vw, 58px) clamp(20px, 4vw, 34px) clamp(32px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.about-contact .art-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
}

.about-block,
.contact-block {
  padding-top: 8px;
}

.about-block p,
.contact-block p {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 37ch;
  margin-bottom: 28px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-top: 120px;
}

.contact-block .btn {
  width: fit-content;
  align-self: flex-start;
}

.projects-page {
  border-bottom: 1px solid var(--line);
  padding: 58px 0 90px;
}

.projects-page-inner {
  padding: 0 clamp(20px, 6vw, 68px);
}

.projects-page-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.filter-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  color: #3f3b36;
  transition: color 0.2s ease;
}

.filter-btn:hover {
  color: var(--accent);
}

.filter-btn::after {
  content: " -";
}

.filter-btn:last-child::after {
  content: "";
}

.filter-btn.is-active {
  font-weight: 500;
}

.projects-page-grid-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 36px;
  align-items: start;
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.archive-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

.archive-card.is-hidden {
  display: none;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding: 0 2px 6px;
  line-height: 1;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.projects-page-text {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 4px;
}

.projects-page-text p + p {
  margin-top: 24px;
}

.footer-main {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px;
}

.footer-brand {
  color: var(--accent);
  line-height: 0.8;
  font-size: 2rem;
  font-weight: 500;
  width: min-content;
  text-transform: lowercase;
}

.footer-contact {
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 54px;
  min-height: var(--bar-height);
  padding: 0 22px;
  font-size: 0.95rem;
  text-transform: uppercase;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  z-index: 40;
}

@media (max-width: 1280px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .art-grid {
    grid-column: 1 / -1;
  }

  .about-contact .art-grid img {
    aspect-ratio: 2.2 / 1;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 22px;
    font-size: 0.88rem;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 46px 32px;
  }

  .intro-portrait {
    justify-content: flex-start;
  }

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

  .projects-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 90px;
  }

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

  .contact-block {
    padding-top: 0;
  }

  .projects-page-grid-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --bar-height: 72px;
    --footer-space: var(--bar-height);
    --header-space: 106px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px;
  }

  .nav {
    gap: 14px 22px;
    justify-content: flex-start;
  }

  .hero-grid,
  .intro-text,
  .projects-grid,
  .projects-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 240px;
  }

  .projects-grid {
    padding: 32px 20px 40px;
  }

  .projects-page-inner {
    padding: 0 20px;
  }

  .project-card p {
    max-width: none;
  }

  .footer-main,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --bar-height: 84px;
    --footer-space: var(--bar-height);
    --header-space: 106px;
  }
}

.about-page {
  padding: 58px 0 110px;
  border-bottom: 1px solid var(--line);
}

.about-page-inner {
  padding: 0 clamp(20px, 6vw, 70px);
}

.about-page-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}

.about-page-top-line {
  width: 66%;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.about-page-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.about-page-image img {
  width: 100%;
  aspect-ratio: 0.74 / 1;
  object-fit: cover;
}

.about-page-text {
  padding-top: 2px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-page-text p {
  max-width: 43ch;
  margin-bottom: 34px;
}

.about-page-meta {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
  max-width: 420px;
}

.about-meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 54px;
  align-items: start;
}

.about-meta-label {
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-meta-value {
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-page .btn {
  width: fit-content;
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .about-page-inner {
    padding: 0 32px;
  }

  .about-page-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-page-top-line {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .about-page {
    padding: 40px 0 70px;
  }

  .about-page-inner {
    padding: 0 20px;
  }

  .about-page-title {
    font-size: 2.3rem;
    margin-bottom: 24px;
  }

  .about-meta-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.contact-page {
  padding: 58px 0 0;
  border-bottom: 1px solid var(--line);
}

.contact-page-inner {
  padding: 0 clamp(20px, 6vw, 70px) 68px;
}

.contact-page-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}

.contact-page-top-line {
  width: 66%;
  border-top: 1px solid var(--line);
  margin-bottom: 34px;
}

.contact-page-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: start;
}

.contact-page-info {
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 6px;
}

.contact-page-intro {
  max-width: 56ch;
  margin-bottom: 42px;
}

.contact-info-list {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-label,
.contact-info-value {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-value {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-page-note {
  max-width: 42ch;
}

.contact-page-form-wrap {
  display: flex;
  justify-content: flex-end;
}

.contact-form {
  width: 100%;
  max-width: 332px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #4b4742;
  opacity: 1;
}

.contact-input {
  height: 44px;
}

.contact-textarea {
  min-height: 174px;
  resize: none;
  line-height: 1.5;
}

.contact-submit {
  min-width: 170px;
  height: 40px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-submit:hover {
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .contact-page-inner {
    padding: 0 32px 56px;
  }

  .contact-page-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-page-top-line {
    width: 100%;
  }

  .contact-page-form-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .contact-page {
    padding-top: 40px;
  }

  .contact-page-inner {
    padding: 0 20px 48px;
  }

  .contact-page-title {
    font-size: 2.3rem;
    margin-bottom: 24px;
  }

  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-form {
    max-width: none;
  }

  .contact-submit {
    align-self: flex-start;
  }
}

.project-detail-page {
  padding: 58px 0 110px;
  border-bottom: 1px solid var(--line);
}

.project-detail-inner {
  padding: 0 clamp(20px, 7vw, 88px);
}

.project-detail-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

.project-detail-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 26px;
  max-width: 63%;
}

.project-detail-heading h2 {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.project-detail-heading strong {
  font-weight: 500;
}

.project-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 48px;
  align-items: start;
}

.project-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-main-image img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
}

.project-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-secondary-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-detail-info {
  font-size: 0.95rem;
  line-height: 1.65;
  padding-top: 2px;
}

.project-detail-info p {
  margin-bottom: 24px;
}

.project-detail-meta {
  margin-top: 44px;
}

.project-detail-meta p {
  margin-bottom: 12px;
}

.archive-card a {
  display: block;
}

@media (max-width: 1100px) {
  .project-detail-inner {
    padding: 0 32px;
  }

  .project-detail-heading {
    max-width: 100%;
  }

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

@media (max-width: 820px) {
  .project-detail-page {
    padding: 40px 0 70px;
  }

  .project-detail-inner {
    padding: 0 20px;
  }

  .project-detail-title {
    font-size: 2.3rem;
    margin-bottom: 20px;
  }

  .project-detail-secondary-grid,
  .project-secondary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-detail-content {
    gap: 28px;
  }
}

.project-wide-image img {
  width: 100%;
  aspect-ratio: 1.8 / 0.75;
  object-fit: cover;
}

.project-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-three-grid img {
  width: 100%;
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
}

@media (max-width: 820px) {
  .project-three-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.project-banner-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 640px) {
  .page {
    border-left: 0;
    border-right: 0;
  }

  .brand,
  .footer-brand {
    font-size: 1.7rem;
  }

  .nav {
    justify-content: flex-start;
    gap: 12px 18px;
    font-size: 0.8rem;
  }

  .hero-title {
    min-height: 132px;
    padding: 0 16px;
  }

  .hero-copy {
    padding: 24px 18px;
    min-height: 180px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .intro {
    gap: 24px;
  }

  .intro-text {
    gap: 20px;
    font-size: 0.95rem;
  }

  .intro-portrait img {
    width: min(100%, 220px);
  }

  .projects-page-title,
  .about-page-title,
  .contact-page-title,
  .project-detail-title {
    font-size: 2rem;
  }

  .projects-grid,
  .projects-page-grid {
    gap: 20px;
  }

  .project-card h3 {
    font-size: 1.65rem;
  }

  .about-contact .art-grid img {
    aspect-ratio: 1 / 1;
  }

  .contact-submit,
  .btn {
    width: 100%;
    max-width: none;
  }

  .contact-block .btn,
  .about-page .btn {
    width: 100%;
  }

  .footer-main {
    min-height: auto;
  }

  .footer-links {
    gap: 12px;
    padding: 14px 20px 20px;
    font-size: 0.82rem;
  }
}
