/* Oak Hill: design polish layer. Loaded after site.css. Text and markup are untouched;
   this file only adds depth, hover feedback and a one-time entrance. */

:root {
  --lift: 0 1px 2px rgba(28, 39, 29, .06), 0 10px 28px -12px rgba(28, 39, 29, .28);
  --lift-h: 0 2px 4px rgba(28, 39, 29, .08), 0 18px 36px -14px rgba(28, 39, 29, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Ground: a quiet two-tone wash behind the sheet instead of one flat slab */
body {
  background:
    radial-gradient(1100px 520px at 50% -8%, #3d5a42 0%, rgba(61, 90, 66, 0) 70%),
    var(--ground);
  background-attachment: fixed;
  text-wrap: pretty;
}
.sheet { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }

/* Reading progress, top of the screen */
.oh-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, #86b86f, #e3f0d6);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* Masthead + brand */
.brand img { transition: opacity .3s, transform .5s var(--ease-out); }
.brand:hover img { opacity: .92; transform: scale(1.008); }

/* Navigation: underline draws from the centre, current page keeps a solid mark */
.bar { backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.nav a { position: relative; background-image: none; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px;
  background: #cfe5bd; transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { background: var(--sage); transform: scaleX(1); }

/* Lead block: photo and title card step in once on load */
.lead { box-shadow: var(--lift); }
.lead-photo { position: relative; }
.lead-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 39, 29, 0) 62%, rgba(28, 39, 29, .16));
}
.lead-title h1 img, .lead-title p, .lead--note p { will-change: transform, opacity; }

@keyframes oh-photo-in {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
  to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
}
@keyframes oh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes oh-fade { from { opacity: 0; } to { opacity: 1; } }

.js .lead-photo > img,
.js .lead-photo > .flash { animation: oh-photo-in 1.1s var(--ease-out) both; }
.js .lead-title h1 { animation: oh-rise .8s var(--ease-out) .25s both; }
.js .lead-title p { animation: oh-rise .8s var(--ease-out) .42s both; }
.js .lead--note p { animation: oh-rise .8s var(--ease-out) both; }
.js .lead--note p:nth-child(2) { animation-delay: .14s; }
.js .lead--note p:nth-child(3) { animation-delay: .28s; }
.js .mast .brand { animation: oh-fade .9s ease-out both; }

/* Photographs: lift and zoom inside their frame */
.trio figure, .mapline figure, .lead-photo { transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.trio figure { box-shadow: var(--lift); }
.trio figure:hover { transform: translateY(-2px); box-shadow: var(--lift-h); }
.mapline figure:hover img { transform: scale(1.02); }
.mapline img { transition: transform .9s var(--ease-out); }

/* Cards and panels: a sage edge, a small lift where they are links or lists */
.cat, .route, .pull ul, .svc, .chips, .testimonial {
  border-left: 3px solid var(--sage);
  box-shadow: var(--lift);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.cat:hover, .route:hover { transform: translateY(-2px); box-shadow: var(--lift-h); }
.testimonial { border-left-color: var(--deep); }

/* Calendar rows */
.agenda li { border-left: 3px solid transparent; box-shadow: var(--lift); }
.agenda li:hover { border-left-color: var(--sage); transform: translateX(6px); }

/* Links in running text: the underline draws on hover */
.prose a, .cat .line a, .route a, .docs a, .mapline a, .pull a, .quote-copy a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease-out), color .2s;
  padding-bottom: 1px;
}
.prose a:hover, .cat .line a:hover, .route a:hover, .docs a:hover, .mapline a:hover, .pull a:hover, .quote-copy a:hover {
  background-size: 100% 2px;
}
.foot nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; text-decoration: none; transition: background-size .35s var(--ease-out), color .2s; }
.foot nav a:hover { text-decoration: none; background-size: 100% 1px; }

/* Buttons: a fill sweeps in, press steps down */
.btn { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 6px 16px -8px rgba(28, 39, 29, .55); transition: transform .2s var(--ease-out), box-shadow .25s, color .2s; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #4a7350;
  transform: translateX(-101%); transition: transform .45s var(--ease-out);
}
.btn:hover { background: var(--deep); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(28, 39, 29, .6); }
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 8px -6px rgba(28, 39, 29, .6); }
.btn--soft { box-shadow: none; }
.btn--soft::before { background: #d3e7c1; }
.btn--soft:hover { background: var(--panel); }

/* Form */
.form { border-top: 3px solid var(--sage); box-shadow: var(--lift); }
.field label { transition: color .2s; }
.field:focus-within label { color: var(--sage); }

/* Footer */
.foot { background: linear-gradient(180deg, #3b5c3f, #2f4b34); }

/* Documents row */
.docs .sep { opacity: .6; }

/* Scroll cue for in-page jumps */
:target { scroll-margin-top: 80px; }
.sheet, main { scroll-margin-top: 70px; }

@media (max-width: 700px) {
  .nav a::after { bottom: 6px; left: 20%; right: 20%; }
  .oh-progress { height: 2px; }
  .cat, .route, .pull ul, .svc, .chips, .testimonial { border-left-width: 2px; }
}

/* Reduced motion: everything rests, nothing is hidden */
@media (prefers-reduced-motion: reduce) {
  .js .lead-photo > img, .js .lead-photo > .flash, .js .lead-title h1, .js .lead-title p,
  .js .lead--note p, .js .mast .brand { animation: none; }
  .brand img, .btn, .btn::before, .nav a::after, .cat, .route, .trio figure, .agenda li, .mapline img { transition: none; }
  .btn:hover, .cat:hover, .route:hover, .trio figure:hover, .agenda li:hover { transform: none; }
  .oh-progress { display: none; }
}
@media print {
  body { background: #fff; }
  .oh-progress, .bar { display: none; }
  .sheet { box-shadow: none; margin: 0; }
}
