/* =========================================================
   foodnex — launch page ("opening soon")
   Same paper/ink/paprika system as the main site, one scene.
   ========================================================= */

:root {
  --paper: #f7f2e7;
  --paper-2: #efe6d4;
  --paper-3: #e3d8c2;
  --ink: #191510;
  --ink-2: #3b332a;
  --muted: #6f6455;
  --accent: #cf4a1d;
  --gold: #d99b2e;
  --hair: rgba(25, 21, 16, 0.16);
  --hair-strong: rgba(25, 21, 16, 0.34);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.97rem, 0.94rem + 0.16vw, 1.04rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

p { margin: 0; }
h1 { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; }

/* ---------- micro bar ---------- */

.microbar {
  background: var(--ink);
  color: rgba(247, 242, 231, 0.72);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: none;
}
.microbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30px;
}
.mb-left { display: flex; align-items: center; gap: 0.55rem; }
.mb-left i { font-style: normal; color: var(--accent); }

/* logo lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  text-transform: none;
  letter-spacing: -0.02em;
}
.brand-word {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand-mark { width: 20px; height: 20px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.bm-bg { fill: var(--accent); }
.bm-a { fill: var(--paper); }
.bm-b { fill: var(--paper); opacity: 0.55; }
.mb-lang { display: flex; gap: 0.55rem; }
.mb-lang button {
  background: none;
  border: 0;
  padding: 0 0 1px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.mb-lang button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--accent); }
.mb-lang button:hover { color: var(--paper); }

/* ---------- scene ---------- */

.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.soon::before {
  content: "";
  position: absolute;
  right: -14vw;
  top: -10vw;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(207, 74, 29, 0.16);
  border-radius: 50%;
  pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
}
.soon::after {
  content: "";
  position: absolute;
  left: -18vw;
  bottom: -22vw;
  width: 44vw;
  height: 44vw;
  border: 1px solid rgba(25, 21, 16, 0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: drift2 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2.5vw, 2vw) scale(1.07); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2.5vw, -2vw) scale(1.05); }
}

.soon-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
  position: relative;
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(3rem, 8.4vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.042em;
  margin-left: -0.04em;
}
.l { display: block; padding-bottom: 0.05em; }
.rise { display: block; overflow: hidden; padding-bottom: 0.06em; }
.rise > span { display: inline-block; }
.l-2 { position: relative; }
.l-2 .rise > span {
  font-style: italic;
  color: var(--accent);
  padding-left: clamp(0.5rem, 3vw, 2rem);
}

.js .rise > span {
  opacity: 0;
  transform: translateY(105%);
  animation: rise 1.05s var(--ease) forwards;
}
.js .l-2 .rise > span { animation-delay: 0.14s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* hand-drawn underline under the italic line */
.scribble {
  position: absolute;
  left: clamp(0.5rem, 3vw, 2rem);
  bottom: -0.16em;
  width: min(62%, 290px);
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: 0.5;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawLine 1.3s var(--ease) 1.15s forwards;
  pointer-events: none;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* eye­brow rule draws itself */
.js .eyebrow::after {
  transform: scaleX(0);
  transform-origin: left center;
  animation: ruleIn 0.9s var(--ease) 0.45s forwards;
}
@keyframes ruleIn { to { transform: scaleX(1); } }

/* staggered entrance for the rest of the copy */
.js .eyebrow,
.js .lede,
.js .soon-actions,
.js .facts,
.js .soon-foot {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.85s var(--ease) forwards;
}
.js .eyebrow { animation-delay: 0.12s; }
.js .lede { animation-delay: 0.95s; }
.js .soon-actions { animation-delay: 1.08s; }
.js .facts { animation-delay: 1.22s; }
.js .soon-foot { animation-delay: 1.4s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.lede {
  margin-top: 1.7rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.07rem);
}

.soon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(207, 74, 29, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(207, 74, 29, 0.95); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.soon-mail {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 2px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts li { display: flex; align-items: center; gap: 0.45rem; }
.facts li::before { content: "✳"; color: var(--accent); font-size: 0.78rem; }

/* ---------- plate ---------- */

.soon-art {
  position: relative;
  width: min(440px, 100%);
  justify-self: center;
  padding: 1.6rem;
}

.plate {
  position: relative;
  background: #fffdf7;
  border: 1.5px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(25, 21, 16, 0.08);
  padding: 1rem;
  transform: rotate(-1.6deg);
  animation: settle 1.2s var(--ease) both, float 9s ease-in-out 1.7s infinite;
  overflow: hidden;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(217, 155, 46, 0.16) 46%, rgba(255, 253, 247, 0.5) 52%, transparent 64%);
  transform: translateX(-130%);
  animation: sweep 9s ease-in-out 2.6s infinite;
  pointer-events: none;
}
@keyframes sweep {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}
@keyframes float {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50% { transform: rotate(-1.1deg) translateY(-8px); }
}
@keyframes settle {
  from { opacity: 0; transform: rotate(-5deg) translateY(18px); }
  to { opacity: 1; transform: rotate(-1.6deg); }
}

.plate-svg { width: 100%; height: auto; }
.ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.75;
}
.ring-1 { stroke-dasharray: 1232; stroke-dashoffset: 1232; animation: draw 1.8s var(--ease) 0.2s forwards; }
.ring-2 { stroke-width: 0.7; opacity: 0.35; stroke-dasharray: 993; stroke-dashoffset: 993; animation: draw 1.8s var(--ease) 0.4s forwards; }
.ring-dash {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  opacity: 0.65;
  transform-origin: 210px 210px;
  animation: spin 34s linear infinite;
}
.ring-4 { stroke-width: 0.6; opacity: 0.28; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.yolk {
  fill: var(--gold);
  opacity: 0.85;
  transform-origin: 210px 214px;
  animation: yolk 6s ease-in-out infinite;
}
@keyframes yolk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.orbit { transform-origin: 210px 210px; }
.orbit-a { animation: spin 19s linear infinite; }
.orbit-b { animation: spin 27s linear infinite reverse; }
.orbit-a circle { fill: var(--accent); }
.orbit-b circle { fill: var(--gold); }

.dot-a { fill: var(--accent); }
.dot-b { fill: var(--ink); opacity: 0.5; }
.herb {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
}

.steam path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  opacity: 0.4;
  animation: steam 4.6s ease-in-out infinite;
}
.steam .s2 { animation-delay: 0.7s; }
.steam .s3 { animation-delay: 1.4s; }
@keyframes steam {
  0% { transform: translateY(6px); opacity: 0; }
  25% { opacity: 0.45; }
  70% { opacity: 0.3; }
  100% { transform: translateY(-10px); opacity: 0; }
}

.spark {
  position: absolute;
  z-index: 2;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  animation: twinkle 4.6s ease-in-out infinite;
  pointer-events: none;
}
.spark-a { top: 4%; right: -1%; }
.spark-b { bottom: 16%; left: -2%; font-size: 0.85rem; color: var(--gold); animation-delay: 1.8s; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.7) rotate(0); opacity: 0.2; }
  50% { transform: scale(1) rotate(45deg); opacity: 0.85; }
}

