/* BrilliaCore — editorial career magazine */
:root {
  --crimson:     #970C11;
  --crimson-mid: #7A0A0E;
  --crimson-deep:#4A0608;
  --ink:         #1A0809;
  --paper:       #F7F2F0;
  --paper-2:     #EFE6E4;
  --sheet:       #FFFBF9;
  --text:        #1A0809;
  --muted:       #6E4E50;
  --border:      #E2D2D1;
  --cream:       #F8F4F2;
  --ease:        cubic-bezier(.22,.61,.36,1);
  --maxw:        1120px;
  --serif:       "Bodoni Moda", "Times New Roman", serif;
  --sans:        "Figtree", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--crimson); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 0; font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--crimson); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 242, 240, .92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px -22px rgba(26, 8, 9, .4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 4px; }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--cream); background: var(--crimson); padding: 9px 16px;
  letter-spacing: .1em;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — magazine type lockup */
.hero {
  position: relative;
  padding: 112px 0 72px;
  background: var(--sheet);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 18px 18px 18px 18px;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 1;
}
.spine {
  display: none;
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap;
  z-index: 2;
}
@media (min-width: 1180px) {
  .spine { display: block; }
}

.hero-frame { position: relative; z-index: 2; }

.masthead { text-align: center; padding-top: 12px; }
.masthead-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.meta-dot {
  width: 5px; height: 5px; background: var(--crimson);
  transform: rotate(45deg);
  animation: spark-pulse 2.4s var(--ease) infinite;
}
.lockup {
  position: relative;
  display: grid; place-items: center;
  margin: 28px 0 8px;
}
.lockup h1 {
  font-size: clamp(3.4rem, 12vw, 8.4rem);
  font-weight: 600;
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
.lock-word { display: block; }
.lock-core { font-style: italic; font-weight: 500; letter-spacing: .18em; }

.spark {
  position: absolute;
  width: clamp(72px, 12vw, 128px);
  height: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .14;
  pointer-events: none;
  animation: spark-spin 22s linear infinite;
}
.spark-body {
  fill: var(--crimson);
  transform-origin: 50px 50px;
  animation: spark-breathe 3.6s ease-in-out infinite;
}

.issue-rule {
  width: min(420px, 70%);
  height: 1px;
  margin: 18px auto 16px;
  background: var(--crimson);
  transform-origin: center;
  animation: rule-draw 1.4s var(--ease) both;
}
.kicker-line {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--crimson); font-weight: 600;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px 56px;
  align-items: end;
  margin-top: 56px;
  padding-bottom: 12px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.cover-hed {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cover-hed em { font-style: italic; color: var(--crimson); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cover-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  column-gap: 28px;
}
.cover-deck .col {
  font-size: 1.02rem;
  color: var(--muted);
  padding-top: 4px;
  border-top: 2px solid var(--crimson);
}

@keyframes spark-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spark-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
  50% { opacity: .45; transform: rotate(45deg) scale(1.4); }
}
@keyframes rule-draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .spark, .spark-body, .meta-dot, .issue-rule, .folio-track { animation: none; }
}

/* Folio ticker */
.folio-strip {
  overflow: hidden;
  background: var(--crimson);
  color: var(--cream);
  border-block: 1px solid var(--crimson-deep);
}
.folio-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 14px 0; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.folio-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.spark-mark { font-style: normal; font-size: .7rem; opacity: .7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section-paper { background: var(--paper-2); border-block: 1px solid var(--border); }

.sec-folio {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px; margin-bottom: 36px;
}
.sec-folio span:first-child { color: var(--crimson); }

/* Brief — two column magazine */
.brief-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.dept-label {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--crimson); font-weight: 600; margin-bottom: 16px;
  display: block;
}
.brief-hed h2, .dept-intro h2, .match-head h2, .faq-lead h2, .contact-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--ink);
}
.brief-copy .drop {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
}
.brief-copy .drop::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: .8;
  padding-right: 10px;
  color: var(--crimson);
  font-weight: 600;
}
.brief-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  column-rule: 1px solid var(--border);
  column-gap: 28px;
}
.brief-cols p { color: var(--muted); font-size: .98rem; }

.dept-intro { max-width: 640px; margin-bottom: 40px; }
.dept-intro p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.dept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dept-grid .dept {
  background: var(--sheet);
  border: 1px solid var(--border);
  padding: 28px 26px 30px;
  min-height: 100%;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.dept-no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--crimson);
  margin-bottom: 10px;
}
.dept-grid h3 { font-size: 1.7rem; margin-bottom: 12px; }
.dept-grid p { color: var(--muted); font-size: .98rem; }

