/* Uniwear Atelier — Uniform Atelier */

:root {
  --ink: #0c1520;
  --ink-mid: #1a2838;
  --ink-soft: #4a5563;
  --bone: #f3efe6;
  --bone-deep: #e6e0d4;
  --ivory: #faf7f1;
  --brass: #a68b5b;
  --brass-soft: #c4a874;
  --veil: rgba(8, 14, 22, 0.58);
  --line: rgba(12, 21, 32, 0.12);
  --line-light: rgba(243, 239, 230, 0.2);
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 3.5rem);
  color: var(--bone);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.78;
  transition: opacity 0.3s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  display: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 1rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}

.menu-toggle {
  margin-left: auto;
  width: 2rem;
  height: 1.25rem;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 0;
  right: 0;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child {
  top: 0.35rem;
}

.menu-toggle span:last-child {
  top: 0.85rem;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 0.6rem;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 0.6rem;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
}

.mobile-nav-cta {
  margin-top: 1rem;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.35rem;
  color: var(--brass-soft);
}

@media (min-width: 900px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
}

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

.hero-media img {
  transform: scale(1.06);
  transition: transform 8s var(--ease);
}

.hero.is-ready .hero-media img {
  transform: scale(1);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 14, 22, 0.78) 0%, rgba(8, 14, 22, 0.35) 48%, rgba(8, 14, 22, 0.55) 100%),
    linear-gradient(to top, rgba(8, 14, 22, 0.72) 0%, transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(4.5rem, 10vh, 7rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--bone);
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.15rem;
  color: rgba(243, 239, 230, 0.92);
}

.hero-lede {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  font-weight: 300;
  max-width: 28rem;
  opacity: 0.82;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bone);
  color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--brass-soft);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(243, 239, 230, 0.45);
}

.btn-ghost:hover {
  background: rgba(243, 239, 230, 0.1);
  border-color: var(--bone);
  color: var(--bone);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(12, 21, 32, 0.28);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.hero-meta {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(4.5rem, 10vh, 7rem);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  width: 1px;
  height: 2.5rem;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--bone));
  animation: scroll-pulse 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

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

/* ——— Shared ——— */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.lede {
  color: var(--ink-soft);
  max-width: 36rem;
}

.hindi {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ——— House ——— */

.house {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(166, 139, 91, 0.08), transparent 55%),
    var(--ivory);
}

.house-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.house-figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.house-figure img {
  transition: transform 1.2s var(--ease);
}

.house-figure:hover img {
  transform: scale(1.03);
}

@media (min-width: 900px) {
  .house {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
  }
}

/* ——— Lines ——— */

.line {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, var(--bone) 0%, var(--ivory) 100%);
}

.line-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.line-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.line-visual {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.line-visual img {
  transition: transform 1.4s var(--ease);
}

.line-visual:hover img {
  transform: scale(1.025);
}

.line-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.line-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.line-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brass);
  font-style: italic;
  padding-top: 0.15rem;
}

.line-list h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.line-list p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 40rem;
}

@media (min-width: 800px) {
  .line-list {
    grid-template-columns: 1fr 1fr;
    border-top: none;
    gap: 0 3rem;
  }

  .line-list li {
    border-top: 1px solid var(--line);
  }
}

/* ——— Craft ——— */

.craft {
  position: relative;
  color: var(--bone);
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
}

.craft-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(166, 139, 91, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(40, 60, 85, 0.5), transparent 55%),
    linear-gradient(145deg, #0c1520 0%, #201009 48%, #0e1a28 100%);
}

.craft-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.craft .eyebrow {
  color: var(--brass-soft);
}

.craft h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.craft-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.craft-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
}

.craft-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.craft-item p {
  font-size: 0.98rem;
  opacity: 0.75;
  max-width: 28rem;
}

@media (min-width: 800px) {
  .craft-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ——— Visit ——— */

.visit {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(166, 139, 91, 0.07), transparent 50%),
    var(--ivory);
}

.visit-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.15rem;
  max-width: 14ch;
}

.visit-meta {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.visit-meta dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.25rem;
}

.visit-meta dd {
  font-size: 1.05rem;
}

.visit-meta a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.visit-meta a:hover {
  border-bottom-color: currentColor;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.visit-map {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

@media (min-width: 900px) {
  .visit {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 100%;
    height: 100%;
  }
}

/* ——— Footer ——— */

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  justify-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-note {
  font-size: 0.88rem;
  opacity: 0.65;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ——— Reveal ——— */

.reveal-hero,
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-hero.is-in,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-hero:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-hero:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-hero:nth-child(4) {
  transition-delay: 0.32s;
}

.line-list li.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.line-list li.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.line-list li.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.craft-item.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.craft-item.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-hero,
  .reveal,
  .hero-media img,
  .hero-scroll span {
    transition: none !important;
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
