:root {
  --green: #1E3F2C;
  --cream: #F6F1E6;
  --cream-dark: #EFE7D6;
  --tan: #B89C74;
  --line: #D6CAB4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--green); font-family: var(--sans); font-weight: 300; line-height: 1.7; }
a { color: var(--green); text-decoration: none; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 8vw; background: rgba(246,241,230,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.monogram { font-family: var(--serif); font-size: 2.4rem; line-height: 1; position: relative; width: 3rem; height: 2.8rem; display: inline-block; }
.monogram .o { position: absolute; left: 0; top: -.2rem; }
.monogram .c { position: absolute; left: .75rem; top: .45rem; }
.nav nav { display: flex; gap: 2rem; align-items: center; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.nav nav a:hover { color: var(--tan); }
.btn-outline { border: 1px solid var(--green); padding: .5rem 1.1rem; }
.btn-outline:hover { background: var(--green); color: var(--cream) !important; }

.eyebrow { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); margin-bottom: 1rem; font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; max-width: 40rem; }
.section { padding: 7rem 8vw; }
.section.alt { background: var(--cream-dark); }
.btn { display: inline-block; background: var(--green); color: var(--cream); padding: .9rem 2rem; font-size: .85rem;
  letter-spacing: .15em; text-transform: uppercase; transition: opacity .2s; }
.btn:hover { opacity: .85; }

.hero { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 8vw; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .02em; max-width: 14ch; }
.rule { width: 90px; height: 2px; background: var(--tan); margin: 2.5rem 0 1.5rem; }
.tagline1 { font-size: 1.2rem; margin-bottom: 2.5rem; }
.tagline2 { font-size: 1.2.rem; margin-bottom: 2.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.card { border-top: 1px solid var(--green); padding-top: 1.5rem; }
.num { font-family: var(--serif); color: var(--tan); font-size: 1.1rem; display: block; margin-bottom: .75rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); color: var(--tan); display: block; margin-bottom: .5rem; }

.contact { background: var(--green); color: var(--cream); text-align: center; }
.contact h2 { margin-bottom: 1rem; }
.contact .lead { margin: 0 auto 2.5rem; }
.btn.light { background: var(--cream); color: var(--green); text-transform: none; letter-spacing: .05em; }

footer { text-align: center; padding: 3rem 8vw; border-top: 1px solid var(--line); }
.wordmark { font-family: var(--serif); letter-spacing: .35em; font-size: 1.1rem; margin-bottom: .4rem; }
.small { font-size: .8rem; opacity: .8; }

@media (max-width: 700px) {
  .nav nav a:not(.btn-outline) { display: none; }
  .section { padding: 5rem 7vw; }
}

:root {
    --green: #1f3d2c;
    --cream: #f6f1e6;
    --tan: #b49a6b;
    --line: rgba(31, 61, 44, 0.2);
    --serif: Georgia, "Times New Roman", serif;
}

/* ABOUT & COMPANY VALUES */
.about-section { padding-top: 7rem; padding-bottom: 7rem; }
.about-intro { max-width: 45rem; margin-bottom: 5rem; }
.values-heading { margin-bottom: 2.5rem; }
.values-heading h2 { margin-bottom: 0; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 2rem;
}
.value-card {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    transition: transform 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-card .num {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--tan);
    margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.9rem; margin-bottom: 0.25rem; }
.value-subtitle {
    color: var(--tan);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    margin-bottom: 1rem;
}
.value-card p:last-child {
    font-size: 0.94rem;
    line-height: 1.85;
    color: #536457;
}

/* CHARITABLE COMMITMENT */
.giving-section {
    margin-top: 7rem;
    padding: 4rem;
    background: var(--green);
    color: var(--cream);
}
.giving-section .eyebrow { color: var(--tan); margin-bottom: 2.5rem; }
.giving-content {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    align-items: center;
    gap: 3rem;
}
.giving-number {
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    color: var(--cream);
    letter-spacing: -0.05em;
}
.giving-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.giving-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(246, 241, 230, 0.85);
    max-width: 42rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }
    .giving-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .giving-section { padding: 3rem; }
}
@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; gap: 2rem; }
    .giving-section { padding: 2rem 1.5rem; margin-top: 4rem; }
    .giving-number { font-size: 6rem; }
    .about-intro { margin-bottom: 3.5rem; }
    .values-heading { margin-bottom: 2rem; }
}

/* Scroll reveal. Uses "translate" so it doesn't fight your card hover transform */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s ease, transform 0.25s ease;
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #1f3d2c;
  z-index: 9999;
}

/* Header shadow */
header { transition: box-shadow 0.3s ease; }
header.scrolled { box-shadow: 0 2px 16px rgba(31, 61, 44, 0.12); }

/* Active nav link */
nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #1f3d2c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
nav a:hover::after,
nav a.active::after { transform: scaleX(1); }

/* PROJECT CARDS */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.repo-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    border: 1px solid rgba(31, 61, 44, 0.2);
    border-top: 3px solid #1f3d2c;
    background: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.repo-card:hover,
.repo-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(31, 61, 44, 0.14);
}
.repo-card h3 {
    font-family: var(--serif, Georgia, serif);
    font-size: 1.5rem;
    margin: 0;
}
.repo-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tan, #b49a6b);
    margin: 0;
}
.repo-desc {
    font-size: 0.94rem;
    line-height: 1.7;
    color: #536457;
    margin: 0;
    flex-grow: 1;
}
.repo-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.repo-tags span {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(31, 61, 44, 0.2);
    color: #1f3d2c;
}

@media (max-width: 700px) {
    .repo-grid { grid-template-columns: 1fr; }
}

/* CENTERED BRAND: wordmark at top -> OC logo on scroll */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav .nav-right { justify-content: flex-end; }

.brand {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--green);
}
.brand > * { grid-area: 1 / 1; }

.brand-word {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity .35s ease, transform .35s ease, letter-spacing .35s ease;
}
.brand-mark {
  height: 44px;
  width: auto;
  fill: currentColor;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .35s ease, transform .35s ease;
}

/* "scrolled" is already added by your script.js after 10px of scrolling */
.nav.scrolled .brand-word { opacity: 0; transform: scale(.85); letter-spacing: -0.02em; pointer-events: none; }
.nav.scrolled .brand-mark { opacity: 1; transform: scale(1); }

@media (max-width: 700px) { .brand-word { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .brand-word, .brand-mark { transition: none; } }
