/*
  Model Inbox, shared by index.html (EN) and pt/index.html (PT).
  Four colors, no others. Gradients reuse the paper color at lower alpha.
  paper    #110c0e   plum black
  ink      #f1e7de   warm ivory
  muted    #c4a38e   champagne rose
  hairline #3a2c31
*/
/* Bodoni Moda (SIL OFL, fonts/OFL.txt), self-hosted so Android and Windows get the
   same Didone as iPhone. Variable optical size: hairlines thin out at display sizes. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #110c0e;
  --paper-0: rgba(17, 12, 14, 0);
  --ink: #f1e7de;
  --muted: #c4a38e;
  --line: #3a2c31;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --text: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
/* Fine film grain over everything, so the dark reads as print, not a screen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: inherit; }
a:focus-visible { outline: 1px solid var(--muted); outline-offset: 4px; }

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar, over the photo */
.bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
}
.bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
}
.monogram {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  padding-top: 0.1rem;
}
.lang {
  display: flex;
  gap: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.lang a {
  text-decoration: none;
  color: var(--muted);
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
.lang a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
}

/* Opening */
.hero { position: relative; }
.hero-img {
  height: 66vh;
  height: 66svh;
  min-height: 380px;
  max-height: 580px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.hero-img img,
.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img img {
  object-position: 55% 40%;
  filter: saturate(0.82) brightness(0.84);
  animation: surface 1.2s ease-out both;
}
@keyframes surface {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}
.hero-text {
  position: relative;
  margin-top: -5.75rem;
}
.domain {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.mark {
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.tag {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.2;
}
.tag span { display: block; }
.sub, .principles p, .scene p + p { text-wrap: pretty; }
.sub {
  margin-top: 1rem;
  max-width: 30rem;
  color: var(--muted);
}

/* Bands */
.band { margin-top: 5rem; }
.rule {
  width: 3rem;
  height: 1px;
  background: var(--muted);
  border: 0;
  margin: 0 0 1.5rem;
}
.statement {
  text-wrap: balance;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  max-width: 22ch;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.principles p { color: var(--muted); }

/* Closing scene: full-bleed photo, text laid on its dark side. */
.scene {
  position: relative;
  margin-top: 5rem;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
}
.scene-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
}
.scene img {
  object-position: 90% 50%;
  filter: saturate(0.85) brightness(0.82);
}
.scene .wrap { position: relative; width: 100%; padding-bottom: 1rem; }
.scene .statement {
  font-size: 2.5rem;
  text-shadow: 0 2px 28px rgba(17, 12, 14, 0.9);
}
.scene p + p {
  margin-top: 1rem;
  max-width: 30rem;
  color: var(--muted);
}

/* Anti-impersonation line, added once the @modelinboxhq accounts exist. */
.verify {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.verify + footer { margin-top: 1.5rem; }

footer {
  margin-top: 4rem;
  padding: 1.25rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-img img { animation: none; }
}

/* Laptop */
@media (min-width: 820px) {
  :root { --gutter: 3rem; }
  body { font-size: 18px; }
  .bar .wrap { padding-top: 2rem; }

  .hero {
    min-height: min(100vh, 56rem);
    display: flex;
    align-items: flex-end;
  }
  .hero-img {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 62%;
    height: auto;
    max-height: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to top, transparent 0%, #000 30%);
    mask-composite: intersect;
  }
  .hero-img img { object-position: 62% 45%; }
  .hero > .wrap { width: 100%; }
  .hero-text {
    margin: 0;
    padding-bottom: 5rem;
    max-width: 48rem;
  }
  .mark { font-size: 7.4rem; }
  .tag { font-size: 2.4rem; margin-top: 1.4rem; }
  .sub { font-size: 1.05rem; margin-top: 1.4rem; }

  .band { margin-top: 8rem; }
  .statement { font-size: 3.6rem; }

  .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  .principles li,
  .principles li:last-child {
    border-bottom: 0;
    padding: 1.5rem 0 0;
  }

  .scene {
    margin-top: 8rem;
    min-height: min(92vh, 50rem);
  }
  .scene-img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 45%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 45%);
    mask-composite: intersect;
  }
  .scene img { object-position: 50% 50%; }
  .scene .wrap { padding-bottom: 5rem; }
  .scene .statement { font-size: 4.4rem; max-width: 11ch; }
  .scene p + p { max-width: 24rem; }
}
