:root {
  color-scheme: light;
  --ink: #19191d;
  --muted: #64646d;
  --paper: #f5f5f7;
  --blue: #0066cc;
  --button: #0071e3;
  --line: #e4e4e9;
  --width: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2d90ff; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); background: white; border-radius: 8px; padding: 8px 14px; }
.skip-link:focus { transform: translateY(0); }
.wrap, .nav-shell { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.header { position: sticky; z-index: 4; top: 0; background: rgba(250,250,252,.93); backdrop-filter: blur(18px); }
.nav-shell { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 7px; font-size: 16px; font-weight: 680; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; color: white; width: 27px; height: 25px; border-radius: 7px; background: #1d1d21; font-size: 12px; font-weight: 750; letter-spacing: -.055em; }
.nav { display: flex; align-items: center; gap: 35px; font-size: 13px; font-weight: 550; }
.nav a:hover, .footer a:hover { color: var(--blue); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; width: fit-content; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; background: var(--button); color: white; font-size: 15px; font-weight: 620; line-height: 1.2; white-space: nowrap; transition: background .2s, border-color .2s; }
.button:hover { background: #087def; }
.button-small { min-height: 33px; padding-inline: 13px; font-size: 13px; justify-self: end; }
.text-link { display: inline-flex; align-items: center; width: fit-content; gap: 5px; color: var(--blue); font-size: 15px; font-weight: 620; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.arrow-up { position: relative; display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; }
.arrow-up::before { content: ""; position: absolute; top: 1px; right: 1px; width: 6px; height: 6px; border-top: 1.4px solid; border-right: 1.4px solid; }
.arrow-up::after { content: ""; position: absolute; top: 5px; left: 0; width: 10px; height: 1.4px; background: currentColor; transform: rotate(-45deg); }
.text-link span { font-size: 1.25em; line-height: .9; }
.actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(735px, 86vw); background: #050508; text-align: center; color: #f6f8ff; }
.hero-copy { position: relative; z-index: 1; padding: 67px 22px 0; }
.hero-brand { margin-bottom: 12px; color: #a8c9ff; font-size: 16px; font-weight: 650; letter-spacing: .025em; }
.hero h1 { font-size: clamp(51px, 7vw, 102px); font-weight: 700; letter-spacing: -.068em; line-height: .99; }
.hero-summary { max-width: 540px; margin: 20px auto 0; color: #d7d9e3; font-size: clamp(16px, 1.75vw, 23px); line-height: 1.36; }
.hero-actions { margin-top: 25px; }
.light-link { color: #83b9ff; }
.hero-art { position: absolute; z-index: -1; inset: 33% 0 0; background: radial-gradient(ellipse at 50% 71%, #102858 0%, #060916 50%, #050508 80%); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: url("assets/hero.webp") center 41% / min(1040px, 92vw) auto no-repeat; mask-image: radial-gradient(ellipse 56% 64% at 50% 64%, #000 59%, transparent 100%); }

.section { padding-block: 94px; }
.section-head { margin-bottom: 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr); align-items: end; gap: 24px; }
.section-head h2, .section-contact h2 { font-size: clamp(45px, 6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.075em; }
.section-head > p { margin-bottom: 3px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.service-card { min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; padding: 29px 32px; border-radius: 22px; background: white; }
.card-web { background: #e9f2ff; }
.card-video { background: #efedf7; }
.category { color: #5f6270; font-weight: 650; font-size: 13px; }
.service-card h3, .feature-info h3 { margin-top: 6px; font-size: clamp(26px, 3vw, 37px); line-height: 1.06; letter-spacing: -.06em; }
.service-card ul { list-style: none; margin-top: 13px; padding: 0; color: #54555e; font-size: 15px; }
.service-card li + li { margin-top: 4px; }
.service-card .text-link { margin-top: auto; padding-top: 17px; }

.section-work { background: #fff; }
.featured-card { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr); min-height: 350px; border-radius: 23px; overflow: hidden; }
.feature-info { align-self: center; padding: clamp(28px, 5vw, 62px); }
.feature-info p:not(.category) { max-width: 340px; margin-top: 12px; font-size: 15px; line-height: 1.45; }
.feature-info a { margin-top: 24px; }
.featured-card img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.form-card { color: #26211c; background: #f2eee8; }
.form-card img { object-position: center 53%; }
.form-card .category { color: #665e55; }
.form-card .feature-info p:not(.category) { color: #58514b; }
.work-links, .projects { margin-top: 39px; }
.work-links h3, .projects h3, .brief h3 { margin-bottom: 16px; font-size: 26px; line-height: 1.13; letter-spacing: -.05em; }
.demo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.demo-grid a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 15px; border-radius: 12px; background: #f5f5f7; font-weight: 620; font-size: 14px; }
.demo-grid a span, .project > span:last-child { color: var(--blue); }
.demo-grid a:hover, .project:hover { background: #eaf3ff; }
.project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.project { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; overflow: hidden; padding: 0 13px 14px; border-radius: 15px; background: #f5f5f7; }
.project img { grid-column: 1 / -1; width: calc(100% + 26px); max-width: none; height: auto; aspect-ratio: 1.58; object-fit: cover; margin-inline: -13px; }
.project strong, .project small { display: block; }
.project small { color: var(--muted); font-size: 12px; line-height: 1.3; }

.section-contact { background: #eaf2ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(26px, 7vw, 100px); }
.contact-intro { margin-top: 18px; max-width: 370px; color: #4e5868; font-size: 17px; }
.contact-links { margin-top: 22px; max-width: 400px; }
.contact-links a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #d1deee; font-weight: 670; }
.contact-links a:hover { color: var(--blue); }
.contact-links small { display: block; color: #526275; font-size: 13px; font-weight: 500; }
.contact-links a > span:last-child { color: var(--blue); }
.brief { border-radius: 22px; padding: 28px; background: white; }
.brief label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 650; }
.brief select, .brief textarea { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #dce0e8; background: #f8f9fb; color: var(--ink); font-size: 16px; }
.brief textarea { min-height: 108px; resize: vertical; }
.brief-actions { margin-top: 15px; display: flex; gap: 12px 15px; align-items: center; flex-wrap: wrap; }
.email-button { border: 0; padding: 5px 0; background: transparent; }
.brief-note { margin-top: 13px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; min-height: 69px; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.footer-inner span { margin-right: auto; }
@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .hero { min-height: 620px; }
  .hero-art { inset-block-start: 39%; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 69px; }
  .wrap, .nav-shell { width: calc(100% - 32px); }
  .nav-shell { height: 56px; }
  .nav { gap: 13px; font-size: 12px; }
  .nav a { display: inline-flex; align-items: center; min-height: 42px; }
  .brand { font-size: 14px; gap: 4px; }
  .brand-mark { width: 24px; height: 23px; }
  .button-small { padding-inline: 9px; font-size: 12px; min-height: 34px; }
  .hero { min-height: 578px; }
  .hero-copy { padding-top: 54px; }
  .hero h1 { font-size: clamp(42px, 9.6vw, 64px); letter-spacing: -.073em; }
  .hero-summary { max-width: 365px; margin-top: 16px; }
  .hero-actions { gap: 14px; margin-top: 21px; }
  .hero-art { inset-block-start: 43%; }
  .hero-art::before { background-size: max(625px, 105vw) auto; background-position: center 60%; }
  .section { padding-block: 57px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 23px; }
  .section-head > p { font-size: 16px; }
  .service-grid, .featured-card, .contact-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 23px 21px; }
  .feature-info { padding: 25px 21px; }
  .featured-card img { aspect-ratio: 1.45; height: auto; }
  .demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-grid a { padding-inline: 10px; }
  .brief { padding: 20px; }
}
@media (max-width: 365px) {
  .nav { gap: 8px; }
  .brand { font-size: 0; }
  .hero-actions { gap: 12px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 13px; }
  .hero-actions .button { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Portfolio: current SkillTwin and DealPilot interfaces. */
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { padding: 0 20px 21px; gap: 18px; }
.project img { width: calc(100% + 40px); margin-inline: -20px; aspect-ratio: 1.58; object-fit: cover; object-position: top; }
.project strong { font-size: 19px; margin-bottom: 4px; }
.project small { font-size: 14px; }
@media (max-width: 650px) { .project-grid { grid-template-columns: 1fr; } }
