:root {
  --canvas: #f7f8fc;
  --surface: #fff;
  --ink: #172033;
  --body: #465069;
  --brand: #245edb;
  --brand-dark: #1745aa;
  --accent: #ffb300;
  --line: #d9deea;
  --soft: #e9efff;
  --focus: #8a4200;
  --max: 1240px;
  --read: 760px;
  --r: 18px;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-snappy: linear(
    0,
    0.035 2.1%,
    0.723 12.9%,
    1.017 19.4%,
    1.067 22.5%,
    1.049 36%,
    1.011 50.3%,
    1.001 69.3%,
    1
  );
  --spring-smooth: linear(
    0,
    0.016 2.3%,
    0.141 7.2%,
    0.601 16.5%,
    0.929 25.2%,
    1.025 33.5%,
    1.04 43.5%,
    1.013 57.5%,
    1.001 79%,
    1
  );
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font:
    16px/1.7 Arial,
    Helvetica,
    sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}
a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
}
p {
  margin: 0 0 1rem;
}
.skip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 36px;
  width: min(calc(100% - 40px), var(--max));
  margin: 20px auto;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.06);
}
.brand img {
  width: 175px;
  height: 48px;
  object-fit: contain;
  object-position: left;
}
.topbar nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.topbar nav a,
.contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.topbar nav a:hover {
  background: var(--soft);
}
.contact {
  background: var(--brand);
  color: #fff;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100dvh - 112px);
  margin: auto;
  padding: clamp(56px, 7vw, 96px) 0;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -8% 2% -8%;
  background: radial-gradient(
    ellipse 52% 58% at 18% 42%,
    rgba(36, 94, 219, 0.1),
    transparent 72%
  );
  pointer-events: none;
  animation: hero-atmosphere 620ms var(--ease-out) both;
}
.hero-copy {
  max-width: 900px;
}
.hero h1 {
  max-width: 10ch;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.2vw, 8rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.hero-line {
  display: block;
  animation: hero-enter 560ms var(--spring-snappy) both;
}
.hero-line:first-child {
  animation-delay: 50ms;
}
.hero-line-accent {
  color: var(--brand);
  font-style: italic;
  font-weight: 400;
  animation-delay: 110ms;
}
.hero .label {
  animation: hero-enter 480ms var(--spring-snappy) both;
}
.hero .lede {
  max-width: 52ch;
  margin: 30px 0 28px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  animation: hero-enter 520ms var(--spring-snappy) 170ms both;
}
.hero .button {
  animation: hero-enter 500ms var(--spring-snappy) 240ms both;
}
.label {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede {
  max-width: 63ch;
  margin: 28px 0;
  font-size: 1.2rem;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(36, 94, 219, 0.24);
  transition:
    transform 420ms var(--spring-snappy),
    box-shadow 320ms var(--ease-snap);
}
.hero .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(36, 94, 219, 0.3);
}
.hero .button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 12px rgba(36, 94, 219, 0.2);
}
.hero-board {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1px;
  padding: 1px;
  border-radius: 28px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.5deg);
  animation: hero-board-enter 600ms var(--spring-smooth) 150ms both;
  transition:
    transform 650ms var(--spring-smooth),
    box-shadow 480ms var(--ease-snap);
}
.hero-board:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 20px 48px rgba(23, 32, 51, 0.15);
}
.hero-board > * {
  padding: 28px;
  background: var(--surface);
}
.hero-board span {
  color: var(--brand);
  font-weight: 800;
}
.hero-board strong {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--ink);
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-board-enter {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(3.5deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: rotate(1.5deg) scale(1);
  }
}
@keyframes hero-atmosphere {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.workbench {
  padding: 100px max(20px, calc((100% - var(--max)) / 2));
  background: #172033;
}
.workbench > header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 52px;
}
.workbench > header h2 {
  color: #fff;
}
.workbench .label {
  color: #a9c4ff;
}
.workbench.compact {
  padding-top: 60px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.project-card {
  grid-column: span 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.project-card:nth-child(5n + 1) {
  grid-column: span 7;
}
.project-card:nth-child(5n + 2) {
  grid-column: span 5;
}
.card-image img,
.card-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand);
  font-size: 3rem;
  font-weight: 800;
}
.project-card > div {
  padding: 24px;
}
.project-card .label {
  color: var(--brand-dark);
}
.project-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.project-card p:last-child {
  margin: 14px 0 0;
}
.guide-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 110px auto;
}
.guide-row > * {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.guide-row > a {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.05);
}
.guide-row > a span {
  color: var(--brand);
  font-weight: 800;
}
.guide-row > a strong {
  color: var(--ink);
  font-size: 1.35rem;
}
.guide-row > a i {
  font-style: normal;
  font-size: 1.5rem;
}
.crumb {
  display: flex;
  gap: 12px;
  width: min(calc(100% - 40px), var(--max));
  margin: 40px auto;
  font-size: 0.8rem;
  font-weight: 700;
}
.page-title,
.guide-head {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 70px 0;
}
.page-title p:last-child,
.guide-head > .lede {
  max-width: 65ch;
  margin-top: 28px;
}
.article {
  display: grid;
  grid-template-columns: 180px minmax(0, var(--read));
  gap: clamp(40px, 8vw, 110px);
  width: min(calc(100% - 40px), var(--max));
  margin: 70px auto 120px;
}
.article aside {
  padding-top: 16px;
  border-top: 5px solid var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.article aside span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
}
.reading header {
  padding-bottom: 40px;
}
.reading h1,
.guide-head h1,
.page-title h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}
.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.prose {
  padding-top: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}