/* Quote band — dark, near-white text */
.quote-band {
  background: var(--crimson-deep);
  color: var(--cream);
  padding: 88px 0;
}
.quote-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-kicker {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: #F0D8D8; font-weight: 600; margin-bottom: 22px;
}
.quote-band blockquote {
  font-size: clamp(1.8rem, 4.6vw, 3.3rem);
  font-style: italic;
  font-weight: 500;
  color: #F8F4F2;
  line-height: 1.18;
}
.quote-attr {
  margin-top: 22px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: #F0D8D8;
}

/* Match rows */
.match-head { max-width: 640px; margin-bottom: 12px; }
.match-head p { color: var(--muted); margin: 14px 0 28px; font-size: 1.05rem; }
.match-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.match-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .28s var(--ease), padding .28s var(--ease);
}
.match-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--crimson);
  line-height: 1;
}
.match-row h3 { font-size: 1.55rem; margin-bottom: 8px; }
.match-row p { color: var(--muted); max-width: 62ch; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.faq-lead p { color: var(--muted); margin-top: 16px; }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px;
  font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: var(--ink);
}
.faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--crimson); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0 0 22px; padding-right: 24px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-copy p { color: var(--muted); margin: 16px 0 22px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--crimson);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.contact-form {
  background: var(--sheet);
  border: 1px solid var(--border);
  padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(151, 12, 17, .12);
}

/* Footer — dark band, near-white text */
.site-footer {
  background: var(--crimson-deep);
  color: #F8F4F2;
  padding: 56px 0 32px;
}
.site-footer .brand-name { color: #F8F4F2; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-tag {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: #F0D8D8; margin: 0;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.footer-nav a {
  color: #F0D8D8; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  transition: color .2s;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(248, 244, 242, .16);
  color: #E8D0D0; font-size: 14px;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hover after reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .nav .nav-cta:hover { background: var(--crimson-mid); color: #fff; transform: translateY(-2px); }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--crimson-mid);
    box-shadow: 0 14px 28px -12px rgba(151, 12, 17, .55);
  }
  .btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
  .dept-grid .dept:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px -24px rgba(26, 8, 9, .4);
    border-color: var(--crimson);
  }
  .match-row:hover {
    background: var(--sheet);
    padding-left: 16px;
    padding-right: 16px;
    transform: translateX(6px);
  }
  .faq-q:hover { color: var(--crimson); }
  .contact-email:hover { border-bottom-color: var(--crimson); color: var(--crimson-mid); }
  .footer-nav a:hover { color: #fff; }
  .contact-form:hover { box-shadow: 0 18px 40px -28px rgba(26, 8, 9, .35); }
}

/* Tablet */
@media (max-width: 900px) {
  .hero::before { inset: 12px; }
  .cover-grid, .brief-grid, .faq-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cover-deck, .brief-cols, .dept-grid {
    grid-template-columns: 1fr 1fr;
  }
  .spine { display: none; }
  .cover-grid { margin-top: 40px; }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(247, 242, 240, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--ink);
  }
  .nav .nav-cta { text-align: center; margin-top: 12px; border: 0; }

  .hero { padding: 104px 0 56px; }
  .hero::before { inset: 10px; }
  .section { padding: 72px 0; }
  .quote-band { padding: 64px 0; }
  .container { padding: 0 20px; }

  .cover-deck, .brief-cols, .dept-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .brief-cols { column-rule: none; }
  .match-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cover-actions .btn, .contact-form .btn { width: 100%; }
  .lockup h1 { font-size: clamp(3.2rem, 18vw, 4.6rem); }
  .masthead-meta { gap: 10px; letter-spacing: .14em; font-size: 10px; }
  .dept-grid .dept { padding: 24px 20px; }
  .contact-form { padding: 22px 18px; }
  .footer-bottom { flex-direction: column; }
  .sec-folio { margin-bottom: 28px; }
}

@media (max-width: 420px) {
  .hero { padding: 96px 0 48px; }
  .section { padding: 64px 0; }
  .header-inner { height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .masthead-meta { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .cover-hed { font-size: 2.15rem; }
  .brief-hed h2, .dept-intro h2, .match-head h2, .faq-lead h2, .contact-copy h2 {
    font-size: 1.85rem;
  }
}
