/* =========================================================
   PRASHA — Architecture Studio
   Light, minimalist, architectural theme
   ========================================================= */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f9f9f9;
  --ink:       #111111;
  --ink-soft:  #555555;
  --ink-mute:  #8a8a8a;
  --line:      #e5e5e5;
  --line-soft: #efefef;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-disp: 'Syne', 'Inter', sans-serif;

  --container: 1280px;
  --gutter: 40px;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 96px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--ink-mute); }
.brand-logo {
  height: 64px;
  width: auto;
  mix-blend-mode: multiply; /* drops the white logo backdrop against the light header */
}

.nav-list { display: flex; gap: 44px; }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 70px;
}
.hero-meta { margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-title em {
  font-style: italic;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink-soft);
}

.hero-foot {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-lead {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.scroll-cue {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.scroll-cue span { transition: transform 0.3s var(--ease); }
.scroll-cue:hover span { transform: translateY(4px); }

/* =========================================================
   Work / Portfolio grid
   ========================================================= */
.work { padding: 40px 0 90px; }

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card — uniform ratio so every row lines up */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}

.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card:hover .card-overlay { opacity: 1; }

.card-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease) 0.05s;
}
.card-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease) 0.1s;
}
.card:hover .card-cat,
.card:hover .card-name { transform: translateY(0); }

/* =========================================================
   Location / Map
   ========================================================= */
.location {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 90px 0;
}
.location-head {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-bottom: 44px;
}

.location-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.location-info {
  display: grid;
  gap: 28px;
  align-content: start;
}
.loc-block h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.loc-block p { color: var(--ink-soft); font-size: 0.95rem; }
.loc-block a { color: var(--ink-soft); transition: color 0.3s var(--ease); }
.loc-block a:hover { color: var(--ink); }

.loc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 0.3s var(--ease);
}
.loc-link span { transition: transform 0.3s var(--ease); }
.loc-link:hover { border-bottom-color: var(--ink); }
.loc-link:hover span { transform: translateX(5px); }

.location-map {
  position: relative;
  height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* desaturated to sit quietly in the monochrome theme; colour returns on hover */
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease);
}
.location-map:hover iframe { filter: grayscale(0) contrast(1); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 70px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { 
  color: var(--ink-soft); 
  margin-top: 12px; 
  font-size: 0.92rem; 
}
.footer-nav, .footer-address, .footer-contact { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
.footer-nav a, .footer-address a, .footer-contact a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover, .footer-address a:hover, .footer-contact a:hover { 
  color: var(--ink);
}
.footer-address h4,
.footer-contact h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 2px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: var(--ink-mute);
  font-size: 0.82rem;
}

/* =========================================================
   Page intro (About / Design)
   ========================================================= */
.page-intro {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 50px;
}
.page-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-top: 20px;
}

/* =========================================================
   About — split layout
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-bottom: 90px;
}
.split-media { 
  border-radius: var(--radius); 
  overflow: hidden; 
}
.split-media img { 
  width: 100%; 
  aspect-ratio: 4/5; 
  object-fit: cover; 
}
.split-body .section-title { 
  margin-bottom: 24px; 
}
.split-body p { 
  color: var(--ink-soft); 
  margin-bottom: 18px; 
  max-width: 48ch; 
}
.values {
  margin-top: 32px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.values li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-weight: 500;
}
.values strong { 
  color: var(--ink-mute); 
  font-weight: 600; 
  font-size: 0.85rem; 
}

/* =========================================================
   Home — "View all" link
   ========================================================= */
.view-all {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-all span { transition: transform 0.3s var(--ease); }
.view-all:hover span { transform: translateX(5px); }

/* =========================================================
   Design page — gallery + lightbox
   ========================================================= */
.page-sub {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.02rem;
}

.gallery-wrap { padding-bottom: 90px; }

/* Masonry via CSS columns */
.gallery {
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 900px) { .gallery { column-count: 2; column-gap: 16px; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }

.g-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: pointer;
}
.g-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.06);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { opacity: 1; }

.g-view {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.g-item:hover .g-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(249,249,249,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lb-figure {
  max-width: min(1100px, 90vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.lb-count { color: var(--ink-mute); font-size: 0.82rem; letter-spacing: 0.1em; }

.lb-close {
  position: absolute;
  top: 24px; right: 30px;
  width: 46px; height: 46px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.lb-close:hover { background: var(--line); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb-nav:hover { background: #fff; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 14px; right: 16px; }
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  :root { --gutter: 30px; }
  .split { gap: 44px; }
  .location-inner { gap: 40px; }
}

@media (max-width: 820px) {
  .nav { position: fixed; inset: 0; pointer-events: none; }
  .nav-list {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--bg);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    pointer-events: auto;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { display: block; padding: 20px 0; font-size: 1.15rem; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; z-index: 120; }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .location { padding: 70px 0; }
  .location-inner { grid-template-columns: 1fr; gap: 36px; }
  .location-map { height: 380px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --header-h: 74px; }
  .brand-logo { height: 50px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; }
  .location-map { height: 300px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
