@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #1e211c;
  --muted: #5c5f57;
  --secondary-ink: #55584f;
  --accent-ink: #40551a;
  --line: #deded5;
  --lime: #c9ef5b;
  --forest: #27332a;
  --gutter: max(clamp(1.25rem, 7vw, 6rem), calc((100% - 72rem) / 2));
  --shell-gutter: max(clamp(1.25rem, 4vw, 4.5rem), calc((100% - 82rem) / 2));
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Manrope", "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  transform: translateY(calc(-100% - 16px));
  background: var(--lime);
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: 84px;
  padding: 0 var(--shell-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30, 33, 28, .09);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { font: 800 24px/1 var(--display); letter-spacing: -2px; }
.brand-mark span { color: #95bd30; }
.brand-name { font: 600 13px/1 var(--sans); letter-spacing: -.2px; }
.navigation { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 13px; font-weight: 500; }
.navigation > a:not(.nav-contact), .text-link, .back-top { transition: color .2s ease; }
.navigation > a:not(.nav-contact):hover, .text-link:hover, .back-top:hover { color: var(--accent-ink); }
.nav-contact { padding: 12px 17px; border: 1px solid var(--line); border-radius: 3px; }
.nav-contact span { margin-left: 9px; }
.menu-toggle { display: none; }

.section-wrap { padding-inline: var(--gutter); }
.hero, .page-hero {
  background:
    radial-gradient(ellipse at 90% 0%, #dbe6bd, transparent 55%),
    linear-gradient(90deg, #40551a0a 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(#40551a0a 1px, transparent 1px) 0 0 / 32px 32px;
}
.hero {
  position: relative;
  min-height: 636px;
  padding-top: 108px;
  padding-bottom: 86px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 5%;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 25px; color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #99c836; box-shadow: 0 0 0 4px rgba(153, 200, 54, .15); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: -.055em; }
h1 { max-width: 650px; margin-bottom: 23px; font-size: clamp(48px, 5.2vw, 72px); line-height: 1.08; }
.accent-text { color: var(--accent-ink); }
.hero-intro { max-width: 455px; margin-bottom: 30px; color: #64665e; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 19px; padding: 0 19px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #394136; }
.button span { font-size: 16px; }
.text-link { font-size: 12px; font-weight: 600; }
.text-link span { margin-left: 6px; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 62px; color: #5c5f57; font: 10px var(--mono); }
.note-line { display: inline-block; width: 34px; height: 1px; background: #a4a69c; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.art-glow { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: #e8edce; filter: blur(40px); opacity: .8; }
.art-orbit { position: absolute; border: 1px solid rgba(61, 73, 48, .18); border-radius: 50%; transform: rotate(-31deg); }
.orbit-one { width: 390px; height: 190px; }
.orbit-two { width: 350px; height: 255px; transform: rotate(52deg); }
.art-card { position: relative; z-index: 1; width: min(335px, 88%); height: 255px; padding: 19px 22px 18px; display: flex; flex-direction: column; justify-content: space-between; background: var(--forest); color: #f4f4e9; box-shadow: 0 28px 65px rgba(36, 48, 36, .18); transform: rotate(-5deg); }
.art-card-top, .art-card-bottom { display: flex; justify-content: space-between; font: 9px var(--mono); letter-spacing: .04em; }
.art-live { color: var(--lime); font-size: 8px; }
.art-monogram { align-self: center; font: 800 126px/.9 var(--display); letter-spacing: -.13em; color: var(--lime); }
.art-monogram span { color: #f6f5ec; }
.art-card-bottom { align-items: center; color: #c2c8bc; font-size: 8px; }
.art-arrow { color: var(--lime); font-size: 15px; }
.art-label { position: absolute; z-index: 2; padding: 8px 11px; background: var(--paper); box-shadow: 0 7px 24px rgba(30, 33, 28, .08); font: 9px var(--mono); }
.label-top { top: 54px; right: 3%; transform: rotate(4deg); }
.label-bottom { bottom: 55px; left: 0; transform: rotate(-4deg); }
.art-spark { position: absolute; color: #91b836; }
.spark-one { top: 20px; left: 17%; font-size: 23px; }
.spark-two { right: 11%; bottom: 29px; font-size: 15px; }
.scroll-cue { position: absolute; bottom: 31px; left: var(--gutter); display: flex; align-items: center; gap: 10px; color: #5c5f57; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue span { width: 16px; height: 25px; border: 1px solid #b8b9b0; border-radius: 12px; position: relative; }
.scroll-cue span::after { position: absolute; top: 5px; left: 6px; width: 2px; height: 5px; background: #86887f; content: ""; }

.about { padding-top: 110px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr .78fr; gap: 15%; border-top: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 20px; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.14; }
.muted-text { color: #4b4e47; }
.about-copy { padding-top: 42px; }
.about-copy p, .work-intro { color: #666860; font-size: 14px; line-height: 1.9; }
.about-copy p + p { margin-top: 17px; margin-bottom: 26px; }
.profile-facts { margin: 0 0 22px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.profile-facts div { display: grid; grid-template-columns: 108px 1fr; align-items: baseline; gap: 12px; }
.profile-facts span { color: #5c5f57; font: 9px var(--mono); letter-spacing: .08em; }
.profile-facts strong { font-size: 11px; font-weight: 600; }

.work { padding-top: 105px; padding-bottom: 125px; background: #ebece3; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.work-intro { max-width: 255px; margin-bottom: 4px; font-size: 12px; }
.project-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 19px; }
.project-card { min-width: 0; }
.project-visual { position: relative; height: 220px; margin-bottom: 21px; overflow: hidden; background: #d6dacb; }
.project-featured .project-visual { height: 255px; }
.project-index { position: absolute; top: 17px; left: 17px; z-index: 2; color: #4d5545; font: 10px var(--mono); letter-spacing: .06em; }
.visual-caption { position: absolute; right: 15px; bottom: 14px; color: #4d5545; font: 10px var(--mono); }
.visual-orbit { display: grid; place-items: center; background: #d9e3bc; }
.orbit-center { position: relative; z-index: 1; width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font: 18px var(--mono); }
.orbit-ring { position: absolute; width: 130px; height: 130px; border: 1px solid rgba(46, 61, 41, .32); border-radius: 50%; }
.ring-b { width: 190px; height: 90px; transform: rotate(43deg); }
.ring-c { width: 220px; height: 100px; transform: rotate(-45deg); }
.visual-shapes { display: grid; place-items: center; background: #d7d2c8; }
.shape { position: absolute; display: block; }
.shape-square { width: 74px; height: 74px; border: 1px solid #62705a; transform: translate(-43px, 3px) rotate(15deg); }
.shape-circle { width: 72px; height: 72px; border-radius: 50%; background: #a6bd6d; transform: translate(20px, -15px); mix-blend-mode: multiply; }
.shape-diamond { width: 46px; height: 46px; background: #ede8d9; transform: translate(5px, 29px) rotate(45deg); mix-blend-mode: multiply; }
.visual-signal { display: grid; place-items: center; background: #d5dedb; }
.signal-line { width: 65%; height: 1px; background: #8e9e95; transform: rotate(-24deg); }
.signal-dot { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; border: 1px solid #69796c; border-radius: 50%; transform: translate(-50%, -50%); }
.signal-dot::after { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #738a53; content: ""; transform: translate(-50%, -50%); }
.project-meta { display: flex; justify-content: space-between; color: #5c5f57; font: 9px var(--mono); letter-spacing: .08em; }
.project-card h3 { margin: 12px 0 8px; font: 600 17px var(--display); letter-spacing: -.04em; }
.project-card h3 a:hover { color: var(--accent-ink); }
.project-card > p { min-height: 42px; margin-bottom: 12px; color: var(--secondary-ink); font-size: 12px; line-height: 1.7; }
.project-tag { display: inline-flex; padding: 6px 9px; border: 1px solid #c8cbbf; border-radius: 2px; color: #55584f; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.project-link { transition: color .2s ease, border-color .2s ease; }
.project-link:hover { border-color: #71833e; color: var(--accent-ink); }

.ai-section { padding-top: 110px; padding-bottom: 110px; }
.ai-panel { min-height: 390px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--forest); color: #f4f4ec; }
.ai-panel-copy { padding: 54px 0 48px 55px; }
.ai-panel .eyebrow { margin-bottom: 20px; color: #b7c0ad; }
.ai-star { color: var(--lime); font-size: 14px; }
.ai-panel h2 { margin-bottom: 17px; color: inherit; font-size: clamp(34px, 3.4vw, 45px); }
.ai-panel h2 span { color: var(--lime); }
.ai-panel-copy > p:not(.eyebrow) { max-width: 375px; margin-bottom: 23px; color: #c6cbbf; font-size: 12px; line-height: 1.8; }
.button-light { min-height: 43px; background: var(--lime); color: var(--ink); font-size: 11px; }
.button-light:hover { background: #d8f78a; }
.ai-visual { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; }
.ai-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(230, 238, 215, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 238, 215, .28) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 76%); }
.ai-orbit { position: absolute; width: 300px; height: 135px; border: 1px solid rgba(205, 231, 154, .46); border-radius: 50%; }
.ai-orbit-one { transform: rotate(48deg); }
.ai-orbit-two { width: 275px; height: 125px; transform: rotate(-48deg); }
.ai-core { position: relative; z-index: 1; color: var(--lime); font: 800 71px var(--display); letter-spacing: -.1em; }
.ai-core span { color: #f1f0e5; }
.ai-caption { position: absolute; color: #c1c9b8; font: 8px var(--mono); }
.caption-left { top: 19%; left: 16%; }
.caption-right { right: 10%; bottom: 20%; }
.ai-cross { position: absolute; color: var(--lime); font: 16px var(--mono); }
.cross-left { top: 28%; right: 17%; }
.cross-right { bottom: 26%; left: 17%; }

.contact { padding-top: 95px; padding-bottom: 105px; text-align: center; border-top: 1px solid var(--line); }
.contact .eyebrow { margin-bottom: 20px; }
.contact h2 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 63px); }
.contact > p:not(.eyebrow) { margin-bottom: 24px; color: #55584f; font-size: 13px; }
.site-footer { min-height: 86px; padding: 0 var(--shell-gutter); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.footer-brand .brand-mark { font-size: 20px; }
.footer-brand .brand-name { font-size: 11px; }
.site-footer > p { margin: 0; color: #5c5f57; font-size: 11px; }
.site-footer > p span { color: var(--accent-ink); }
.back-top { color: #55584f; font-size: 11px; }

@media (max-width: 980px) {
  .navigation { gap: 12px; font-size: 12px; }
  .hero { min-height: 585px; gap: 2%; }
  .hero h1 { font-size: clamp(47px, 6.4vw, 63px); }
  .hero-art { transform: scale(.88); }
  .about { gap: 8%; }
  .project-grid { gap: 13px; }
  .project-visual, .project-featured .project-visual { height: 205px; }
  .ai-panel-copy { padding-left: 35px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 70px; background: var(--paper); }
  .brand { gap: 9px; }
  .brand-mark { font-size: 22px; }
  .brand-name { font-size: 12px; }
  .menu-toggle { width: 42px; height: 42px; padding: 11px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 3px; background: transparent; }
  .menu-toggle span:not(.sr-only) { width: 17px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; max-height: calc(100dvh - 70px); overflow-y: auto; padding: 7px var(--shell-gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .navigation.is-open { display: flex; flex-direction: column; }
  .navigation > a { padding: 14px 0; }
  .navigation .nav-contact { align-self: flex-start; margin-top: 8px; padding: 11px 14px; }
}

@media (max-width: 700px) {
  .hero { min-height: 0; padding-top: 75px; padding-bottom: 80px; grid-template-columns: 1fr; gap: 22px; }
  .hero .eyebrow { margin-bottom: 21px; font-size: 9px; }
  h1 { max-width: 500px; font-size: clamp(47px, 12vw, 70px); }
  .hero-intro { max-width: 470px; font-size: 14px; }
  .hero-note { margin-top: 34px; }
  .hero-art { width: 100%; min-height: 325px; transform: scale(.92); }
  .art-card { width: min(335px, 84%); height: 230px; }
  .art-monogram { font-size: 110px; }
  .orbit-one { width: 340px; height: 170px; }
  .orbit-two { width: 310px; height: 230px; }
  .label-top { right: 1%; }
  .label-bottom { left: 1%; }
  .scroll-cue { bottom: 27px; }
  .about { padding-top: 75px; padding-bottom: 78px; grid-template-columns: 1fr; gap: 25px; }
  h2 { font-size: clamp(36px, 9vw, 48px); }
  .about-copy { padding-top: 0; }
  .about-copy p { font-size: 13px; }
  .profile-facts div { grid-template-columns: 100px 1fr; }
  .work { padding-top: 75px; padding-bottom: 80px; }
  .work-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 30px; }
  .work-intro { max-width: 340px; margin: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
  .project-visual, .project-featured .project-visual { height: 245px; margin-bottom: 17px; }
  .project-card > p { min-height: 0; max-width: 420px; }
  .project-card h3 { font-size: 19px; }
  .ai-section { padding-top: 70px; padding-bottom: 70px; }
  .ai-panel { grid-template-columns: 1fr; }
  .ai-panel-copy { padding: 40px 25px 10px; }
  .ai-panel h2 { font-size: clamp(35px, 9vw, 45px); }
  .ai-visual { min-height: 285px; }
  .contact { padding-top: 73px; padding-bottom: 80px; }
  .contact h2 { font-size: clamp(42px, 11vw, 57px); }
  .contact > p:not(.eyebrow) { max-width: 340px; margin-right: auto; margin-left: auto; line-height: 1.7; }
  .site-footer { min-height: 120px; padding-block: 20px; flex-wrap: wrap; gap: 14px; }
  .site-footer > p { order: 1; width: 100%; }
}

@media (max-width: 380px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-art { min-height: 285px; transform: scale(.82); }
  .art-card { width: 95%; }
}

/* Motion and interaction polish */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 239, .92);
  backdrop-filter: blur(14px);
}

.navigation > a,
.project-card h3 a,
.credential-card a {
  transition: color .2s ease, border-color .2s ease;
}

.nav-contact {
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.nav-contact:hover {
  transform: translateY(-2px);
  border-color: #a9b88c;
  background: rgba(201, 239, 91, .16);
}

.hero-copy > * {
  animation: rise-in .7s both;
}

.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-art { animation: rise-in .8s .15s both; }
.art-card { animation: card-float 6s ease-in-out infinite; }
.art-glow { animation: glow-pulse 7s ease-in-out infinite alternate; }
.art-orbit { animation: orbit-turn 36s linear infinite; }
.orbit-two { animation-direction: reverse; }
.art-spark { animation: sparkle 3.2s ease-in-out infinite; }
.spark-two { animation-delay: 1.2s; }
.scroll-cue span::after { animation: scroll-pulse 1.6s ease-in-out infinite; }

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.motion-ready .reveal {
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}

.project-card {
  transition: transform .3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-visual {
  transition: box-shadow .3s ease;
}

.project-card:hover .project-visual {
  box-shadow: 0 18px 34px rgba(30, 33, 28, .12);
}

.project-visual > .orbit-ring,
.project-visual > .shape,
.project-visual > .signal-line,
.project-visual > .signal-dot {
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover .ring-a { transform: scale(1.12); }
.project-card:hover .ring-b { transform: rotate(55deg) scale(1.08); }
.project-card:hover .ring-c { transform: rotate(-52deg) scale(1.08); }
.project-card:hover .shape-square { transform: translate(-48px, 0) rotate(25deg); }
.project-card:hover .shape-circle { transform: translate(26px, -20px) scale(1.08); }
.project-card:hover .shape-diamond { transform: translate(5px, 35px) rotate(55deg); }
.project-card:hover .signal-line { transform: rotate(-30deg) scaleX(1.08); }
.project-card:hover .signal-dot { transform: translate(-50%, -50%) scale(1.12); }

.credentials {
  padding-top: 105px;
  padding-bottom: 115px;
  border-top: 1px solid var(--line);
}

.credentials-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.credentials-intro {
  max-width: 280px;
  margin-bottom: 5px;
  color: #666860;
  font-size: 13px;
  line-height: 1.8;
}

.credential-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credential-card {
  min-width: 0;
  padding: 23px 21px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: #c5d19f;
  background: rgba(255, 255, 255, .66);
}

.credential-number {
  color: var(--accent-ink);
  font: 10px var(--mono);
}

.credential-card h3 {
  margin: 15px 0 18px;
  font: 600 18px var(--display);
  letter-spacing: -.04em;
}

.credential-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-card li {
  padding: 12px 0;
  border-top: 1px solid rgba(30, 33, 28, .09);
  color: #55584f;
  font-size: 11px;
  line-height: 1.55;
}

.credential-card li a {
  display: inline;
}

.credential-card li a:hover {
  color: var(--accent-ink);
}

.credential-card li a span {
  color: var(--accent-ink);
  white-space: nowrap;
}

.credential-date {
  display: block;
  margin-top: 4px;
  color: #55584f;
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ai-panel {
  border-radius: 2px;
}

.ai-orbit-one { animation: ai-orbit-one 28s linear infinite; }
.ai-orbit-two { animation: ai-orbit-two 32s linear infinite; }
.ai-core { animation: core-glow 3.5s ease-in-out infinite alternate; }
.ai-cross { animation: sparkle 3s ease-in-out infinite; }
.cross-right { animation-delay: 1.4s; }

.contact .button {
  box-shadow: 0 0 0 0 rgba(201, 239, 91, .28);
}

.contact .button:hover {
  box-shadow: 0 0 0 7px rgba(201, 239, 91, .22);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-9px) rotate(-3.5deg); }
}

@keyframes glow-pulse {
  from { opacity: .55; transform: scale(.92); }
  to { opacity: .9; transform: scale(1.08); }
}

@keyframes orbit-turn {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes sparkle {
  0%, 100% { opacity: .55; scale: .85; }
  50% { opacity: 1; scale: 1.15; }
}

@keyframes scroll-pulse {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(9px); }
}

@keyframes ai-orbit-one {
  from { transform: rotate(48deg); }
  to { transform: rotate(408deg); }
}

@keyframes ai-orbit-two {
  from { transform: rotate(-48deg); }
  to { transform: rotate(-408deg); }
}

@keyframes core-glow {
  from { text-shadow: 0 0 12px rgba(201, 239, 91, .12); }
  to { text-shadow: 0 0 34px rgba(201, 239, 91, .42); }
}

@media (max-width: 980px) {
  .credential-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credential-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-header { position: sticky; }
  .credentials { padding-top: 75px; padding-bottom: 80px; }
  .credentials-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .credentials-intro { margin: 0; }
  .credential-groups { grid-template-columns: 1fr; gap: 12px; }
  .credential-card:last-child { grid-column: auto; }
  .credential-card { padding: 20px; }
}

.experience {
  padding-top: 105px;
  padding-bottom: 115px;
  border-top: 1px solid var(--line);
}

.experience-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.experience-intro {
  max-width: 275px;
  margin-bottom: 5px;
  color: #666860;
  font-size: 13px;
  line-height: 1.8;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 42px 0 15px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.impact-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.impact-strip strong {
  font: 700 clamp(24px, 3vw, 36px)/1 var(--display);
  letter-spacing: -.06em;
}

.impact-strip strong span {
  color: inherit;
}

.impact-strip > div > span {
  color: #55584f;
  font: 9px/1.5 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.career-entry {
  display: grid;
  grid-template-columns: minmax(140px, .34fr) 1fr;
  gap: 7%;
  padding: 27px 0 29px;
  border-bottom: 1px solid var(--line);
}

.career-period {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 5px;
  color: #55584f;
  font: 10px/1.6 var(--mono);
  letter-spacing: .04em;
}

.career-marker {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 3px;
  border: 1px solid #97ad61;
  border-radius: 50%;
  background: #dce8bc;
  box-shadow: 0 0 0 4px rgba(153, 200, 54, .1);
}

.career-company {
  margin-bottom: 5px;
  color: var(--accent-ink);
  font: 500 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.career-details h3 {
  margin: 0 0 13px;
  font: 600 clamp(17px, 2vw, 21px)/1.35 var(--display);
  letter-spacing: -.04em;
}

.career-details ul {
  margin: 0;
  padding-left: 17px;
  color: var(--secondary-ink);
  font-size: 13px;
  line-height: 1.8;
}

.career-details li + li {
  margin-top: 4px;
}

.work-intro a {
  display: inline-block;
  margin-top: 9px;
  color: #526d1d;
  font-size: 11px;
  font-weight: 600;
}

.work-intro a:hover {
  color: #749522;
}

.writing {
  padding-top: 100px;
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
}

.writing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.writing-intro {
  max-width: 290px;
  margin-bottom: 5px;
  color: #666860;
  font-size: 13px;
  line-height: 1.8;
}

.writing-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 270px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.writing-card:hover {
  transform: translateY(-4px);
  border-color: #c5d19f;
  box-shadow: 0 18px 34px rgba(30, 33, 28, .08);
}

.writing-art {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dce4cb;
  color: var(--forest);
}

.writing-art-label,
.writing-art-caption {
  position: absolute;
  left: 20px;
  color: #4d5545;
  font: 10px var(--mono);
  letter-spacing: .06em;
}

.writing-art-label { top: 19px; }
.writing-art-caption { bottom: 17px; }

.writing-art-title {
  position: relative;
  z-index: 1;
  font: 700 clamp(25px, 3.2vw, 42px)/1 var(--display);
  letter-spacing: -.08em;
}

.writing-art-title span { color: var(--accent-ink); }

.writing-art-orbit {
  position: absolute;
  width: 235px;
  height: 110px;
  border: 1px solid rgba(61, 73, 48, .3);
  border-radius: 50%;
}

.writing-art-orbit-one { transform: rotate(38deg); }
.writing-art-orbit-two { width: 210px; height: 145px; transform: rotate(-42deg); }

.writing-copy {
  align-self: center;
  padding: 34px clamp(25px, 5vw, 60px);
}

.writing-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #55584f;
  font: 9px var(--mono);
  letter-spacing: .06em;
}

.writing-copy h3 {
  margin: 20px 0 12px;
  font: 600 clamp(21px, 2.4vw, 29px)/1.2 var(--display);
  letter-spacing: -.05em;
}

.writing-copy > p {
  max-width: 470px;
  margin-bottom: 20px;
  color: #666860;
  font-size: 12px;
  line-height: 1.8;
}

.writing-copy .button {
  min-height: 43px;
  font-size: 10px;
}

@media (max-width: 980px) {
  .career-entry { gap: 5%; }
}

@media (max-width: 700px) {
  .experience { padding-top: 75px; padding-bottom: 80px; }
  .experience-heading { align-items: start; flex-direction: column; gap: 14px; }
  .experience-intro { margin: 0; }
  .impact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 29px; }
  .career-entry { grid-template-columns: 1fr; gap: 12px; padding: 22px 0 24px; }
  .career-period { justify-content: start; gap: 12px; }
  .career-details ul { font-size: 11px; }
  .writing { padding-top: 75px; padding-bottom: 80px; }
  .writing-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .writing-intro { margin: 0; }
  .writing-card { grid-template-columns: 1fr; }
  .writing-art { min-height: 215px; }
  .writing-copy { padding: 27px 22px 30px; }
  .writing-meta { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .motion-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
}

.navigation a[aria-current="page"] {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .45em;
}

.page-main {
  min-height: calc(100vh - 170px);
  animation: page-enter .45s ease both;
}

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 6vw, 4rem);
}

.page-hero .eyebrow {
  margin-bottom: 22px;
  color: var(--accent-ink);
}

.page-hero .eyebrow::before {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: .75rem;
  background: currentColor;
  vertical-align: middle;
  content: "";
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 23px;
}

.page-lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-content {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 12%;
  padding-top: 35px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.recommendations {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 12%;
  padding-top: 20px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.recommendation-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
}

.recommendation-card p {
  margin-bottom: 22px;
  color: var(--secondary-ink);
  font-size: 13px;
  line-height: 1.8;
}

.recommendation-card > a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.recommendation-card > a span {
  color: var(--accent-ink);
  font: 9px var(--mono);
}

.resume-download {
  display: inline-block;
  margin-left: 20px;
}

.page-copy p {
  color: #64665e;
  font-size: 15px;
  line-height: 1.9;
}

.page-facts {
  display: grid;
  align-content: start;
  gap: 17px;
}

.page-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-facts span {
  color: #55584f;
  font: 9px var(--mono);
  letter-spacing: .08em;
}

.page-facts strong {
  font-size: 12px;
  line-height: 1.6;
}

.home-pages {
  padding-top: 95px;
  padding-bottom: 105px;
  border-top: 1px solid var(--line);
}

.home-pages-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.home-pages-heading > p {
  max-width: 300px;
  margin-bottom: 5px;
  color: #666860;
  font-size: 13px;
  line-height: 1.8;
}

.home-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-page-card {
  position: relative;
  min-height: 130px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-page-card:hover {
  transform: translateY(-4px);
  border-color: #c5d19f;
  background: rgba(255, 255, 255, .72);
}

.home-page-card > span:first-child {
  color: #55584f;
  font: 9px var(--mono);
  letter-spacing: .06em;
}

.home-page-card strong {
  font: 600 18px var(--display);
}

.home-page-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--accent-ink);
  transition: transform .25s ease;
}

.home-page-card:hover .home-page-arrow {
  transform: translate(3px, -3px);
}

.page-cta {
  padding-top: 65px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}

.page-cta .eyebrow {
  margin-bottom: 16px;
}

.page-cta h2 {
  margin-bottom: 22px;
}

.page-experience {
  padding-top: 0;
  padding-bottom: 75px;
  border-top: 0;
}

.page-experience .career-details h2 {
  margin: 0 0 13px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.project-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 90px;
}

.project-page-grid .project-featured {
  grid-column: 1 / -1;
}

.project-page-grid .project-featured .visual-code {
  height: 286px;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #34383c;
  background: #1e1f22;
  color: #d7dae0;
  box-shadow: 0 16px 36px rgba(30, 33, 28, .13);
  font-family: var(--mono);
}

.code-titlebar {
  height: 29px;
  flex: 0 0 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #303136;
  color: #c9cbd0;
  font: 9px var(--sans);
}

.code-app-mark {
  position: absolute;
  left: 12px;
  color: #74b6ef;
  font-size: 15px;
}

.code-window-actions {
  position: absolute;
  right: 12px;
  color: #a4a6ab;
  font: 10px var(--sans);
  letter-spacing: 8px;
}

.code-workbench {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 31px 154px minmax(0, 1fr);
}

.code-activitybar {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding-top: 15px;
  border-right: 1px solid #34363b;
  background: #25262a;
  color: #8b8e94;
  font: 13px var(--sans);
}

.code-activitybar .activity-active {
  color: #e4e6eb;
}

.code-sidebar {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
  padding: 13px 9px;
  border-right: 1px solid #34363b;
  background: #25262a;
  color: #c3c6cc;
  font-size: 8px;
}

.code-sidebar-heading {
  margin-bottom: 4px;
  color: #a6a8ad;
  font: 8px var(--sans);
  letter-spacing: .1em;
}

.code-folder-muted {
  margin-left: 9px;
  color: #a7a9af;
}

.code-file {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% + 18px);
  margin-left: -9px;
  padding: 5px 8px 5px 17px;
  background: #37393f;
  color: #f0f1f3;
  white-space: nowrap;
}

.ts-file-icon {
  color: #76b8ef;
  font: 700 8px var(--sans);
}

.code-editor {
  min-width: 0;
  overflow: hidden;
  background: #1e1f22;
}

.code-tab {
  height: 29px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 1px solid #383a40;
  background: #25262a;
  color: #eceef2;
  font: 8px var(--sans);
}

.code-tab-close {
  margin-left: auto;
  color: #9da0a6;
  font: 11px var(--sans);
}

.code-lines {
  padding-top: 11px;
  font-size: clamp(7px, .77vw, 10px);
  line-height: 1.9;
  white-space: nowrap;
}

.code-line {
  min-height: 17px;
  display: flex;
}

.line-number {
  width: 31px;
  flex: 0 0 31px;
  padding-right: 9px;
  color: #777a82;
  text-align: right;
  user-select: none;
}

.code-line code {
  color: #d4d7de;
  font: inherit;
}

.code-purple { color: #c99be8; }
.code-orange { color: #e6ad76; }

.code-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #d6dae2;
  animation: editor-cursor 1s steps(2, start) infinite;
}

.code-statusbar {
  height: 20px;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  background: #3b654d;
  color: #f3f5f2;
  font-size: 8px;
}

.code-run-status {
  position: relative;
  min-width: 145px;
  text-align: right;
}

.run-status-running,
.run-status-passed {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: test-status-cycle 6s infinite;
}

.run-status-passed {
  color: #dcf4d2;
  animation-delay: 3s;
}

.run-status-running i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -1px;
  animation: test-spinner .8s linear infinite;
}

.code-demo-label {
  position: absolute;
  right: 10px;
  bottom: 31px;
  color: #999ca3;
  font: 7px var(--mono);
  letter-spacing: .04em;
}

@keyframes test-status-cycle {
  0%, 5% { opacity: 0; }
  8%, 44% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

@keyframes test-spinner {
  to { transform: rotate(360deg); }
}

@keyframes editor-cursor {
  50% { opacity: 0; }
}

.project-page-grid .project-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
}

.project-page-grid .project-card > p {
  min-height: 0;
  max-width: 600px;
  font-size: 13px;
}

.writing-page-content {
  padding-bottom: 90px;
}

.writing-page-content .writing-card {
  grid-template-columns: .8fr 1.2fr;
}

.writing-page-content .writing-copy h2 {
  margin: 20px 0 12px;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.2;
}

.writing-copy > p + p {
  margin-top: -7px;
}

.credential-page-groups {
  padding-top: 5px;
  padding-bottom: 90px;
}

.certificate-showcase {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: center;
  gap: 7%;
  padding-top: 15px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.certificate-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 42px);
}

.certificate-copy > p:not(.eyebrow) {
  margin-bottom: 20px;
  color: var(--secondary-ink);
  font-size: 13px;
  line-height: 1.8;
}

.certificate-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 38px rgba(30, 33, 28, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.certificate-image-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(30, 33, 28, .14);
}

.certificate-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.credential-page-groups .credential-card h2 {
  margin: 15px 0 18px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.35;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .home-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .page-hero h1 { font-size: clamp(36px, 9vw, 60px); }
  .page-content { grid-template-columns: 1fr; gap: 20px; padding-bottom: 65px; }
  .recommendations { grid-template-columns: 1fr; gap: 25px; padding-bottom: 65px; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .resume-download { display: block; margin: 18px 0 0; }
  .page-copy p { font-size: 13px; }
  .home-pages { padding-top: 72px; padding-bottom: 78px; }
  .home-pages-heading { align-items: start; flex-direction: column; gap: 12px; }
  .home-pages-heading > p { margin: 0; }
  .home-page-grid { gap: 9px; }
  .home-page-card { min-height: 112px; padding: 14px; }
  .home-page-card strong { font-size: 16px; }
  .page-cta { padding-top: 50px; padding-bottom: 65px; }
  .project-page-grid { grid-template-columns: 1fr; padding-bottom: 65px; }
  .project-page-grid .project-featured { grid-column: auto; }
  .project-page-grid .project-featured .visual-code { height: 260px; }
  .code-workbench { grid-template-columns: 27px 110px minmax(0, 1fr); }
  .code-lines { font-size: clamp(6px, 1.55vw, 9px); }
  .code-sidebar { padding-right: 5px; padding-left: 7px; }
  .code-demo-label { font-size: 6px; }
  .writing-page-content { padding-bottom: 65px; }
  .writing-page-content .writing-card { grid-template-columns: 1fr; }
  .credential-page-groups { padding-bottom: 65px; }
  .certificate-showcase { grid-template-columns: 1fr; gap: 25px; padding-bottom: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-main { animation: none; }
  .code-cursor,
  .run-status-running i {
    animation: none;
  }
  .run-status-running {
    display: none;
  }
  .run-status-passed {
    opacity: 1;
    animation: none;
  }
}
