/* Pacific Seniors Campus Society — Farm · Nature · Care
   Layout: photo-led bands, one 1240px column, cards only where an item stands alone.
   Single deliberate light theme (outdoor daylight palette); colors set explicitly. */
:root {
  color-scheme: light;
  --forest: #1E4433;      /* headings, footer, primary dark band */
  --forest-deep: #163426; /* utility bar */
  --leaf: #2F6A45;        /* links, buttons, labels */
  --sage: #E4ECDF;        /* alternate section ground */
  --ground: #F8F6F0;      /* page ground */
  --paper: #FFFFFF;       /* cards */
  --ink: #1C2420;         /* body text */
  --ink-soft: #3C4741;    /* secondary text, 9:1 on ground */
  --ink-muted: #4B5650;   /* captions, 7:1 on ground */
  --harvest: #C8963E;     /* small decorative accents only */
  --line: #C9D8CD;
  --scrim: 18, 38, 28;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.45rem;
  --step-3: clamp(1.9rem, 3vw, 2.6rem);
  --step-4: clamp(2.3rem, 4.6vw, 3.8rem);
  --step-5: clamp(2.5rem, 5.6vw, 4.6rem);
  --radius: 24px;
  --radius-lg: 28px;
}

html { font-size: 125%; }               /* 20px base for older readers */
html.text-large { font-size: 143.75%; } /* 23px */
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--forest); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  box-sizing: border-box;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--paper); color: var(--forest); padding: 12px 20px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--harvest); outline-offset: 3px; }

