:root {
  --ink: #f4f6fb;
  --ink-2: rgba(232, 236, 248, 0.72);
  --ink-3: rgba(214, 221, 240, 0.5);
  --card: rgba(16, 20, 38, 0.62);
  --card-2: rgba(26, 32, 58, 0.55);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --accent: #a9bcff;
  --radius: 26px;
  --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #10162f;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Background: deep navy with a soft low glow */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 78%, rgba(98, 116, 182, 0.42), transparent 70%),
    radial-gradient(50% 45% at 82% 18%, rgba(48, 62, 120, 0.35), transparent 70%),
    linear-gradient(180deg, #0f1530 0%, #18224a 55%, #2a3870 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* Breathing background: slow, calm pulse */
.sky { animation: sky-drift 28s ease-in-out infinite alternate; background-size: 140% 140%, 140% 140%, 100% 100%; }
.sky::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 34% at 30% 70%, rgba(120, 140, 214, 0.38), transparent 70%),
    radial-gradient(34% 30% at 72% 30%, rgba(86, 100, 190, 0.30), transparent 70%);
  filter: blur(40px);
  animation: sky-breathe 14s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes sky-breathe {
  0%, 100% { opacity: .35; transform: scale(1) translate3d(0, 0, 0); }
  50%      { opacity: .9;  transform: scale(1.08) translate3d(1.5%, -1.5%, 0); }
}
@keyframes sky-drift {
  0%   { background-position: 0% 100%, 100% 0%, 0 0; filter: hue-rotate(0deg); }
  100% { background-position: 30% 70%, 70% 30%, 0 0; filter: hue-rotate(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sky, .sky::before { animation: none; }
}

/* Top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 22px;
}
.mark {
  justify-self: start;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  font: 400 13px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .2s, border-color .2s;
}
.mark:hover { color: var(--ink); border-color: var(--line-2); }
.tabs {
  display: flex; gap: 2px; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tab {
  padding: 9px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 400; color: var(--ink-3);
  transition: color .2s, background .25s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #f4f5f8; color: #111526; }


/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 400; white-space: nowrap;
  transition: transform .15s ease, background .2s, border-color .2s;
}
.pill:active { transform: scale(.97); }
.pill--solid { background: #f4f5f8; color: #111526; }
.pill--solid:hover { background: #fff; }
.pill--ghost {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pill--ghost:hover { border-color: var(--line-2); background: var(--card-2); }
.pill--sm { height: 36px; padding: 0 16px; font-size: 14px; }

.icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.icon svg { width: 18px; height: 18px; fill: currentColor; }
.icon:hover { color: var(--ink); border-color: var(--line-2); }

/* Layout */
main { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0 0; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section__head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; }
.kicker { font: 400 13px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* Hero */
.hero {
  min-height: min(88vh, 860px); min-height: min(88svh, 860px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto; column-gap: 64px;
  padding: 112px 0 24px; align-items: center;
}
.hero__clock { display: flex; align-self: center; justify-content: center; grid-column: 2; grid-row: 1; }
.hero__body { grid-column: 1; grid-row: 1; }
/* Watch dial wrapped around the clock */
.dial { position: relative; width: clamp(260px, 27vw, 360px); aspect-ratio: 1; border-radius: 50%; }
.dial::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.035), transparent 70%); border: 1px solid var(--line); }
.dial__ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__ticks line { stroke: rgba(232, 236, 248, .22); stroke-width: .6; stroke-linecap: round; }
.dial__ticks line.major { stroke: rgba(232, 236, 248, .55); stroke-width: 1; }
.dial__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(169, 188, 255, .0) 300deg, rgba(169, 188, 255, .45) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px) calc(50% - 1px), transparent 50%);
          mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px) calc(50% - 1px), transparent 50%);
  animation: sweep 60s linear infinite; animation-delay: var(--sweep-delay, 0s);
}
.dial__sweep::after { content: ""; position: absolute; left: 50%; top: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(169, 188, 255,.55); }
.dial__sweep { -webkit-mask-composite: source-over; }
@keyframes sweep { to { rotate: 360deg; } }
.dial__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.clock__date { font: 400 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.clock__place { font: 400 13px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.clock__time {
  font-size: clamp(40px, 4.6vw, 64px); font-weight: 300; line-height: 1.02;
  letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero__body { display: flex; flex-direction: column; gap: 16px; }
.tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(169, 188, 255, .16); }
.eyebrow { font-size: 15px; font-weight: 400; color: var(--ink-3); margin-bottom: -8px; }
.hero__title { font-size: clamp(40px, 4.8vw, 64px); font-weight: 300; letter-spacing: -0.035em; }
.hero__lede { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--ink); max-width: 34em; }
.hero__lede--muted { color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }



/* Experience & Education: quiet typographic list */
.entries { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.entry { position: relative; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 16px 52px 16px 14px; margin: 0 -14px; border-radius: 18px;
  transition: background .25s ease;
}
.entry summary::-webkit-details-marker { display: none; }
.entry summary:hover { background: rgba(255, 255, 255, 0.035); }
.entry__toggle {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: border-color .2s, background .2s, rotate .35s ease;
}
.entry__toggle::before, .entry__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px;
  background: var(--ink-2); translate: -50% -50%;
}
.entry__toggle::after { rotate: 90deg; transition: opacity .25s; }
.entry details[open] .entry__toggle { rotate: 180deg; }
.entry details[open] .entry__toggle::after { opacity: 0; }
.entry summary:hover .entry__toggle { border-color: var(--ink-3); background: rgba(255,255,255,.05); }
.entry details[open] .entry__points { padding-bottom: 18px; animation: points-in .4s ease both; }
@keyframes points-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.entry__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.entry__top h3 { font-size: 18px; font-weight: 400; letter-spacing: -0.015em; }
.entry__when { font: 400 12.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .03em; white-space: nowrap; }
.entry--now .entry__when::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: now-pulse 3.2s ease-in-out infinite; }
@keyframes now-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.entry__role { margin-top: 3px; font-size: 15px; font-weight: 300; color: var(--ink-2); }
.entry__points { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; }
.entry__points li { position: relative; padding-left: 18px; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.entry__points li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* Top-right navigation */
.nav { grid-column: 2 / 4; justify-self: end; display: flex; align-items: center; gap: 8px; }
.tab { padding: 8px 14px; font-size: 14px; }

.inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.inline-link:hover { text-decoration-color: var(--accent); }

/* Projects: compact rows, small uniform thumbnails */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.project { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 12px; align-items: start; }
.project--text { grid-template-columns: 1fr; padding: 14px 14px 14px 22px; }
.project__shot { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; background: #e9ecf3; }
.project__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project__shot--contain img { object-fit: contain; padding: 10px; }
.project:hover .project__shot img { transform: scale(1.04); }
.project__body { padding: 4px 6px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.project__body h3 { font-size: 17px; letter-spacing: -0.015em; }
.project__body p { color: var(--ink-2); font-size: 14.5px; font-weight: 300; line-height: 1.6; }
.project__links { display: flex; gap: 8px; margin-top: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 300; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.chips--sm li { padding: 5px 11px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skillset { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.skillset h3 { display: flex; align-items: center; gap: 10px; }
.skillset__tag { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(169, 188, 255,.3); }
.skillset--new { border-color: rgba(169, 188, 255,.22); background: linear-gradient(160deg, rgba(169, 188, 255,.07), transparent 55%), var(--card); }
.chips li { transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--line-2); }
.skillset h3 { font-size: 18px; letter-spacing: -0.015em; color: var(--ink-2); }

/* Contact */
.contact { padding-bottom: 40px; }
.contact__card { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.contact__card h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 400; max-width: 14em; }
.contact__card p { color: var(--ink-2); font-size: 18px; max-width: 34em; }

.foot {
  width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px 0 40px; color: var(--ink-3); font-size: 14px;
}
.foot__mono { font-family: var(--mono); font-size: 13px; }
.foot a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

/* Display face: Instrument Serif for the big moments */
.hero__title, .section__head h2, .contact__card h2, .clock__time {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.015em;
}
.hero__title { font-size: clamp(52px, 6.2vw, 84px); line-height: 1; }
.clock__time { font-size: clamp(42px, 4.4vw, 62px); line-height: 1; }
.section__head h2 { font-size: clamp(34px, 3.6vw, 48px); }
.contact__card h2 em, .hero__title em { font-style: italic; color: var(--ink-2); }

/* Responsive */
@media (max-width: 980px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 36px; min-height: 0; padding-top: 116px; }
  .hero__clock { order: 2; align-self: center; }
  .dial { width: 280px; }
  .clock__time { font-size: 48px; }
  .projects { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 56px; }
  .dial { width: 250px; }
  .clock__time { font-size: 42px; }
  .hero__lede { font-size: 17px; }
  .bar { grid-template-columns: auto 1fr; gap: 10px; padding: 14px; }
  .nav { grid-column: 2; min-width: 0; }
  .nav__cta { display: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tab { padding: 8px 11px; font-size: 13.5px; white-space: nowrap; }
  .project, .project--text { grid-template-columns: 1fr; gap: 14px; }
  .project__shot { aspect-ratio: 16 / 10; }
  .project__body { padding: 0 8px 8px; }
  .project--text .project__body { padding: 4px 4px 4px 0; }
  .entry__top { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dial__sweep { animation: none; }
  .project__shot img, .entry__toggle { transition: none; }
  .entry details[open] .entry__points { animation: none; }
  .entry--now .entry__when::before { animation: none; opacity: 1; }
}


/* Media */
.section__head--media { flex-wrap: wrap; }
.section__aside { flex-basis: 100%; margin-top: 6px; font: italic 400 19px/1.35 var(--display); color: var(--ink-3); letter-spacing: 0; }
.media { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.clip { display: flex; flex-direction: column; padding: 12px; gap: 16px; transition: border-color .25s, transform .25s; }
.clip:hover { border-color: var(--line-2); transform: translateY(-2px); }
.clip__frame { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #0c1128; }
.clip__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.clip__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 32, .55)); }
.clip:hover .clip__frame img { transform: scale(1.03); }
.clip__onair { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 14, 32, .6); backdrop-filter: blur(6px); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.clip__onair i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(169, 188, 255, .6); animation: onair 2.4s ease-out infinite; }
@keyframes onair { 0% { box-shadow: 0 0 0 0 rgba(169,188,255,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(169,188,255,0); } }
.clip__play { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 245, 248, .92); transition: transform .25s; }
.clip__play svg { width: 18px; height: 18px; fill: #111526; margin-left: 2px; }
.clip:hover .clip__play { transform: scale(1.08); }
.clip__paper { position: relative; border-radius: 16px; overflow: hidden; padding: 26px 24px 24px; min-height: 0; flex: 1; display: flex; align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(10, 14, 32, .15) 0%, rgba(10, 14, 32, .55) 45%, rgba(10, 14, 32, .9) 100%),
    url("Images/vancouver-coal-harbour.jpg") center 40% / cover no-repeat, #0c1128; }
.clip__paper > * { position: relative; }
.clip__mark { position: absolute; top: 16px; left: 24px; font: 400 110px/1 var(--display); color: var(--accent); opacity: .75; }
.clip__paper blockquote { margin: 0; padding-top: 120px; text-shadow: 0 1px 18px rgba(8, 12, 30, .6); font: italic 400 clamp(24px, 2.3vw, 30px)/1.18 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.clip__body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.clip__meta { font: 400 12px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.clip__meta span { margin: 0 4px; opacity: .6; }
.clip__body h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }
.clip__note { color: var(--ink-2); font-size: 14.5px; font-weight: 300; line-height: 1.6; }
.clip__cta { margin-top: 4px; font-size: 14px; color: var(--accent); }
.clip__cta b { font-weight: 400; display: inline-block; transition: transform .25s; }
.clip:hover .clip__cta b { transform: translate(2px, -2px); }
@media (max-width: 820px) { .media { grid-template-columns: 1fr; } .clip__paper { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .clip__onair i { animation: none; } .clip, .clip__frame img, .clip__play { transition: none; } }

/* Principle */
.creed { padding: 72px 0 0; max-width: 40em; }
.creed__quote { margin: 0; font: 400 clamp(34px, 5vw, 52px)/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.creed__quote::before { content: ""; display: block; width: 28px; height: 1px; margin-bottom: 22px; background: var(--accent); }
.creed__note { margin-top: 18px; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--ink-2); }
