/* ============================================================
   DESIGN SYSTEM — niranjanbabu.com (March 2026)
   Quiet Luxury · Mobile-First · WCAG 3.0
   Inspired by Loro Piana, Hermès, The Row, Brunello Cucinelli
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* ── Typography ── */
  --font-heading: 'Cinzel', 'Noto Serif', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --fs-hero: clamp(2.2rem, 5vw, 4rem);
  --fs-h1: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 2.5vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-nav: clamp(0.7rem, 0.9vw, 0.85rem);

  --lh-heading: 1.25;
  --lh-body: 1.75;

  --ls-heading: 0.12em;
  --ls-nav: 0.2em;

  /* ── Spacing (Golden Ratio: 1.618) ── */
  --space-xs: 0.382rem;
  /* ~6px */
  --space-s: 0.618rem;
  /* ~10px */
  --space-m: 1rem;
  /* 16px */
  --space-l: 1.618rem;
  /* ~26px */
  --space-xl: 2.618rem;
  /* ~42px */
  --space-2xl: 4.236rem;
  /* ~68px */
  --space-3xl: 6.854rem;
  /* ~110px */

  /* ── Layout ── */
  --max-width: 1200px;
  --border-radius: 2px;

  /* ── Transitions ── */
  --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 200ms;
  --duration-mid: 400ms;
  --duration-slow: 700ms;
}

/* ---------- Light Theme (Default) ---------- */
:root,
[data-theme="light"] {
  --clr-bg: #F5F0EB;
  /* aged parchment ivory */
  --clr-bg-alt: #EDE7E0;
  /* warm card background */
  --clr-surface: #FDFAF7;
  /* elevated surface */
  --clr-text: #2C2825;
  /* rich, warm dark brown */
  --clr-text-muted: #6B645C;
  /* Hermès Étoupe */
  --clr-heading: #1B1917;
  /* near-black, warm */
  --clr-accent: #B8955A;
  /* brushed champagne gold */
  --clr-accent-hover: #9E7E4A;
  /* darker gold on hover */
  --clr-border: #D8D0C6;
  /* subtle warm border */
  --clr-nav-bg: rgba(245, 240, 235, 0.92);
  --clr-overlay: rgba(27, 25, 23, 0.6);

  --noise-opacity: 0.03;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --clr-bg: #111318;
  /* midnight navy */
  --clr-bg-alt: #181B22;
  /* elevated dark surface */
  --clr-surface: #1E2129;
  /* card background */
  --clr-text: #D5CFC8;
  /* warm parchment text */
  --clr-text-muted: #8A837A;
  /* muted Étoupe */
  --clr-heading: #F0ECE6;
  /* warm ivory headings */
  --clr-accent: #C9A96E;
  /* warm brass */
  --clr-accent-hover: #DFC08A;
  /* lighter brass on hover */
  --clr-border: #2E3038;
  /* subtle dark border */
  --clr-nav-bg: rgba(17, 19, 24, 0.95);
  --clr-overlay: rgba(0, 0, 0, 0.7);

  --noise-opacity: 0.02;
}

/* ---------- Palette: Étoupe (Hermès Warm Grey-Brown) ---------- */
[data-palette="etoupe"][data-theme="light"] {
  --clr-bg: #E8E0D6;
  /* warm stone */
  --clr-bg-alt: #DED5CA;
  /* deeper taupe card */
  --clr-surface: #F0EAE2;
  /* elevated parchment */
  --clr-text: #3A3530;
  /* dark earth */
  --clr-text-muted: #7A7068;
  /* grey-brown, Étoupe proper */
  --clr-heading: #2A2522;
  /* near-black umber */
  --clr-accent: #9E7E4A;
  /* matte brass */
  --clr-accent-hover: #856A3C;
  /* antique brass */
  --clr-border: #C8BEB2;
  /* warm stone border */
  --clr-nav-bg: rgba(232, 224, 214, 0.94);
  --clr-overlay: rgba(42, 37, 34, 0.6);
  --noise-opacity: 0.04;
}

[data-palette="etoupe"][data-theme="dark"] {
  --clr-bg: #1A1714;
  /* deep espresso */
  --clr-bg-alt: #22201B;
  /* warm charcoal */
  --clr-surface: #2A2620;
  /* dark umber card */
  --clr-text: #CBC4BA;
  /* warm bone */
  --clr-text-muted: #8A8077;
  /* muted Étoupe */
  --clr-heading: #EDE7DD;
  /* aged linen */
  --clr-accent: #B89050;
  /* brushed brass */
  --clr-accent-hover: #D0A86A;
  /* polished brass */
  --clr-border: #38332C;
  /* dark umber border */
  --clr-nav-bg: rgba(26, 23, 20, 0.95);
  --clr-overlay: rgba(0, 0, 0, 0.7);
  --noise-opacity: 0.03;
}

/* ---------- Palette: Midnight (Deep Navy + Silver Champagne) ---------- */
[data-palette="midnight"][data-theme="light"] {
  --clr-bg: #ECEEF2;
  /* cool pearl grey */
  --clr-bg-alt: #E2E5EB;
  /* steel mist card */
  --clr-surface: #F4F5F8;
  /* crisp elevated surface */
  --clr-text: #1E2432;
  /* deep navy text */
  --clr-text-muted: #5A6376;
  /* slate */
  --clr-heading: #0F1520;
  /* near-black navy */
  --clr-accent: #7A8BA0;
  /* silver-steel */
  --clr-accent-hover: #5E6F86;
  /* darker steel */
  --clr-border: #C8CDD6;
  /* cool grey border */
  --clr-nav-bg: rgba(236, 238, 242, 0.94);
  --clr-overlay: rgba(15, 21, 32, 0.6);
  --noise-opacity: 0.02;
}

