/* McFriend Ecommerce Solutions LLC — site styles
   Dark, centered, image-led layout. Palette and type from the brand board. */

:root {
  --ink: #0d0d0e;        /* page ground, a shade under Onyx for depth */
  --onyx: #161618;
  --graphite: #2a2a2e;
  --ivory: #f3ede1;
  --stone: #8e887c;
  --parchment: #e4dccb;
  --brass: #a8865a;

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --section: clamp(88px, 12vw, 168px);
  --line: rgba(243, 237, 225, 0.1);
  --card: #141415;
  --radius: 14px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--ivory); color: var(--onyx); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head p { margin: 18px auto 0; color: var(--stone); font-size: 15px; max-width: 52ch; }

.pill {
  display: inline-block; padding: 5px 11px 4px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em;
  background: rgba(243, 237, 225, 0.92); color: var(--onyx);
  border-radius: 6px; white-space: nowrap;
}
.pill.ghost { background: rgba(22, 22, 24, 0.7); color: var(--ivory); border: 1px solid rgba(243, 237, 225, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.button {
  display: inline-block; padding: 12px 22px 11px;
  background: var(--ivory); color: var(--onyx);
  font-size: 13px; font-weight: 500; text-decoration: none;
  border-radius: 8px; border: 1px solid var(--ivory);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.button:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 30px rgba(243, 237, 225, 0.14); }

/* ---------- Floating nav ---------- */

.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 12px; pointer-events: none;
}
.site-header .wrap {
  pointer-events: auto; width: auto; max-width: 100%; margin: 0;
  display: flex; align-items: center; gap: clamp(18px, 4vw, 44px);
  padding: 9px 18px 9px 16px;
  background: rgba(13, 13, 14, 0.72);
  border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.brandmark { display: inline-flex; align-items: center; flex: none; }
.brandmark img { height: 22px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 26px); }
.nav a {
  font-size: 12.5px; font-weight: 500; text-decoration: none;
  color: rgba(243, 237, 225, 0.62); padding: 6px 0; transition: color 0.2s;
}
.nav a:hover { color: var(--ivory); }
@media (max-width: 520px) { .nav a.opt { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: min(100svh, 860px);
  display: grid; place-items: center; text-align: center;
  padding: 150px 0 110px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: drift 26s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(13, 13, 14, 0.34) 0%, rgba(13, 13, 14, 0.3) 70%),
    linear-gradient(180deg, rgba(13, 13, 14, 0.35) 0%, rgba(13, 13, 14, 0) 28%, rgba(13, 13, 14, 0.6) 74%, var(--ink) 100%);
}
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero p { max-width: 54ch; margin: 26px auto 0; color: rgba(243, 237, 225, 0.8); font-size: clamp(15px, 1.4vw, 17px); }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(243, 237, 225, 0.6));
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
@keyframes cue { 0%, 100% { opacity: 0; transform: translateY(-10px); } 50% { opacity: 1; transform: translateY(6px); } }

/* ---------- Sections ---------- */

section { padding: var(--section) 0; }
.tight-top { padding-top: clamp(40px, 6vw, 80px); }

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

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
/* Script-driven mode: draggable with mouse or finger, vertical page scroll still works. */
.marquee.drag { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.marquee.drag.grabbing { cursor: grabbing; }
.marquee.drag .marquee-track { animation: none; will-change: transform; }
.marquee.drag img { -webkit-user-drag: none; pointer-events: none; }

.brand-card {
  position: relative; flex: none; overflow: hidden; margin: 0 16px 0 0;
  width: clamp(250px, 30vw, 380px); aspect-ratio: 3 / 2;
  border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line);
}
.brand-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(14px) saturate(0.9) brightness(0.85); transform: scale(1.16);
  transition: transform 0.9s ease, filter 0.9s ease;
  user-select: none; pointer-events: none;
}
.brand-card:hover img { transform: scale(1.24); filter: blur(11px) saturate(1) brightness(0.95); }
.brand-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 14, 0.05) 30%, rgba(13, 13, 14, 0.78) 100%);
}
.brand-card .eye {
  position: absolute; left: 50%; top: 46%; z-index: 2;
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  color: var(--ivory); opacity: 0.92;
}
.brand-card figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand-card .name { font-family: var(--serif); font-size: 21px; line-height: 1.1; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; padding: 0; }
.stat {
  text-align: center; padding: 26px 12px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(243, 237, 225, 0.045), rgba(243, 237, 225, 0.01));
  transition: border-color 0.3s, transform 0.3s;
}
.stat:hover { border-color: rgba(243, 237, 225, 0.24); transform: translateY(-3px); }
.stat dt { margin-bottom: 16px; }
.stat dd {
  margin: 0; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 52px); line-height: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 1.1em;
  font-variant-numeric: tabular-nums;
}
.stat .redacted { filter: blur(10px); user-select: none; opacity: 0.9; }
.stat .eye { width: 22px; height: 22px; color: var(--stone); flex: none; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Founder ---------- */

.founder-card {
  position: relative; width: min(100%, 340px); margin: 0 auto; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.founder-card .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1b1b1d; }
.founder-card .photo img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  transition: transform 1.2s ease;
}
.founder-card:hover .photo img { transform: scale(1.05); }
.founder-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--card) 100%); }
.founder-card .pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.founder-card .body { padding: 4px 18px 20px; }
.founder-card h3 { font-size: 24px; }
.founder-card p { margin: 8px 0 0; font-size: 14px; color: rgba(243, 237, 225, 0.72); }

