/* allanstudios.ca — Kerry Allan resume site */
:root {
  --ink: #142634;
  --ink-2: #1d3445;
  --text: #24323d;
  --muted: #5d6b76;
  --line: #dfe5ea;
  --bg: #fbfaf7;
  --tint: #f1efe9;
  --card: #ffffff;
  --gold: #c9a45c;
  --gold-deep: #9c7a36;
  --teal: #3b7c82;
  --on-dark: #e9eef2;
  --on-dark-muted: #a9b8c4;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 38, 52, .05), 0 8px 28px rgba(20, 38, 52, .07);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--gold-deep); }
.lead { font-size: 19px; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d6b46f; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(233, 238, 242, .35); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 38, 52, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--gold); color: var(--gold);
  font: 700 14px/1 var(--serif); letter-spacing: .04em;
}
.brand__name { font: 600 17px/1 var(--serif); letter-spacing: .01em; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a { color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav__menu a:hover, .nav__menu a.is-current { color: #fff; }
.nav__menu .nav__cta { color: var(--ink); background: var(--gold); padding: 9px 18px; border-radius: 999px; }
.nav__menu .nav__cta:hover { color: var(--ink); background: #d6b46f; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 124, 130, .35), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--on-dark);
  padding: 96px 0 0;
}
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.hero .lead { color: var(--on-dark-muted); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
}
.hero__photo {
  position: relative; width: 132px; height: 132px; margin-bottom: 24px;
  border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--gold), rgba(201,164,92,.35));
}
.hero__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #fff; }
.hero__photo-fallback { display: none; }
.hero__photo.is-missing .hero__photo-fallback {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--ink); color: var(--gold); font: 600 40px/1 var(--serif);
}
.hero__card-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.hero__card-role { font: 600 24px/1.2 var(--serif); color: #fff; }
.hero__card-org { color: var(--gold); font-weight: 500; margin-top: 4px; }
.hero__card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 20px 0; }
.hero__card-note { color: var(--on-dark); font-size: 15.5px; line-height: 1.6; }
.hero__card-loc { color: var(--on-dark-muted); font-size: 13.5px; margin-top: 16px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 80px 0 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.stats div { padding: 30px 24px 40px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats dt { font: 600 44px/1 var(--serif); color: #fff; }
.stats dd { margin: 10px 0 0; color: var(--on-dark-muted); font-size: 14.5px; line-height: 1.45; }

/* Sections */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.005em; }
.section__intro { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps__num { font: 600 13px/1 var(--sans); color: var(--gold-deep); letter-spacing: .12em; }
.steps h3 { font-size: 23px; margin: 14px 0 12px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; }
.pillars article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pillars h3 { font-size: 19px; margin-bottom: 10px; }
.pillars p { color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline { list-style: none; }
.timeline > li { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid #d8d4ca; }
.timeline > li:first-child { border-top: 2px solid var(--ink); }
.timeline__meta { display: flex; flex-direction: column; gap: 6px; }
.timeline__date { font: 600 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.timeline__org { font-weight: 600; color: var(--ink); }
.timeline h3 { font-size: 23px; margin-bottom: 14px; }
.timeline ul { list-style: none; display: grid; gap: 8px; }
.timeline ul li { position: relative; padding-left: 20px; color: var(--text); font-size: 16px; }
.timeline ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold-deep); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 36px; }
.chip {
  font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted); transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,38,52,.06), 0 16px 40px rgba(20,38,52,.1); }
.card[hidden] { display: none; }
.card__org { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card h3 a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.card h3 a::after { content: " ↗"; font-size: .7em; color: var(--gold-deep); }
.card > p:not(.card__org) { color: var(--muted); font-size: 15.5px; flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font-size: 12.5px; color: var(--ink); background: var(--tint); padding: 5px 10px; border-radius: 6px; }

/* AI */
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__intro { color: var(--on-dark-muted); }
.ai__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.ai__grid .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.ai__list { display: grid; gap: 0; }
.ai__list > div { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ai__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ai__list h3 { font-size: 22px; margin-bottom: 8px; }
.ai__list p { color: var(--on-dark-muted); }

/* Toolkit */
.toolkit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.toolkit > div { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--line); }
.toolkit > div:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.toolkit h3 { font-size: 19px; margin-bottom: 10px; }
.toolkit p { color: var(--muted); font-size: 15.5px; }
.edu { margin-top: 56px; }
.edu h3 { font-size: 21px; margin-bottom: 14px; }
.edu ul { list-style: none; display: grid; gap: 8px; color: var(--muted); }
.edu li { padding-left: 20px; position: relative; }
.edu li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--gold-deep); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: var(--on-dark); padding: 110px 0; }
.contact__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.contact .lead { color: var(--on-dark-muted); }
.contact__links { display: flex; flex-direction: column; gap: 12px; }
.contact__links .btn { width: 100%; }
.contact__loc { color: var(--on-dark-muted); font-size: 14px; text-align: center; margin-top: 6px; }

.footer { background: #0e1c27; color: var(--on-dark-muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero__grid, .ai__grid, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .ai__grid .section__head { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; }
  .nav__menu .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { padding-top: 64px; }
  .section, .contact { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }
  .cards, .steps, .pillars, .toolkit { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .toolkit > div, .toolkit > div:nth-child(even) { padding: 24px 0; border-left: 0; }
  .timeline > li { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .stats div, .stats div + div { padding: 22px 12px 26px 0; }
  .stats div:nth-child(even) { padding-left: 16px; }
  .stats dt { font-size: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; gap: 8px; padding: 22px 16px; }
}

@media print {
  .nav, .hero__actions, .filters, .contact__links .btn--ghost, .toast, .footer a { display: none !important; }
  .hero, .section--dark, .contact { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3, .contact h2 { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding: 32px 0; }
}
