:root {
  --ink: #18211b;
  --muted: #616b62;
  --paper: #f2efe7;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(24, 33, 27, 0.14);
  --lime: #c9f36b;
  --orange: #ff7757;
  --blue: #3c61e8;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(32, 39, 33, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 243, 107, 0.35), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(87, 112, 242, 0.13), transparent 31rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.page-glow--one { top: 35%; left: -12rem; background: #ef5d40; }
.page-glow--two { right: -10rem; bottom: 6%; background: #365df0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-style: italic;
}

nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
nav a { text-decoration: none; }
.nav-pill { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; transition: 180ms ease; }
.nav-pill:hover { background: var(--ink); color: white; transform: translateY(-1px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  min-height: 690px;
  padding-block: 90px;
}

.eyebrow,
.kicker {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4da943; box-shadow: 0 0 0 5px rgba(77, 169, 67, 0.13); }

h1,
h2,
h3,
p { text-wrap: pretty; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 8.5vw, 124px);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

h1 em {
  display: block;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 590px;
  margin: 38px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-link,
.closing a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.hero-orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: end; }
.orbit { position: absolute; inset: 7%; border: 1px solid rgba(24, 33, 27, 0.21); border-radius: 50%; }
.orbit--inner { inset: 24%; border-style: dashed; animation: spin 22s linear infinite reverse; }
.orbit--outer { animation: spin 34s linear infinite; }
.orbit span { position: absolute; top: -8px; left: 48%; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 7px rgba(60, 97, 232, 0.12); }
.orbit--inner span { top: auto; bottom: -6px; width: 12px; height: 12px; background: var(--orange); }
.orbit-core { position: absolute; inset: 34%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--ink); color: white; box-shadow: var(--shadow); }
.orbit-core strong { font-family: Georgia, serif; font-size: 66px; font-weight: 400; line-height: 0.8; }
.orbit-core small { margin-top: 10px; color: #c7d0c9; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.orbit-label { position: absolute; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); font-size: 11px; font-weight: 750; }
.orbit-label--one { top: 11%; right: 1%; }
.orbit-label--two { bottom: 17%; left: 2%; }
.orbit-label--three { right: 2%; bottom: 6%; }

.projects { padding-block: 70px 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading h2,
.closing h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.section-heading > p { max-width: 260px; margin: 0 0 7px; color: var(--muted); line-height: 1.5; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card { grid-column: span 5; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(24,33,27,.1); border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(255,255,255,.85) inset; text-decoration: none; transition: transform 300ms cubic-bezier(.2,.75,.25,1), box-shadow 300ms ease; }
.project-card--large { grid-column: span 7; }
.project-card--full { grid-column: 1 / -1; }
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.project-preview { min-height: 300px; margin: 10px 10px 0; overflow: hidden; border-radius: 20px; }
.window-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; color: rgba(255,255,255,.72); background: #2b3b31; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.window-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.46); }
.window-bar span { margin-left: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.window-bar--dark { background: #141821; }
.window-bar--light { background: #ede9de; color: #68685f; }
.window-bar--cream { background: #5f5145; }
.window-bar--blue { background: #243a82; }

.project-copy { display: flex; flex: 1; flex-direction: column; padding: 25px 28px 28px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #54a94d; box-shadow: 0 0 0 3px rgba(84,169,77,.13); }
.project-copy h3 { margin: 26px 0 11px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; line-height: 1; }
.project-copy p { max-width: 510px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.visit { display: flex; align-items: center; justify-content: space-between; margin-top: 34px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visit b { font-size: 19px; transition: transform 180ms ease; }
.project-card:hover .visit b { transform: translate(3px, -3px); }

.learning-scene { display: grid; grid-template-columns: 58px 1fr; height: 266px; background: #e8f3df; }
.learning-nav { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 24px; background: #203a2b; }
.learning-nav b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #203a2b; background: var(--lime); }
.learning-nav span { width: 18px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.24); }
.learning-main { padding: 42px 34px; }
.mini-label { font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.learning-main strong { display: block; margin-top: 17px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 38px); font-weight: 400; line-height: 1.05; }
.learning-row { display: flex; gap: 9px; margin-top: 27px; }
.learning-row i { width: 27%; height: 38px; border-radius: 9px; background: rgba(32,58,43,.09); }
.learning-row i:nth-child(2) { background: #d7a8ef; }

.finance-scene { height: 266px; padding: 27px; color: #f1f2ed; background: linear-gradient(150deg,#161b25,#242d42); }
.finance-top { display: flex; align-items: end; justify-content: space-between; }
.finance-top span { color: #aeb9c8; font-size: 8px; letter-spacing: .16em; }
.finance-top b { font-size: 26px; letter-spacing: -.05em; }
.finance-bars { display: flex; align-items: end; gap: 7px; height: 110px; margin-top: 17px; border-bottom: 1px solid rgba(255,255,255,.14); }
.finance-bars i { flex: 1; height: 34%; border-radius: 4px 4px 0 0; background: #93b7ff; }
.finance-bars i:nth-child(2) { height: 52%; }.finance-bars i:nth-child(3) { height: 41%; }.finance-bars i:nth-child(4) { height: 76%; background: var(--lime); }.finance-bars i:nth-child(5) { height: 65%; }.finance-bars i:nth-child(6) { height: 89%; background: #ff9275; }.finance-bars i:nth-child(7) { height: 72%; }
.finance-stats { display: flex; gap: 28px; margin-top: 18px; color: #9ca9ba; font-size: 8px; line-height: 1.5; }
.finance-stats b { color: white; font-size: 14px; }

.physics-scene { position: relative; height: 266px; padding: 36px 30px; overflow: hidden; color: #141f5f; background: #faf6eb; }
.physics-kicker { color: #5f69a5; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.physics-scene strong { position: relative; z-index: 2; display: block; margin-top: 24px; font-family: Georgia, serif; font-size: 42px; font-weight: 400; line-height: .9; }
.particle { position: absolute; width: 13px; height: 13px; border: 2px solid #3c61e8; border-radius: 50%; }
.particle--one { right: 24%; top: 28%; box-shadow: 0 0 0 14px rgba(60,97,232,.09); }
.particle--two { right: 13%; bottom: 20%; width: 8px; height: 8px; background: var(--orange); border: 0; }
.particle--three { left: 48%; bottom: 14%; width: 5px; height: 5px; background: var(--ink); border: 0; }
.wave { position: absolute; right: -38px; top: 42px; width: 210px; height: 210px; border: 1px solid rgba(60,97,232,.25); border-radius: 50%; box-shadow: 0 0 0 29px rgba(60,97,232,.05), 0 0 0 61px rgba(60,97,232,.04); }

.order-scene { position: relative; height: 266px; overflow: hidden; color: #473d34; background: #eadfce; }
.order-sun { position: absolute; left: -55px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: #e5a56c; }
.order-copy { position: absolute; z-index: 2; top: 38px; left: 34px; }
.order-copy span { font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.order-copy strong { display: block; margin-top: 17px; font-family: Georgia, serif; font-size: 40px; font-weight: 400; line-height: .96; }
.order-vase { position: absolute; right: 13%; bottom: -7px; width: 95px; height: 135px; border-radius: 42% 42% 13px 13px; background: #647b5e; }
.order-vase i { position: absolute; bottom: 112px; left: 43px; width: 3px; height: 92px; background: #485e43; transform-origin: bottom; }
.order-vase i:first-child { transform: rotate(-27deg); }.order-vase i:nth-child(2) { transform: rotate(8deg); }.order-vase i:nth-child(3) { transform: rotate(31deg); }
.order-vase i::after { content: ""; position: absolute; top: 5px; left: -14px; width: 28px; height: 16px; border-radius: 100% 0 100% 0; background: #78926f; }

.preview-dhci { min-height: 330px; }
.dhci-scene { position: relative; height: 296px; overflow: hidden; color: white; background: linear-gradient(125deg,#2f54c7,#6888f1); }
.dhci-brand { position: absolute; top: 28px; left: 32px; display: flex; align-items: center; gap: 10px; }
.dhci-brand span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; }
.dhci-brand b { font-size: 11px; letter-spacing: .14em; }
.invoice-card { position: absolute; top: 48px; left: 44%; width: 230px; height: 190px; padding: 26px; color: #1d2862; background: #fbfbf5; border-radius: 18px; box-shadow: 0 24px 50px rgba(18,29,85,.25); transform: rotate(4deg); }
.invoice-card--back { left: 36%; top: 66px; background: #d9e1ff; transform: rotate(-8deg); }
.invoice-card span { font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.invoice-card b { display: block; margin: 32px 0 22px; font-size: 23px; }
.invoice-card i { display: block; width: 100%; height: 5px; margin: 8px 0; border-radius: 5px; background: #e1e4ec; }
.invoice-card i:last-child { width: 62%; }
.dhci-scene > p { position: absolute; right: 4%; bottom: 28px; margin: 0; color: rgba(255,255,255,.82); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.project-copy--horizontal { display: grid; grid-template-columns: 1fr 1.2fr .6fr; align-items: end; gap: 28px; }
.project-copy--horizontal h3 { margin-bottom: 0; }
.project-copy--horizontal .visit { align-self: end; margin: 0; }

.closing { margin-bottom: 80px; padding: 90px clamp(28px, 8vw, 95px); border-radius: 34px; color: white; background: var(--ink); }
.closing .kicker { color: var(--lime); }
.closing h2 { max-width: 780px; }
.closing a { margin-top: 38px; color: var(--lime); }

.site-footer { display: flex; justify-content: space-between; padding-block: 30px 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 75px; }
  .hero-orbit { width: 340px; margin-top: 60px; justify-self: center; }
  .project-card,
  .project-card--large { grid-column: span 6; }
  .project-card--full { grid-column: 1 / -1; }
  .project-copy--horizontal { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  nav > a:first-child { display: none; }
  .nav-pill { padding: 9px 12px; font-size: 12px; }
  .hero { padding-block: 58px 75px; }
  h1 { font-size: clamp(58px, 20vw, 86px); }
  .hero-lede { margin-top: 28px; font-size: 18px; }
  .hero-orbit { width: 280px; }
  .orbit-label { display: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .project-card,
  .project-card--large,
  .project-card--full { grid-column: 1 / -1; }
  .project-preview { min-height: 250px; }
  .learning-scene,
  .finance-scene,
  .physics-scene,
  .order-scene { height: 216px; }
  .dhci-scene { height: 250px; }
  .invoice-card { left: 36%; width: 190px; }
  .invoice-card--back { left: 29%; }
  .dhci-scene > p { display: none; }
  .site-footer { flex-direction: column; gap: 8px; }
}

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