.prose h2,
.prose h3 {
  margin: 2em 0 0.7em;
}
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose pre {
  margin: 0 0 1.35em;
}
.prose img {
  margin: 32px 0;
  border-radius: 16px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.prose td,
.prose th {
  padding: 10px;
  border: 1px solid var(--line);
}
.disclosure {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  margin-top: 42px;
  padding: 24px;
  border-left: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}
footer {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 55px max(20px, calc((100% - var(--max)) / 2));
  background: #101727;
  color: #dbe4f7;
}
footer img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  color: #fff;
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .topbar nav {
    grid-column: 1/-1;
    justify-content: flex-start;
    overflow: auto;
  }
  .hero,
  .article,
  .guide-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-block: 72px 80px;
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.6rem, 12vw, 6.5rem);
  }
  .hero-board {
    width: min(100%, 560px);
  }
  .workbench > header {
    grid-template-columns: 1fr;
  }
  .project-card,
  .project-card:nth-child(n) {
    grid-column: span 6;
  }
  .guide-row > a {
    min-height: 180px;
  }
}
@media (max-width: 580px) {
  .topbar {
    width: calc(100% - 24px);
    padding: 12px;
  }
  .brand img {
    width: 140px;
  }
  .contact {
    display: none;
  }
  .hero,
  .page-title,
  .guide-head,
  .article,
  .crumb,
  .guide-row {
    width: calc(100% - 28px);
  }
  .hero {
    gap: 52px;
    min-height: calc(100dvh - 154px);
    padding-block: 54px 64px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(3.15rem, 15.5vw, 4.7rem);
    line-height: 0.88;
  }
  .hero .lede {
    margin-block: 24px;
  }
  .hero-board > * {
    padding: 20px;
  }
  .card-grid {
    display: block;
  }
  .project-card {
    margin-bottom: 20px;
  }
  .workbench {
    padding-inline: 14px;
  }
  .guide-row {
    display: block;
  }
  .guide-row > * {
    margin-bottom: 16px;
  }
  footer {
    grid-template-columns: 55px 1fr;
  }
  footer nav {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .hero::before,
  .hero .label,
  .hero-line,
  .hero .lede,
  .hero .button,
  .hero-board {
    transform: none !important;
    animation: hero-reduced 140ms var(--ease-out) both !important;
  }
}
@keyframes hero-reduced {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
