:root {
  --panel-width: min(600px, 86vw);
  --panel-max-height: 80svh;
  --panel-bg: rgba(248, 246, 239, 0.6);
  --panel-header-bg: rgba(248, 246, 239, 0.6);
  --panel-border: rgba(170, 156, 126, 0.36);
  --glass-blur: 1px;
  --text-main: rgba(28, 25, 21, 0.95);
  --text-muted: rgba(17, 17, 23, 0.95);
  --narrative-font: "Copperplate Gothic Bold", "Copperplate Gothic", Copperplate, Georgia, serif;
  --title-font: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  --subtitle-font: "Edwardian Script ITC", "Edwardian Script", "Lucida Calligraphy", "Apple Chancery", cursive;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { font-family: var(--narrative-font); color: var(--text-main); background: #111; }
.foundation-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background-image: linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.18)), url("assets/background-desktop.png");
  background-size: cover;
  background-position: calc(50% + 2px) center;
  background-repeat: no-repeat;
}
.frosted-panel {
  width: var(--panel-width);
  max-height: var(--panel-max-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
/* Border intentionally transparent; --panel-border preserved for future optional use. */
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.04);
  box-shadow: 0 26px 70px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.40);
}
.panel-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 2px;
  padding: 10px 32px 8px;
  text-align: center;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}
.maker-mark {
  display: block;
  width: clamp(56px, 16vw, 80px);
  height: auto;
  margin: 0 0 2px;
  opacity: 0.93;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.40)) drop-shadow(0 5px 8px rgba(0,0,0,0.10));
}
h1 {
  margin: 0;
  text-align: center;
  font-family: var(--title-font);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: clamp(1.85rem, 1.25rem + 1vw, 2.35rem);
  line-height: 1.02;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.subtitle {
  margin: 0;
  text-align: center;
  font-family: var(--subtitle-font);
  font-size: 1.5rem;
  line-height: 1.0;
  color: var(--text-muted);
  white-space: nowrap;
}
.panel-scroll {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 46px 42px;
  line-height: 1.72;
  font-size: clamp(0.98rem, 0.8rem + 0.26vw, 1.08rem);
  font-family: var(--narrative-font);
  font-weight: 700;
  letter-spacing: 0.01em;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 25, 21, 0.6) transparent;
}
.panel-scroll em { font-style: italic; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(80, 70, 55, 0.28); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: rgba(80, 70, 55, 0.40); }
.panel-scroll:focus { outline: none; }
.panel-scroll p { margin: 0 0 1.18em; }
.panel-scroll p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  :root {
    --panel-width: min(88vw, 520px);
    --panel-max-height: 78svh;
    --panel-bg: rgba(248, 246, 239, 0.6);
    --panel-header-bg: rgba(248, 246, 239, 0.6);
  }
  .foundation-hero {
    padding: 20px;
    background-image: linear-gradient(rgba(255,255,255,0.03), rgba(0,0,0,0.13)), url("assets/background-mobile.png");
    background-size: cover;
    background-position: center center;
  }
  .frosted-panel { border-radius: 18px; }
  .panel-header { padding: 8px 18px 8px; gap: 1px; }
  .maker-mark { width: clamp(48px, 18vw, 68px); }
  h1 { font-size: clamp(1.52rem, 1.18rem + 0.85vw, 1.86rem); letter-spacing: 0.1em; }
  .subtitle { font-size: 1.5rem; max-width: 100%; white-space: normal; }
  .panel-scroll { padding: 22px 28px 34px; line-height: 1.64; }
}
@media (max-height: 720px) {
  :root { --panel-max-height: 84svh; }
  .panel-header { padding-top: 8px; padding-bottom: 7px; }
  .maker-mark { width: clamp(48px, 15vw, 72px); }
  h1 { font-size: clamp(1.72rem, 1.2rem + 0.9vw, 2.05rem); }
  .subtitle { font-size: 1.5rem; }
  .panel-scroll { padding-top: 22px; }
}
/* BENCH NOTES static stay-tuned page */

.bench-notes-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #050505;
}

.bench-notes-hero {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  background-image: url("assets/bench-notes-desktop.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bench-notes-home-link {
  display: block;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  text-decoration: none;
}

/* Mobile / portrait */
@media (max-width: 760px) {
  .bench-notes-hero {
    background-image: url("assets/bench-notes-mobile.png");
    background-size: contain;
    background-position: center top;
  }
}
/* ======================================================================
   MASTER WORKS PARIS LANDING PAGE
   SecondTry desktop image: 1672 x 941
   SecondTry_9-16 mobile image: 941 x 1672
   ----------------------------------------------------------------------
   This section turns the plain index.html links into bronze/black capsule
   buttons and pins them to the landing artwork without allowing the image
   to exceed the viewing window.
   ====================================================================== */

body.landing-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  color: #d8c7a4;
  overflow: hidden;

  /* Centers the entire scaled landing image in the browser window. */
  display: grid;
  place-items: center;
}

.landing-hero {
  position: relative;
  background: #000;
  overflow: visible;

  /* Desktop/landscape: keep the 16:9-style artwork fully visible. */
  aspect-ratio: 1672 / 941;
  width: min(100vw, calc(100svh * 1672 / 941));
  max-width: 1672px;
}

