/* ========================================
   DESIGN SYSTEM
   ======================================== */

:root {
  /* Colors */
  --bg:          #050505;
  --bg-elevated: #0c0c0c;
  --surface:     #141414;
  --border:      #1e1e1e;
  --border-hover:#2a2a2a;
  --text:        #f0ece4;
  --text-muted:  #888680;
  --text-dim:    #555350;
  --accent:      #c9a96e;
  --accent-dim:  #9a7d4e;
  --accent-glow: rgba(201, 169, 110, 0.08);

  /* Typography */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    2rem;
  --space-lg:    4rem;
  --space-xl:    8rem;
  --space-2xl:   12rem;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration:    0.6s;
}


/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}

strong {
  font-weight: 600;
  color: var(--text);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}


/* ========================================
   GRAIN OVERLAY
   ======================================== */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ========================================
   CUSTOM CURSOR
   ======================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out),
              height 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out),
              height 0.4s var(--ease-out),
              border-color 0.3s;
}

body.cursor-hover .cursor {
  width: 20px;
  height: 20px;
  background: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.2;
}

body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}


/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  transition: background 0.3s, backdrop-filter 0.3s;
}

@media (min-width: 768px) {
  .nav { padding: var(--space-md) var(--space-lg); }
}

.nav--scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav__links {
  display: none;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  z-index: 200;
}

@media (min-width: 768px) {
  .nav__menu-btn { display: none; }
}

.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__menu-btn.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__menu-btn.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}


/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.3s, transform 0.5s var(--ease-out), opacity 0.5s;
}

.mobile-menu.active .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu__link:hover {
  color: var(--accent);
}


/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ========================================
   SECTION LABEL
   ======================================== */

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 1px;
  background: var(--accent);
}


/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%   { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.hero__label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--text-muted) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ========================================
   ABOUT
   ======================================== */

.about {
  padding: var(--space-2xl) 0;
}

.about__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}


/* ========================================
   ROLES
   ======================================== */

.roles {
  padding: var(--space-2xl) 0;
}

.roles__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.roles__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .roles__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .roles__grid { grid-template-columns: 1fr 1fr 1fr; }
}

.role-card {
  background: var(--bg);
  padding: var(--space-lg);
  transition: background 0.4s var(--ease-out);
  position: relative;
}

.role-card:hover {
  background: var(--surface);
}

.role-card__number {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  font-variant-numeric: tabular-nums;
}

.role-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.role-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}


/* ========================================
   PHILOSOPHY
   ======================================== */

.philosophy {
  padding: var(--space-2xl) 0;
}

.philosophy__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__quote {
  margin-bottom: var(--space-lg);
}

.philosophy__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.philosophy__text {
  text-align: left;
}

.philosophy__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}


/* ========================================
   NOW
   ======================================== */

.now {
  padding: var(--space-2xl) 0;
}

.now__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .now__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.now__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.now__card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  margin-bottom: var(--space-md);
}

.now__card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(201, 169, 110, 0.06);
}

.now__card-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.now__card-brand {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.now__arrow {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.now__card:hover .now__arrow {
  transform: translate(4px, -4px);
}

.now__card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.now__aside {
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
}

.now__aside p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  font-style: italic;
}


/* ========================================
   CONTACT
   ======================================== */

.contact {
  padding: var(--space-2xl) 0;
}

.contact__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.contact__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.contact__note {
  font-size: 0.85rem;
  color: var(--text-dim);
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dim);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}


/* ========================================
   HORIZONTAL RULE / DIVIDERS
   ======================================== */

.about::before,
.roles::before,
.philosophy::before,
.now::before,
.contact::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto var(--space-lg);
}


/* ========================================
   SMOOTH SCROLLBAR (Webkit)
   ======================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
