:root {
  --ink: #10172d;
  --muted: #65708a;
  --paper: #f7f8fc;
  --line: #dde2ee;
  --navy: #0b1020;
  --blue: #4256da;
  --coral: #f06b58;
  --mint: #3bb99d;
  --shadow: 0 20px 50px rgba(20, 31, 62, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, Arial, sans-serif; line-height: 1.65; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 3rem)); margin: auto; }
.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; }
.skip-link { position: absolute; z-index: 100; left: -999px; padding: .75rem 1rem; background: #fff; color: var(--navy); }
.skip-link:focus { top: 1rem; left: 1rem; }

.site-header { position: absolute; z-index: 10; width: 100%; padding: 1.35rem 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.08em; text-decoration: none; }
.brand span { color: var(--coral); }
.site-header .brand { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: #dce3ff; font-size: .88rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus { color: #fff; }
.nav-cta { padding: .55rem 1rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 99px; }
.nav-toggle { display: none; border: 0; background: none; color: #fff; font-size: 1.3rem; }

.hero { position: relative; display: grid; min-height: 720px; overflow: hidden; align-items: center; background: var(--navy); color: #fff; }
.hero-content { position: relative; z-index: 2; padding: 10rem 0 6rem; }
.hero h1 { max-width: 820px; margin: .8rem 0 1.25rem; font-size: clamp(3rem, 7vw, 6rem); line-height: 1.04; letter-spacing: -.075em; }
.hero h1 em { color: #aab8ff; font-style: normal; }
.hero-copy { max-width: 620px; color: #b8c1dd; font-size: 1.1rem; }
.eyebrow { margin: 0; color: var(--blue); font-family: "DM Mono", monospace; font-size: .7rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow, .specialties .eyebrow { color: #aab8ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .85rem 1.1rem; border: 0; border-radius: .45rem; font: 700 .87rem Manrope, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 9px 22px rgba(66, 86, 218, .25); }
.button-quiet { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.hero-note { display: flex; align-items: center; gap: .55rem; margin-top: 4rem; color: #c9d0e9; font-size: .78rem; }
.hero-note span { width: .5rem; height: .5rem; border-radius: 50%; background: #6de2bd; box-shadow: 0 0 0 5px rgba(109, 226, 189, .15); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent); }
.hero-glow { position: absolute; width: 40rem; height: 40rem; border-radius: 50%; filter: blur(25px); opacity: .35; }
.hero-glow-one { top: -24rem; right: -15rem; background: #5d47bb; }.hero-glow-two { bottom: -26rem; left: 22%; background: #22668a; }

.section { padding: 7rem 0; }.section-heading { max-width: 650px; }
.section-heading h2, .projects-heading h2, .playground h2, .contact h2 { margin: .7rem 0 1rem; font-size: clamp(2.15rem, 4vw, 3.75rem); line-height: 1.12; letter-spacing: -.06em; }
.section-heading > p:last-child, .projects-heading > p, .playground-intro > p:last-of-type, .contact-copy > p:last-of-type { color: var(--muted); }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.capability { padding: 2rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }.capability h3 { margin: 1.4rem 0 .45rem; font-size: 1.05rem; }.capability p, .specialty p { margin: 0; color: var(--muted); font-size: .9rem; }
.icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .65rem; color: #fff; }.icon-coral { background: var(--coral); }.icon-violet { background: #7466e8; }.icon-mint { background: var(--mint); }

.projects-section { background: #eef1f8; }.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 4rem; }.projects-heading > div { max-width: 650px; }.projects-heading > p { max-width: 310px; margin-bottom: 1rem; }
.project-list { display: grid; gap: 2rem; margin-top: 3.5rem; }.project-card { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 370px; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: var(--shadow); }.project-reverse .project-image { order: 2; }.project-image { min-height: 280px; background: #d9ddeb; }.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }.project-content { align-self: center; padding: 3rem; }.project-number { margin: 0; color: var(--coral); font: 500 .7rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }.project-content h3 { margin: .65rem 0 1rem; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.045em; }.project-content > p:not(.project-number) { color: var(--muted); }.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }.tags li { padding: .3rem .55rem; border-radius: 99px; background: #edf0f8; color: #43506e; font: 500 .67rem "DM Mono", monospace; }

.specialties { background: var(--navy); color: #fff; }.centered { margin: auto; text-align: center; }.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; border-top: 1px solid #2b344d; }.specialty { padding: 2.25rem 2rem; border-right: 1px solid #2b344d; }.specialty:last-child { border: 0; }.specialty span { display: block; color: #8190b6; font: .75rem "DM Mono", monospace; }.specialty i { margin: 2.6rem 0 1rem; color: #aab8ff; font-size: 1.35rem; }.specialty h3 { margin: .25rem 0 .55rem; }.specialty p { color: #aeb8d0; }

.playground { overflow: hidden; }.playground-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }.playground-intro { max-width: 28rem; }.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--blue); font-weight: 800; text-decoration: none; }.pong-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); min-width: 0; overflow: hidden; border-radius: 1rem; background: var(--navy); color: #fff; box-shadow: var(--shadow); }.pong-preview { position: relative; min-height: 21rem; background: #11192e; }.pong-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }.pong-badge { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border-radius: 99px; background: rgba(11,16,32,.78); color: #fff; font: 500 .65rem "DM Mono", monospace; }.pong-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }.pong-content .project-number { color: #aab8ff; }.pong-content h3 { margin: .5rem 0 1rem; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.055em; }.pong-content > p:not(.project-number) { margin: 0 0 1.5rem; color: #c0c8df; font-size: .9rem; }.pong-content .button { align-self: flex-start; }.playground-layout > .project-links { grid-column: 1 / -1; margin-top: 0; }.project-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 4rem; }.project-links a { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 99px; color: #4e5871; font-size: .78rem; font-weight: 700; text-decoration: none; }.project-links a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.contact { background: #e7ebf5; }.contact-layout { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: 7rem; }.social-links { display: flex; gap: .75rem; margin-top: 2rem; }.social-links a { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; text-decoration: none; }.social-links a:hover { background: var(--blue); }.contact-form { padding: 2rem; border-radius: .8rem; background: #fff; box-shadow: var(--shadow); }.form-row { display: grid; gap: .35rem; margin-bottom: 1.2rem; }.form-row label { font-size: .78rem; font-weight: 800; }.form-row input, .form-row textarea { width: 100%; padding: .75rem; border: 1px solid #d5dbe8; border-radius: .35rem; background: #fafbfe; color: var(--ink); font: inherit; font-size: .9rem; }.form-row textarea { resize: vertical; }.form-row input:focus, .form-row textarea:focus { outline: 3px solid rgba(66,86,218,.2); border-color: var(--blue); }.form-status { min-height: 1.2rem; margin: .9rem 0 0; color: var(--muted); font-size: .8rem; }
footer { padding: 1.5rem 0; background: #fff; }.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #7d8599; font-size: .74rem; }.footer-content p { margin: 0; }.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) { .playground-layout { grid-template-columns: 1fr; gap: 2.5rem; }.playground-intro { max-width: 42rem; }.pong-feature { max-width: 760px; width: 100%; }.projects-heading, .contact-layout { display: block; }.projects-heading > p { max-width: 600px; margin: 1rem 0 0; }.contact-copy { margin-bottom: 2.5rem; } }
@media (max-width: 760px) { .site-header { padding: 1rem 0; }.nav-toggle { display: block; }.nav-links { position: absolute; top: 4.2rem; right: 1.5rem; left: 1.5rem; display: none; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem; border-radius: .6rem; background: #17203a; box-shadow: var(--shadow); }.nav-links.is-open { display: flex; }.nav-links a { padding: .65rem; }.nav-cta { text-align: center; }.hero { min-height: 650px; }.hero-content { padding: 8rem 0 4rem; }.hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }.section { padding: 4.7rem 0; }.capabilities, .specialty-grid { grid-template-columns: 1fr; }.project-card { grid-template-columns: 1fr; }.project-reverse .project-image { order: 0; }.project-image { height: 230px; }.project-content { padding: 2rem; }.specialty { border-right: 0; border-bottom: 1px solid #2b344d; }.project-links { margin-top: 2.5rem; }.footer-content { flex-wrap: wrap; }.footer-content p:last-child { width: 100%; } }
@media (max-width: 560px) { .container { width: min(1120px, calc(100% - 2rem)); }.pong-feature { grid-template-columns: 1fr; }.pong-preview { min-height: 13rem; max-height: 17rem; }.pong-content { padding: 1.5rem; }.project-links { gap: .5rem; }.project-links a { padding: .48rem .7rem; font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; } }

/* Friendly game shelf */
.playground .playground-intro { max-width: 38rem; margin-bottom: 2.75rem; }
.featured-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.game-feature,
.pong-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.pong-feature { max-width: none; width: auto; background: var(--navy); }
.rusk-feature { background: #5a315b; }
.game-preview,
.pong-preview {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: #11192e;
}
.rusk-feature .game-preview { background: #9c4d5f; }
.game-preview img,
.pong-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pong-feature .game-preview img { object-position: center 36%; }
.rusk-feature .game-preview img { object-position: center center; }
.game-feature:hover .game-preview img { transform: scale(1.035); }
.game-badge,
.pong-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  border-radius: 99px;
  background: rgba(11, 16, 32, .8);
  color: #fff;
  font: 500 .65rem "DM Mono", monospace;
}
.game-content,
.pong-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 1.75rem; }
.game-content .project-number { color: #aab8ff; }
.rusk-feature .project-number { color: #ffd277; }
.game-content h3 { margin: .5rem 0 .9rem; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.08; letter-spacing: -.055em; }
.game-content > p:not(.project-number) { margin: 0 0 1.5rem; color: #c8d0e8; font-size: .9rem; }
.rusk-feature .game-content > p:not(.project-number) { color: #ffe8c8; }
.game-content .button { margin-top: auto; }.button-sun { background: #ffb83d; color: #38213b; box-shadow: 0 9px 22px rgba(255, 184, 61, .24); }
.playground .project-links { margin-top: 2rem; }

@media (max-width: 760px) {
  .featured-games { grid-template-columns: 1fr; }
  .game-preview,
  .pong-preview { min-height: 14rem; }
}
