:root {
  --color-navy: #091b3a;
  --color-blue: #1769e8;
  --color-muted: #52627a;
  --color-subtle: #f7f9fc;
  --color-border: #dce5f2;
  --color-code: #0d1f3c;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius-button: 10px;
  --page-gutter: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--color-navy); background: #fff; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.page-content a:not(.button), .project-list a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.page-content a:not(.button):hover, .project-list a:hover { color: var(--color-blue); }
.container { width: min(100% - 2 * var(--page-gutter), 1312px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 20; padding: 12px; background: #fff; color: var(--color-navy); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; }
.button--primary:focus-visible { outline-color: var(--color-navy); box-shadow: 0 0 0 3px #fff; }
.site-header { position: relative; border-bottom: 1px solid var(--color-border); background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.site-brand__ring, .site-brand__mark { display: block; flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.site-brand__ring { border: 2px solid var(--color-blue); }
.site-brand__text { display: flex; flex-direction: column; white-space: nowrap; }
.site-brand__text strong { font-size: 16px; line-height: 20px; font-weight: 700; }
.site-brand__text span { color: var(--color-blue); font-size: 11px; line-height: 14px; letter-spacing: .6px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav__list { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 13px; line-height: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav__list a:hover { color: var(--color-blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 24px; border: 1px solid var(--color-blue); border-radius: var(--radius-button); font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .18s, color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button span { font-family: Arial, sans-serif; font-size: 24px; font-weight: 400; line-height: 18px; }
.button--primary { color: #fff; background: var(--color-blue); }
.button--primary:hover { background: #0e55c4; }
.button--secondary { color: var(--color-navy); background: #fff; }
.button--secondary:hover { background: var(--color-subtle); }
.menu-toggle { display: none; }
.hero { background: #fff; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 620px); align-items: center; justify-content: space-between; gap: 64px; min-height: 660px; padding-block: 48px; }
.hero__content { min-width: 0; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 10px; border-radius: 99px; background: var(--color-subtle); font-size: 11px; font-weight: 600; line-height: 14px; }
.hero__status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #209759; }
.hero__title { margin: 0; font-size: clamp(38px, 3.9vw, 56px); font-weight: 800; line-height: 1.14; letter-spacing: -.045em; }
.hero__title span { display: block; margin-top: 20px; color: var(--color-blue); }
.hero__description { max-width: 620px; margin: 20px 0 0; color: var(--color-muted); font-size: 16px; line-height: 28px; }
.hero__description--mobile { display: none; }
.hero__actions { display: flex; gap: 16px; margin-top: 20px; }
.hero__media { position: relative; min-width: 0; height: 560px; }
.hero__portrait { display: block; width: calc(100% - 40px); height: 520px; border-radius: 40px; object-fit: cover; object-position: center; }
.hero__media--empty { background: var(--color-subtle); border-radius: 40px; }
.hero__code { position: absolute; top: 320px; right: 0; width: 330px; min-height: 220px; padding: 20px; border-radius: 14px; background: var(--color-code); box-shadow: 0 12px 32px -4px rgba(8,23,51,.18); }
.hero__code-dots { display: flex; gap: 5px; margin-bottom: 8px; }
.hero__code-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #ff5940; }
.hero__code-dots i:nth-child(2) { background: #f5bd43; }
.hero__code-dots i:nth-child(3) { background: #25c473; }
.hero__code pre { margin: 0; overflow: hidden; color: #bfd4f2; font: 11px/20px var(--font-mono); }
.hero__code p { margin: 8px 0 0; color: #7aa3ff; font: 11px/20px var(--font-mono); }
.page-content { min-height: 300px; padding-block: 72px; }
.page-content p, .page-content li { max-width: 75ch; line-height: 1.7; }
.page-content img { height: auto; }
.project-byline { color: var(--color-muted); font-size: 14px; }
.project-summary { color: var(--color-muted); font-size: 18px; }
.page-content h1 { font-size: clamp(36px, 5vw, 56px); }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.project-list__item img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 16px; }
.project-list__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: var(--color-subtle); }
.project-list__media > img { display: block; width: 100%; height: 100%; border-radius: 0; }
.project-list__phone { position: absolute; right: 5%; bottom: -12%; width: 22%; height: 89%; overflow: hidden; border: 5px solid var(--color-navy); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(9,27,58,.24); }
.project-list__phone img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: top; }
.project-showcase { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); margin: 40px 0; padding: clamp(20px, 4vw, 48px); border-radius: 20px; background: var(--color-subtle); }
.project-showcase figure { min-width: 0; margin: 0; text-align: center; }
.project-showcase__desktop { flex: 1 1 70%; }
.project-showcase__mobile { flex: 0 1 25%; }
.project-showcase__browser { display: flex; align-items: center; gap: 5px; height: 28px; padding-left: 12px; border: 1px solid var(--color-border); border-radius: 12px 12px 0 0; background: #fff; }
.project-showcase__browser span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-border); }
.project-showcase__desktop img { display: block; width: 100%; border: 1px solid var(--color-border); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 12px 28px rgba(9,27,58,.1); }
.project-showcase__phone-frame { overflow: hidden; padding: 7px; border: 5px solid var(--color-navy); border-radius: 24px; background: #fff; box-shadow: 0 12px 28px rgba(9,27,58,.16); }
.project-showcase__phone-frame img { display: block; width: 100%; border-radius: 13px; }
.project-showcase figcaption { margin-top: 12px; color: var(--color-muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--color-border); padding-block: 30px; }
.site-footer .container { display: flex; align-items: center; gap: 10px; }
.site-footer__brand { display: flex; flex-direction: column; }
.site-footer strong, .site-footer span { font-size: 11px; }
.site-footer span { color: var(--color-blue); }
.site-footer small { margin-left: auto; color: var(--color-muted); }
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { font-size: 13px; font-weight: 600; text-underline-offset: .2em; }
@media (max-width: 1199px) {
  :root { --page-gutter: 40px; }
  .site-nav__list { gap: 0; }
  .site-nav__list a { padding-inline: 8px; }
  .hero__inner { gap: 36px; }
  .hero__title { font-size: clamp(36px, 4vw, 50px); }
  .hero__portrait { width: 100%; }
  .hero__code { right: -10px; }
}
@media (max-width: 900px) {
  :root { --page-gutter: 24px; }
  .site-header__inner { min-height: 76px; }
  .site-brand { gap: 10px; }
  .site-brand__ring, .site-brand__mark { width: 34px; height: 34px; }
  .site-brand__text strong, .site-brand__text span { color: var(--color-navy); font-size: 10px; line-height: 15px; letter-spacing: 0; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 2px; background: var(--color-navy); }
  .site-nav { display: none; position: absolute; z-index: 10; top: 76px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 20px var(--page-gutter) 24px; border-bottom: 1px solid var(--color-border); background: #fff; box-shadow: 0 16px 24px rgba(8,23,51,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list a { min-height: 44px; padding: 12px 0; }
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-height: 0; padding-block: 32px 40px; }
  .hero__badge { margin-bottom: 20px; font-size: 10px; }
  .hero__title { max-width: 620px; font-size: clamp(38px, 6vw, 56px); line-height: 1.2; }
  .hero__title span { display: inline; margin: 0; color: inherit; }
  .hero__description--desktop { display: none; }
  .hero__description--mobile { display: block; margin-top: 20px; font-size: 15px; line-height: 25px; }
  .hero__actions { flex-direction: column; gap: 12px; margin-top: 20px; }
  .hero__actions .button { width: 100%; }
  .hero__media { width: min(100%, 620px); height: 400px; margin-top: 0; }
  .hero__portrait { width: 100%; height: 100%; border-radius: 28px; }
  .hero__code { top: auto; right: 0; bottom: 0; transform: scale(.74); transform-origin: right bottom; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 40px; line-height: 48px; }
  .hero__media { height: 360px; }
  .hero__code { transform: scale(.62); }
  .project-list { grid-template-columns: 1fr; }
  .project-showcase { align-items: flex-start; gap: 12px; padding: 16px 10px; }
  .project-showcase__mobile { flex-basis: 32%; }
  .project-showcase__phone-frame { padding: 3px; border-width: 3px; border-radius: 14px; }
  .project-showcase__phone-frame img { border-radius: 8px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .site-footer small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Homepage sections */
.section-eyebrow { margin: 0; color: var(--color-blue); font-size: 12px; line-height: 16px; font-weight: 600; }
.technology-strip { padding-block: 20px; }
.technology-strip__list { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; margin: 0; padding: 20px 28px; border: 1px solid var(--color-border); border-radius: 14px; list-style: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.technology-strip__list li:first-child::before { content: '◉  '; }
.technology-strip__list li:nth-child(2)::before { content: '⚛  '; }
.technology-strip__list li:nth-child(4)::before { content: 'JS  '; font-family: var(--font-mono); }
.technology-strip__list li:nth-child(5)::before { content: 'TS  '; font-family: var(--font-mono); }
.technology-strip__list li:nth-child(6)::before { content: 'php  '; font-family: var(--font-mono); }
.technology-strip__list li:nth-child(7)::before { content: '〰  '; }
.featured-work { padding-block: 48px 64px; }
.featured-work__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.featured-work__heading h2 { max-width: 520px; margin: 6px 0 0; font-size: 30px; line-height: 38px; letter-spacing: -.03em; }
.featured-work__all { flex: none; color: var(--color-blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.featured-work__all:hover { text-decoration: underline; }
.featured-work__grid { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 528fr); grid-auto-rows: 365px; gap: 24px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(13,31,61,.08); transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(13,31,61,.12); }
.project-card--featured { grid-row: span 2; }
.project-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.project-card__media { height: 220px; flex: none; overflow: hidden; background: var(--color-subtle); }
.project-card--featured .project-card__media { height: 609px; }
.project-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-card__media--paired { position: relative; }
.project-card__media--paired .project-card__desktop { object-position: top; }
.project-card__phone { position: absolute; right: 5%; bottom: -12%; width: 23%; height: 89%; overflow: hidden; border: 5px solid var(--color-navy); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(9,27,58,.26); }
.project-card__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-card__content { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; padding: 16px; }
.project-card__content h3 { margin: 0; font-size: 18px; line-height: 26px; }
.project-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--color-muted); font-size: 13px; line-height: 21px; }
.project-card__tech { overflow: hidden; margin: 0; font-size: 10px; line-height: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-card__arrow { margin-top: auto; color: var(--color-blue); font: 24px/18px Arial, sans-serif; }
.featured-work__empty { color: var(--color-muted); }
.services-section { padding-block: 20px 48px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.service-card { display: flex; align-items: flex-start; gap: 16px; min-height: 140px; padding: 24px; border: 1px solid var(--color-border); border-radius: 16px; }
.service-card__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--color-subtle); color: var(--color-blue); font: 600 18px/1 var(--font-mono); }
.service-card__icon img { display: block; width: 26px; height: 26px; object-fit: contain; }
.service-card h3 { margin: 0 0 6px; font-size: 14px; line-height: 22px; }
.service-card p { margin: 0; color: var(--color-muted); font-size: 12px; line-height: 20px; }
.experience-section { padding-block: 36px 48px; }
.experience-list { margin: 0; padding: 0; list-style: none; }
.experience-item { display: grid; grid-template-columns: 170px 250px minmax(0, 1fr) 180px; align-items: center; gap: 18px; min-height: 92px; padding-block: 18px; border-bottom: 1px solid var(--color-border); font-size: 12px; line-height: 22px; }
.experience-item__period { margin: 0; white-space: nowrap; }
.experience-item__period::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--color-navy); vertical-align: 1px; }
.experience-item__role h3, .experience-item__role p, .experience-item__description, .experience-item__tech { margin: 0; }
.experience-item__role h3 { font-size: 12px; line-height: 22px; }
.experience-item__tech { color: var(--color-muted); }
.expertise-section { padding-block: 28px 56px; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 280px)); gap: 16px; margin-top: 20px; }
.expertise-group h3 { margin: 0 0 8px; font-size: 14px; line-height: 18px; }
.expertise-group ul { margin: 0; padding: 0; color: var(--color-muted); font-size: 12px; line-height: 22px; list-style: none; }
.project-cta { padding-bottom: 24px; }
.project-cta__banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 170px; padding: 36px 64px; border-radius: 18px; background: var(--color-code); color: #fff; }
.project-cta__banner h2 { margin: 0 0 8px; font-size: 28px; line-height: 35px; }
.project-cta__banner p { max-width: 440px; margin: 0; color: #d6e3f5; font-size: 14px; line-height: 22px; }
.project-cta__banner .button { flex: none; }
@media (max-width: 1199px) {
  .technology-strip__list { flex-wrap: wrap; justify-content: center; }
  .experience-item { grid-template-columns: 150px 220px minmax(0, 1fr); }
  .experience-item__tech { grid-column: 3; }
  .service-card { padding: 18px; }
}
@media (max-width: 900px) {
  .featured-work__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project-card--featured { grid-row: auto; }
  .project-card--featured .project-card__media { height: 260px; }
  .project-card__link { height: auto; min-height: 386px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { min-height: 140px; padding: 24px; }
  .experience-item { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
  .experience-item__tech { grid-column: auto; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .project-cta__banner { padding: 32px; }
}
@media (max-width: 480px) {
  .section-eyebrow { font-size: 11px; }
  .technology-strip { padding-block: 20px; border-block: 1px solid var(--color-border); }
  .technology-strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: start; gap: 12px 6px; min-height: 68px; padding: 0; border: 0; font-size: 10px; }
  .technology-strip__list li { align-self: center; white-space: nowrap; }
  .technology-strip__list li::before { display: none; }
  .technology-strip__list li:nth-child(n+5) { grid-column: span 1; }
  .technology-strip__list li:nth-child(5) { grid-column: 1 / 3; }
  .technology-strip__list li:nth-child(6) { grid-column: 3; }
  .technology-strip__list li:nth-child(7) { grid-column: 4; }
  .featured-work { padding-block: 40px; }
  .featured-work__heading { display: block; margin-bottom: 20px; }
  .featured-work__heading h2 { max-width: 342px; margin-top: 20px; font-size: 28px; line-height: 36px; }
  .featured-work__all { display: inline-block; margin-top: 16px; }
  .featured-work__grid { gap: 20px; }
  .project-card__media, .project-card--featured .project-card__media { height: 220px; }
  .services-section { padding-block: 24px 40px; }
  .services-grid { margin-top: 16px; }
  .experience-section, .expertise-section { padding-block: 32px; }
  .experience-list { margin-top: 18px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .expertise-group ul { display: flex; flex-wrap: wrap; gap: 0; }
  .expertise-group li:not(:last-child)::after { content: ' · '; white-space: pre; }
  .project-cta { padding-block: 24px; }
  .project-cta__banner { flex-direction: column; align-items: stretch; gap: 24px; min-height: 280px; padding: 32px 24px; border-radius: 16px; }
  .project-cta__banner h2 { font-size: 28px; line-height: 35px; }
  .project-cta__banner .button { width: 100%; }
}
