/* ============================================
   MINERAL STUDIO — modern minimal white
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --ink: #1d1d1b;
  --ink-soft: #65635f;
  --line: #e8e6e1;
  --accent: #1d1d1b;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 10rem);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em { font-style: italic; font-weight: 400; color: var(--ink-soft); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 1.5rem;
  font-weight: 300;
}

p { color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; font-weight: 300; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--sans);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink);
}
.num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  color: var(--ink-soft); font-size: 1em; letter-spacing: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__logo img { height: 22px; width: auto; transition: filter .3s var(--ease); }
.nav:not(.is-scrolled) .nav__logo img { filter: invert(1); }
.nav__menu { display: flex; gap: 2.25rem; }
.nav__menu a {
  font-size: .85rem; font-weight: 500;
  letter-spacing: .05em; position: relative;
  color: var(--ink); transition: opacity .3s var(--ease);
}
.nav:not(.is-scrolled) .nav__menu a { color: #fff; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: currentColor;
  transition: width .3s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav__toggle span {
  display: block; width: 24px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav:not(.is-scrolled) .nav__toggle span { background: #fff; }

/* ---------- HERO (video only) ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- INTRO (text below video) ---------- */
.intro {
  background: var(--bg);
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  text-align: center;
}
.intro .container {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1100px;
}
.hero__eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .35em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.75rem;
}
.intro__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.75rem, 10vw, 8rem);
  line-height: .95; letter-spacing: -0.03em;
  color: var(--ink);
  display: flex; flex-direction: column; gap: .12em;
}
.intro__title em { font-style: italic; font-weight: 400; color: var(--ink-soft); }
.intro__sub {
  margin: 2.25rem auto 0; max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300; line-height: 1.55; color: var(--ink-soft);
}
.intro__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .75rem;
  margin-top: 3rem; font-size: .7rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .3s;
}
.intro__scroll:hover { color: var(--ink); }
.intro__scroll svg { animation: bounce 2s var(--ease) infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- MANIFESTO ---------- */
.manifesto { padding: var(--section-y) 0; }
.manifesto__grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  align-items: start;
}
.manifesto__label {
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .25em;
  text-transform: uppercase; color: var(--ink);
  padding-top: .8rem; border-top: 1px solid var(--ink);
}
.manifesto__label .num {
  font-size: 2.5rem; letter-spacing: 0; text-transform: none;
}

/* ---------- ABOUT ---------- */
.about { padding: var(--section-y) 0; background: var(--bg-soft); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.about__media figcaption {
  margin-top: 1rem; font-size: .8rem; color: var(--ink-soft);
  letter-spacing: .05em; font-style: italic;
}
.about__copy .eyebrow { margin-bottom: 1.5rem; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.about__stats li {
  display: flex; flex-direction: column; gap: .25rem;
}
.about__stats span {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--ink); line-height: 1;
}
.about__stats small {
  font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- REFERENCES ---------- */
.references { padding: var(--section-y) 0; }
.references__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4rem); }
.references__head .eyebrow { justify-content: center; margin-bottom: 1.25rem; }
.references__head .display { max-width: 18ch; margin: 0 auto; }

.references__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: transparent;
  border: none;
}
.ref {
  background: var(--bg);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 2.5rem;
  transition: background .3s var(--ease), transform .4s var(--ease);
  filter: grayscale(100%);
  opacity: .75;
}
.ref:hover { background: var(--bg-soft); opacity: 1; filter: grayscale(0%); transform: scale(1.02); }
.ref img {
  max-width: 60%;
  max-height: 55%;
  width: auto; height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .ref { padding: 1.5rem 2rem; }
  .ref img { max-width: 65%; max-height: 60%; }
}
.ref span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1rem; color: var(--ink-soft); letter-spacing: .05em;
}

@media (max-width: 900px) {
  .references__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .references__grid { grid-template-columns: 1fr; }
}

/* ---------- SERVICES ---------- */
.services { padding: var(--section-y) 0; }
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 900px; }
.section__head .eyebrow { margin-bottom: 1.5rem; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--bg); padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex; flex-direction: column; gap: 2rem;
  transition: background .3s var(--ease);
}
.service:hover { background: var(--bg-soft); }
.service__head { display: flex; flex-direction: column; gap: 1rem; }
.service__num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1.5rem; color: var(--ink-soft);
}
.service h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  letter-spacing: -0.01em; line-height: 1.1;
}
.service ul { display: flex; flex-direction: column; gap: .65rem; }
.service li {
  font-size: .95rem; color: var(--ink-soft); font-weight: 300;
  padding-left: 1.5rem; position: relative;
}
.service li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 1px; background: var(--ink-soft);
}

/* ---------- PHILOSOPHY ---------- */
.philosophy { position: relative; min-height: 90vh; display: flex; align-items: center; color: #fff; }
.philosophy__media { position: absolute; inset: 0; z-index: 0; }
.philosophy__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
}
.philosophy::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 70%);
}
.philosophy__text { position: relative; z-index: 2; padding: var(--section-y) var(--pad); }
.philosophy__text .eyebrow { color: #fff; margin-bottom: 1.5rem; }
.philosophy__text .num { color: rgba(255,255,255,.6); }
.philosophy__text .display { color: #fff; max-width: 16ch; }
.philosophy__text .display em { color: rgba(255,255,255,.7); }
.philosophy__text .lead { color: rgba(255,255,255,.85); max-width: 44ch; }

/* ---------- CONTACT ---------- */
.contact { padding: var(--section-y) 0; background: var(--bg-soft); }
.contact__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro .eyebrow { margin-bottom: 1.5rem; }
.contact__details {
  display: flex; flex-direction: column; gap: 2.5rem;
  padding-top: 1rem;
}
.contact__block {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.contact__label {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__link {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: -0.01em; color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
  align-self: flex-start;
}
.contact__link:hover { border-color: var(--ink); }
.contact__block small {
  font-size: .85rem; color: var(--ink-soft); margin-top: .25rem;
}
.contact__block p { margin-top: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.contact__social { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .25rem; }
.contact__social a {
  font-size: 1rem; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity .3s var(--ease);
}
.contact__social a:hover { opacity: .6; }

/* ---------- FOOTER ---------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-bottom: 3rem; flex-wrap: wrap;
}
.footer__logo { height: 28px; width: auto; }
.footer__tag {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--ink-soft); font-weight: 300;
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.footer__bottom small {
  font-size: .75rem; color: var(--ink-soft);
  letter-spacing: .05em;
}
.footer__credit a {
  color: var(--ink); border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 1px; transition: opacity .3s var(--ease);
  font-weight: 500;
}
.footer__credit a:hover { opacity: .6; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .manifesto__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 3/4; }

  .nav__menu {
    position: fixed; inset: 0; background: var(--bg); z-index: -1;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; padding: 6rem 2rem;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav__menu.is-open { opacity: 1; pointer-events: auto; z-index: 99; }
  .nav__menu a { font-size: 1.5rem; font-family: var(--serif); font-weight: 300; }
  .nav:not(.is-scrolled) .nav__menu.is-open a { color: var(--ink); }
  .nav__toggle { display: flex; z-index: 101; position: relative; }
  .nav__toggle.is-open span:first-child { transform: translateY(3px) rotate(45deg); background: var(--ink); }
  .nav__toggle.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); background: var(--ink); }
}

@media (max-width: 560px) {
  .about__stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
}