/* ---------- How we operate ---------- */

.ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.op {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); transition: border-color 0.3s, transform 0.3s;
}
.op:hover { border-color: rgba(243, 237, 225, 0.24); transform: translateY(-3px); }
.op .viz {
  height: 190px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(168, 134, 90, 0.16), transparent 60%),
    linear-gradient(180deg, #1c1c1e, #121213);
  border-bottom: 1px solid var(--line);
}
.op .viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.op .body { padding: 20px 22px 24px; }
.op p { margin: 8px 0 0; font-size: 14px; color: rgba(243, 237, 225, 0.66); }
.op p strong { color: var(--ivory); font-weight: 500; }
@media (max-width: 680px) { .ops { grid-template-columns: 1fr; } }

/* animated card art */
.viz .s { fill: none; stroke: rgba(243, 237, 225, 0.22); stroke-width: 1; }
.viz .f { fill: var(--ivory); }
.viz .b { fill: var(--brass); }
.ring { transform-box: fill-box; transform-origin: center; animation: ring 4.5s ease-out infinite; }
.ring.r2 { animation-delay: 1.5s; } .ring.r3 { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.bar { transform-box: fill-box; transform-origin: bottom; animation: bar 3.6s ease-in-out infinite; fill: rgba(243, 237, 225, 0.2); }
.bar.hi { fill: var(--brass); }
@keyframes bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.trace { fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: trace 5s ease-in-out infinite; }
@keyframes trace { 0% { stroke-dashoffset: 520; } 60%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.node { animation: node 3s ease-in-out infinite; }
@keyframes node { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.spin { transform-box: view-box; transform-origin: 200px 95px; animation: spin 22s linear infinite; }
.spin.rev { animation-duration: 34s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA ---------- */

.cta { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.cta p { color: var(--stone); margin: 16px 0 26px; font-size: 15px; }

/* ---------- Contact ---------- */

.contact-card {
  max-width: 820px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(243, 237, 225, 0.045), rgba(243, 237, 225, 0.01));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-card > div { padding: 26px 28px; }
.contact-card > div:nth-child(odd) { border-right: 1px solid var(--line); }
.contact-card > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.contact-card dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.contact-card dd { margin: 0; font-size: 16px; }
.contact-card address { font-style: normal; }
.contact-card a { text-decoration-color: rgba(243, 237, 225, 0.35); text-underline-offset: 3px; }
.contact-note { text-align: center; color: var(--stone); font-size: 13.5px; max-width: 56ch; margin: 26px auto 0; }
@media (max-width: 640px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .contact-card > div:last-child { border-bottom: 0; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 36px; font-size: 12.5px; color: var(--stone); }
.site-footer .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer img { height: 26px; width: auto; }
.site-footer .lines { text-align: right; line-height: 1.75; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
@media (max-width: 640px) { .site-footer .lines { text-align: left; } }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(130px, 14vw, 180px) 0 var(--section); }
.legal .wrap { max-width: calc(740px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 46px 0 12px; }
.legal p, .legal li { color: rgba(243, 237, 225, 0.82); }
.legal .muted { color: var(--stone); }
.legal ul { padding-left: 20px; }
.legal a { text-underline-offset: 3px; }

/* ---------- Placeholders (remove once real details are in) ---------- */

.todo { outline: 1px dashed var(--brass); outline-offset: 3px; background: rgba(168, 134, 90, 0.16); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .trace { stroke-dashoffset: 0; }
}

.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin: 0 0 18px; }

/* ---------- Revenue (blurred, seven figures) ---------- */
.stat .redacted { font-size: 0.6em; letter-spacing: 0.01em; filter: blur(8px); }

/* ---------- Founder (wide card) ---------- */
.founder-card { width: min(100%, 780px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.founder-card .photo { aspect-ratio: auto; min-height: 340px; }
.founder-card .photo img { position: absolute; inset: 0; }
.founder-card .photo::after { background: linear-gradient(90deg, transparent 60%, var(--card) 100%); }
.founder-card .body { padding: 30px 30px 30px 14px; align-self: center; }
.founder-card h3 { font-size: 30px; margin-bottom: 6px; }
.founder-card p { margin-top: 12px; font-size: 14.5px; }
@media (max-width: 680px) {
  .founder-card { grid-template-columns: 1fr; max-width: 380px; }
  .founder-card .photo { aspect-ratio: 4 / 5; min-height: 0; }
  .founder-card .photo::after { background: linear-gradient(180deg, transparent 55%, var(--card) 100%); }
  .founder-card .body { padding: 6px 20px 24px; }
}

/* ---------- Ecommerce visuals ---------- */
.bento-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.bento-wrap::after { content: ""; position: absolute; inset: -2px; pointer-events: none; box-shadow: inset 0 0 44px 22px var(--ink); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; height: 220px; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 130%, rgba(168, 134, 90, 0.14), transparent 62%), linear-gradient(180deg, #1b1b1d, #121213);
}
.tile.wide { grid-column: span 2; }
.tile > .pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile .s { fill: none; stroke: rgba(243, 237, 225, 0.16); stroke-width: 1; }
.tile .f { fill: var(--ivory); } .tile .b { fill: var(--brass); }
.tile .lbl text { fill: var(--stone); font: 500 11px var(--sans); text-anchor: middle; letter-spacing: 0.04em; }
.trace.long { stroke-dasharray: 700; stroke-dashoffset: 700; animation: trace-long 6s ease-in-out infinite; vector-effect: non-scaling-stroke; }
@keyframes trace-long { 0% { stroke-dashoffset: 700; opacity: 1; } 55%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.area { animation: area 6s ease-in-out infinite; }
@keyframes area { 0%, 20% { opacity: 0; } 60%, 88% { opacity: 1; } 100% { opacity: 0; } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-in-out infinite; }
@keyframes ping { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1.5); opacity: 1; } }
.donut { fill: none; stroke: var(--brass); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; animation: donut 5s ease-in-out infinite; }
@keyframes donut { 0% { stroke-dashoffset: 352; } 55%, 90% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 352; } }

.feed { position: absolute; inset: 44px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.feed ul { list-style: none; margin: 0; padding: 0 12px; animation: feed 14s linear infinite; }
.feed li { display: flex; align-items: center; gap: 8px; height: 34px; margin-bottom: 8px; padding: 0 10px; font-size: 12px; color: rgba(243, 237, 225, 0.8); border: 1px solid var(--line); border-radius: 8px; background: rgba(243, 237, 225, 0.03); }
.feed i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }
.feed b { margin-left: auto; font-weight: 500; filter: blur(4px); }
@keyframes feed { to { transform: translateY(-50%); } }

.funnel { position: absolute; inset: 52px 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.funnel span {
  display: flex; align-items: center; height: 30px; padding-left: 10px; width: var(--w);
  font-size: 11px; color: rgba(243, 237, 225, 0.8); border-radius: 6px;
  background: rgba(243, 237, 225, 0.1); transform-origin: left;
  animation: funnel 5s ease-in-out infinite; animation-delay: var(--fd, 0s);
}
.funnel .hi { background: var(--brass); color: var(--onyx); font-weight: 500; }
@keyframes funnel { 0%, 100% { transform: scaleX(0.55); opacity: 0.5; } 35%, 80% { transform: scaleX(1); opacity: 1; } }

@media (max-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile { height: 190px; } }
@media (prefers-reduced-motion: reduce) { .trace.long, .donut { stroke-dashoffset: 0; } .area { opacity: 1; } }

.feed li { white-space: nowrap; }
.funnel span { min-width: 78px; white-space: nowrap; }
@media (max-width: 760px) { .feed li { font-size: 11px; padding: 0 8px; gap: 6px; } .feed b { display: none; } }

/* ---------- Hero UI cards ---------- */
.hero-ui { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; text-align: left; }
.hud {
  width: 232px; padding: 12px 14px 14px; border-radius: 12px;
  background: rgba(18, 18, 19, 0.62); border: 1px solid rgba(243, 237, 225, 0.14);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 12px; color: rgba(243, 237, 225, 0.86);
  animation: bob 7s ease-in-out infinite;
}
.hud-top { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--stone); margin-bottom: 10px; }
.hud-top em { margin-left: auto; font-style: normal; color: rgba(243, 237, 225, 0.6); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #7fbf8e; box-shadow: 0 0 0 0 rgba(127, 191, 142, 0.6); animation: live 2s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 8px rgba(127, 191, 142, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hud-orders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hud-orders li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; background: rgba(243, 237, 225, 0.05); border: 1px solid rgba(243, 237, 225, 0.07); animation: order 9s ease-in-out infinite; }
.hud-orders li:nth-child(2) { animation-delay: 1.1s; } .hud-orders li:nth-child(3) { animation-delay: 2.2s; }
.hud-orders i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex: none; }
.hud-orders span { display: grid; line-height: 1.3; }
.hud-orders small { font-size: 10px; color: var(--stone); }
.hud-orders b { margin-left: auto; font-weight: 500; filter: blur(4px); }
@keyframes order { 0%, 4% { opacity: 0; transform: translateY(10px) scale(0.97); } 12%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }

.hud-rev .figure { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 26px; line-height: 1; margin-bottom: 8px; }
.hud-rev .figure b { font-weight: 500; filter: blur(6px); }
.hud-rev .up { font-family: var(--sans); font-size: 10px; color: #7fbf8e; }
.hud-rev svg { display: block; width: 100%; height: 62px; }
.hud-rev .trace { stroke-width: 1.5; }

.rail { height: 4px; border-radius: 4px; background: rgba(243, 237, 225, 0.12); overflow: hidden; margin: 4px 0 9px; }
.rail span { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--brass); transform-origin: left; animation: rail 7s ease-in-out infinite; }
@keyframes rail { 0% { transform: scaleX(0.08); } 40%, 55% { transform: scaleX(0.52); } 88%, 100% { transform: scaleX(1); } }
.steps { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--stone); }

.hud-toast { width: auto; display: flex; align-items: center; gap: 9px; padding: 10px 14px; animation: bob 7s ease-in-out infinite, toast 8s ease-in-out infinite; }
.hud-toast .tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #7fbf8e; color: var(--onyx); font-size: 10px; margin: 0; border: 0; }
@keyframes toast { 0%, 8% { opacity: 0; } 18%, 80% { opacity: 1; } 92%, 100% { opacity: 0; } }

/* small screens: two compact cards under the text */
@media (max-width: 1179px) {
  .hud-orders, .hud-toast { display: none; }
  .hud { width: min(100%, 220px); }
  .hero { padding-bottom: 90px; }
}
@media (max-width: 520px) { .hud { width: calc(50% - 6px); padding: 10px 11px 12px; } .hud-rev .figure { font-size: 20px; } .steps { font-size: 9px; } }

/* large screens: cards float around the headline */
@media (min-width: 1180px) {
  .hero-ui { margin: 0; display: block; }
  .hud { position: absolute; z-index: 1; }
  .hud-orders { left: max(4%, calc(50% - 600px)); top: 23%; animation-duration: 8s; }
  .hud-ship { left: max(8%, calc(50% - 560px)); bottom: 17%; animation-duration: 6.5s; animation-delay: -2s; }
  .hud-rev { right: max(4%, calc(50% - 600px)); top: 27%; animation-duration: 7.5s; animation-delay: -4s; }
  .hud-toast { right: max(9%, calc(50% - 540px)); bottom: 21%; animation-delay: -1s, 1s; }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; max-width: 980px; margin: 0 auto; align-items: start; }
.contact-grid .contact-card { grid-template-columns: 1fr; max-width: none; margin: 0; }
.contact-grid .contact-card > div { padding: 20px 24px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
.contact-grid .contact-card > div:last-child { border-bottom: 0; }
.contact-form {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(243, 237, 225, 0.045), rgba(243, 237, 225, 0.01));
  display: grid; gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 13px; border-radius: 8px;
  background: rgba(13, 13, 14, 0.6); border: 1px solid rgba(243, 237, 225, 0.14);
  color: var(--ivory); font: 400 15px/1.5 var(--sans); letter-spacing: 0; text-transform: none;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); background: rgba(13, 13, 14, 0.9); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-form button { cursor: pointer; font-family: var(--sans); }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.form-status { margin: 0; font-size: 13.5px; color: var(--stone); }
.form-status.ok { color: #7fbf8e; } .form-status.err { color: #d99a8a; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { padding: 20px; } .contact-form .row { grid-template-columns: 1fr; } }
