:root {
  --ink: #151512;
  --muted: #6f6b62;
  --paper: #f7f4ee;
  --soft: #e8e1d6;
  --line: rgba(21, 21, 18, 0.14);
  --charcoal: #242420;
  --gold: #b9945c;
  --terracotta: #8e5f48;
  --white: #fffaf2;
  --shadow: 0 28px 90px rgba(20, 18, 14, 0.22);
}

/* Hide scrollbar but keep scroll functionality */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

*, *::before, *::after {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  background: conic-gradient(
    from 0deg,
    #ffffff,
    #b8b8b8,
    #ffffff,
    #d4d4d4,
    #ffffff
  );
  transition: width 0.25s ease, height 0.25s ease, transform 0.1s ease-out;
  animation: rotate-chrome 3s linear infinite;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #000;
}

@keyframes rotate-chrome {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.custom-cursor.hover-active {
  width: 52px;
  height: 52px;
  animation: rotate-chrome 1s linear infinite, pulse-glow 1.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.5); }
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(rgba(18, 18, 15, 0.74), rgba(18, 18, 15, 0.2), transparent);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark,
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.brand-mark i {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav a,
.site-footer nav a {
  position: relative;
  padding: 8px 0;
}

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

.desktop-nav a:hover::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 76px;
  right: 14px;
  left: 14px;
  z-index: 19;
  display: none;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 16px 18px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: #141410;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 14, 11, 0.86), rgba(15, 14, 11, 0.38), rgba(15, 14, 11, 0.18)),
    url("/images/hero.png") center / cover;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 30%;
  content: "";
  background: linear-gradient(transparent, var(--paper));
}

.hero-content {
  align-self: end;
  width: min(780px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 92px) 14vh;
}

.eyebrow,
.section-kicker,
.project-card span,
.detail-list span {
  display: block;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 10.4vw, 9.8rem);
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.contact-form .button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button.ghost {
  color: var(--white);
}

.hero-stat {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 54px;
  width: min(330px, calc(100% - 36px));
  padding-top: 18px;
  border-top: 1px solid rgba(255, 250, 242, 0.42);
}

.hero-stat span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.04;
}

.section {
  padding: clamp(70px, 11vw, 140px) clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding-top: 40px;
}

.intro-copy {
  max-width: 1040px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 5.1rem);
  line-height: 1.02;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(28px, 5vw, 60px);
}

.section-heading h2 {
  max-width: 950px;
  font-size: clamp(2.1rem, 5vw, 5rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.82);
  transition: transform 700ms ease, opacity 300ms ease, filter 300ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 30%, rgba(10, 10, 8, 0.82));
}

.project-card div {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 1;
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.project-card p {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.75);
}

.project-card:hover img,
.project-card:focus-visible img {
  opacity: 0.95;
  filter: saturate(1);
  transform: scale(1.06);
}

.process-section {
  background: var(--charcoal);
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 250, 242, 0.16);
}

.process-step {
  min-height: 330px;
  padding: clamp(24px, 4vw, 46px);
  background: var(--charcoal);
}

.process-step span {
  display: block;
  margin-bottom: 76px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
}

.process-step h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.process-step p {
  color: rgba(255, 250, 242, 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 0.56fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.contact-details h2 {
  max-width: 720px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.detail-list {
  display: grid;
  gap: 20px;
  max-width: 520px;
  margin-top: 42px;
}

.detail-list p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.detail-list a {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(20, 18, 14, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--terracotta);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 42px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: #11110f;
}

.footer-logo {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.9;
}

.site-footer p {
  justify-self: end;
  max-width: 290px;
  margin: 0;
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.92rem;
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 10, 0.72);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms ease;
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.modal-title {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.modal-meta p {
  margin: 0;
  padding: 18px;
  background: var(--paper);
  color: var(--muted);
}

.modal-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-story {
  padding: clamp(24px, 5vw, 58px);
}

.case-story img,
.case-story video {
  width: 100%;
  margin: 28px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #191814;
}

.case-story h3 {
  margin-top: 26px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.case-story p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

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

  .project-card {
    min-height: 460px;
  }

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

  .site-footer p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 14, 11, 0.72), rgba(15, 14, 11, 0.58), rgba(15, 14, 11, 0.44)),
      linear-gradient(90deg, rgba(15, 14, 11, 0.72), rgba(15, 14, 11, 0.26)),
      url("/images/hero.png") center / cover;
  }

  .hero::after {
    height: 18%;
  }

  .hero-content {
    margin-bottom: 22vh;
  }

  .hero-stat {
    right: 18px;
    bottom: 28px;
    left: 18px;
    padding: 16px;
    background: rgba(20, 18, 14, 0.64);
    border: 1px solid rgba(255, 250, 242, 0.24);
  }

  .intro,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .process-step {
    min-height: auto;
  }

  .process-step span {
    margin-bottom: 34px;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    gap: 6px;
    font-size: 0.9rem;
  }

  .brand-mark i {
    width: 10px;
  }

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

  .project-card {
    min-height: 390px;
  }

  .hero-actions,
  .site-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}