/* ===================================================================
   Shumbdit Studios
   One stylesheet for every page. Design tokens live in :root — change
   those and the whole site re-themes.
   =================================================================== */

:root {
  /* Surfaces */
  --bg:         #060607;
  --bg-2:       #0c0c0f;
  --surface:    rgba(255, 255, 255, 0.035);
  --surface-2:  rgba(255, 255, 255, 0.06);

  /* Ink */
  --text:       #f4f2f0;
  --muted:      #94919d;
  --faint:      #605d69;

  /* Accent */
  --accent:     #ff6a3d;
  --accent-2:   #7c5cff;
  --accent-dim: rgba(255, 106, 61, 0.14);

  /* Lines */
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.14);

  /* Type */
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --measure: 68rem;

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Atmosphere ---------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 34rem at 18% -8%,  rgba(255, 106, 61, 0.15), transparent 62%),
    radial-gradient(44rem 32rem at 92% 108%, rgba(124, 92, 255, 0.13), transparent 66%);
}

/* Fine grain so large flat blacks don't band on wide displays. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  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.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}

/* --- Shell --------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1 0 auto; }

/* --- Header -------------------------------------------------------- */

/* Full-bleed bar; the content inside is constrained by .shell so the
   backdrop and hairline reach both edges of the viewport. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-b {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Hamburger */

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.55rem 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.menu-btn:hover { border-color: var(--line-2); background: var(--surface-2); }

.bars {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.bars i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin-left: -6px;
  background: #14100e;
  border-radius: 2px;
  transition: transform 0.32s var(--ease);
}

.bars i:nth-child(1) { transform: translateY(-3.5px); }
.bars i:nth-child(2) { transform: translateY(2.5px); }

body.menu-open .bars i:nth-child(1) { transform: rotate(45deg); }
body.menu-open .bars i:nth-child(2) { transform: rotate(-45deg); }

/* --- Overlay menu -------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--bg-2);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

body.menu-open .menu { visibility: visible; opacity: 1; }

.menu-inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
}

.menu ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.menu li { border-bottom: 1px solid var(--line); }

.menu li a {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(0.9rem, 2.6vw, 1.5rem) 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease), padding-left 0.35s var(--ease);
}

.menu li a:hover,
.menu li a:focus-visible { color: var(--text); padding-left: 0.6rem; }

.menu li a[aria-current="page"] { color: var(--text); }

.menu .num {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.menu-foot {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.menu-foot a { text-decoration: none; transition: color 0.2s; }
.menu-foot a:hover { color: var(--accent); }

/* Staggered entrance for the menu rows. */
body.menu-open .menu li {
  animation: menu-in 0.5s var(--ease) both;
}

body.menu-open .menu li:nth-child(1) { animation-delay: 0.06s; }
body.menu-open .menu li:nth-child(2) { animation-delay: 0.12s; }
body.menu-open .menu li:nth-child(3) { animation-delay: 0.18s; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* --- Typography ---------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(3rem, 11vw, 7rem);
}

.display .line { display: block; }

.display .line-2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
}

h1.page-title { font-size: clamp(2.5rem, 7vw, 4.25rem); }

h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

h3 { font-size: 1.0625rem; letter-spacing: -0.02em; }

.lead {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

.prose { max-width: 36rem; color: var(--muted); }
.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 500; }

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

.hero {
  padding-block: clamp(4rem, 14vh, 9rem) clamp(3.5rem, 10vh, 6rem);
}

.section {
  padding-block: clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Status pill --------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.5);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}

@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 106, 61, 0); } }

/* --- Buttons ------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100e;
}

.btn-primary:hover {
  background: #ff8158;
  border-color: #ff8158;
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Cards --------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
}

a.card { text-decoration: none; display: block; }

a.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.card h3 { margin: 0 0 0.5rem; }

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.card .card-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Definition list of studio facts. */
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts dd {
  margin: 0;
  font-size: 0.9375rem;
  text-align: right;
}

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

.mailto {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.4s var(--ease), color 0.25s var(--ease);
  overflow-wrap: anywhere;
}

.mailto:hover { color: var(--accent); background-size: 100% 2px; }

.social-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.social svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: color 0.25s; }
.social:hover svg { color: var(--accent); }

.social-name { font-size: 0.9375rem; font-weight: 500; }
.social-handle { display: block; font-size: 0.8125rem; color: var(--faint); line-height: 1.4; }

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

.site-footer {
  flex: none;
  margin-top: clamp(4rem, 12vh, 7rem);
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* --- Page entrance ------------------------------------------------- */

.reveal { animation: rise 0.65s var(--ease) both; }
.reveal-2 { animation-delay: 0.08s; }
.reveal-3 { animation-delay: 0.16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --- Motion preferences -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Narrow screens ------------------------------------------------ */

@media (max-width: 30rem) {
  .menu-btn-label { display: none; }
  .menu-btn { padding: 0.5rem; }
  .facts div { flex-direction: column; gap: 0.15rem; }
  .facts dd { text-align: left; }
}
