:root {
  --bg: #0e0d0b;
  --bg-2: #151411;
  --bg-3: #1b1a16;
  --text: #eee9df;
  --muted: rgba(238, 233, 223, .6);
  --line: rgba(238, 233, 223, .12);
  --gold: #e6b36d;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 1rem/1.75 var(--body); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.kicker {
  margin: 0 0 18px; font: 500 .72rem/1 var(--body); letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.head .kicker { order: 2; margin: 0 0 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px; border-radius: 999px;
  background: var(--gold); color: var(--bg);
  font: 500 .82rem/1 var(--body); letter-spacing: .04em;
  transition: background .3s, transform .3s var(--ease);
}
.btn::after { content: "↓"; }
.btn:hover { background: var(--text); transform: translateY(-2px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(24px, 4vw, 48px);
  transition: background .4s, padding .4s;
}
.nav.is-scrolled { padding-block: 14px; }
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(14, 13, 11, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 400;
  transition: background .3s, color .3s;
}
.nav__links a:hover { background: rgba(238, 233, 223, .08); }
.nav__cta { border: 1px solid var(--gold); color: var(--gold); margin-left: 10px; }
.nav__cta:hover { background: var(--gold) !important; color: var(--bg); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; position: relative; cursor: pointer; z-index: 60; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span { top: 21px; }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 11,.55) 0%, rgba(14, 13, 11,.1) 35%, rgba(14, 13, 11,.55) 65%, rgba(14, 13, 11,.95) 100%);
}
.hero__content { position: relative; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 7.4rem); font-weight: 200; }
.hero h1 span { color: var(--gold); }
.hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
.hero__lead { max-width: 440px; margin: 0; color: rgba(238,233,223,.82); }
.hero__meta {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding: 22px 0 30px; border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 42px; height: 2px; padding: 0; border: 0; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.hero__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: dotFill 6s linear forwards; transform-origin: left; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Project index cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__meta { display: flex; justify-content: space-between; margin: 20px 0 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__meta span:first-child { color: var(--gold); }
.card h3 { font-size: 1.5rem; font-weight: 300; transition: color .3s; }
.card:hover h3 { color: var(--gold); }

/* Project detail */
.project { border-top: 1px solid var(--line); }
.project--alt { background: var(--bg-2); }
.project__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.project--flip .project__grid { grid-template-columns: 1.25fr 1fr; }
.project--flip .project__text { order: 2; }
.project__num { display: block; font-family: var(--display); font-weight: 200; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--gold); margin-bottom: 24px; }
.project__text h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 24px; }
.project__info p { margin: 0 0 28px; color: var(--muted); font-size: .95rem; }
.view-all {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--gold); background: none;
  color: var(--gold); font-size: .84rem; cursor: pointer; transition: background .3s, color .3s;
}
.view-all::after { content: "→"; transition: transform .3s var(--ease); }
.view-all:hover { background: var(--gold); color: var(--bg); }
.view-all:hover::after { transform: translateX(4px); }

