/* SebaApps — shared, dependency-free design system. */
:root {
  color-scheme: light dark;
  --surface: #f7f9fc;
  --paper: #ffffff;
  --surface-soft: #edf2fa;
  --ink: #172036;
  --muted: #596579;
  --accent: #2455d6;
  --on-accent: #ffffff;
  --line: #dce3ef;
  --accent-soft: #e0e9ff;
  --contact: #2455d6;
  --contact-ink: #ffffff;
  --art-muted: #b7c3d7;
  --logo-filter: brightness(0);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #101725;
    --paper: #192337;
    --surface-soft: #151f31;
    --ink: #f0f4fc;
    --muted: #aebbd0;
    --accent: #91b4ff;
    --on-accent: #101725;
    --line: #303e56;
    --accent-soft: #253c67;
    --contact: #213d80;
    --art-muted: #596b86;
    --logo-filter: brightness(0) invert(1);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--surface); color: var(--ink); font: 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
svg { display: block; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: min(100% - 6rem, 1200px); margin-inline: auto; }
.section-space { padding-block: 6.5rem; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 5; padding: .75rem 1.25rem; background: var(--ink); color: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 106px; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; max-width: 100%; min-height: 48px; }
.brand-logo { width: 80px; height: 80px; flex-shrink: 0; object-fit: contain; filter: var(--logo-filter); }
.brand-copy { display: flex; flex-direction: column; gap: .3rem; min-width: 0; max-width: 22rem; }
.brand-person { min-width: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.brand-subline { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .5rem .15rem; min-height: 44px; font-size: .875rem; font-weight: 550; text-decoration: none; }
.main-nav .nav-services { font-size: .9375rem; font-weight: 700; color: var(--accent); }
.main-nav .nav-services:hover { text-decoration: underline; }
.main-nav .nav-legal { font-size: .75rem; color: var(--muted); }
.main-nav .nav-legal[aria-current="page"] { text-decoration: underline; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-contact { border: 1px solid var(--line); padding-inline: 1.1rem; border-radius: 999px; background: var(--paper); }
.main-nav .nav-contact:hover { border-color: var(--accent); }
.hero { padding-block: 5.5rem 3rem; display: grid; grid-template-columns: 1.06fr 1fr; gap: .5rem; align-items: center; }
.hero-copy, .contact-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow-line { width: 24px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 720; text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.4vw, 4.65rem); line-height: 1.07; letter-spacing: -.064em; }
h1 > span { color: var(--accent); }
.hero h1 > span { font-size: .7em; letter-spacing: -.045em; }
.hero-description { margin-top: 1.8rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1.15rem; flex-wrap: wrap; align-items: center; margin-top: 2.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 50px; padding: .8rem 1.3rem; border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; text-align: center; transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.button-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px #2455d61a; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 16px #14295722; }
.button:active { transform: translateY(0) scale(.98); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-art { min-width: 0; position: relative; }
.workspace-art { width: 106%; margin-left: -2%; height: auto; overflow: visible; }
.hero-art figcaption { color: var(--muted); font-size: .75rem; text-align: center; margin-top: .35rem; }
.art-halo { fill: var(--surface-soft); }
.art-panel { fill: var(--paper); }
.art-rule { stroke: var(--line); fill: none; }
.art-dots, .art-muted-fill { fill: var(--art-muted); }
.art-well { fill: var(--surface-soft); }
.art-accent { fill: var(--accent); }
.art-accent-soft { fill: var(--accent-soft); }
.art-accent-stroke { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.art-muted-stroke { stroke: var(--art-muted); stroke-width: 4; stroke-linecap: round; }
.art-ink-fill { fill: var(--ink); }
.art-label { fill: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 650; }
.intro-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem; border-block: 1px solid var(--line); padding-block: 2rem; margin-top: 1.6rem; }
.intro-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.location { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; padding: .65rem 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 1.25rem; font-weight: 650; }
.location .icon { color: var(--accent); }
.location-region { font-size: .8125rem; font-weight: 500; }
.services-section { background: var(--paper); margin-top: 1rem; }
.section-heading { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 4rem; }
.section-heading .eyebrow { margin-bottom: 1rem; }
h2 { font-size: clamp(2.15rem, 3.5vw, 3rem); line-height: 1.14; letter-spacing: -.045em; }
.section-heading > p { max-width: 27rem; font-size: 1rem; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; margin-top: 3rem; }
.service { display: flex; align-items: flex-start; flex-direction: column; }
.service-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface-soft); color: var(--accent); margin-bottom: 1.6rem; }
.service-symbol svg { width: 38px; height: 38px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.035em; }
.service > p { font-size: 1rem; color: var(--muted); margin-top: 1.1rem; margin-bottom: 1.4rem; }
.service-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 48px; padding-block: .75rem; border-top: 1px solid var(--line); margin-top: auto; font-size: .8125rem; font-weight: 650; text-decoration: none; }
.service-link:hover { color: var(--accent); text-decoration: underline; }
.contact-section { padding-block: 6.5rem 3.5rem; }
.contact-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 3rem; padding: 3.75rem 4rem 0; background: var(--contact); color: var(--contact-ink); border-radius: 28px; overflow: hidden; }
.contact-portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; align-self: end; }
.contact-copy { padding-bottom: 3.75rem; }
.contact-panel .eyebrow { color: inherit; margin-bottom: 1.1rem; }
.contact-panel h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.contact-panel p:not(.eyebrow) { margin-top: 1.2rem; font-size: 1rem; line-height: 1.65; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-top: 1.75rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .75rem; width: 100%; }
.button-light { background: #fff; color: #173a94; padding-inline: 1.55rem; }
.button-outline { border: 1px solid currentColor; }
.contact-panel a:focus-visible { outline-color: #fff; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid var(--line); padding-block: 1.8rem; color: var(--muted); font-size: .8125rem; }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .back-top { margin-left: 1.5rem; }

/* Legal pages keep the original text and use a comfortable reading column. */
.legal-main { padding-block: 4rem 6rem; }
.legal-back { margin-bottom: 2.5rem; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 4rem; align-items: start; }
.legal-title h1 { font-size: clamp(2rem, 4vw, 3rem); overflow-wrap: anywhere; }
.legal-title .eyebrow { margin-bottom: 1rem; }
.legal-title > p:last-child { margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; }
.legal-content { background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; overflow-wrap: anywhere; }
.legal-content p, .legal-content li { font-size: 1rem; line-height: 1.8; }
.legal-content p + p { margin-top: 1.2rem; }
.legal-content h2 { font-size: 1.5rem; line-height: 1.4; margin: 2.75rem 0 1rem; letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 1.75rem 0 .75rem; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.01em; }
.legal-content ul { padding-left: 1.35rem; margin-block: 1rem; }
.legal-content li + li { margin-top: .3rem; }
.legal-content a { color: var(--accent); }
.legal-content .section { margin-top: 2rem; }

@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-art { animation: arrive 650ms ease-out both; }
  .hero-art { animation-delay: 100ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 70rem) {
  .wrap { width: calc(100% - 4rem); }
  .hero { padding-top: 3.5rem; }
  .hero-actions { gap: .75rem; }
  .intro-strip ul { gap: 1rem; }
  .services-grid { gap: 2rem; }
  .service-link { font-size: .75rem; }
  .contact-panel { padding: 3rem 3rem 0; }
}

@media (max-width: 55rem) {
  .hero { grid-template-columns: 1fr; padding-block: 3rem 2rem; }
  .hero-copy { max-width: 42rem; }
  h1 { font-size: clamp(3rem, 8.5vw, 4.65rem); }
  .hero-description { max-width: 30rem; }
  .hero-art { width: min(100%, 520px); margin: 1rem auto 0; }
  .workspace-art { width: 100%; margin: 0; }
  .intro-strip { flex-wrap: wrap; }
  .intro-strip ul { width: 100%; }
  .section-space { padding-block: 4.5rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading > p { max-width: 34rem; }
  .services-grid { grid-template-columns: 1fr; gap: 2.75rem; margin-top: 3rem; }
  .service { display: grid; grid-template-columns: 76px 1fr; column-gap: 1rem; align-items: start; }
  .service-symbol { grid-row: 1 / 4; }
  .service h3 br { display: none; }
  .service h3 { font-size: 1.65rem; }
  .service > p { max-width: 35rem; margin-block: .8rem 1rem; }
  .service-link { width: max-content; max-width: 100%; font-size: .875rem; gap: 1rem; }
  .contact-section { padding-top: 4.5rem; }
  .contact-panel { grid-template-columns: 1fr; gap: 2rem; }
  .contact-portrait { max-width: 22rem; justify-self: center; order: 2; }
  .contact-copy { order: 1; padding-bottom: 0; }
  .site-footer .back-top { margin-left: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; padding-top: 1.25rem; padding-bottom: 1rem; }
  .brand { margin-right: auto; }
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .8125rem; }
  .main-nav .nav-contact { padding-inline: .85rem; }
  .brand-logo { width: 64px; height: 64px; }
  .hero { padding-top: 2.25rem; }
  h1 { font-size: clamp(2.5rem, 10.2vw, 3.75rem); letter-spacing: -.06em; }
  .hero .eyebrow { font-size: .6875rem; margin-bottom: 1.3rem; }
  .hero-description { font-size: .9375rem; }
  .desktop-break { display: none; }
  .hero-actions { gap: .4rem 1rem; margin-top: 1.6rem; }
  .hero-art { margin-top: 1rem; }
  .hero-art figcaption { font-size: .6875rem; }
  .intro-strip { margin-top: .5rem; padding-block: 1.5rem; }
  .intro-strip ul { gap: .4rem .85rem; }
  .section-space { padding-block: 3.5rem; }
  h2 { font-size: 2rem; }
  .services-grid { gap: 2.5rem; }
  .service { display: flex; }
  .service-symbol { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem; }
  .service-link { width: 100%; }
  .contact-panel { padding: 2rem 1.5rem 0; border-radius: 22px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }
  .contact-section { padding-block: 3.5rem 2rem; }
  .site-footer { padding-block: 1.25rem; gap: .5rem; }
  .site-footer nav { gap: 1.25rem; }
  .legal-main { padding-block: 2rem 3rem; }
  .legal-back { margin-bottom: 1.5rem; }
  .legal-content { padding: 1.35rem; border-radius: 18px; }
}

@media (max-width: 26rem) {
  .site-header { justify-content: flex-start; }
  .main-nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .hero .eyebrow { letter-spacing: .075em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .button:active { transform: none; }
}

/* All content and navigation surfaces are opaque, including reduced transparency. */
@media (prefers-reduced-transparency: reduce) {
  .workspace-art g { filter: none; }
  .button { box-shadow: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: var(--ink); }
  a:not(.button):not(.brand) { text-decoration: underline; }
  .button, .contact-panel { border: 2px solid currentColor; }
}

@media (forced-colors: active) {
  .hero-art { display: none; }
  .button, .nav-contact, .contact-panel, .service-symbol { border: 1px solid ButtonText; }
  .brand-logo { forced-color-adjust: none; }
  a:focus-visible { outline-color: Highlight; }
}

@media print {
  :root { --surface: #fff; --paper: #fff; --ink: #000; --muted: #333; --accent: #000; --line: #aaa; }
  .main-nav, .hero-art, .skip-link, .legal-back, .back-top { display: none; }
  .wrap { width: 100%; }
  .hero, .legal-layout { display: block; }
  .section-space, .legal-main { padding-block: 2rem; }
  .legal-content { padding: 0; }
  .contact-panel { background: #fff; color: #000; border: 1px solid #aaa; }
}
