:root {
  --bg: #0a0b0d;
  --bg-soft: #111318;
  --text: #f5f2ea;
  --muted: #b8b5ad;
  --line: rgba(255,255,255,.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10,11,13,.84);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img {
  width: min(560px, 52vw);
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}
.brand-fallback {
  display: none;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
}
.nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: .95rem;
}
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: #d7b777; }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 76px 20px 66px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(190,137,49,.075), transparent 34%),
    linear-gradient(180deg, #111319 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  background: url("../images/pendragon-emblem.jpg") center / contain no-repeat;
  opacity: .075;
  filter: grayscale(1) contrast(1.15);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 25%, rgba(10,11,13,.18) 52%, rgba(10,11,13,.76) 100%);
}
.hero-inner { width: min(980px, 100%); }
.hero .eyebrow {
  color: #c8a56a;
}
.hero .eyebrow::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, #b58a45, transparent);
}
.hero h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: #d7b777;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  font-weight: 700;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.hero p {
  width: min(720px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.section {
  padding: 92px 20px;
  border-top: 1px solid var(--line);
}
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.narrow { width: min(820px, 100%); }
.section h2, .section h3, .page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
}
.section h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 28px; line-height: 1.1; }
.section h3 { font-size: 1.65rem; margin-top: 44px; }
.section p { color: var(--muted); font-size: 1.07rem; }
.section strong { color: var(--text); }

.ident-wrap {
  width: min(960px, 100%);
  margin: 0 auto;
}
.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  background: #050607;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  margin-top: 34px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 30px;
}
.card h3 { margin-top: 0; }

.future {
  text-align: center;
  padding: 84px 20px;
}
.future blockquote {
  margin: 0 auto;
  width: min(720px, 100%);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}
.future strong { color: var(--text); }

.page-hero {
  padding: 110px 20px 68px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #111319 0%, var(--bg) 100%);
}
.page-hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.page-hero p { color: var(--muted); max-width: 760px; font-size: 1.15rem; }

.news-item {
  padding: 34px 0 12px;
  border-bottom: 1px solid var(--line);
}
.news-date {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 42px 20px;
  color: var(--muted);
}
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.footer-links, .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer a:hover { color: var(--text); }
.social-disabled { opacity: .55; }

@media (max-width: 760px) {
  .header-inner { min-height: 72px; width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: min(340px, 68vw); }
  .menu-button { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    padding: 18px;
    background: #111318;
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 58vh; }
}


.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 46px;
  align-items: center;
}
.project-feature img,
.cinematic-break img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.project-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
}
.cinematic-break {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050607;
}
.cinematic-break img {
  border: 0;
  max-height: 72vh;
  object-fit: cover;
}
.contact-link {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--muted);
}
.contact-link:hover { border-color: var(--text); }
@media (max-width: 820px) {
  .project-feature { grid-template-columns: 1fr; gap: 28px; }
}


.project-meta {
  color: #c8a56a;
}

.footer-social {
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #f2f0eb;
  background: transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .social-fill {
  fill: currentColor;
  stroke: none;
}

.social-icon:hover {
  background: #f2f0eb;
  color: #0b0c0e;
  border-color: #f2f0eb;
  transform: translateY(-1px);
}


/* About page: studio-brand treatment without changing the editorial layout */
.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  right: max(5vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  background: url("../images/pendragon-emblem.jpg") center / contain no-repeat;
  opacity: .06;
  filter: grayscale(1) contrast(1.15);
  border-radius: 50%;
}

.about-hero .eyebrow {
  color: #c8a56a;
}

@media (max-width: 760px) {
  .about-hero::before {
    width: 78vw;
    right: -22vw;
    opacity: .05;
  }
}


/* Projects page: related to About, but with its own emblem composition */
.projects-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(600px, 50vw);
  aspect-ratio: 1;
  right: max(2vw, 20px);
  top: 60%;
  transform: translateY(-50%);
  background: url("../images/pendragon-emblem.jpg") center / contain no-repeat;
  opacity: .055;
  filter: grayscale(1) contrast(1.15);
  border-radius: 50%;
}

.projects-hero .eyebrow {
  color: #c8a56a;
}

/* Ensure project status follows the site's gold eyebrow language */
.project-meta {
  color: #c8a56a !important;
}

@media (max-width: 760px) {
  .projects-hero::before {
    width: 82vw;
    right: -25vw;
    top: 62%;
    opacity: .045;
  }
}


/* News & Updates: restrained editorial metadata treatment */
body[data-page="news"] .page-hero .eyebrow,
body[data-page="news"] .news-date {
  color: #c8a56a;
}


/* Contact page: restrained branded composition */
.contact-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 510px;
}

.contact-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(640px, 48vw);
  aspect-ratio: 1;
  right: max(4vw, 30px);
  top: 52%;
  transform: translateY(-50%);
  background: url("../images/pendragon-emblem.jpg") center / contain no-repeat;
  opacity: .075;
  filter: grayscale(1) contrast(1.15);
  border-radius: 50%;
}

body[data-page="contact"] .page-hero .eyebrow,
.contact-follow-label {
  color: #c8a56a;
}

.contact-context {
  margin-top: 16px;
  color: rgba(242,240,235,.68);
  font-size: .96rem;
}

.contact-follow {
  margin-top: 34px;
}

.contact-follow-label {
  margin: 0 0 13px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

@media (max-width: 760px) {
  .contact-hero {
    min-height: auto;
  }

  .contact-hero::before {
    width: 86vw;
    right: -30vw;
    top: 52%;
    opacity: .05;
  }
}
