/* Shared styles for the hand-written pages (index, about, services, work). */
::selection { color: white; background: #4399ff; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga', 'kern';
}
a { color: inherit; text-decoration: none; }
.footer-divider { clip-path: polygon(100% 0%, 100% 100%, 0% 100%); }

/* Navigation */
.nav-links { display: flex; gap: 30px; align-items: center; margin-right: 20px; }
.nav-link { color: #1a1a1a; font-weight: 500; transition: color .3s; }
.nav-link:hover, .nav-link.active { color: #4399ff; }

/* Hero */
.lead { font-size: 18px; line-height: 1.7; margin: 25px auto 0; opacity: .95; max-width: 720px; }
.availability-badge {
  display: inline-block; padding: 10px 20px; margin-top: 24px;
  background: rgba(255,255,255,.2); border-radius: 6px; font-size: 14px; font-weight: 500;
}

/* Generic content */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 10px; }
.section-head p { font-size: 18px; line-height: 1.7; color: #555; margin-top: 15px; }
.content-section { max-width: 820px; margin: 0 auto; padding: 20px 0; }
.content-section p, .content-section li { font-size: 18px; line-height: 1.8; color: #333; }
.content-section p { margin-bottom: 22px; }
.content-section h2 { margin: 40px 0 15px; }
.content-section ul { padding-left: 22px; margin-bottom: 22px; }
.text-link { color: #4399ff; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.center-row { text-align: center; margin-top: 10px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin: 50px 0; }
.card { text-align: left; padding: 32px 28px; background: #f8f9fa; border-radius: 12px; }
.card h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; color: #1a1a1a; }
.card p { line-height: 1.7; color: #555; margin: 0 0 14px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card ul li { padding: 6px 0 6px 25px; color: #555; position: relative; line-height: 1.5; }
.card ul li:before { content: "→"; position: absolute; left: 0; color: #4399ff; font-weight: bold; }
.card .icon { font-size: 40px; margin-bottom: 16px; }

.card-grid.two { grid-template-columns: repeat(2, 1fr); }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 36px; margin: 50px 0; }
.project { background: #f8f9fa; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #1b2433; }
.project .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; color: #1a1a1a; line-height: 1.35; }
.project .role { font-size: 14px; color: #4399ff; font-weight: 600; margin-bottom: 14px; }
.project p { line-height: 1.7; color: #555; margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 20px; background: #e4eefc; color: #1f5fae; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin: 50px 0; text-align: center; }
.stat-number { font-size: 44px; font-weight: 700; color: #4399ff; margin-bottom: 8px; }
.stat-label { font-size: 16px; color: #666; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; text-align: left; }
.step { background: #fff; box-shadow: 0 4px 18px rgba(30,60,110,.08); border-radius: 12px; padding: 26px; }
.step b { display: block; font-size: 30px; margin-bottom: 8px; color: #4399ff; }
.step h3 { color: #1a1a1a; font-size: 19px; margin: 0 0 8px; }
.step p { color: #555; line-height: 1.6; margin: 0; }

/* Approach page */
.card.principle { background: #fff; box-shadow: 0 4px 18px rgba(30,60,110,.08); border-top: 4px solid #4399ff; }
.section.white .card.principle { background: #f8f9fa; box-shadow: none; }
.phases { max-width: 860px; margin: 0 auto; text-align: left; }
.phase { display: flex; gap: 28px; padding: 0 0 46px; position: relative; }
.phase:before { content: ""; position: absolute; left: 25px; top: 56px; bottom: 6px; width: 2px; background: #dbe7f8; }
.phase:last-child:before { display: none; }
.phase-n { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #4399ff; color: #fff; font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.phase-body h3 { font-size: 24px; line-height: 1.3; margin: 8px 0 14px; color: #1a1a1a; }
.phase-body p, .phase-body li { font-size: 17px; line-height: 1.75; color: #444; }
.phase-body p { margin: 0 0 16px; }
.phase-body ul { padding-left: 22px; margin: 0 0 8px; }

@media (max-width: 768px) {
  .nav-links { gap: 11px !important; font-size: 13px !important; margin-left: 12px; }
  .phase { gap: 16px; }
  .phase-n { flex-basis: 40px; height: 40px; font-size: 18px; }
  .phase:before { left: 19px; top: 46px; }
  .nav-links { gap: 16px; margin-right: 0; font-size: 15px; }
  .items > .button { display: none; }
  .project-grid, .card-grid.two, .steps { grid-template-columns: 1fr; }
}

.lang-link { text-decoration: underline; }

/* Photo */
.hero-photo { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; display: block; margin: 0 auto 22px; border: 4px solid #fff; box-shadow: 0 6px 24px rgba(30,60,110,.18); }
.about-intro { display: flex; gap: 40px; align-items: flex-start; max-width: 920px; margin: 0 auto; }
.about-intro img { flex: 0 0 250px; width: 250px; height: 354px; border-radius: 16px; object-fit: cover; }
.about-intro .content-section { padding-top: 0; margin: 0; }

/* Fixed-price offer */
.offer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; max-width: 960px; margin: 0 auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(30,60,110,.12); text-align: left; }
.offer-main { padding: 40px; }
.offer-label { color: #4399ff; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.offer-main h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.25; }
.offer-main p { font-size: 17px; line-height: 1.7; color: #444; margin: 0 0 18px; }
.offer-main ul { list-style: none; padding: 0; margin: 0; }
.offer-main li { padding: 6px 0 6px 28px; position: relative; font-size: 16px; line-height: 1.55; color: #333; }
.offer-main li:before { content: "✓"; position: absolute; left: 0; color: #4399ff; font-weight: 700; }
.offer-side { background: #10142f; color: #fff; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.offer-price { font-size: 56px; font-weight: 700; line-height: 1; }
.offer-price-note { opacity: .75; margin: 8px 0 22px; font-size: 15px; }
.offer-side p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; color: #fff; opacity: .92; }
.offer-side .button { margin-top: 10px; text-align: center; }

@media (max-width: 768px) {
  .about-intro { flex-direction: column; align-items: center; gap: 24px; }
  .about-intro img { flex-basis: auto; width: 200px; height: 283px; }
  .offer { grid-template-columns: 1fr; }
  .offer-main, .offer-side { padding: 28px 22px; }
  .offer-main h2 { font-size: 24px; }
}

.content-section, .about-intro { text-align: left; }
.content-section h2 { text-align: left; }

/* Photo in the dark contact block: the black background blends into the navy. */
.contact-photo { display: block; width: 360px; max-width: 100%; margin-top: 28px; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }

/* The navbar stays on top while scrolling, so it needs its own background. */
.navbar { background-color: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 100; }

.phases.boxed { background: #fff; border-radius: 16px; padding: 44px 44px 6px; box-shadow: 0 8px 30px rgba(30,60,110,.08); margin-top: 40px; }
@media (max-width: 768px) { .phases.boxed { padding: 26px 18px 0; } }

/* ================= Professional pass (2026-11-14) ================= */
/* Fonts served from this site: nothing is loaded from Google. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* Rhythm: the Webflow defaults left a lot of empty space. */
.section { padding-top: 96px; padding-bottom: 96px; }
.section.blue { padding-top: 110px; padding-bottom: 110px; }
.section.hero-sub { padding-top: 190px; padding-bottom: 90px; }
.section.hero-home { padding-top: 170px; padding-bottom: 70px; }
.section.tight { padding-top: 0; }
.section-head h2 { margin-top: 0; }

/* Home hero */
.hero-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 64px; align-items: center; text-align: left; }
.hero-copy h1 { font-size: 54px; line-height: 1.14; margin: 14px 0 22px; }
.hero-copy .lead { margin: 0; max-width: 620px; font-size: 19px; opacity: 1; color: #333b52; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button.ghost { background: transparent; color: #10142f; box-shadow: inset 0 0 0 2px #10142f; }
.button.ghost:hover { background: #10142f; color: #fff; }
.availability-badge { background: transparent; padding: 0; margin-top: 22px; color: #2c6e3f; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.availability-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fb457; box-shadow: 0 0 0 4px rgba(47,180,87,.2); }
.hero-portrait img { width: 100%; max-width: 380px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 20px; display: block; margin-left: auto; box-shadow: 0 24px 60px rgba(16,20,47,.22); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; padding-top: 30px; border-top: 1px solid rgba(16,20,47,.12); text-align: left; }
.fact b { display: block; font-size: 22px; color: #10142f; margin-bottom: 4px; }
.fact span { color: #5a6275; font-size: 15px; line-height: 1.45; display: block; }

/* Icons */
.line-icon { display: block; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: #e4eefc; color: #1f6fd6; display: flex; align-items: center; justify-content: center; font-size: 0; margin-bottom: 18px; }

/* Problem cards */
a.card.problem { display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card.problem:hover { border-color: #4399ff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(30,60,110,.1); }
.card.problem h3 { font-size: 19px; line-height: 1.4; }
.card.problem p { flex: 1; }
.card.problem .text-link { font-size: 15px; }

/* Case study cards */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 46px 0 20px; text-align: left; }
a.case { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(30,60,110,.1); transition: transform .2s, box-shadow .2s; }
a.case:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(30,60,110,.16); }
.section.white a.case { background: #f8f9fa; box-shadow: none; }
.case img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; display: block; background: #14171c; }
.case-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.case-label { color: #4399ff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.case h3 { font-size: 23px; line-height: 1.3; margin: 8px 0 12px; color: #10142f; }
.case p { color: #555; line-height: 1.7; margin: 0 0 20px; }
.case-numbers { display: flex; gap: 30px; margin: auto 0 20px; padding-top: 18px; border-top: 1px solid #e3e8f0; }
.case-numbers b { display: block; font-size: 24px; color: #10142f; }
.case-numbers span { font-size: 13px; color: #6b7285; }

/* About teaser on the home page */
.about-teaser { display: flex; gap: 40px; align-items: center; max-width: 880px; margin: 80px auto 0; text-align: left; padding: 36px; background: #f8f9fa; border-radius: 16px; }
.about-teaser img { flex: 0 0 150px; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.about-teaser h2 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.about-teaser p { color: #444; line-height: 1.7; margin: 0 0 10px; }

/* Engagement cards */
.card.engage { background: #fff; box-shadow: 0 4px 18px rgba(30,60,110,.08); }
.engage-price { display: inline-block; font-size: 14px; font-weight: 600; color: #1f5fae; background: #e4eefc; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }

/* Project cards: detail on demand */
.project details { margin: -6px 0 16px; }
.project summary, .faq-item summary { cursor: pointer; }
.project summary { color: #4399ff; font-weight: 600; font-size: 15px; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project summary:after { content: " +"; }
.project details[open] summary:after { content: " −"; }
.project details p { margin: 10px 0 0; }
.project .body { text-align: left; }

/* FAQ */
.faq { max-width: 820px; margin: 30px auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid #e3e8f0; }
.faq-item summary { padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; color: #10142f; position: relative; list-style: none; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 400; color: #4399ff; }
.faq-item[open] summary:after { content: "−"; }
.faq-item p { margin: 0 0 24px; font-size: 17px; line-height: 1.75; color: #444; }

/* Contact block and footer */
.contact-lead { color: rgba(255,255,255,.78); line-height: 1.65; max-width: 340px; margin: 0; }
.socket-wrapper { flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; flex: 1; opacity: .7; font-size: 14px; }

a:focus-visible, summary:focus-visible { outline: 3px solid #4399ff; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-width: 220px; margin: 0; aspect-ratio: 1 / 1; border-radius: 50%; }
  .hero-copy h1 { font-size: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section, .section.blue { padding-top: 64px; padding-bottom: 64px; }
  .section.hero-sub { padding-top: 130px; padding-bottom: 56px; }
  .section.hero-home { padding-top: 120px; padding-bottom: 48px; }
  .section.tight { padding-top: 0; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .lead { font-size: 17px; }
  .hero-buttons .button { width: 100%; }
  .hero-portrait img { max-width: 150px; }
  .about-teaser { flex-direction: column; text-align: center; padding: 28px 22px; margin-top: 56px; }
  .about-teaser img { flex-basis: auto; }
  .case-numbers { gap: 18px; }
  .socket-wrapper { align-items: flex-start; text-align: left; }
  .faq-item summary { font-size: 17px; }
}

/* Images carry width/height attributes (no layout jump while loading); CSS keeps the proportions. */
.project img, .contact-photo { height: auto; }

.stats-grid { width: 100%; max-width: 940px; margin-left: auto; margin-right: auto; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