/* Utility bar: text size and motion */
.util-bar { background: var(--forest-deep); }
.util-bar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; padding-block: 6px; }
.util-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #6F9A7E; background: transparent; color: #FFFFFF;
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.util-btn[aria-pressed="true"] { background: #FFFFFF; color: var(--forest); border-color: #FFFFFF; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #FFFFFF; display: flex; flex-direction: column; min-height: 30rem; }
.hero--home { min-height: 38rem; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.58) 0%, rgba(var(--scrim), 0.08) 32%, rgba(var(--scrim), 0.18) 55%, rgba(var(--scrim), 0.8) 100%);
}
.hero__body { position: relative; margin-top: auto; width: 100%; padding-block: 0 3.2rem; }
.hero h1 { margin: 0; max-width: 45rem; font-family: var(--font-display); font-weight: 400; font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.01em; }
.hero--home h1 { font-size: var(--step-5); }
.hero__lede { margin-top: 1.2rem; max-width: 31rem; font-size: var(--step-1); color: #F1F4EE; }
.hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue {
  position: relative; align-self: center; margin-bottom: 1rem; padding: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #E4ECDF; text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-cue:hover { color: #FFFFFF; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #E4ECDF;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--harvest); }

/* Header */
.site-header { position: relative; width: 100%; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 1.2rem; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.15; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: #FFFFFF; text-decoration: none; padding: 10px 14px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: #FFFFFF; }
.nav .nav__cta { color: var(--forest); background: #FFFFFF; border-radius: 999px; padding: 10px 22px; margin-left: 8px; border-bottom: 0; }
.nav .nav__cta:hover { color: var(--forest); background: var(--sage); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 1.4rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; border: 1.5px solid transparent;
}
.btn svg { flex: none; }
.btn--light { background: #FFFFFF; color: var(--forest); }
.btn--light:hover { background: var(--sage); color: var(--forest); }
.btn--ghost { border-color: #FFFFFF; color: #FFFFFF; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.btn--primary { background: var(--leaf); color: #FFFFFF; }
.btn--primary:hover { background: var(--forest); color: #FFFFFF; }

/* Sections */
.section { padding-block: 5.2rem; }
.section--tight-top { padding-top: 0; }
.section--sage { background: var(--sage); }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }
.heading { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.15; color: var(--forest); }
.heading--xl { font-size: clamp(2rem, 3.6vw, 3rem); }
.body-soft { color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-muted); }

.intro { display: flex; flex-wrap: wrap; gap: 1.2rem 3.2rem; align-items: flex-start; }
.intro .kicker { flex: 0 0 9rem; margin-top: 0.5rem; }
.intro > div, .intro > .heading { flex: 1 1 28rem; min-width: 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2.4rem; margin-bottom: 2rem; }
.section-head > div { flex: 1 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 20px; margin-top: 3.6rem; }
.card { background: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; }
.card__icon { width: 56px; height: 56px; border-radius: 999px; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.card h3, .card h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; color: var(--forest); }
.card p { color: var(--ink-muted); }
.card--sage { background: var(--sage); }
.card--sage p { color: var(--ink-soft); }
.card--forest { background: var(--forest); }
.card--forest h3 { color: #FFFFFF; }
.card--forest p { color: #E4ECDF; }
.card__step { font-family: var(--font-display); font-size: 1.1rem; color: #A8772A; }
.card--forest .card__step { color: #E3C27E; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4rem 3.6rem; }
.split--reverse { flex-direction: row-reverse; }
.split__media { flex: 1 1 20rem; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; height: 28rem; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.split__media:hover img { transform: scale(1.04); }
.split__text { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

/* Tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 48px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #9DB8A6; background: transparent; color: var(--forest);
  font: inherit; font-size: 0.95rem; font-weight: 600;
}
.tab[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #FFFFFF; font-weight: 700; }
.tabpanel { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 28rem; }
.tabpanel img { width: 100%; height: 100%; object-fit: cover; }
.tabpanel__caption {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; max-width: 24rem;
  background: rgba(248, 246, 240, 0.96); border-radius: 20px; padding: 1.4rem 1.5rem;
}
.tabpanel__caption h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); color: var(--forest); }
.tabpanel__caption p { color: var(--ink-soft); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 32px; }
.principle { border-top: 2px solid var(--leaf); padding-top: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.principle__num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--harvest); }
.principle h3 { margin: 0; font-size: var(--step-1); font-weight: 700; color: var(--forest); }
.principle p { color: var(--ink-muted); }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 12px 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--forest); }

/* Photo band */
.band { position: relative; overflow: hidden; color: #FFFFFF; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__scrim { position: absolute; inset: 0; background: rgba(var(--scrim), 0.62); }
.band .wrap { position: relative; padding-block: 6.8rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.band .kicker { color: #E4ECDF; }
.band h2 { margin: 0; max-width: 41rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; }
.band p { max-width: 32rem; color: #F1F4EE; }

.status { background: var(--sage); border-radius: var(--radius-lg); padding: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; align-items: baseline; }
.status .kicker { flex: 0 0 10rem; }
.status p:last-child { flex: 1 1 24rem; min-width: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; color: var(--forest); }

.contact { background: var(--leaf); color: #FFFFFF; }
.contact .wrap { padding-block: 5.2rem; display: flex; flex-wrap: wrap; gap: 2rem 3.6rem; align-items: flex-end; }
.contact .kicker { color: #E4ECDF; }
.contact h2 { margin: 0.8rem 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; }
.contact__lead { flex: 1 1 23rem; min-width: 0; }
.contact__lead p { color: #E4ECDF; }
.contact__addr { flex: 1 1 19rem; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.email {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; min-height: 60px; padding: 0 1.4rem;
  border-radius: 999px; background: #FFFFFF; color: var(--forest); font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere;
}
.contact__addr .email { color: var(--forest); font-size: 1.1rem; }
.email a { color: inherit; text-decoration: none; }
.email a:hover { text-decoration: underline; }
.contact__addr p { font-size: 0.9rem; color: #E4ECDF; }

/* Footer */
.site-footer { background: var(--forest); color: #E4ECDF; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 2rem 3.2rem; justify-content: space-between; padding-block: 3.6rem 2rem; }
.site-footer__name { font-family: var(--font-display); font-size: var(--step-2); color: #FFFFFF; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; }
.site-footer nav a { color: #FFFFFF; text-decoration: none; padding: 8px 0; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__legal { border-top: 1px solid #3D6650; padding-block: 1.2rem 2.4rem; font-size: 0.85rem; display: flex; flex-direction: column; gap: 6px; }

/* Motion: gentle, one-time, and switchable */
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero__img { animation: settle 14s ease-out both; }
.hero__body { animation: rise 1.1s ease-out 0.2s both; }
.scroll-cue svg { animation: bob 2.8s ease-in-out infinite; }
.tabpanel:not([hidden]) { animation: fadein 0.6s ease-out both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  .nav .nav__cta { margin-left: 0; }
  .split__media, .tabpanel { height: 20rem; }
  .tabpanel__caption { position: static; max-width: none; border-radius: 0; }
  .tabpanel { height: auto; }
  .tabpanel img { height: 16rem; }
  .status { padding: 1.6rem; }
}

/* Per-page photo focus and small helpers (kept out of inline styles for the CSP) */
.hero__img[data-pos="approach"] { object-position: 60% 62%; }
.hero__img[data-pos="governance"] { object-position: 60% 100%; }
.footer-email { color: #FFFFFF; font-weight: 700; }
.footer-email:hover { color: #E4ECDF; }
.lead-gap { margin-top: 0.8rem; max-width: 34rem; }
.list-intro { margin: 0.8rem 0 1.4rem; }
.cards--flush { margin-top: 0; }

/* Home hero: concept render. Text block sits lower-left over a left-side scrim. */
.hero__img[data-pos="home"] { object-position: 72% 70%; }
.hero--home { min-height: clamp(34rem, 42vw, 52rem); }
.hero--home .hero__scrim {
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.72) 0%, rgba(var(--scrim), 0.5) 30%, rgba(var(--scrim), 0.14) 56%, rgba(var(--scrim), 0) 72%),
    linear-gradient(180deg, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0.04) 28%, rgba(var(--scrim), 0.08) 60%, rgba(var(--scrim), 0.55) 100%);
}
.hero--home h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 36rem; line-height: 1.08; text-shadow: 0 1px 24px rgba(var(--scrim), 0.35); }
.hero--home .hero__lede { max-width: 29rem; text-wrap: balance; text-shadow: 0 1px 16px rgba(var(--scrim), 0.4); }
.hero--home .hero__body { padding-block: 0 4.2rem; }
.hero--home .scroll-cue { position: absolute; left: 50%; bottom: 0.4rem; transform: translateX(-50%); margin: 0; }

/* "Artist's impression" labels on concept images */
.credit {
  margin: 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(var(--scrim), 0.62); color: #FFFFFF;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5;
}
.credit--hero { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 0.8rem; }
.split__media { position: relative; }
.credit--media { position: absolute; left: 0.8rem; bottom: 0.8rem; }
.split__media img[data-pos="garden"] { object-position: 68% 50%; }

@media (max-width: 640px) {
  .hero__img[data-pos="home"] { object-position: 60% 50%; }
  .hero__img[data-pos="approach"] { object-position: 78% 60%; }
  .hero__img[data-pos="governance"] { object-position: 45% 50%; }

  .hero--home .hero__scrim {
    background: linear-gradient(180deg, rgba(var(--scrim), 0.62) 0%, rgba(var(--scrim), 0.22) 26%, rgba(var(--scrim), 0.5) 52%, rgba(var(--scrim), 0.86) 100%);
  }
  .hero--home .hero__body { padding-block: 0 1.2rem; }
  .hero--home .scroll-cue { display: none; }
  .hero--home .hero__lede { font-size: 1.05rem; }
  .credit--hero { position: relative; right: auto; bottom: auto; z-index: 1; align-self: flex-start; margin: 0 16px 1rem; border-radius: 12px; }
}

/* Concept image crops */
.hero:not(.hero--home) .hero__scrim { background:
    linear-gradient(90deg, rgba(var(--scrim),0.6) 0%, rgba(var(--scrim),0.32) 34%, rgba(var(--scrim),0) 62%),
    linear-gradient(180deg, rgba(var(--scrim),0.6) 0%, rgba(var(--scrim),0.06) 30%, rgba(var(--scrim),0.14) 58%, rgba(var(--scrim),0.7) 100%); }
.hero:not(.hero--home) h1 { text-shadow: 0 1px 24px rgba(var(--scrim),0.4); }
.tabpanel img[data-pos="orchard"] { object-position: 50% 62%; }
.tabpanel img[data-pos="kitchen"] { object-position: 50% 45%; }
.tabpanel img[data-pos="glass"] { object-position: 50% 60%; }
.tabpanel img[data-pos="path"] { object-position: 50% 60%; }
.split__media img[data-pos="patio"] { object-position: 62% 50%; }
.split__media img[data-pos="harvest"] { object-position: 46% 50%; }
.band__img { object-position: 50% 70%; }
@media (max-width: 640px) {
  .tabpanel img[data-pos="orchard"] { object-position: 76% 50%; }
  .tabpanel img[data-pos="kitchen"] { object-position: 88% 50%; }
  .tabpanel img[data-pos="glass"] { object-position: 74% 50%; }
  .tabpanel img[data-pos="path"] { object-position: 80% 50%; }
}
