:root {
  --ink: #1d2a24;
  --muted: #5b6b62;
  --paper: #fbfaf6;
  --alt: #f1efe6;
  --green: #2f5d46;
  --green-soft: #e3ece5;
  --line: #d9d5c7;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
a { color: var(--green); }

/* Hero */
.hero {
  padding: 80px 0 72px;
  background: radial-gradient(circle at 85% 20%, #3f7a5c 0%, transparent 45%), linear-gradient(135deg, #1f3f30 0%, #2f5d46 100%);
  color: #f4f1e6;
}
.hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.eyebrow, .tag {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: 13px; font-weight: 600; color: var(--green); margin: 0 0 8px;
}
.hero .eyebrow { color: #c9e0a8; font-size: 14px; }
h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -.02em; }
.lede { font-size: 20px; color: #dfe8df; max-width: 640px; margin: 0 0 12px; }
.lede-small { color: #b9cbbd; font-size: 16px; max-width: 640px; margin: 0 0 12px; }
.where { color: #b9cbbd; margin: 0 0 28px; font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  text-decoration: none; padding: 9px 16px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; color: #f4f1e6; font-size: 15px; transition: background .15s;
}
.links a:hover { background: rgba(255,255,255,.12); }
.links a.primary { background: #c9e0a8; border-color: #c9e0a8; color: #1f3f30; font-weight: 600; }
.links a.primary:hover { background: #d8eabd; }

.portrait { position: relative; width: 260px; height: 260px; }
.portrait img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255,255,255,.18); box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.portrait .initials { display: none; }
.portrait.missing img { display: none; }
.portrait.missing .initials {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px dashed rgba(255,255,255,.35);
  font-size: 64px; font-weight: 700; color: #c9e0a8;
}

/* Compact sticky bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(135deg, #1f3f30 0%, #2f5d46 100%); color: #f4f1e6;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.topbar.show { opacity: 1; transform: none; pointer-events: auto; }
.hero-grid { will-change: opacity, transform; }
.topbar .wrap { max-width: 1180px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.topbar-id { display: flex; align-items: center; gap: 12px; }
.topbar-id strong { display: block; font-size: 17px; line-height: 1.2; }
.topbar-id small { color: #c9e0a8; font-size: 13px; white-space: nowrap; }
.mini-portrait { width: 44px; height: 44px; flex: none; position: relative; }
.mini-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.mini-portrait span { display: none; }
.mini-portrait.missing img { display: none; }
.mini-portrait.missing span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #c9e0a8; font-weight: 700; font-size: 15px;
}
.topbar-links { display: flex; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.topbar-links a {
  text-decoration: none; color: #f4f1e6; font-size: 14px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.topbar-links a:hover { background: rgba(255,255,255,.12); }
.topbar-links a.primary { background: #c9e0a8; border-color: #c9e0a8; color: #1f3f30; font-weight: 600; }

/* Jump links */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 22px; font-size: 15px; }
.jump span { color: #b9cbbd; }
.jump a { color: #c9e0a8; text-decoration: none; border-bottom: 1px solid rgba(201,224,168,.4); }
.jump a:hover { border-bottom-color: #c9e0a8; }
.topbar-jump { display: flex; gap: 16px; white-space: nowrap; }
.topbar-jump a { color: #dfe8df; text-decoration: none; font-size: 14px; }
.topbar-jump a:hover { color: #c9e0a8; }

/* Collapsible sections */
.project { scroll-margin-top: 72px; }
.collapse > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary .sub { margin-bottom: 0; }
.toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--green);
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px;
}
.toggle::before { content: "Show details"; }
.toggle::after { content: "▾"; transition: transform .2s; }
.collapse[open] .toggle::before { content: "Hide details"; }
.collapse[open] .toggle::after { transform: rotate(180deg); }
.collapse > summary:hover .toggle { border-color: var(--green); }
.collapse-body { padding-top: 32px; }
.project { padding: 48px 0; }

/* Paddock Pal sheep: bobs and says "Baa!" */
.sheep-icon svg { overflow: visible; }
.sheep, .sheep-head { transform-box: fill-box; }
.sheep { transform-origin: 50% 100%; }
.sheep-head { transform-origin: 30% 80%; }
.mouth-open, .baa { opacity: 0; }
.baa { transform-origin: 20% 100%; transform-box: fill-box; }
.collapse > summary:hover .sheep { animation: sheep-bob 1.4s ease-in-out infinite; }
.collapse > summary:hover .sheep-head { animation: sheep-head 1.4s ease-in-out infinite; }
.collapse > summary:hover .mouth-open { animation: baa-mouth 1.4s steps(1) infinite; }
.collapse > summary:hover .mouth-closed { animation: baa-mouth-closed 1.4s steps(1) infinite; }
.collapse > summary:hover .baa { animation: baa-pop 1.4s ease-out infinite; }
@keyframes sheep-bob { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-3px); } 60% { transform: translateY(0); } }
@keyframes sheep-head { 0%,100% { transform: rotate(0); } 25%,55% { transform: rotate(-12deg); } }
@keyframes baa-mouth { 0% { opacity: 0; } 20% { opacity: 1; } 60% { opacity: 0; } }
@keyframes baa-mouth-closed { 0% { opacity: 1; } 20% { opacity: 0; } 60% { opacity: 1; } }
@keyframes baa-pop { 0%,15% { opacity: 0; transform: scale(.3) translate(0,4px); } 25% { opacity: 1; transform: scale(1.1) translate(0,0); } 30%,55% { opacity: 1; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1) translate(0,-4px); } }
@media (prefers-reduced-motion: reduce) { .collapse > summary:hover .sheep, .collapse > summary:hover .sheep-head, .collapse > summary:hover .mouth-open, .collapse > summary:hover .mouth-closed, .collapse > summary:hover .baa { animation: none; } }

/* Custom Classroom logo: ideas fly up out of the book */
.logo-wrap { position: relative; display: inline-flex; flex: none; }
.fly { position: absolute; left: 0; right: 0; bottom: 30%; height: 0; pointer-events: none; }
.f svg { width: 18px; height: 18px; }
.f { position: absolute; bottom: 0; opacity: 0; font-weight: 800; font-size: 18px; line-height: 1; display: inline-flex; }
.f1 { left: 62%; } .f2 { left: 20%; color: #f2b632; } .f3 { left: 45%; color: #e85d75; font-size: 20px; }
.f4 { left: 74%; } .f5 { left: 8%; color: #5aa9e6; font-size: 22px; } .f6 { left: 33%; color: #6b4fa0; }
.f7 { left: 86%; } .f8 { left: 50%; color: #2f5d46; font-size: 12px; letter-spacing: .03em; } .f9 { left: 28%; color: #5aa9e6; }
.f10 { left: 68%; color: #f08a24; font-size: 15px; }
.collapse > summary:hover .f { animation: rise 1.8s ease-out infinite; }
.collapse > summary:hover .f1 { animation-delay: 0s; }    .collapse > summary:hover .f2 { animation-delay: .15s; }
.collapse > summary:hover .f3 { animation-delay: .35s; }  .collapse > summary:hover .f4 { animation-delay: .5s; }
.collapse > summary:hover .f5 { animation-delay: .7s; }   .collapse > summary:hover .f6 { animation-delay: .85s; }
.collapse > summary:hover .f7 { animation-delay: 1s; }    .collapse > summary:hover .f8 { animation-delay: 1.15s; }
.collapse > summary:hover .f9 { animation-delay: 1.3s; }  .collapse > summary:hover .f10 { animation-delay: 1.45s; }
@keyframes rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(.5) rotate(0); }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 6px), -64px) scale(1.1) rotate(var(--rot, 15deg)); }
}
.f2, .f6, .f9 { --dx: -10px; --rot: -20deg; } .f3, .f8 { --dx: 2px; --rot: 0deg; } .f5 { --dx: -14px; --rot: 25deg; } .f7, .f10 { --dx: 12px; }

/* Sections */
.project.alt { background: var(--alt); }
.with-logo { display: flex; align-items: center; gap: 14px; }
.project-icon { display: inline-grid; place-items: center; width: 64px; height: 56px; flex: none; border-radius: 8px; background: #fffaf0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.project-icon svg { transform-origin: 50% 90%; }
.collapse > summary:hover .project-icon svg { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .collapse > summary:hover .project-icon svg, .collapse > summary:hover .f { animation: none; opacity: 0; } }
.project-logo { height: 56px; width: auto; border-radius: 8px; }
h2 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; align-self: start; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--green-soft); color: var(--green); font-size: 14px; padding: 4px 10px; border-radius: 6px; }

.decisions, .highlights { padding-left: 20px; }
.decisions li, .highlights li { margin-bottom: 10px; }

.button {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
}

/* Booking flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; font-size: 15px; position: relative;
}
.flow li span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px;
}
.flow li:not(:last-child)::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-weight: 700;
}
.note { color: var(--muted); font-size: 15px; }

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
figure { margin: 0; }
figure.wide { grid-column: 1 / -1; }
figure img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
/* Placeholder until the screenshot file is added */
figure.missing img { display: none; }
figure.missing::before {
  content: "Screenshot coming soon";
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 14px; background: #fff;
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer p { margin: 0 0 6px; }
.small { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  .topbar-jump { display: none; }
}

@media (max-width: 760px) {
  .cols, .gallery { grid-template-columns: 1fr; gap: 20px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .topbar-id small { display: none; }
  .topbar-jump { display: none; }
  .collapse > summary { flex-direction: column; align-items: flex-start; gap: 14px; }
  .topbar-links a { padding: 5px 9px; font-size: 13px; }
  .portrait { width: 160px; height: 160px; order: -1; }
  .portrait.missing .initials { font-size: 40px; }
}
