/* ============================================================
   Worldwize Pte. Ltd. — corporate site
   Aesthetic: warm editorial / publishing house
   ============================================================ */

:root {
  --paper: #faf5ea;
  --paper-2: #f3ecdc;
  --ink: #191611;
  --ink-soft: #4a443a;
  --muted: #756d5f;
  --line: #ddd3c0;
  --accent: #d8492a;      /* vermilion */
  --accent-deep: #b83b20;
  --pine: #113a30;        /* grounding deep green */
  --pine-soft: #2f5a4d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- atmosphere ---------- */
body {
  background-image:
    radial-gradient(60% 55% at 82% 0%, rgba(216, 73, 42, 0.10), transparent 60%),
    radial-gradient(50% 45% at 0% 12%, rgba(17, 58, 48, 0.07), transparent 55%);
  background-attachment: fixed;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* keep content above grain */
.site-head,
main,
.site-foot { position: relative; z-index: 2; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-head.scrolled { border-bottom-color: var(--line); }

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; color: var(--pine); flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.1rem);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.5rem 1.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.3rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.7rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}
h1 em {
  font-style: italic;
  font-weight: 420;
  color: var(--accent);
}

.lede {
  margin-top: 1.6rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* masthead card */
.masthead {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem 1.9rem;
  box-shadow: 0 24px 50px -32px rgba(25, 22, 17, 0.45);
  overflow: hidden;
}
.masthead-orbit {
  position: absolute;
  top: -46px; right: -46px;
  width: 150px; height: 150px;
  opacity: 0.55;
}
.orbit-ring {
  position: absolute; inset: 0;
  border: 1.5px solid var(--pine-soft);
  border-radius: 50%;
  opacity: 0.5;
}
.orbit-ring.ring-2 { inset: 26px; opacity: 0.35; }
.orbit-dot {
  position: absolute;
  top: 8px; left: 50%;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
}
.masthead dl { display: grid; gap: 1.15rem; position: relative; }
.masthead dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.masthead dd {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
}

/* placeholder text the user must replace */
.fill {
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92em;
}

/* ---------- section head ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-lede {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  padding: 1.9rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--pine-soft);
  box-shadow: 0 22px 44px -30px rgba(17, 58, 48, 0.5);
}
.pillar-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.pillar p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- products ---------- */
.product {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--paper-2);
  margin-bottom: 1.4rem;
}
.product-tags { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}
.tag-live { color: var(--pine); border-color: var(--pine-soft); }
.tag-live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pine);
  margin-right: 0.4rem;
  vertical-align: middle;
}
.tag-soon { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.product h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.product-body p { margin-top: 0.85rem; color: var(--ink-soft); max-width: 46ch; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.product-link:hover { border-bottom-color: var(--accent); }
.product-link .arrow { transition: transform 0.22s ease; }
.product-link:hover .arrow { transform: translate(2px, -2px); }

/* comic-scoop visual mark */
.product-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--pine), var(--pine-soft));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.scoop-mark {
  position: relative;
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  gap: 8px;
  align-content: center;
}
.scoop-strip {
  height: 14px;
  border-radius: 4px;
  background: rgba(250, 245, 234, 0.9);
}
.scoop-strip:nth-child(1) { width: 100%; }
.scoop-strip:nth-child(2) { width: 72%; background: var(--accent); }
.scoop-strip:nth-child(3) { width: 88%; }
.scoop-cap {
  position: absolute;
  right: -6%; bottom: -14%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: rgba(250, 245, 234, 0.16);
  letter-spacing: 0.02em;
}

/* live-product cover image (pulled from thecomicscoop.com) */
.product-visual-cover {
  aspect-ratio: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  overflow: visible;
}
.product-cover {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 26px 48px -18px rgba(17, 22, 15, 0.6);
  transform: rotate(-2.5deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product:hover .product-cover { transform: rotate(0) translateY(-5px); }

.product-soon { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.product-visual-soon {
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, var(--paper-2) 12px, var(--paper-2) 24px);
  border: 1px dashed var(--line);
}
.soon-plus {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--muted);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about-copy .about-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.about-copy > p:not(.about-lead) { color: var(--ink-soft); max-width: 54ch; }

.facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.facts dd { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }

/* ---------- contact ---------- */
.contact {
  text-align: center;
}
.contact-inner {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .index { margin-bottom: 0.9rem; }
.contact-mail {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease;
}
.contact-mail:hover { color: var(--accent); }
.contact-note {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.site-foot .brand { color: var(--paper); }
.site-foot .brand-mark { color: var(--paper); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 245, 234, 0.14);
}
.foot-brand p {
  margin-top: 0.9rem;
  color: rgba(250, 245, 234, 0.6);
  max-width: 26ch;
  font-size: 0.95rem;
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.7rem 2.5rem;
  align-content: start;
}
.foot-nav a {
  text-decoration: none;
  color: rgba(250, 245, 234, 0.72);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}
.foot-nav a:hover { color: var(--paper); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(250, 245, 234, 0.5);
}
.foot-legal strong { color: rgba(250, 245, 234, 0.8); font-weight: 600; }
.site-foot .fill { color: rgba(250, 245, 234, 0.45); }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 46rem; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.legal .back:hover { text-decoration: underline; }
.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-deep); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .masthead { max-width: 26rem; }
  .pillars { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-visual { order: -1; max-height: 220px; }
  .product-visual-cover { max-height: none; }
  .product-cover { max-height: 300px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav a:not(.nav-cta) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
