:root {
  --bg: #efefef;
  --text: #1b1b1b;
  --muted: #656565;
  --line: #d7d7d7;
  --placeholder-top: #f4f4f4;
  --placeholder-bottom: #dfdfdf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lexend Deca", "Lexend", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.has-round-cursor,
body.has-round-cursor a,
body.has-round-cursor button,
body.has-round-cursor input,
body.has-round-cursor textarea,
body.has-round-cursor select,
body.has-round-cursor label {
  cursor: none;
}

.round-cursor {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.round-cursor.is-visible {
  opacity: 1;
}

.round-cursor-dot {
  width: 8px;
  height: 8px;
  background: #ff0000;
  mix-blend-mode: normal;
}

.round-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid #ff0000;
  background: rgba(255, 0, 0, 0.12);
  mix-blend-mode: normal;
}

.round-cursor-dot.is-active {
  width: 11px;
  height: 11px;
  background: #ff0000;
}

.round-cursor-ring.is-active {
  width: 54px;
  height: 54px;
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.2);
}

.round-cursor-dot.is-pressed {
  transform: translate(-50%, -50%) scale(0.85);
}

.round-cursor-ring.is-pressed {
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255, 0, 0, 0.24);
}

body.home-mode .round-cursor-dot {
  background: #ff0000;
  mix-blend-mode: normal;
}

body.home-mode .round-cursor-ring {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.12);
  mix-blend-mode: normal;
}

@media (max-width: 980px) {
  .round-cursor {
    display: none;
  }
}

body.home-mode {
  background: #fff;
  color: #ff0000;
}

body:not(.home-mode) {
  color: #ff0000;
}

body:not(.home-mode) .project-card p,
body:not(.home-mode) .shop-price,
body:not(.home-mode) .project-detail-head p,
body:not(.home-mode) .project-intro-text p,
body:not(.home-mode) .text-column p,
body:not(.home-mode) .text-column li {
  color: #ff0000;
}

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

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 390px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.site-nav .brand {
  margin-bottom: 24px;
  font-size: 38px;
  font-weight: 700;
}

.site-nav a.active {
  opacity: 1;
}

.site-nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a[data-view]:not(.brand) {
  font-size: 28px;
}

.site-nav .secondary-group {
  margin-top: 22px;
}

.mobile-toggle {
  display: none;
}

.content {
  padding: 72px 56px 64px 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-placeholder {
  min-height: calc(100vh - 56px);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--placeholder-top), var(--placeholder-bottom));
  position: relative;
  overflow: hidden;
}

