/* Fireside Realm Studio - studio site
   Colours and fonts are set once here, at the top. Change them and the whole page follows. */
:root {
  --bg: #14100d;          /* page background: warm charcoal */
  --bg-raised: #1e1813;   /* cards */
  --line: #3a2e24;        /* thin borders */
  --text: #f1e6d6;        /* main text: candle cream */
  --muted: #b9a891;       /* secondary text */
  --ember: #ec8a3d;       /* accent: firelight */
  --ember-deep: #c4622a;
  --night: #1b2638;       /* cool contrast */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; padding-block: clamp(64px, 10vw, 120px); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(20,16,13,.85), rgba(20,16,13,0));
  transition: background .3s;
}
.bar.solid { background: rgba(20,16,13,.94); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.1rem var(--font-head); }
.brand-mark { width: 30px; height: 30px; color: var(--ember); flex: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20,16,13,.2) 45%, rgba(20,16,13,0) 70%),
    linear-gradient(to right, rgba(20,16,13,.8) 0%, rgba(20,16,13,0) 60%);
}
.hero-text { position: relative; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding-bottom: clamp(56px, 12vh, 120px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
.eyebrow, .tag {
  margin: 0 0 12px; color: var(--ember);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--text); margin: 0 0 28px; max-width: 32ch; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--ember); color: #1b0f06; text-decoration: none; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(236,138,61,.5); transition: transform .2s, box-shadow .3s, background .2s;
  overflow-wrap: anywhere;
}
.btn:hover { background: #f59a50; transform: translateY(-2px); box-shadow: 0 8px 30px -6px rgba(236,138,61,.6); }

/* ---------- about ---------- */
.about { max-width: 760px; text-align: center; }
.about p { color: var(--muted); font-size: 1.2rem; margin: 0; }

/* ---------- projects ---------- */
.projects { padding-top: 0; }
.project {
  display: grid; grid-template-columns: 1.3fr 1fr; text-decoration: none;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project:hover { transform: translateY(-4px); border-color: var(--ember-deep); box-shadow: 0 24px 60px -24px rgba(236,138,61,.35); }
.project img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.project-text { padding: clamp(24px, 4vw, 44px); align-self: center; }
.project-text h3 { font-size: 2rem; }
.project-text p:not(.tag) { color: var(--muted); }
.more { display: inline-block; margin-top: 8px; color: var(--ember); font-weight: 700; }

/* ---------- team ---------- */
.team { padding-top: 0; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 24px; text-align: center;
}
/* Swap the initials for a photo: replace the <span class="initials"> with <img class="photo" src="images/name.jpg" alt=""> */
.initials, .photo {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; object-fit: cover;
  background: radial-gradient(circle at 50% 70%, var(--ember-deep), var(--night));
  font: 600 1.6rem var(--font-head); color: var(--text);
}
.person h3 { font-size: 1.3rem; margin-bottom: 4px; }
.person p { margin: 0; color: var(--ember); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ---------- contact ---------- */
.contact {
  text-align: center; max-width: 820px;
  background: radial-gradient(ellipse at 50% 120%, rgba(236,138,61,.18), transparent 70%);
}
.contact p { color: var(--muted); margin: 0 0 28px; }
.contact .press-link { margin: 28px 0 0; font-size: .95rem; }
.contact .press-link a { color: var(--ember); }

/* ---------- footer ---------- */
.foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }

/* ---------- scroll reveal (main.js adds .in when a block scrolls into view) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .project { transition: none; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .nav a:not(:last-child) { display: none; }
  .project { grid-template-columns: 1fr; }
  .project img { min-height: 0; aspect-ratio: 16 / 9; }
  .people { grid-template-columns: 1fr; }
}