.landing-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
  border: 0;
}

/* Shared landing page button style: layered metallic bronze rim with silver-backlit hover.
   Uses multiple background layers instead of a flat CSS border so the edge
   reads as a beveled metal surface while requiring no index.html changes. */
.mwp-button {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: clamp(22px, 3.65%, 34px);
  padding: 0 clamp(14px, 1.68vw, 28px);

  border-radius: 999px;
  border: 2px solid transparent;

  /*
    Layer 1 = dark button face, clipped inside the border.
    Layer 2 = vertical bronze-metal gradient, visible only through the transparent border.
  */
  background:
    linear-gradient(
      180deg,
      rgba(38, 37, 34, 0.99) 0%,
      rgba(18, 17, 15, 0.99) 20%,
      rgba(8, 8, 7, 1) 54%,
      rgba(2, 2, 2, 1) 100%
    ) padding-box,
    linear-gradient(
      180deg,
      rgba(227, 184, 101, 0.78) 0%,
      rgba(133, 83, 36, 0.98) 22%,
      rgba(48, 29, 12, 1) 50%,
      rgba(121, 72, 29, 0.98) 78%,
      rgba(214, 163, 79, 0.74) 100%
    ) border-box;

  color: #e4d6b8;
  text-decoration: none;
  text-align: center;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  white-space: nowrap;

  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 5px rgba(228, 214, 184, 0.16);

  box-shadow:
    inset 0 1px 0 rgba(255, 238, 188, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82),
    inset 0 0 12px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(20, 12, 5, 0.92),
    0 5px 14px rgba(0, 0, 0, 0.68);

  overflow: hidden;
  isolation: isolate;

  transition:
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

/* A faint interior sheen reinforces the beveled-metal effect without covering the text. */
.mwp-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255, 238, 188, 0.11) 0%,
      rgba(255, 238, 188, 0.035) 20%,
      rgba(0, 0, 0, 0.00) 48%,
      rgba(0, 0, 0, 0.32) 100%
    );
}

.mwp-button:visited {
  color: #e4d6b8;
}

.mwp-button:hover,
.mwp-button:focus-visible {
  color: #f3ead7;
  outline: none;

  background:
    linear-gradient(
      180deg,
      rgba(46, 44, 39, 0.99) 0%,
      rgba(20, 19, 17, 1) 20%,
      rgba(10, 10, 9, 1) 54%,
      rgba(3, 3, 3, 1) 100%
    ) padding-box,
    linear-gradient(
      180deg,
      rgba(247, 222, 166, 0.92) 0%,
      rgba(158, 101, 43, 1) 22%,
      rgba(61, 36, 14, 1) 50%,
      rgba(176, 112, 45, 1) 78%,
      rgba(246, 222, 166, 0.88) 100%
    ) border-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    inset 0 0 13px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(88, 55, 22, 0.72),
    0 0 10px rgba(230, 234, 235, 0.42),
    0 0 24px rgba(200, 205, 210, 0.30),
    0 0 38px rgba(160, 168, 176, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.75);

  transform: translate(-50%, -52%);
}

.mwp-button:hover::before,
.mwp-button:focus-visible::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 232, 0.16) 0%,
      rgba(255, 238, 188, 0.06) 22%,
      rgba(0, 0, 0, 0.00) 50%,
      rgba(0, 0, 0, 0.28) 100%
    );
}

.mwp-button:active {
  transform: translate(-50%, -50%);
}

/* Desktop button positions for SecondTry.png. */
.mwp-foundation {
  left: 28.1%;
  top: 8.3%;
  min-width: clamp(98px, 11.96%, 200px);
}

.mwp-bench-notes {
  left: 72.4%;
  top: 8.3%;
  min-width: clamp(118px, 14.05%, 235px);
}

.mwp-contact {
  left: 50%;
  top: 83.8%;
  min-width: clamp(110px, 13.15%, 220px);
}

/* Mobile/portrait landing art: preserve the 9:16 artwork and reposition buttons. */
@media (max-width: 760px), (orientation: portrait) {
  body.landing-page {
    overflow: hidden;
  }

  .landing-hero {
    aspect-ratio: 941 / 1672;
    width: min(100vw, calc(100svh * 941 / 1672));
    max-width: 941px;
  }

  .mwp-button {
    height: clamp(18px, 2.45%, 34px);
    padding: 7px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .mwp-foundation {
    left: 23.5%;
    top: 7.25%;
    min-width: 80px;
  }

  .mwp-bench-notes {
    left: 76.5%;
    top: 7.25%;
    min-width: 90px;
  }

  .mwp-contact {
    left: 50%;
    top: 88.25%;
    min-width: 100px;
  }
}

/* Extra-short browser windows: keep buttons compact enough for local testing. */
@media (max-height: 560px) and (orientation: landscape) {
  .mwp-button {
    height: clamp(18px, 4%, 30px);
    font-size: clamp(7px, 0.68vw, 10px);
    padding: 0 clamp(10px, 1.25vw, 20px);
  }
}