.hero-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay h1 {
  font-size: clamp(42px, 6vw, 88px);
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-overlay p {
  margin: 10px 0;
  font-size: clamp(22px, 2.3vw, 32px);
}

.hero-overlay span {
  color: #dcdcdc;
  font-size: 16px;
}

.home-center {
  --home-title-size: clamp(16px, 2.7vw, 44px);
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ff0000;
  pointer-events: none;
  padding: 24px;
}

.home-center .home-brand {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--home-title-size);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.home-center p {
  margin: 0 0 24px;
  font-size: clamp(12px, 1.5vw, 29px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-center .home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 22px;
  margin-bottom: 28px;
}

.home-center .home-link {
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.home-center .home-link:hover {
  opacity: 0.85;
}

.home-center .home-actions .home-link {
  font-size: calc(var(--home-title-size) * 0.42);
  opacity: 0.95;
  font-weight: 300;
  text-transform: capitalize;
}

.home-center > span {
  font-size: calc(var(--home-title-size) * 0.42);
  font-weight: 300;
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
}

.home-slider {
  width: min(72vw, 1240px);
  aspect-ratio: 3 / 2;
  max-height: 78vh;
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
  contain: layout paint;
  margin: 0 auto;
  border: 0;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: none;
  will-change: opacity;
  z-index: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
}

.home-slide-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.home-slide span {
  display: none;
}

.home-slide:nth-child(1) {
  background: linear-gradient(145deg, #b5b5b5 0%, #8e8e8e 100%);
}

.home-slide:nth-child(2) {
  background: linear-gradient(145deg, #9f9f9f 0%, #6f6f6f 100%);
}

.home-slide:nth-child(3) {
  background: linear-gradient(145deg, #adadad 0%, #7c7c7c 100%);
}

.home-slide:nth-child(4) {
  background: linear-gradient(145deg, #949494 0%, #6a6a6a 100%);
}

.home-slide:nth-child(5) {
  background: linear-gradient(145deg, #a5a5a5 0%, #777777 100%);
}

.home-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-dots {
  display: none;
}

.dot {
  width: 34px;
  height: 2px;
  border: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

body.home-mode .layout {
  display: block;
}

body.home-mode .sidebar {
  display: none;
}

body.home-mode .content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

body.home-mode .view-home {
  display: block;
}

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


.project-card h3 {
  margin: 10px 0 3px;
  font-size: clamp(15px, 1.1vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.view-projects .project-entry-link[data-view="project-architecture"] h3 {
  font-size: clamp(12px, 0.9vw, 21px);
  white-space: nowrap;
}

.project-card p {
  margin: 0;
  color: #3d3d3d;
  font-size: clamp(13px, 1.05vw, 26px);
  line-height: 1.22;
  font-weight: 300;
}

.project-entry-link {
  display: block;
  color: inherit;
}

.project-entry-link:hover .project-media-image {
  transform: scale(1.02);
}

.project-entry-link .project-media-image {
  transition: transform 0.35s ease;
}

.project-detail-head {
  margin: 0 0 26px;
}

.project-detail-head h2 {
  margin: 16px 0 6px;
  font-size: clamp(28px, 3vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.project-detail-head p {
  margin: 0;
  color: #3d3d3d;
  font-size: clamp(14px, 1.1vw, 21px);
}

.project-back-link {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  border-bottom: 1px solid #1f1f1f;
  padding-bottom: 4px;
}

.project-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  margin: 0 0 38px;
}

.project-media-wide {
  aspect-ratio: 1 / 1;
}

.project-intro-text h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 38px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.view-project-detail[data-view="project-architecture"] .project-intro-text h3 {
  font-size: clamp(16px, 2vw, 34px);
  white-space: nowrap;
}

.project-intro-text {
  display: flex;
  flex-direction: column;
}

.view-project-detail[data-view="project-s-society"] .project-intro-text {
  padding-right: clamp(28px, 6vw, 110px);
  gap: 8px;
}

.view-project-detail[data-view="project-s-society"] .project-intro-text p {
  max-width: 42ch;
  line-height: 1.58;
  text-wrap: pretty;
}

.project-intro-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.project-intro-text p {
  margin: 0 0 14px;
  color: #3d3d3d;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.45;
}

.project-intro-location {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-price {
  margin-top: 8px;
  font-weight: 700;
  color: #1e1e1e;
}

.buy-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 0 3px;
  border-bottom: 1px solid #1f1f1f;
  font-size: clamp(13px, 0.95vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-btn:hover {
  opacity: 0.7;
}

.image-placeholder {
  width: 100%;
  background: linear-gradient(160deg, #f6f6f6 0%, #dddddd 100%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 40%;
  transform: rotate(-18deg) translateY(-120%);
  background: rgba(255, 255, 255, 0.35);
  animation: glide 4.8s linear infinite;
}

.image-placeholder span {
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.image-placeholder .slot-number-tag {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #5f5f5f;
}

.project-media {
  aspect-ratio: 1 / 1;
  position: relative;
}

.project-media-picture {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.project-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}

.project-architecture-tone {
  /* Slight color normalization so the series feels consistent. */
  filter: saturate(0.93) contrast(1.03) brightness(1.01) hue-rotate(-3deg);
}

.text-column {
  max-width: 760px;
  padding: 24px 0 64px;
}

.about-layout {
  --about-photo-width: clamp(260px, 32vw, 360px);
  display: grid;
  grid-template-columns: var(--about-photo-width) minmax(0, 620px);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  width: min(100%, 1080px);
  margin: 0 auto;
  justify-content: center;
}

.about-photo {
  margin: 0;
  border: 1px solid var(--line);
  height: calc(var(--about-photo-width) * 1.25);
  overflow: hidden;
  width: var(--about-photo-width);
  justify-self: start;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-column h2 {
  margin: 0 0 26px;
  font-size: clamp(36px, 4.5vw, 72px);
  letter-spacing: -0.03em;
}

.text-column h3 {
  margin: 38px 0 12px;
  font-size: 24px;
}

.text-column p {
  margin: 0 0 20px;
  color: #2a2a2a;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.45;
}

.text-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 24px;
}

.text-column li {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 18px;
}

.view-about.active {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.view-about .text-column {
  --about-text-width: 42ch;
  padding: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  max-width: 560px;
  height: calc(var(--about-photo-width) * 1.25);
}

.view-about .about-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, var(--about-text-width));
}

.view-about .text-column p {
  margin: 0;
  width: 100%;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.72;
  font-weight: 300;
  word-spacing: 0.08em;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}

.view-contact.active {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.view-contact .text-column {
  width: min(100%, 640px);
  max-width: 640px;
  padding: 0;
}

.view-contact .text-column h2 {
  font-size: clamp(18px, 2.25vw, 36px);
}

.view-contact .contact-intro {
  font-size: clamp(9px, 0.775vw, 12px);
  margin-bottom: 16px;
}

.contact-form {
  max-width: 640px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.contact-form label {
  display: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #1f1f1f;
  background: transparent;
  padding: 10px 0 8px;
  font: inherit;
  font-size: 16px;
  color: #1f1f1f;
  border-radius: 0;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #000;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form button {
  margin: 10px auto 0;
  width: fit-content;
  border: 0;
  border-bottom: 1px solid #1f1f1f;
  background: transparent;
  color: #1f1f1f;
  padding: 6px 2px 4px;
  font: inherit;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.7;
}

@keyframes glide {
  0% {
    transform: rotate(-18deg) translate(-75%, -130%);
  }
  100% {
    transform: rotate(-18deg) translate(75%, 220%);
  }
}

@media (max-width: 980px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 14px 16px 8px;
    background: rgba(239, 239, 239, 0.97);
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }

  .site-nav {
    display: flex;
    gap: 6px;
    font-size: 22px;
    line-height: 1.1;
    padding-bottom: 8px;
  }

  .site-nav .brand {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .site-nav a[data-view]:not(.brand) {
    font-size: 22px;
  }

  .site-nav .secondary-group {
    margin-top: 12px;
  }

  .content {
    padding: 16px 16px 38px;
  }

  .hero-placeholder {
    min-height: 64vh;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-intro-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .project-card h3 {
    margin-top: 9px;
    font-size: 17px;
  }

  .view-projects .project-entry-link[data-view="project-architecture"] h3 {
    font-size: 14px;
  }

  .project-card p {
    font-size: 13px;
    line-height: 1.3;
  }

  .project-intro-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .view-project-detail[data-view="project-architecture"] .project-intro-text h3 {
    font-size: 16px;
  }

  .project-intro-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .project-intro-head {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .project-intro-location {
    font-size: 11px;
  }

  .text-column ul {
    columns: 1;
  }

  .text-column h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 44px);
  }

  .text-column p {
    font-size: 16px;
    line-height: 1.55;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-photo {
    margin-top: 0;
    max-width: 560px;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .view-about .text-column {
    max-width: 560px;
    width: 100%;
    padding: 0;
    height: auto;
  }

  .view-about .about-copy {
    height: auto;
    gap: 12px;
  }

  .home-center .home-actions {
    gap: 12px;
    margin-bottom: 18px;
  }

  .home-center .home-actions .home-link {
    font-size: 16px;
  }

  body.home-mode .slide-dots {
    right: 16px;
    bottom: 18px;
  }

  .home-center > span {
    font-size: 13px;
    bottom: 18px;
  }

  .home-slider {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 74vh;
  }

}