[data-palette="midnight"][data-theme="dark"] {
  --clr-bg: #0C1019;
  /* true midnight */
  --clr-bg-alt: #131825;
  /* navy surface */
  --clr-surface: #1A2030;
  /* deep navy card */
  --clr-text: #C5CAD4;
  /* cool parchment */
  --clr-text-muted: #6E778A;
  /* slate muted */
  --clr-heading: #E4E8F0;
  /* icy ivory */
  --clr-accent: #8A9BB2;
  /* moon silver */
  --clr-accent-hover: #A6B5CA;
  /* bright silver */
  --clr-border: #252D3E;
  /* dark navy border */
  --clr-nav-bg: rgba(12, 16, 25, 0.96);
  --clr-overlay: rgba(0, 0, 0, 0.75);
  --noise-opacity: 0.02;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  transition: background-color var(--duration-mid) var(--ease-luxury),
    color var(--duration-mid) var(--ease-luxury);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Tactile Texture (Subtle Grain Overlay) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--clr-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: 400;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  max-width: 65ch;
  margin-bottom: var(--space-l);
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-luxury);
}

a:hover,
a:focus-visible {
  color: var(--clr-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--border-radius);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-l);
}

.section {
  padding-block: var(--space-3xl);
}

.section--narrow {
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--clr-accent);
  border: none;
  margin: var(--space-xl) auto;
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  padding: var(--space-s) var(--space-xl);
  border: 1px solid var(--clr-accent);
  color: var(--clr-accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-mid) var(--ease-luxury);
  border-radius: var(--border-radius);
}

.btn:hover,
.btn:focus-visible {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

.btn--filled {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

.btn--filled:hover,
.btn--filled:focus-visible {
  background: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
}

/* ---------- Cards ---------- */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  transition: box-shadow var(--duration-mid) var(--ease-luxury),
    transform var(--duration-mid) var(--ease-luxury);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--clr-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: background-color var(--duration-mid) var(--ease-luxury),
    border-color var(--duration-mid) var(--ease-luxury);
}

.site-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-m) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-heading);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: none;
}

.site-nav--open {
  display: flex;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  font-weight: 400;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-luxury);
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--duration-mid) var(--ease-luxury);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--clr-heading);
}

/* Mobile hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-heading);
  transition: all var(--duration-mid) var(--ease-luxury);
  transform-origin: center;
}

/* Hamburger → X animation when nav is open */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-luxury);
}

.theme-toggle:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-2xl);
  text-align: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
}

.site-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-l);
  margin-bottom: var(--space-l);
}

.site-footer__link {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.site-footer__link:hover {
  color: var(--clr-accent);
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-luxury),
    transform var(--duration-slow) var(--ease-luxury);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.reveal:nth-child(4) {
  transition-delay: 240ms;
}

.reveal:nth-child(5) {
  transition-delay: 320ms;
}

.reveal:nth-child(6) {
  transition-delay: 400ms;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-l);
  position: relative;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-l);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 400;
  max-width: 14ch;
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  max-width: 48ch;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-2xl);
  font-weight: 300;
}

/* ---------- Blockquote (Testimonials) ---------- */
.testimonial {
  border-left: 2px solid var(--clr-accent);
  padding-left: var(--space-xl);
  margin-block: var(--space-xl);
  font-style: italic;
  color: var(--clr-text-muted);
  max-width: 55ch;
}

.testimonial__author {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-heading);
  color: var(--clr-heading);
  margin-top: var(--space-m);
}

/* ---------- Responsive: Desktop ---------- */
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav__list {
    flex-direction: row;
  }
}

/* Mobile / Tablet nav overlay */
@media (max-width: 1023px) {

  /* Expand header to cover the full viewport when nav is open */
  .site-header--nav-open {
    bottom: 0;
  }

  .site-nav--open {
    position: absolute;
    inset: 0;
    background: var(--clr-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav--open .site-nav__list {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .site-nav--open .site-nav__link {
    font-size: var(--fs-h3);
  }
}

/* ---------- Mobile Spacing Overrides ---------- */
@media (max-width: 767px) {
  :root {
    --space-xl: 1.618rem;
    /* 42px → 26px */
    --space-2xl: 2.618rem;
    /* 68px → 42px */
    --space-3xl: 4.236rem;
    /* 110px → 68px */
  }

  .hero {
    min-height: 85vh;
    padding: var(--space-2xl) var(--space-m);
  }

  .hero__title {
    max-width: 18ch;
  }

  .hero__subtitle {
    margin-bottom: var(--space-xl);
  }
}

/* Ensure hamburger stays above overlay when open */
.menu-toggle {
  z-index: 1002;
  position: relative;
}

/* ---------- Image Components ---------- */
.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-inline: auto;
  display: block;
}

.portrait--large {
  width: 240px;
  height: 240px;
}

.portrait--hero {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-xl);
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.featured-image {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--clr-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: block;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-gallery__item {
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--duration-mid) var(--ease-luxury),
    transform var(--duration-mid) var(--ease-luxury);
}

.photo-gallery__item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.photo-gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.photo-gallery__item:hover img {
  transform: scale(1.03);
}

.photo-gallery__caption {
  padding: var(--space-s) var(--space-m);
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  text-align: center;
  background: var(--clr-surface);
}

.image-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .image-aside {
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .image-aside--reverse {
    flex-direction: row-reverse;
  }

  .image-aside__img {
    flex: 0 0 280px;
  }

  .image-aside__content {
    flex: 1;
  }
}

.image-aside__img img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--border-radius);
  border: 1px solid var(--clr-border);
  display: block;
  margin-inline: auto;
}

/* ---------- Print ---------- */
@media print {
  body::after {
    display: none;
  }

  .site-header,
  .theme-toggle,
  .menu-toggle {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}