:root {
  --ink: #171923;
  --muted: #5b6073;
  --blue: #3448e7;
  --blue-deep: #1523a4;
  --surface: #f4f6ff;
  --line: #e7eaf5;
  --shadow: 0 10px 22px rgba(29, 43, 123, .07), 0 2px 7px rgba(29, 43, 123, .04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-family: Inter, Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #8290ff; outline-offset: 5px; border-radius: 5px; }
.container { width: min(100% - 64px, 1220px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -80px; padding: 12px 16px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 10; height: 112px; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(229,233,248,.72); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { text-decoration: none; font-size: 16px; font-weight: 750; letter-spacing: .025em; }
.header-inner nav { display: flex; align-items: center; gap: clamp(25px, 4.4vw, 67px); }
.nav-link { position: relative; padding: 10px 0; text-decoration: none; color: #3e4250; font-size: 16px; transition: color .22s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active { color: var(--blue); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-active::after { transform: scaleX(1); }

.hero { position: relative; min-height: 682px; display: grid; grid-template-columns: minmax(0, 59%) minmax(0, 41%); isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; inset: 0 -110px auto 36%; height: 500px; pointer-events: none; background: radial-gradient(ellipse at 64% 28%, rgba(111,136,255,.38), transparent 49%), radial-gradient(ellipse at 90% 67%, rgba(198,210,255,.50), transparent 54%); }
.hero-copy { padding-top: 65px; padding-bottom: 76px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 72px; color: #4a4e5d; font-size: 17px; font-weight: 500; letter-spacing: .005em; }
.hero h1 { max-width: 720px; margin: 0 0 64px; font-size: clamp(48px, 4.2vw, 60px); line-height: 1.13; letter-spacing: -.045em; font-weight: 760; }
.hero-description { max-width: 690px; margin: 0 0 15px; font-size: 19px; line-height: 1.47; letter-spacing: -.012em; }
.hero-description + .hero-description { margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 55px; padding: 14px 24px; border-radius: 7px; text-decoration: none; font-size: 16px; font-weight: 650; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button-primary { margin-top: 30px; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(52,72,231,.18); }
.button-primary:hover { transform: translateY(-3px); background: #293cdc; box-shadow: 0 14px 26px rgba(52,72,231,.28); }
.button-primary:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px rgba(52,72,231,.18); }
.button span { display: inline-block; transition: transform .2s ease; }
.button:hover span { transform: translate(2px,-2px); }
.hero-photo-wrap { align-self: end; position: relative; z-index: 1; height: 630px; overflow: hidden; pointer-events: none; }
.hero-photo { position: absolute; width: 690px; max-width: none; height: auto; bottom: -7px; right: -105px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(38,46,91,.08)); }

.section { scroll-margin-top: 30px; }
.section-title { margin: 0 0 43px; font-size: 32px; line-height: 1.2; letter-spacing: -.035em; font-weight: 750; }
.three-column { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.services { padding-top: 52px; padding-bottom: 142px; }
.soft-card { min-height: 212px; padding: 32px 42px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.72), transparent 40%), var(--surface); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.soft-card:hover { transform: translateY(-5px); border-color: #c9d0ff; box-shadow: 0 18px 35px rgba(29,43,123,.12); }
.soft-card h3, .benefit-card h3 { margin: 0 0 31px; font-size: 20px; line-height: 1.3; font-weight: 740; letter-spacing: -.02em; }
.soft-card p, .benefit-card p { margin: 0; color: #424758; font-size: 16px; line-height: 1.55; }
.projects { padding-bottom: 150px; }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.section-note { color: #9398a7; font-size: 14px; }
.project-grid { gap: 18px; }
.project-card { position: relative; display: block; height: 308px; overflow: hidden; border: 1px solid #e9ecf8; border-radius: 11px; background: linear-gradient(145deg,#f0f3ff,#f6f7ff); box-shadow: 0 2px 5px rgba(35,45,95,.025); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.project-card:hover { transform: translateY(-6px); border-color: #b6c0ff; box-shadow: 0 20px 35px rgba(37,53,149,.14); }
.project-card-label { position: absolute; inset: auto 20px 20px auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 7px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 650; opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
a.project-card:hover .project-card-label, a.project-card:focus-visible .project-card-label { opacity: 1; transform: translateY(0); }
.benefits { padding-bottom: 560px; }
.benefit-card { min-height: 157px; padding: 23px 28px; border-radius: 10px; background: linear-gradient(145deg, #f8f9ff, #f1f4ff); border: 1px solid #e9ecf8; transition: transform .25s ease, box-shadow .25s ease; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-card h3 { margin-bottom: 19px; }
.contact-section { position: relative; overflow: hidden; min-height: 660px; padding: 83px 0 95px; scroll-margin-top: 0; background: radial-gradient(ellipse at 95% 12%, rgba(147,167,255,.28), transparent 43%), linear-gradient(180deg,#fff 0%,#f8faff 100%); }
.contact-title { margin: 0 0 31px; font-size: 54px; line-height: 1.13; letter-spacing: -.045em; }
.contact-intro { margin: 0 0 92px; font-size: 18px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.contact-card { position: relative; display: flex; flex-direction: column; min-height: 139px; padding: 24px 26px; border-radius: 11px; border: 1px solid #e2e7fb; background: rgba(255,255,255,.78); text-decoration: none; box-shadow: var(--shadow); transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease; }
.contact-card:hover { transform: translateY(-4px); border-color: #b6c2ff; box-shadow: 0 18px 32px rgba(37,53,149,.12); }
.contact-label { margin-bottom: 26px; font-size: 16px; font-weight: 650; }
.contact-value { color: #62677a; font-size: 17px; }
.contact-arrow { position: absolute; right: 26px; bottom: 25px; color: var(--blue); font-size: 22px; transition: transform .2s ease; }
.contact-card:hover .contact-arrow { transform: translate(3px,-3px); }
.site-footer { min-height: 82px; color: #fff; background: linear-gradient(105deg,#2542e8 0%,#3652f2 70%,#172178 100%); }
.footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 17px; font-weight: 650; }
.footer-inner a { color: #fff; text-decoration: none; transition: opacity .2s ease, transform .2s ease; }
.footer-inner a:hover { opacity: .8; transform: translateX(3px); }
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; padding: 13px 18px; border-radius: 8px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.three-column > .reveal:nth-child(2) { transition-delay: .08s; }
.three-column > .reveal:nth-child(3) { transition-delay: .16s; }

.project-page { min-height: calc(100vh - 194px); padding-top: 64px; padding-bottom: 120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 92px; text-decoration: none; color: var(--blue); font-weight: 650; transition: gap .2s ease; }
.back-link:hover { gap: 13px; }
.project-page .eyebrow { margin-bottom: 27px; }
.project-page h1 { max-width: 850px; margin: 0 0 28px; font-size: clamp(46px,5vw,68px); line-height: 1.08; letter-spacing: -.045em; }
.project-lead { max-width: 750px; margin: 0 0 80px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.project-placeholder { height: 480px; margin-bottom: 100px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at 72% 25%,rgba(160,179,255,.35),transparent 48%), #f1f4ff; }
.project-template-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-bottom: 65px; }
.project-template-grid section { border-top: 1px solid #cfd5eb; padding-top: 25px; }
.project-template-grid span { color: var(--blue); font-size: 14px; font-weight: 700; }
.project-template-grid h2 { margin: 28px 0 15px; font-size: 24px; letter-spacing: -.02em; }
.project-template-grid p { color: var(--muted); line-height: 1.55; }

@media (max-width: 1100px) {
  .container { width: min(100% - 48px, 960px); }
  .hero-glow { right: -24px; }
  .hero { grid-template-columns: minmax(0,62%) minmax(0,38%); }
  .hero h1 { font-size: 52px; }
  .hero-description { font-size: 17px; }
  .hero-photo { width: 600px; right: -140px; }
  .soft-card { padding: 28px; }
  .benefit-card { padding: 22px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 620px); }
  .site-header, .header-inner { min-height: 88px; height: auto; }
  .header-inner { padding-block: 18px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .header-inner nav { gap: 24px; }
  .nav-link { font-size: 14px; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { padding-top: 48px; padding-bottom: 0; }
  .eyebrow { margin-bottom: 42px; font-size: 14px; }
  .hero h1 { margin-bottom: 32px; font-size: clamp(42px, 11vw, 58px); }
  .hero-description { max-width: 580px; font-size: 16px; }
  .hero-description + .hero-description { margin-top: 12px; }
  .hero-photo-wrap { align-self: stretch; height: 390px; margin-top: 35px; }
  .hero-photo { width: min(115vw,550px); right: -18px; bottom: -50px; }
  .hero-glow { inset: 40% -18px auto 0; height: 450px; }
  .services { padding-top: 74px; padding-bottom: 100px; }
  .section-title { font-size: 29px; margin-bottom: 29px; }
  .three-column { grid-template-columns: 1fr; gap: 14px; }
  .soft-card { min-height: 155px; }
  .soft-card h3, .benefit-card h3 { margin-bottom: 15px; }
  .projects { padding-bottom: 100px; }
  .section-note { display: none; }
  .project-card { height: 230px; }
  .project-card-label { opacity: 1; transform: none; }
  .benefits { padding-bottom: 145px; }
  .benefit-card { min-height: 135px; }
  .contact-section { min-height: 0; padding: 80px 0 85px; }
  .contact-title { font-size: 44px; }
  .contact-intro { margin-bottom: 55px; font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-inner { font-size: 14px; }
  .project-page { padding-top: 42px; }
  .back-link { margin-bottom: 58px; }
  .project-lead { font-size: 17px; }
  .project-placeholder { height: 280px; margin-bottom: 55px; }
  .project-template-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
