/* Perennial Labs — shared design system */

:root {
  --surface: #F4F5F6;
  --surface-raised: #FFFFFF;
  --line: #E2E4E7;
  --silver: #B8BCC2;
  --ink: #16181B;
  --ink-muted: #5C6168;
  --vital: #E99A9C;
  --vital-deep: #A8445A;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 400; }

p { margin: 0 0 1.1em; }
p.lede { font-size: 1.2rem; color: var(--ink-muted); max-width: 40em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vital-deep);
  text-decoration: none;
  font-size: 0.98rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover { border-color: var(--vital-deep); }
.text-link .arrow { transition: transform 0.2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

.btn-primary {
  display: inline-block;
  background: var(--vital-deep);
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--vital-deep);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.btn-primary:hover { background: #8f3a4d; border-color: #8f3a4d; box-shadow: 0 10px 24px -12px rgba(168, 68, 90, 0.55); }
.btn-primary:active { transform: scale(0.97) !important; transition-duration: 0.1s; }
.magnetic { display: inline-block; }

/* One-shot settle-zoom for full-bleed images on scroll-in (restrained: no infinite loop) */
.zoom-in-view { overflow: hidden; }
.zoom-in-view > .ph,
.zoom-in-view.ph {
  transform: scale(1.09);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-in-view.is-visible > .ph,
.zoom-in-view.is-visible.ph { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .zoom-in-view > .ph, .zoom-in-view.ph { transform: none; transition: none; }
  .btn-primary { transition: background 0.2s ease, border-color 0.2s ease; }
}
.btn-primary:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--vital-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Film grain (fixed, whole-page texture) ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__bar { padding-top: 15px; padding-bottom: 15px; }

.site-header__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.4s ease;
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img.full { height: 30px; width: auto; }
.site-header__logo img.mark { height: 34px; width: auto; display: none; }
.site-header__logo a { display: block; line-height: 0; }

.site-header__nav { display: flex; align-items: center; gap: 34px; }
.site-header__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.site-header__nav a:hover { border-color: var(--ink); }
.site-header__nav a.current { color: var(--vital-deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(22,24,27,0.28);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .site-header__logo img.full { display: none; }
  .site-header__logo img.mark { display: block; }
  .site-header__nav {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100%;
    width: min(320px, 82vw);
    background: var(--surface-raised);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 22px;
    padding: 90px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    z-index: 55;
  }
  .site-header__nav.open { transform: translateX(0); }
  .site-header__nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 60; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__nav, .nav-backdrop, .nav-toggle span { transition: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute; inset: -4%;
  background-size: cover;
  background-position: center;
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,27,0.05) 0%, rgba(22,24,27,0.05) 55%, rgba(22,24,27,0.62) 100%);
}
@keyframes hero-kenburns {
  0% { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.07) translate3d(-0.6%, -0.8%, 0); }
}
.hero__content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
  width: 100%;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
.hero__content h1 { color: #fff; max-width: 14em; }
.hero__content .lede { color: rgba(255,255,255,0.86); max-width: 34em; font-size: 1.15rem; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.hero__actions .text-link { color: rgba(255,255,255,0.92); border-color: transparent; }
.hero__actions .text-link:hover { border-color: rgba(255,255,255,0.92); }

@media (prefers-reduced-motion: reduce) {
  .hero__media { animation: none; }
  .hero__content { animation: none; opacity: 1; transform: none; }
}

.hero--short { min-height: 46vh; }

/* ---------- Statement ---------- */

.statement {
  padding: 150px var(--gutter);
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.statement p {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 18em;
  margin: 0;
}

/* ---------- Story spreads ---------- */

.spread {
  display: grid;
  gap: 0;
  align-items: center;
}
@media (min-width: 900px) {
  .spread { grid-template-columns: 1.15fr 0.85fr; min-height: 560px; }
  .spread.reverse { grid-template-columns: 0.85fr 1.15fr; }
  .spread.reverse .spread__media { order: 2; }
  .spread.reverse .spread__text { order: 1; }
}
.spread__media { height: 100%; min-height: 320px; background-size: cover; background-position: center; }
.spread__text { padding: 56px var(--gutter); }
.spread__text .eyebrow { margin-bottom: 14px; }
.spread__text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 300; margin-bottom: 16px; }
.spread__text p { max-width: 32em; color: var(--ink-muted); }
.spread__text cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.92rem; color: var(--ink-muted); }

.story-full__media { aspect-ratio: 21/9; background-size: cover; background-position: center; }
.story-full__text { max-width: 640px; margin: 0 auto; padding: 44px var(--gutter) 10px; text-align: center; }
.story-full__text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 300; margin-bottom: 16px; }
.story-full__text p { color: var(--ink-muted); }
.story-full__text .eyebrow { display: block; margin-top: 18px; }

/* ---------- Numbers strip ---------- */

.numbers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px var(--gutter);
}
.numbers__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.numbers__item .value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--ink);
  display: block;
  font-variant-numeric: tabular-nums;
}
.numbers__item .label { font-size: 0.9rem; color: var(--ink-muted); margin-top: 4px; }
@media (max-width: 760px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonial ---------- */

.testimonial {
  padding: 120px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .testimonial { grid-template-columns: 0.9fr 1.5fr; }
}
.testimonial__portrait { aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.testimonial blockquote {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
}
.testimonial cite { display: block; margin-top: 22px; font-style: normal; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Closing / quiet contact ---------- */

.closing {
  padding: 90px var(--gutter) 130px;
  max-width: 700px;
}
.closing p { font-size: 1.15rem; color: var(--ink-muted); }
.closing a { color: var(--vital-deep); text-decoration: none; border-bottom: 1px solid rgba(168,68,90,0.35); }
.closing a:hover { border-color: var(--vital-deep); }

/* ---------- Generic section paddings ---------- */

.section { padding: 96px var(--gutter); max-width: var(--max); margin: 0 auto; }
.section--narrow { max-width: 760px; }
.section--tight { padding-top: 56px; padding-bottom: 56px; }

.page-intro { padding: 110px var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.page-intro .eyebrow { margin-bottom: 20px; }
.page-intro h1 { max-width: 13em; }
.page-intro .lede { margin-top: 20px; }

/* ---------- Full-bleed band ---------- */

.band {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,27,0) 40%, rgba(22,24,27,0.6) 100%);
}
.band__content { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 56px; color: #fff; width: 100%; }
.band__content h2 { color: #fff; max-width: 14em; }
.band__content p { color: rgba(255,255,255,0.85); max-width: 30em; }

/* ---------- Steps ---------- */

.steps { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 40px; }
.step {
  display: grid;
  gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .step { grid-template-columns: 120px 1fr; }
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__index { font-size: 0.95rem; color: var(--ink-muted); letter-spacing: 0.08em; }
.step__body h3 { margin-bottom: 12px; }
.step__body p { max-width: 42em; color: var(--ink-muted); }

/* ---------- Member card render ---------- */

.member-card {
  width: min(360px, 90%);
  aspect-ratio: 1.586 / 1;
  border-radius: 10px;
  background: linear-gradient(155deg, #23262A 0%, #16181B 60%, #101214 100%);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.member-card__top { display: flex; align-items: center; justify-content: space-between; }
.member-card__top img { height: 26px; width: 26px; filter: brightness(0) invert(1); opacity: 0.92; }
.member-card__label { font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); text-transform: uppercase; }
.member-card__title { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-top: 26px; }
.member-card__number { font-family: "Hanken Grotesk", monospace; font-size: 15px; letter-spacing: 0.08em; color: rgba(255,255,255,0.92); margin-top: 4px; }
.member-card__number .blur { filter: blur(3.5px); user-select: none; }
.member-card__foot { font-size: 10.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }

/* ---------- Accordion (FAQ) ---------- */

.faq { max-width: 760px; margin: 0 auto; padding: 10px var(--gutter) 100px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.3rem; color: var(--ink-muted); transition: transform 0.2s ease; flex: none; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 0 26px; color: var(--ink-muted); max-width: 42em; }

/* ---------- Memorial list ---------- */

.memorial {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px var(--gutter) 110px;
  text-align: center;
}
.memorial h3 { font-weight: 300; margin-bottom: 6px; }
.memorial .muted { display: block; margin-bottom: 40px; }
.memorial ul { list-style: none; padding: 0; margin: 0; }
.memorial li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.memorial li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Leadership ---------- */

.people { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.person__photo { aspect-ratio: 4/5; background-size: cover; background-position: center; margin-bottom: 16px; }
.person__title { color: var(--ink); font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
.person__line { color: var(--ink-muted); font-size: 0.95rem; max-width: 30em; }

.principles { max-width: 760px; margin: 0 auto; padding: 10px var(--gutter) 110px; }
.principle { padding: 30px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle h3 { margin-bottom: 6px; }
.principle p { color: var(--ink-muted); margin: 0; max-width: 36em; }

/* ---------- Newsroom ---------- */

.news-list { max-width: 820px; margin: 0 auto; padding: 10px var(--gutter) 110px; }
.news-item { padding: 44px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item time { font-size: 0.85rem; color: var(--ink-muted); letter-spacing: 0.04em; }
.news-item h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 8px 0 12px; }
.news-item p.summary { color: var(--ink-muted); max-width: 42em; }
.news-item .body { display: none; margin-top: 18px; color: var(--ink-muted); max-width: 42em; }
.news-item .body p { margin-bottom: 1em; }
.news-item.open .body { display: block; }

/* ---------- Careers ---------- */

.jobs { max-width: 900px; margin: 0 auto; padding: 10px var(--gutter) 110px; }
.job { border-top: 1px solid var(--line); padding: 30px 0; }
.job:last-child { border-bottom: 1px solid var(--line); }
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.job__id { font-size: 0.82rem; color: var(--ink-muted); letter-spacing: 0.04em; }
.job__title { font-size: 1.1rem; }
.job__meta { font-size: 0.88rem; color: var(--ink-muted); margin-top: 4px; }
.job__desc { margin-top: 14px; color: var(--ink-muted); max-width: 46em; font-size: 0.98rem; }

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

.contact-grid { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter) 0; display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-block { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block h3 { margin-bottom: 8px; font-size: 1rem; color: var(--ink-muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.8rem; }
.contact-block .value { font-size: 1.3rem; font-weight: 300; }
.contact-block .value a { text-decoration: none; color: var(--ink); }
.contact-block .value a:hover { color: var(--vital-deep); }
.contact-photo { aspect-ratio: 16/10; background-size: cover; background-position: center; margin-top: 60px; }
.contact-emergency { max-width: 700px; margin: 60px auto 0; padding: 28px var(--gutter); border-left: 2px solid var(--vital-deep); }
.contact-emergency p { margin: 0; color: var(--ink-muted); }

/* ---------- Legal (Privacy/Terms) ---------- */

.legal-wrap { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 120px; display: grid; gap: 60px; }
@media (min-width: 900px) { .legal-wrap { grid-template-columns: 260px 1fr; } }
.legal-toc { position: sticky; top: 30px; align-self: start; font-size: 0.9rem; }
.legal-toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink-muted); border-left: 2px solid transparent; padding-left: 12px; }
.legal-toc a:hover { color: var(--ink); border-color: var(--silver); }
.legal-body h2 { font-size: 1.3rem; font-weight: 500; margin-top: 2.2em; scroll-margin-top: 30px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-muted); font-size: 0.96rem; }
.legal-body ol { padding-left: 1.2em; }
.legal-updated { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 50px; }

/* ---------- Accessibility page ---------- */

.simple-legal { max-width: 700px; margin: 0 auto; padding: 110px var(--gutter) 120px; }
.simple-legal p { color: var(--ink-muted); }
.simple-legal h2 { font-size: 1.15rem; font-weight: 500; margin-top: 1.8em; }

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

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer__top {
  max-width: var(--max); margin: 0 auto; padding: 70px var(--gutter) 50px;
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__brand img { height: 26px; margin-bottom: 16px; }
.site-footer__brand p { color: var(--ink-muted); font-size: 0.92rem; max-width: 26em; }
.site-footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); font-weight: 500; margin-bottom: 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { text-decoration: none; font-size: 0.94rem; color: var(--ink); }
.site-footer__col a:hover { color: var(--vital-deep); }
.site-footer__col address { font-style: normal; color: var(--ink-muted); font-size: 0.94rem; line-height: 1.6; }

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter);
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 0.82rem; color: var(--ink-muted);
}
.site-footer__bottom a { text-decoration: none; color: var(--ink-muted); }
.site-footer__bottom a:hover { color: var(--ink); }
.site-footer__bottom .portal-link { color: #9EA2A8; }
.site-footer__bottom .sep { color: var(--line); }

/* ---------- Cookie notice ---------- */

.cookie-notice {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  z-index: 80;
  font-size: 0.9rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; color: var(--ink-muted); flex: 1 1 260px; }
.cookie-notice__actions { display: flex; gap: 10px; }
.cookie-notice button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 5px; font-size: 0.86rem; cursor: pointer;
}
.cookie-notice button.accept { background: var(--vital-deep); border-color: var(--vital-deep); color: #fff; }

/* ---------- Placeholder photo treatment (dev only) ---------- */

.ph {
  background-color: #DADDE1;
  background-image:
    repeating-linear-gradient(135deg, rgba(22,24,27,0.05) 0px, rgba(22,24,27,0.05) 1px, transparent 1px, transparent 14px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 0.78rem; letter-spacing: 0.03em; text-align: center;
  padding: 10px;
}

/* ---------- Employee portal (internal tool look) ---------- */

.portal-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.portal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--line);
}
.portal-bar img { height: 24px; }
.portal-bar span { font-size: 0.85rem; color: var(--ink-muted); letter-spacing: 0.03em; }
.portal-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.portal-panel {
  width: 100%; max-width: 360px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
}
.portal-panel h1 { font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.portal-panel .sub { font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 26px; }
.portal-field { margin-bottom: 18px; }
.portal-field label { display: block; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 6px; }
.portal-field input {
  width: 100%; padding: 10px 12px; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  color: var(--ink); font-family: inherit;
}
.portal-field .hint { font-size: 0.76rem; color: var(--ink-muted); margin-top: 5px; }
.portal-submit {
  width: 100%; background: var(--vital-deep); color: #fff; border: none;
  padding: 11px; border-radius: 4px; font-size: 0.92rem; cursor: pointer; margin-top: 6px;
}
.portal-submit:hover { background: #8f3a4d; }
.portal-form__error {
  margin-top: 16px; padding: 10px 12px; font-size: 0.84rem;
  background: #F6E9EA; border: 1px solid #E3C4C8; color: #7a2c3a; border-radius: 4px;
}
.portal-help { margin-top: 22px; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.6; }
.portal-foot { padding: 18px var(--gutter); text-align: center; font-size: 0.76rem; color: var(--ink-muted); border-top: 1px solid var(--line); }

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
  z-index: 100; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
