/* BMM Art & Computer — studio one-pager
   Plain HTML/CSS. Design tokens ported 1:1 from the original prototype
   (the "AT" atelier palette); layout is now fluid/responsive. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,ital,wght@6..72,0,300;6..72,0,400;6..72,0,500;6..72,0,600;6..72,1,400;6..72,1,500&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ink: #15140F;
  --paper: #F2EFE7;
  --bone: #E5E0D4;
  --accent: #0E1320;
  --mute: #736C5F;
  --line: rgba(21, 20, 15, 0.14);
  --ink-20: rgba(21, 20, 15, 0.2);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* fluid horizontal gutter — was a flat 64px on the 1440 artboard */
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;   /* stop iOS from auto-inflating type */
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* belt-and-braces against side-scroll */
}
img { display: block; max-width: 100%; }
a { color: inherit; }
/* honor reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  overflow: hidden;
  color: var(--paper);
  display: flex;
  flex-direction: column;
}
.hero__img,
.section-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(21, 20, 15, 0.55) 0%,
    rgba(21, 20, 15, 0.15) 35%,
    rgba(21, 20, 15, 0.10) 60%,
    rgba(21, 20, 15, 0.75) 100%);
}
.nav {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 36px) var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { height: 39px; width: auto; }
.wordmark--light { filter: brightness(0) invert(1); }
.wordmark--short { display: none; }
@media (max-width: 420px) {
  .wordmark--full { display: none; }
  .wordmark--short { display: block; }
}
.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 11px;
}
.nav__links a { text-decoration: none; }
.nav__links a:hover { opacity: 0.7; }

/* Hamburger toggle — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: inherit;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s 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); }

/* Full-screen mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav__drawer-close {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  right: var(--pad);
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 8px;
  opacity: 0.6;
}
.nav__drawer-close:hover { opacity: 1; }
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__drawer-links a {
  font-family: var(--font-serif);
  font-size: clamp(44px, 11vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
  opacity: 0.9;
}
.nav__drawer-links a:hover { opacity: 0.5; }

.hero__statement {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: var(--pad);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.hero__kicker { opacity: 0.85; margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 1100px;
}
.hero h1 em { font-style: italic; }

/* ── Shared section over an image ───────────────────────────────── */
.section-bg { position: relative; overflow: hidden; }

/* ── Statement strip ────────────────────────────────────────────── */
.statement {
  padding: clamp(56px, 7vw, 88px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.statement h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.statement h2 em { font-style: italic; }
.statement__body {
  align-self: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mute);
}
.statement__body p { margin: 0 0 16px; }
.statement__body p:last-child { margin: 0; }
.statement__body strong { color: var(--ink); font-weight: 500; }

/* ── Practice slider ────────────────────────────────────────────── */
.slider { border-bottom: 1px solid var(--line); }
.slider__head {
  padding: clamp(40px, 5vw, 64px) var(--pad) 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.slider__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab {
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  padding: 10px 18px;
  background: transparent;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.slider__body { padding: clamp(28px, 3.5vw, 40px) var(--pad) clamp(40px, 5vw, 56px); }

.practice { display: none; }
.practice.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.practice__media {
  position: relative;
  height: clamp(280px, 42vw, 440px);
  overflow: hidden;
  background: var(--ink);
}
.practice__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.practice__media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(21, 20, 15, 0.6) 100%);
}
.practice__num {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 64px;
  letter-spacing: -0.02em;
  opacity: 0.9;
}
.practice__text {
  min-height: clamp(280px, 42vw, 440px);
  display: flex;
  flex-direction: column;
}
.practice__tag { color: var(--mute); margin-bottom: 18px; }
.practice__text h3 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1;
}
.practice__lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.8vw, 23px);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.practice__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mute);
  margin: 0 0 24px;
  max-width: 500px;
}
.points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.point {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 7px 12px;
  border: 1px solid var(--ink-20);
}
.practice__link { min-height: 20px; margin-top: 16px; }
.practice__link a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.controls {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dots { display: flex; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--line);
  transition: width 0.2s;
}
.dot.is-active { width: 28px; background: var(--ink); }
.arrows { display: flex; gap: 8px; }
.arrow {
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 18px;
  border: 1px solid var(--ink-20);
  background: transparent;
  color: var(--ink);
}
.arrow--next { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }

/* ── Studio + contact ───────────────────────────────────────────── */
.studio { color: var(--paper); }
.studio__scrim { position: absolute; inset: 0; background: rgba(14, 19, 32, 0.82); }
.studio__grid {
  position: relative;
  padding: clamp(56px, 8vw, 96px) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
}
.studio__kicker { opacity: 0.8; margin-bottom: 24px; }
.studio__grid h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.studio__grid h2 em { font-style: italic; }
.studio__copy {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(242, 239, 231, 0.8);
  margin-top: 22px;
  max-width: 440px;
}
.studio__contact { align-self: end; }
.studio__address-label { margin-top: 28px; margin-bottom: 8px; }
.studio__email {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
}
.studio__email:hover { text-decoration: underline; }
.studio__detail {
  font-size: 16px;
  color: rgba(242, 239, 231, 0.8);
  margin-top: 16px;
  line-height: 1.8;
}
.footer {
  position: relative;
  padding: 24px var(--pad);
  border-top: 1px solid rgba(242, 239, 231, 0.13);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Tablet & below: collapse the two-column grids ── */
@media (max-width: 860px) {
  .statement,
  .practice.is-active,
  .studio__grid { grid-template-columns: 1fr; }
  .practice__text { min-height: 0; margin-top: 28px; }
  .studio__contact { align-self: start; }
  .points { margin-top: 20px; }
}

/* ── Phone: tighten type, spacing, and touch ergonomics ── */
@media (max-width: 560px) {
  .hero { min-height: clamp(480px, 78vh, 640px); }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero__kicker { margin-bottom: 16px; }

  /* let the practice tabs scroll horizontally instead of stacking */
  .slider__head { align-items: flex-start; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 11px 16px; }

  .practice__num { font-size: 48px; left: 20px; bottom: 18px; }
  .practice__body { font-size: 15px; }

  /* roomier tap targets for the slider controls */
  .controls { margin-top: 28px; }
  .dot { height: 12px; }
  .dot.is-active { width: 32px; }
  .arrow { width: 52px; height: 52px; }

  .nav__toggle { display: flex; }
  .nav__links { display: none; }
  .footer { flex-direction: column; gap: 6px; }
}
