/* TITUS — Coming soon. One engraved rosette on deep navy (titusdh.com palette). */

:root {
  --ink: #04122e;
  --ground: #040f2b;
  --engrave: #4498fd;
  --mint: #67e1be;
  --mint-hi: #8beed2;
  --paper: #eef3ff;
  --soft: #c3d1ec;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --rosette: min(120vh, 96vw);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  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='.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 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, p { margin: 0; }

/* ---------- Stage ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) var(--gutter) clamp(2rem, 7vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Logo: mark and wordmark from the brand artwork, background removed. Drawn at 3x for sharp screens. */
.logo {
  display: block;
  width: auto;
  height: 3.5rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-variation-settings: "wdth" 115;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mint);
  padding: .45rem .7rem;
  margin-right: -.7rem;
  background: var(--ground);
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  rotate: 45deg;
  border: 1px solid var(--mint);
}

/* ---------- The one visual: an engraved rosette, half off the page ---------- */
.rosette {
  position: absolute;
  z-index: 0;
  width: var(--rosette);
  aspect-ratio: 1;
  top: 50%;
  right: calc(var(--rosette) * -.24);
  translate: 0 -50%;
  touch-action: pan-y;
  /* The engraving fades into the ground where it meets the type */
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, #000 44%);
  mask-image: linear-gradient(100deg, transparent 6%, #000 44%);
}

/* ---------- Copy ---------- */
.copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 44rem;
}
.title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3rem, min(1.6rem + 5.4vw, 12vh), 7rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.title span { display: block; }
.title__mint { color: var(--mint); margin-top: .12em; }

.lede {
  max-width: 31rem;
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--soft);
  text-wrap: pretty;
}

.action { margin-top: clamp(1.5rem, 4vh, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  height: 3.25rem;
  padding: 0 1.4rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--mint);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s var(--ease-out), transform .2s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--mint);
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--mint); }
.btn:hover::before { transform: scaleX(0); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn__icon { width: 1.1rem; height: 1.1rem; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover .btn__icon { transform: translateY(-2px); }

.share-status { font-size: .875rem; color: var(--mint); }
.share-status:empty { display: none; }

/* Gentle arrival: copy is visible by default, JS only adds the motion */
.js .copy > * { animation: rise 1s var(--ease-out) both; }
.js .copy > :nth-child(2) { animation-delay: .12s; }
.js .copy > :nth-child(3) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- Portrait screens: rosette rises above the type ---------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  :root { --rosette: min(132vw, 70vh); }
  .rosette {
    top: 32%;
    right: calc(var(--rosette) * -.36);
    opacity: .75;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 88%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 88%);
  }
}

@media (max-width: 760px) {
  .title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .status { font-size: .6875rem; letter-spacing: .16em; }
  .logo { height: 2.75rem; }
  .btn { width: 100%; justify-content: space-between; }
}

/* Short landscape screens */
@media (max-height: 520px) and (orientation: landscape) {
  .title { font-size: clamp(2rem, 9vh, 3.25rem); }
  .lede { margin-top: .75rem; }
  .action { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .copy > * { animation: none; }
  .btn, .btn::before, .btn__icon { transition: none; }
}