/* Mosaic: one large + three small tiles */
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 10px; height: clamp(360px, 38vw, 520px); }
.mosaic button { position: relative; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.mosaic button:first-child { grid-row: 1 / -1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.mosaic button:hover img { transform: scale(1.05); }
.mosaic__more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 13, 11, .6); font-family: var(--display); font-size: 1.6rem; font-weight: 300;
  transition: background .3s;
}
.mosaic button:hover .mosaic__more { background: rgba(14, 13, 11, .4); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Arrows + thumbnail strip (fullscreen viewer) */
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14, 13, 11, .55); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: background .3s, transform .3s var(--ease);
}
.arrow::before { content: ""; width: 10px; height: 10px; border: solid var(--text); border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); margin-left: 4px; }
.arrow--next::before { transform: rotate(-135deg); margin: 0 4px 0 0; }
.arrow--prev { left: 18px; }
.arrow--next { right: 18px; }
.arrow:hover { background: var(--gold); }
.arrow:hover::before { border-color: var(--bg); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button {
  flex: 0 0 auto; width: 120px; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 4px;
  overflow: hidden; cursor: pointer; opacity: .45; outline: 1.5px solid transparent; outline-offset: -1.5px;
  transition: opacity .3s, outline-color .3s; background: var(--bg-3);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: .8; }
.thumbs button.is-active { opacity: 1; outline-color: var(--gold); }

/* About statement */
.about { background: var(--bg-2); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__img-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.about__img-small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; border: 8px solid var(--bg-2); box-sizing: content-box;
}
.about__statement { margin: 0 0 28px; font-family: var(--display); font-weight: 200; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; letter-spacing: -.01em; }
.about__statement span { color: var(--gold); }
.about__text { margin: 0 0 36px; color: var(--muted); max-width: 520px; }
.about__list { list-style: none; margin: 0; padding: 0; }
.about__list li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.15rem; font-weight: 300; }
.about__list li:last-child { border-bottom: 1px solid var(--line); }
.about__list span { font-family: var(--body); font-size: .74rem; color: var(--gold); letter-spacing: .1em; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 32px 28px 36px; background: var(--bg-2); border-radius: 8px; border: 1px solid var(--line); }
.steps span { font-size: .78rem; color: var(--gold); letter-spacing: .1em; }
.steps h3 { font-size: 1.6rem; margin: 40px 0 12px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { padding: clamp(100px, 14vw, 180px) 0; background: radial-gradient(ellipse at 50% 120%, var(--bg-3), var(--bg) 70%); text-align: center; border-top: 1px solid var(--line); }
.contact .kicker { margin-bottom: 24px; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 200; }
.contact__lead { color: var(--muted); margin: 24px auto 40px; max-width: 460px; }
.contact__email {
  display: inline-block; font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .3s;
}
.contact__email:hover { color: var(--text); }
.contact__loc { margin: 32px 0 0; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { height: 30px; width: auto; }
.footer p { margin: 0; }

/* Fullscreen viewer */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: #080706;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__top { display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 3vw, 32px); font-size: .82rem; }
.viewer__title { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__count { letter-spacing: .14em; }
.viewer__close { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: .78rem; letter-spacing: .1em; transition: border-color .3s, color .3s; }
.viewer__close:hover { border-color: var(--gold); color: var(--gold); }
.viewer__stage { position: relative; min-height: 0; touch-action: pan-y; }
.viewer__stage img {
  position: absolute; inset: 0 clamp(0px, 6vw, 96px); width: calc(100% - 2 * clamp(0px, 6vw, 96px)); height: 100%;
  object-fit: contain; transition: opacity .3s;
}
.viewer__stage img.is-fading { opacity: 0; }
.viewer__thumbs { padding: 14px clamp(16px, 3vw, 32px) 20px; margin: 0; }
.viewer__thumbs button:first-child { margin-left: auto; }
.viewer__thumbs button:last-child { margin-right: auto; }
.viewer__thumbs button { width: 92px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4) { transition-delay: .3s; }

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

@media (max-width: 1000px) {
  .project__grid, .project--flip .project__grid { grid-template-columns: 1fr; }
  .project--flip .project__text { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 12px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.3rem; font-family: var(--display); }
  .nav__cta { margin: 12px 0 0; }
  .nav__logo { position: relative; z-index: 60; }
  .nav__logo img { height: 28px; }
  .head .kicker { order: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(14, 13, 11,.6) 0%, rgba(14, 13, 11,.35) 30%, rgba(14, 13, 11,.7) 60%, rgba(14, 13, 11,.95) 100%); }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card__img { aspect-ratio: 4 / 3; }
  .mosaic { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 2fr 1fr; height: 380px; }
  .mosaic button:first-child { grid-row: auto; grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 20px; }
  .viewer__stage .arrow { display: none; }
  .viewer__thumbs button { width: 70px; }
  .footer__inner { justify-content: center; }
}
