:root {
  color-scheme: light;
  --page: #f5f7fa;
  --paper: #fff;
  --ink: #15263c;
  --muted: #4b5b70;
  --rule: #dbe2ea;
  --blue: #154783;
  --navy: #112844;
  --accent: #d8f58b;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid #2764ad; outline-offset: 5px; }

.wrap { width: min(100% - 3.5rem, 75rem); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 1; transform: translateY(-200%); background: var(--paper); padding: .65rem .95rem; }
.skip:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 5.5rem; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; font-size: 1.28rem; letter-spacing: -.035em; text-decoration: none; }
.wordmark-icon { display: grid; width: 2.35rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--rule); border-radius: .7rem; background: #f8f5ef; overflow: hidden; }
.wordmark-icon img { width: 100%; height: auto; transform: scale(1.28); }
.site-header nav a, .site-footer a { display: inline-block; padding-block: .65rem; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.65rem;
  background: var(--navy);
  color: var(--paper);
}
.hero-copy { padding: clamp(2.5rem, 5.3vw, 5.1rem); padding-right: 0; }
h1 { font-size: clamp(3.25rem, 6.4vw, 6.25rem); font-weight: 720; line-height: .99; letter-spacing: -.07em; }
h1 span { color: var(--accent); }
.intro { max-width: 31rem; margin-top: 1.45rem; color: #e2ebf6; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.58; }
.button { display: inline-flex; align-items: center; min-height: 3.25rem; margin-top: 1.65rem; padding: .7rem 1.2rem; border-radius: .65rem; background: var(--accent); color: #182a25; font-weight: 750; text-decoration: none; }
.button:hover { background: #e6fbb5; }
.button:focus-visible { outline-color: var(--accent); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 48% 49%, #23496d 0%, transparent 66%);
  transform: translateX(-3%);
  z-index: -1;
}
.orbit { position: absolute; width: min(96%, 28rem); aspect-ratio: 1; border: 1px solid #aecce746; border-radius: 50%; }
.orbit-two { transform: scale(.79); border-color: #aecce753; }
.orbit-three { transform: scale(.59); border-color: #aecce75c; }
.orbit-one::before, .orbit-one::after { content: ''; position: absolute; inset: 50% 0 auto; border-top: 1px solid #aecce729; }
.orbit-one::after { transform: rotate(90deg); }
.orbit-dot { position: absolute; top: 25%; left: 83%; width: .65rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1.3rem #d8f58766; }
.robot { width: 46%; max-width: 13.5rem; aspect-ratio: 1; border: 1px solid #fff; border-radius: 29%; background: #f8f5ef; box-shadow: 0 1.25rem 3.5rem #0616288c; transform: rotate(-9deg); overflow: hidden; }
.robot img { width: 100%; height: auto; transform: scale(1.28); }

.projects { padding-top: clamp(2.65rem, 6.1vw, 5.35rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.07; letter-spacing: -.055em; }
.section-heading p { flex: none; color: var(--muted); font-size: .9375rem; font-weight: 650; }
.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.35rem; }
.project { grid-column: span 4; min-width: 0; }
.project:nth-child(n + 4) { grid-column: span 3; }
.project-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); border-radius: 1.1rem; background: var(--paper); text-decoration: none; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.project-link:hover { border-color: #9eafc2; box-shadow: 0 .7rem 1.6rem #15263c12; }
.thumbnail { padding: .65rem; border-bottom: 1px solid var(--rule); background: #eaf0f5; }
.thumbnail img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border: 1px solid #15263c1f; border-radius: .66rem; background: var(--paper); }
.project-copy { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1.25rem; }
.category { color: var(--blue); font-weight: 680; font-size: .875rem; }
.project-copy h3 { font-size: clamp(1.33rem, 2vw, 1.62rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.description { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.domain { display: block; margin-top: auto; padding-top: .55rem; color: var(--blue); font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.project-link:hover .domain { text-decoration: underline; text-underline-offset: .18em; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.25rem, 5vw, 4.5rem); padding-block: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem; }

@media (max-width: 64rem) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project, .project:nth-child(n + 4) { grid-column: auto; }
}

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .hero { grid-template-columns: 1.65fr 1fr; border-radius: 1.2rem; }
  .hero-copy { padding: 2.65rem 0 2.65rem 1.6rem; }
  .wide-break { display: none; }
  h1 { font-size: clamp(2.75rem, 8vw, 3.8rem); }
  .projects-grid { gap: 1rem; }
}

@media (max-width: 34rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.2rem 1.4rem 0; }
  .hero-art { min-height: 10.25rem; transform: translate(16%, -8%); }
  .orbit { width: min(68%, 14rem); }
  .orbit-dot { left: 76%; }
  .robot { width: 6.1rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
