/* =====================================================
   BEYONDTABLES — ONE STYLE FILE FOR ALL PAGES
   Change a colour here and every page updates.
   ===================================================== */
:root {
  --bg: #E4E2DD;              /* concrete background */
  --ink: #1E1E1E;             /* main text */
  --sub: #4a4a46;             /* secondary text */
  --muted: #6b6b66;           /* small grey text */
  --accent: #2E8B57;          /* signal green (highlights like "More space.") */
  --green: #2E8B57;           /* green (logo, buttons, dates) */
  --label: #1E1E1E;           /* dark section labels */
  --grid: rgba(30,30,30,0.12);
  --line: rgba(30,30,30,0.12);
  --white: #FFFFFF;

  /* the 4 sections — each has its own colour */
  --c1: #6CC08B;              /* 01 Connect */
  --c2: #D8C7A8;              /* 02 Audio */
  --c3: #9DB4C8;              /* 03 Efficiency */
  --c4: #F7F5F0;              /* 04 Get out */
  --card-title: #1E1E1E;      /* same name colour on all 4 cards */
  --card-text: rgba(30,30,30,0.82); /* same text colour on all 4 cards */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO (grid background) ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
/* grid lines live on a separate layer so the fade never dims the text */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}
.hero.short { padding: 72px 0 40px; }
.top-link {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.05em;
  color: var(--ink); text-decoration: none; opacity: 0.7;
}
.top-link:hover { opacity: 1; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.hero-top-row { display: flex; align-items: center; gap: 20px; }

/* ===== LOGO: axonometric table in a morphing shape ===== */
.logo {
  width: 96px; height: 96px; flex-shrink: 0; background: var(--green);
  border: 3px solid var(--white); display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  /* fixed organic shape (a sibling of the photo shape on Ruza's personal site) */
  border-radius: 62% 38% 42% 58% / 52% 62% 38% 48%;
}
.logo svg { width: 54%; height: 54%; fill: none; stroke: var(--white); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.logo.small { width: 56px; height: 56px; border-width: 2px; }
/* walking table: the legs take a step */
.logo .leg-a { animation: stride-a 1.8s ease-in-out infinite; transform-origin: 12px 18px; }
.logo .leg-b { animation: stride-b 1.8s ease-in-out infinite; transform-origin: 36px 18px; }
@keyframes stride-a { 0%,100% { transform: rotate(10deg); } 50% { transform: rotate(-8deg); } }
@keyframes stride-b { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@keyframes screen-to-space {
  0%, 100% { border-radius: 8%; }
  40% { border-radius: 70% 30% 60% 40% / 50% 70% 30% 50%; }
  60% { border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%; }
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sub); text-decoration: none; display: block; margin-bottom: 4px;
}
.wordmark:hover { color: var(--green); }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
h1 span { color: var(--accent); }
.hero.short h1 { font-size: 32px; }

.hero-sub { margin-top: 18px; }
.hero-sub p { color: var(--sub); font-size: 16px; max-width: 56ch; }
.hero-sub p + p { margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: var(--green); color: var(--white); border: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.18); }

/* ===== SECTIONS ===== */
section { padding: 48px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.eyebrow {
  display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--label); color: var(--white);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
/* page-coloured labels on sub-pages */
.eyebrow.c1, .eyebrow.c2, .eyebrow.c3, .eyebrow.c4 { color: var(--card-title); }
.eyebrow.c1 { background: var(--c1); } .eyebrow.c2 { background: var(--c2); }
.eyebrow.c3 { background: var(--c3); } .eyebrow.c4 { background: var(--c4); }

/* ===== HOMEPAGE CARDS ===== */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: flex; flex-direction: column; padding: 22px; border-radius: 14px;
  text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 16px 28px rgba(0,0,0,0.18); }
.card.c1 { background: var(--c1); } .card.c2 { background: var(--c2); }
.card.c3 { background: var(--c3); } .card.c4 { background: var(--c4); }
.card .num, .card .title, .card .arrow { color: var(--card-title); font-family: 'Space Grotesk', sans-serif; }
.card .num { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.card .title { font-weight: 500; font-size: 20px; line-height: 1.2; margin: 10px 0 8px; }
.card .desc { font-size: 14px; flex: 1; color: var(--card-text); }
.card .arrow { font-weight: 500; font-size: 14px; margin-top: 16px; }

/* ===== WHITE PANEL (newsletter, about text, privacy) ===== */
.panel { background: var(--white); border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.panel .title { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; margin-bottom: 14px; }

.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 200px; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.15);
  background: var(--white); color: var(--ink); outline: none;
}
.newsletter-input:focus { border-color: var(--green); }
.newsletter-form .btn { margin-top: 0; }
.small-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ===== LIST ITEMS (Listen / Tools / Calendar) ===== */
.cat { margin-top: 32px; }
.cat:first-of-type { margin-top: 0; }
.cat-label {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px;
}
.list { display: grid; gap: 8px; }
.list:empty::before {
  content: "Coming soon"; display: block; padding: 14px 18px; border-radius: 12px;
  border: 1px dashed rgba(30,30,30,0.25); color: var(--muted); font-size: 14px;
}
.item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  padding: 16px 18px; border-radius: 12px; background: var(--white);
  text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.item-date { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); font-weight: 700; line-height: 1.4; min-width: 7rem; }
.item-main { grid-column: 2; }
.item:not(:has(.item-date)) .item-main { grid-column: 1 / 3; }
.item-title { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 17px; }
.item-desc { font-size: 13px; color: var(--muted); }
.item-tag {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--sub);
}

/* ===== TEXT PAGES (About / Privacy) ===== */
.prose p { font-size: 16px; margin-bottom: 1.1rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--accent); font-style: normal; font-weight: 500; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--green); margin: 1.8rem 0 0.6rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--green); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.closing {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.35;
  color: var(--ink); background: var(--c1); border-radius: 14px; padding: 24px; margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0 60px; color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
footer nav { display: flex; gap: 16px; }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ===== MOBILE ===== */
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item-main, .item:not(:has(.item-date)) .item-main { grid-column: 1; }
  .item-tag { justify-self: start; }
}
@media (max-width: 480px) {
  .hero { padding: 64px 0 48px; }
  .logo { width: 80px; height: 80px; }
  .logo.small { width: 48px; height: 48px; }
  h1 { font-size: 28px; }
  .hero.short h1 { font-size: 26px; }
}

/* ===== GENTLE FADE-IN ===== */
.js .fade-section { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .fade-section.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .logo .leg-a, .logo .leg-b { animation: none; }
  .js .fade-section { opacity: 1; transform: none; transition: none; }
}
