/* ============================================================
   Michael Cao ApS — Nordic craft, Asian horizons
   Palette: ink  #17150f · paper #f7f4ec · brass #a98c58
   Type:    Cormorant Garamond (display) · Inter (text)
   ============================================================ */

:root {
  --ink: #17150f;
  --ink-soft: #26221a;
  --ink-mute: #6f6a5e;
  --paper: #f7f4ec;
  --paper-deep: #efeadd;
  --brass: #a98c58;
  --brass-bright: #c2a26a;
  --line: rgba(23, 21, 15, 0.14);
  --line-light: rgba(247, 244, 236, 0.22);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

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

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--brass); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; z-index: 200;
}
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

section { scroll-margin-top: 4.5rem; }

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3rem);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
  color: var(--paper);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  max-width: 18ch;
}

h3 { font-size: 1.35rem; }

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}

.kicker.light { color: var(--brass-bright); }

h2.light { color: var(--paper); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem clamp(1.4rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
  color: var(--paper);
  transition: color 0.35s var(--ease);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-bright);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.85);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  padding: 0.62rem 1.15rem;
  border-radius: 99px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

/* scrolled / solid state */
.nav.scrolled {
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav.scrolled .brand { color: var(--ink); }
.nav.scrolled .brand-sub { color: var(--brass); }
.nav.scrolled .nav-links a { color: var(--ink-mute); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav.scrolled .nav-cta { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--brass); border-color: var(--brass); }
.nav.scrolled .nav-burger span { background: var(--ink); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.3rem;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.menu.open { opacity: 1; pointer-events: auto; }

.menu nav { display: flex; flex-direction: column; gap: 1.6rem; }

.menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  justify-content: center;
}

.menu a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--brass);
}

.menu-tel { font-size: 1.1rem !important; margin-top: 1.2rem; color: var(--brass) !important; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-media, .hero-media video, .hero-media .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster { z-index: 0; }
.hero-media video { z-index: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(13, 12, 8, 0.52) 0%, rgba(13, 12, 8, 0.1) 46%, rgba(13, 12, 8, 0) 62%),
    linear-gradient(to top, rgba(13, 12, 8, 0.9) 0%, rgba(13, 12, 8, 0.46) 36%, rgba(13, 12, 8, 0.12) 64%, rgba(13, 12, 8, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3rem) clamp(6rem, 14vh, 9.5rem);
}

.hero-lede {
  color: rgba(247, 244, 236, 0.86);
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
  margin-top: 1.6rem;
}

.hero .kicker.light {
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 14px rgba(13, 12, 8, 0.55);
}

.hero-scroll {
  position: absolute;
  right: clamp(1.4rem, 5vw, 3rem);
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: rgba(247, 244, 236, 0.75);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(247, 244, 236, 0.5);
  overflow: hidden;
  position: relative;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--brass-bright);
  animation: drop 2.2s var(--ease) infinite;
}

@keyframes drop {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(247, 244, 236, 0.08);
}

.marquee-track {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.82);
  white-space: nowrap;
}

.marquee i {
  color: var(--brass);
  font-style: normal;
  font-size: 0.85rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections (shared) ---------- */

.section { padding: clamp(5rem, 11vw, 8.5rem) 0; }

.section-head { margin-bottom: clamp(2.6rem, 6vw, 4rem); }

.section-lede {
  max-width: 52ch;
  color: var(--ink-mute);
  margin-top: 1.3rem;
  font-size: 1.05rem;
}

/* ---------- The House ---------- */

.house-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.house-right p { margin-bottom: 1.35rem; color: var(--ink-soft); }

.house-motto {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink) !important;
  border-left: 2px solid var(--brass);
  padding-left: 1.4rem;
  margin-top: 2rem;
}

/* ---------- Collection ---------- */

.collection { background: var(--paper-deep); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.3rem, 2.6vw, 2.1rem);
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ddcd;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.94);
}

.card:hover .card-img img {
  transform: scale(1.055);
  filter: saturate(1.02);
}

.card figcaption { padding: 1.1rem 0.25rem 0; }

.card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.15rem;
}

.card figcaption p {
  font-size: 0.83rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.collection-note {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.98rem;
}

.collection-note a {
  color: var(--brass);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.collection-note a:hover { color: var(--ink); }

/* ---------- Services ---------- */

.services { background: var(--ink); color: var(--paper); }

.service-rows { max-width: 940px; }

.service-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 1.6fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--line-light);
}

.service-row:last-child { border-bottom: 1px solid var(--line-light); }

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--brass-bright);
}

.service-row h3 {
  font-size: 1.5rem;
  color: var(--paper);
}

.service-row p {
  color: rgba(247, 244, 236, 0.8);
  font-size: 0.98rem;
}

/* ---------- Interlude band ---------- */

.band {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  background-image: linear-gradient(rgba(15, 14, 9, 0.5), rgba(15, 14, 9, 0.55)), url("/assets/band.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 6rem 1.5rem;
}

.band-quote {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--paper);
}

.band-quote em { font-style: italic; }

.band-sub {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.8);
}

/* ---------- Film ---------- */

.film-frame {
  position: relative;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 15, 0.35);
}

.film-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d0c08;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: rgba(13, 12, 8, 0.28);
  border: 0;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease);
}

.film-play:hover { background: rgba(13, 12, 8, 0.42); }

.film-play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 236, 0.65);
  background: rgba(23, 21, 15, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.film-play:hover .film-play-circle {
  transform: scale(1.08);
  background: var(--brass);
  border-color: var(--brass);
}

.film-play.hidden { display: none; }

.film-caption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--paper-deep);
  padding-bottom: clamp(6.5rem, 13vw, 10rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-left p { max-width: 42ch; color: var(--ink-soft); margin-bottom: 1.3rem; }

.contact-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink) !important;
}

.contact-tel {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.15rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-tel:hover { color: var(--brass); }

.contact-card {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.contact-card-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.6rem;
}

.contact-card dl { display: flex; flex-direction: column; gap: 1.15rem; }

.contact-card dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.contact-card dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.55);
}

.contact-card dd { font-size: 0.95rem; line-height: 1.55; }

.contact-card dd a { text-decoration: none; border-bottom: 1px solid var(--brass); }

.contact-card-bank {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 236, 0.6);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 1.6rem; }

.footer a {
  color: var(--ink-mute);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.72rem;
}

.footer a:hover { color: var(--brass); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .service-row { grid-template-columns: 4.5rem 1fr; }
  .service-row p { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .house-grid, .contact-grid { grid-template-columns: 1fr; }
  .band { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-bottom: 8.5rem; }
  .hero .kicker.light { text-shadow: 0 1px 18px rgba(13, 12, 8, 0.7); }
  .hero-scroll { display: none; }
}

@media (max-width: 430px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Privacy page ---------- */

.nav.static { position: relative; }

.privacy { max-width: 800px; }

.privacy-title {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.5rem;
}

.privacy-date {
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 2.4rem;
}

.privacy h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
  max-width: none;
}

.privacy p { max-width: 64ch; color: var(--ink-soft); }

.privacy a { color: var(--brass); font-weight: 600; text-decoration: none; }
.privacy a:hover { color: var(--ink); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-scroll-line::after { animation: none; }
  .card-img img, .film-play-circle { transition: none; }
}