.stamp {
  position: absolute;
  right: 0.2rem;
  top: 0.1rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid rgba(168, 58, 18, 0.75);
  color: rgba(168, 58, 18, 0.82);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
  background: rgba(247, 242, 231, 0.55);
  animation: stampIn 0.7s var(--ease) 1s both;
}
.stamp em {
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.04em;
}
@keyframes stampIn {
  from { opacity: 0; transform: rotate(28deg) scale(1.4); }
  to { opacity: 1; transform: rotate(9deg) scale(1); }
}

.ticket {
  position: absolute;
  left: -0.6rem;
  bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  background: #fffdf7;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(207, 74, 29, 0.9);
  font-size: 0.78rem;
  transform: rotate(-3deg);
  animation: slideIn 0.8s var(--ease) 1.3s both, bob 5.5s ease-in-out 2.2s infinite;
}
@keyframes slideIn {
  from { opacity: 0; transform: rotate(-3deg) translateY(24px); }
  to { opacity: 1; transform: rotate(-3deg) translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-4px); }
}
.tk-no { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.tk-body { display: flex; flex-direction: column; line-height: 1.3; }
.tk-body b { font-weight: 600; font-size: 0.8rem; }
.tk-body span { font-family: var(--mono); font-size: 0.58rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tk-state {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  padding: 0.16rem 0.34rem;
  white-space: nowrap;
}
.tk-dots { display: inline-flex; gap: 2px; }
.tk-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.tk-dots i:nth-child(2) { animation-delay: 0.2s; }
.tk-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

/* ---------- foot ---------- */

.soon-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 5vw, 3.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-no { color: var(--ink-2); }
.sf-line { width: 40px; height: 1px; background: var(--hair-strong); flex: none; }

/* ---------- marquee ---------- */

.tape-strip {
  flex: none;
  border-top: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding-block: 0.75rem;
  overflow: hidden;
}
.tape-track { display: flex; width: max-content; animation: tape 40s linear infinite; }
.tape-strip:hover .tape-track { animation-play-state: paused; }
.tape-half {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-right: 1.4rem;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tape-half i { font-style: normal; color: var(--accent); font-size: 0.66rem; }
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- short screens: keep the launch page on one screen ---------- */

@media (max-height: 820px) and (min-width: 961px) {
  .soon { padding-block: 1.7rem 2rem; }
  .soon-art { width: min(370px, 100%); }
  .lede { margin-top: 1.2rem; }
  .soon-foot { margin-top: 1.1rem; padding-top: 0.9rem; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .soon-in { grid-template-columns: 1fr; gap: 2.6rem; }
  .soon-art { width: min(400px, 100%); }
  h1 { max-width: 12ch; }
}

@media (max-width: 700px) {
  .microbar-in { min-height: 26px; font-size: 0.55rem; letter-spacing: 0.08em; }
  .soon { padding-block: 2rem 2.6rem; }
  h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .l-2 .rise > span { padding-left: 0; }
  .scribble { width: 58%; bottom: -0.1em; }
  .soon-actions { gap: 1rem; }
  .btn { width: 100%; justify-content: space-between; }
  .soon-art { padding: 0.9rem; }
  .plate { padding: 0.7rem; }
  .stamp { right: -0.2rem; top: -0.6rem; }
  .ticket { left: 0; }
}

@media (max-width: 420px) {
  .facts { font-size: 0.6rem; gap: 0.4rem 1rem; }
  .soon-mail { font-size: 0.66rem; }
  .ticket { font-size: 0.72rem; padding: 0.5rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .l span { opacity: 1; transform: none; }
  .plate, .stamp, .ticket { opacity: 1; }
}
