/* 1. CUSTOM PROPERTIES & TOKENS */
:root {
  --white: #fff;
  --black: #0a0a0a;
  --grey: #767676;
  --light: #f5f5f5;
  --serif: 'Instrument Serif', serif;
  --sans: 'Poppins', sans-serif;
  --nav-h: 64px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. PROPERTY REGISTRATIONS */
@property --dot { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --rule { syntax: '<number>'; inherits: false; initial-value: 1; }

/* 3. RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul { list-style: none; }

/* Spacing Utilities */
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Accessibility Utilities */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: .85rem;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

/* 4. FILM GRAIN OVERLAY */
#grain-overlay {
  position: fixed;
  inset: -50px;
  z-index: 300;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  animation: grainShift .9s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-32px, 18px); }
  100% { transform: translate(18px, -26px); }
}

/* 5. CUSTOM CURSOR — see cursor.css, loaded by every page ahead of this
   one. It is a separate sheet because the mark is site-wide and index.html
   does not load shared.css. */

/* 6. NAV */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  z-index: 200;
  transition: mix-blend-mode .3s, transform .55s var(--ease-out-expo),
              background .35s ease, box-shadow .35s ease;
}
/* Auto-hide while scrolling down; restored the moment the reader scrolls up. */
#nav.nav-hidden {
  transform: translateY(-102%);
}
@media (prefers-reduced-motion: reduce) {
  #nav { transition: background .35s ease, box-shadow .35s ease; }
  #nav.nav-hidden { transform: none; }
}
#nav-logo {
  display: flex;
  align-items: center;
}
#nav-logo img {
  height: 32px;
  filter: brightness(0);
  transition: filter .4s;
}
#nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
#nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  transition: opacity .3s;
  padding: 12px 8px; /* Touch targets */
  margin: -12px -8px; /* Offset padding */
}
#nav-links a:hover {
  opacity: 1;
}

/* Smart Nav States */
#nav.nav-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#nav.nav-dark #nav-logo img {
  filter: brightness(0) invert(1);
}
#nav.nav-dark #nav-links a {
  color: #fff;
}
#nav.nav-dark #menu-btn span {
  background: #fff;
}
#nav.nav-scrolled.nav-dark {
  background: rgba(10,10,10,0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* 7. MOBILE MENU OVERLAY */
#menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px 0 10px 10px;
}
#menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform .4s var(--ease-out-expo), background .3s;
}
#menu-btn.open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
  background: #fff;
}
#menu-btn.open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
  background: #fff;
}
#menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 195;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
#menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#menu-overlay a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  opacity: 0;
}
#menu-overlay .menu-foot {
  position: absolute;
  bottom: 34px;
  left: 36px;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

/* 8. SECTION BUILDING BLOCKS */
.s-block {
  padding: 96px 48px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.s-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.s-eyebrow {
  display: inline-block;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
  opacity: 0;
}
.s-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 24px;
}
.s-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 32px;
}
.s-body {
  max-width: 560px;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--grey);
  font-weight: 300;
}
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.3;
}
.word-inner {
  display: inline-block;
  will-change: transform;
}

/* 9. SPLIT LAYOUTS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-reverse .split-media { order: 1; }
.split-reverse .split-text { order: 2; }
.split-text .s-heading { margin-bottom: 24px; }
.split-media { position: relative; margin: 0; }
.split-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.split-media figcaption {
  margin-top: 14px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 10. FEATURE LIST */
.feature-list {
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-size: .86rem;
  font-weight: 300;
  color: var(--black);
  transition: padding-left .4s var(--ease-out-expo), color .3s;
}
.feature-list li span {
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--grey);
  min-width: 20px;
}
.feature-list li:hover {
  padding-left: 12px;
  color: #000;
}

/* 11. IMAGE REVEAL */
.img-reveal {
  overflow: hidden;
  border-radius: 4px;
  will-change: clip-path;
}
.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* 12. STATS BLOCK */
.stats-block {
  min-height: 0;
  display: block;
  padding: 120px 48px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1;
  font-weight: 400;
}
.stat-lbl {
  display: block;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 12px;
  font-weight: 400;
}

/* 13. MARQUEE */
.marquee-wrap {
  overflow: hidden;
  padding: 48px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-text {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  opacity: .08;
  padding: 0 8px;
}

/* 14. PARALLAX SECTION */
.parallax-section {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  height: 80vh;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
}
.parallax-img {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  will-change: transform;
}
.parallax-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parallax-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .44));
}
.parallax-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  will-change: transform;
}
.p-label {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 26px;
}
.p-quote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1.3;
  max-width: 900px;
}
.p-credit {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 28px;
}

/* 15. CONTACT BLOCK — removed.
   The contact section and the footer are one block now, `footer.close`,
   styled by close.css and shared by all four pages. What used to live here
   (.contact-block, .contact-heading, .contact-mail/.cm-text/.cm-line,
   .contact-arch, .contact-details, .c-lbl) has no markup left to style.
   .magnetic-btn is unrelated and stays. */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  border: 1px solid var(--black);
  border-radius: 100px;
  text-decoration: none;
  color: var(--black);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .4s, color .4s;
  will-change: transform;
  margin-bottom: 80px;
}
.magnetic-btn:hover {
  background: var(--black);
  color: var(--white);
}
.magnetic-btn span {
  display: inline-block;
  will-change: transform;
}

/* 16. FOOTER — see close.css. The element-level rules that used to live here
   (flex row, 1200px cap, 60/48 padding, .footer-logo, .footer-links) styled a
   footer that no longer exists in any page's markup. */

/* 17. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1180px) {
  /* add any 1180 specific shared properties if they existed. */
}

@media (max-width: 1024px) {
  #nav { padding: 0 28px; }
  .s-block { padding: 110px 28px; }
  .split { gap: 36px; }
}

@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  #nav-links a { display: none; }
  #menu-btn { display: flex; }
  .s-block { padding: 90px 20px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-media { order: 2; }
  .split-reverse .split-text { order: 1; }
  .split-media img { aspect-ratio: 3/2; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .parallax-section { width: calc(100% - 32px); height: 60vh; border-radius: 12px; }
}

@media (max-width: 480px) {
  #nav-links { gap: 20px; }
  #nav-links a { font-size: .68rem; }
  .s-block { padding: 76px 16px; }
  .stats-row { gap: 18px; }
  .split-media figcaption { font-size: .6rem; }
}

/* 18. PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  #grain-overlay { animation: none; }
}

/* 19. NEW: LARGE SCREEN BREAKPOINTS
   The close sets its own width cap and padding — see close.css — so it is
   deliberately absent from these. */
@media (min-width: 1440px) {
  .s-inner { max-width: 1400px; }
  .s-block { padding: 120px 48px; }
  .split { gap: 120px; }
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
  .s-inner { max-width: 1600px; }
  .s-block { padding: 140px 64px; }
  #nav { padding: 0 64px; height: 80px; }
}

@media (min-width: 2560px) {
  html { font-size: 20px; }
  .s-inner { max-width: 1800px; }
}

/* 20. PAGE TRANSITION UTILITY */
.page-enter {
  animation: pageEnter 1s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
