:root {
  --bg: #050d14;
  --surface: #0a151d;
  --line: #24353f;
  --text: #f4f6f7;
  --muted: #b5c1c9;
  --green: #22d68d;
  --green-ink: var(--green);
  --green-hover: #51e5a7;
  --on-green: #052416;
  --green-tint: #22d68d15;
  --header-bg: rgba(5,13,20,.96);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f9f8;
  --line: #dce3df;
  --text: #101713;
  --muted: #505e56;
  --green: #087c50;
  --green-hover: #065f3e;
  --on-green: #ffffff;
  --green-tint: #087c5015;
  --header-bg: rgba(255,255,255,.96);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
::selection { color: var(--bg); background: var(--green); }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 14px; background: var(--green); color: var(--bg); z-index: 100; }
.skip-link:focus { top: 15px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: block; width: 112px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
.brand .brand-light { display: none; }
html[data-theme="light"] .brand .brand-light { display: block; }
html[data-theme="light"] .brand .brand-dark { display: none; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.theme-switch { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); flex-shrink: 0; }
.theme-switch button { min-height: 36px; padding: 7px 13px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.theme-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }
.language-switch { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); flex-shrink: 0; }
.language-switch a { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 7px 9px; border-radius: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.language-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }
.language-switch a:hover:not([aria-current="page"]) { color: var(--text); }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.desktop-nav > a:hover { color: var(--green-ink); }
.nav-contact { border: 1px solid #41515a; padding: 14px 20px; border-radius: 4px; display: flex; align-items: center; gap: 22px; }
.nav-contact span { color: var(--green-ink); font-size: 20px; }
.menu-toggle { display: none; }
.mobile-nav[hidden] { display: none; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 80px; }
.hero-copy { min-width: 0; }
h1 { font-size: clamp(60px, 6.2vw, 88px); line-height: 1.04; font-weight: 600; letter-spacing: -.055em; margin: 0 0 29px; }
h1 .hero-accent { color: var(--green-ink); }
.hero-word { display: inline-block; white-space: nowrap; }
.hero-letter { display: inline-block; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-motion-on .hero-letter {
    animation: hero-letter-in 780ms cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(90ms + var(--letter-index) * 27ms);
  }
  .hero-motion-on .hero-description,
  .hero-motion-on .hero-actions {
    animation: hero-content-in 700ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero-motion-on .hero-description { animation-delay: 350ms; }
  .hero-motion-on .hero-actions { animation-delay: 480ms; }
}
@keyframes hero-letter-in {
  from { opacity: 0; transform: translate3d(0, .65em, 0) rotate(-7deg); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); filter: blur(0); }
}
@keyframes hero-content-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-description { font-size: 20px; line-height: 1.7; max-width: 660px; color: var(--muted); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 27px; align-items: center; flex-wrap: wrap; }
.hero-diagram { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at top right, var(--green-tint), transparent 75%), var(--surface); }
.example-label { margin: 0 0 12px; color: var(--green-ink); font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero-diagram h2 { font-size: 30px; font-weight: 600; line-height: 1.18; letter-spacing: -.8px; }
.systems-map { --systems-gap: 10px; position: relative; margin-top: 30px; }
.systems-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--green-ink); }
.systems-flow path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 140; filter: drop-shadow(0 0 3px currentColor); animation: systems-inflow 3.6s linear infinite; animation-delay: var(--flow-delay); }
@keyframes systems-inflow { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
.systems-row { display: grid; position: relative; gap: var(--systems-gap); list-style: none; margin: 0; padding: 0; }
.systems-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.systems-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.systems-node { display: grid; place-items: center; position: relative; padding: 15px 8px; min-height: 72px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.5; font-weight: 600; text-align: center; }
.systems-sources::after { content: ''; position: absolute; top: calc(100% + 14px); left: calc((100% - var(--systems-gap) * 2) / 6); right: calc((100% - var(--systems-gap) * 2) / 6); height: 1px; background: var(--green-ink); opacity: .65; }
.systems-results::before { content: ''; position: absolute; bottom: calc(100% + 14px); left: calc((100% - var(--systems-gap)) / 4); right: calc((100% - var(--systems-gap)) / 4); height: 1px; background: var(--green-ink); opacity: .65; }
.systems-sources .systems-node::after, .systems-results .systems-node::before { content: ''; position: absolute; left: calc(50% - .5px); width: 1px; height: 14px; background: var(--green-ink); opacity: .65; }
.systems-sources .systems-node::after { top: 100%; }
.systems-results .systems-node::before { bottom: 100%; }
.systems-link { width: 1px; height: 32px; margin-inline: auto; background: var(--green-ink); opacity: .65; }
.systems-hub + .systems-link { background: linear-gradient(to bottom, var(--green-ink) 18px, transparent 18px); }
.systems-hub { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 19px 16px; border: 1px solid #287e5c; border-radius: 12px; background: linear-gradient(125deg, #0b3528, #071e18); box-shadow: 0 8px 30px #22d68d0c; }
.systems-hub img { display: block; width: 112px; height: auto; flex-shrink: 0; }
.systems-hub p { font-size: 14px; font-weight: 600; line-height: 1.65; color: #f4f6f7; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 17px 23px; border-radius: 4px; font-size: 15px; font-weight: 600; min-height: 54px; transition: background .2s, transform .2s; }
.button-primary { background: var(--green); color: var(--on-green); }
.button-primary:hover { background: var(--green-hover); transform: translateY(-2px); }
.button span { font-size: 21px; line-height: 1; }
.text-link { font-size: 15px; display: flex; align-items: center; gap: 13px; padding-block: 10px; }
.text-link:hover { color: var(--green-ink); }
.text-link span { color: var(--muted); font-size: 19px; }
.section { padding-top: 90px; padding-bottom: 90px; }
.services { padding-top: 30px; }
.section-heading { display: flex; flex-direction: column; align-items: start; gap: 22px; margin-bottom: 44px; }
h2 { font-size: 44px; line-height: 1.16; letter-spacing: -1.8px; font-weight: 500; margin: 0; }
.section-heading > p { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; }
.section-heading > .section-label { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 1.2px; text-transform: uppercase; }
.section-label > span { color: var(--green-ink); }
.section-title { font-size: clamp(36px, 4.2vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.section-title > span { color: var(--green-ink); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.service-card { padding: 33px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #0c1921aa, transparent); }
.service-icon { width: 30px; height: 30px; stroke: var(--green-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 25px; }
.service-card h3 { font-weight: 500; font-size: 25px; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 15px; max-width: 460px; }
.service-card p { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0; }
.portfolio { padding-top: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.project-image { aspect-ratio: 16/10; overflow: hidden; position: relative; display: grid; place-items: center; background: radial-gradient(ellipse at 0 100%, #1c574350, transparent 80%), #10241f; border-bottom: 1px solid var(--line); padding: 38px 38px 0; }
.project-image-two { background: radial-gradient(ellipse at 100% 0, #1d426670, transparent 75%), #101e2a; }
.project-browser { width: 100%; height: 100%; border: 1px solid #416d5f60; border-radius: 5px 5px 0 0; background: #071715; box-shadow: 0 10px 35px #0003; overflow: hidden; }
.project-image-two .project-browser { background: #0a1520; border-color: #405a7860; }
.browser-toolbar { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 1px solid #28463966; background: #b7d4c208; }
.browser-toolbar i { height: 4px; width: 4px; display: block; border-radius: 50%; background: #649580; }
.browser-toolbar > span { width: 50%; height: 8px; max-width: 150px; margin-inline: auto; background: #bfd3c108; border-radius: 2px; }
.project-preview { position: relative; height: calc(100% - 30px); display: flex; align-items: center; padding: 25px; background: linear-gradient(125deg, transparent 50%, #22d68d0b 50%, #22d68d0b 66%, transparent 66%); }
.project-preview-index { font-size: clamp(60px, 7vw, 100px); font-weight: 500; line-height: 1; color: #b8dac9; letter-spacing: -5px; }
.project-image-two .project-preview-index { color: #b9d2df; }
.project-preview-mark { position: absolute; right: 25px; top: 25px; font-size: 30px; color: var(--green-ink); opacity: .5; }
.project-content { padding: 27px 29px 30px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; line-height: 1.6; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.project-content h3 { font-size: 25px; font-weight: 500; letter-spacing: -.7px; margin: 0 0 12px; }
.project-content > p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.project-screenshot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-contribution { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.project-contribution > span { display: block; font-size: 12px; color: var(--green-ink); margin-bottom: 8px; }
.project-contribution > p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.project-link { display: inline-flex; align-items: center; gap: 20px; font-size: 15px; color: var(--text); margin-top: 22px; padding-block: 6px; }
.project-link:hover { color: var(--green-ink); }
.project-link > span { font-size: 19px; color: var(--green-ink); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-featured .project-image { aspect-ratio: auto; min-height: 340px; padding: 40px; background: #f8fbfd; border-bottom: 0; border-right: 1px solid var(--line); }
.project-logo { display: block; width: 100%; max-width: 380px; height: auto; }
.project-featured .project-content { padding: 36px; }
.project-featured .project-meta { font-size: 14px; }
.project-featured .project-contribution > span { font-size: 14px; }
.project-featured .project-link { font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.about { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px 64px; border-block: 1px solid var(--line); }
.about-heading { grid-column: 1 / -1; margin-bottom: 0; }
.about-intro { font-size: 21px; line-height: 1.65; color: var(--text); margin: 0 0 30px; }
.about-body { color: var(--muted); font-size: 17px; line-height: 1.85; }
.about-body p { margin: 0 0 22px; }
.about-body p:last-child { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; }
.team-member { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.team-portrait { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #292c35; border: 1px solid var(--line); border-radius: 20px; }
.team-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait-oli img { object-position: 50% 50%; }
.team-caption { position: absolute; inset: auto 0 0; padding: 60px 18px 20px; background: linear-gradient(transparent, #000c 50%, #000e); color: #fff; }
.team-member h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin: 0 0 7px; }
.team-role { font-size: 14px; line-height: 1.6; color: #e0e3e5; margin: 0; }
.team-email { display: inline-block; padding-block: 14px 8px; font-size: 16px; line-height: 1.5; color: var(--green-ink); text-decoration: underline; text-underline-offset: 5px; }
.team-email:hover { color: var(--text); }
.process { padding-bottom: 0; }
.process-intro { margin-bottom: 44px; }
.process-story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.process-step { padding-top: 28px; border-top: 1px solid var(--line); }
.process-copy { min-width: 0; }
.process-number { display: block; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -.055em; color: var(--green-ink); margin-bottom: 24px; }
.process-copy h3 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.process-copy p { font-size: 17px; color: var(--muted); line-height: 1.85; margin: 0; max-width: 520px; }
.contact { text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 44px 28px; margin-top: 80px; }
.contact h3 { font-size: 30px; font-weight: 500; letter-spacing: -.8px; line-height: 1.3; margin: 0; text-wrap: balance; }
.contact > p { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 520px; margin: 14px auto 0; }
.contact-action { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 24px; }
.contact-action .button { min-width: 180px; justify-content: center; border-radius: 8px; }
.contact-email { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.email-address { font-size: 18px; color: var(--text); }
.email-address:hover { color: var(--green-ink); }
.copy-email { display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.copy-email:hover { color: var(--green-ink); }
.copy-email svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.1; }
.copy-status { position: absolute; top: calc(100% + 6px); font-size: 14px; color: var(--green-ink); white-space: nowrap; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 49px; padding-bottom: 37px; color: var(--muted); font-size: 14px; }
.footer-brand { width: 112px; }
.footer p { margin: 0; }
.footer-actions { display: flex; align-items: center; gap: 24px; }
.footer-actions > a { display: flex; gap: 15px; }
.footer-actions > a:hover { color: var(--green-ink); }
.footer-theme button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.footer-theme svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-theme button[aria-pressed="true"] { color: var(--green-ink); background: color-mix(in srgb, var(--green-ink) 12%, var(--surface)); }
html[data-theme="light"] .nav-contact { border-color: var(--line); }
html[data-theme="light"] .service-card { background: linear-gradient(145deg, #f7f9f8, #fff); }
@media (max-width: 1100px) {
  .footer-theme { display: none; }
  .hero { gap: 40px; padding-top: 56px; padding-bottom: 60px; }
  .hero-description { font-size: 18px; }
  .section { padding-block: 75px; }
  .services { padding-top: 25px; }
  .portfolio { padding-top: 0; }
  .service-card h3 { font-size: 23px; }
  .process { padding-bottom: 0; }
  .process-story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .about { gap: 40px; }
  .desktop-nav { gap: 20px; }
  .header-actions { gap: 18px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .header-inner { height: 88px; }
  .brand { width: 95px; }
  .desktop-nav { gap: 22px; }
  .nav-contact { padding: 12px 15px; gap: 15px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .section-heading { margin-bottom: 34px; }
  h2 { font-size: 38px; letter-spacing: -1.3px; }
  .service-card { padding: 28px 24px; }
  .service-card p { font-size: 16px; }
  .portfolio-grid { gap: 20px; }
  .project-image { padding: 24px 24px 0; }
  .project-preview { padding: 18px; }
  .project-preview-mark { top: 17px; right: 17px; font-size: 23px; }
  .project-content { padding: 24px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-image { min-height: 250px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-featured .project-content { padding: 24px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { gap: 24px; }
  .process-story { grid-template-columns: 1fr; gap: 28px; }
  .process-step { display: grid; grid-template-columns: 96px 1fr; gap: 24px; }
  .process-number { font-size: 56px; margin-bottom: 0; }
  .process-copy h3 { font-size: 28px; }
  .process-copy p { font-size: 16px; line-height: 1.8; }
}
@media (max-width: 700px) {
  .process-intro { margin-bottom: 36px; }
  .process-copy h3 { margin-bottom: 16px; }
  .process-copy p { max-width: 100%; }
  .contact { margin-top: 56px; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; width: 44px; height: 44px; padding: 12px 8px; flex-direction: column; gap: 7px; justify-content: center; border: 1px solid var(--line); border-radius: 3px; background: transparent; cursor: pointer; }
  .menu-toggle span { height: 1px; width: 100%; background: var(--text); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 24px 23px; gap: 0; border-block: 1px solid var(--line); background: var(--bg); }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mobile-nav a[href="#samband"] { color: var(--green-ink); }
  .mobile-nav .theme-switch { align-self: start; margin-top: 18px; }
}
@media (max-width: 600px) {
  .header-actions { gap: 12px; }
  .theme-switch button { padding-inline: 10px; }
  html { scroll-padding-top: 105px; }
  .container { width: calc(100% - 40px); }
  .hero { padding-top: 42px; padding-bottom: 44px; }
  .hero-diagram { padding: 22px; }
  .hero-diagram h2 { font-size: 28px; }
  .systems-hub { flex-direction: column; gap: 8px; padding: 16px 10px; }
  .systems-hub p { text-align: center; }
  h1 { font-size: clamp(45px, 13.2vw, 68px); letter-spacing: -2.8px; margin-bottom: 24px; }
  .hero-description { font-size: 17px; margin-bottom: 28px; }
  .hero-actions { gap: 20px; }
  .button { padding-inline: 18px; gap: 24px; }
  .text-link { font-size: 15px; gap: 9px; }
  .section { padding-block: 60px; }
  .services { padding-top: 15px; }
  .portfolio { padding-top: 0; }
  .section-heading { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 30px; }
  .section-heading > p { max-width: 100%; font-size: 16px; }
  h2 { font-size: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
  .service-card h3 { font-size: 23px; }
  .service-card p { font-size: 16px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-image { padding: 28px 28px 0; }
  .project-preview-index { font-size: 80px; }
  .project-content { padding: 24px; }
  .project-content h3 { font-size: 25px; }
  .project-meta { font-size: 12px; }
  .about { gap: 32px; }
  .about-intro { font-size: 19px; margin-bottom: 26px; }
  .about-body { font-size: 16px; }
  .team-grid { gap: 16px; }
  .team-caption { padding: 54px 14px 18px; }
  .process { padding-bottom: 0; }
  .process-step { grid-template-columns: 56px 1fr; gap: 18px; }
  .process-number { font-size: 42px; }
  .process-copy h3 { font-size: 24px; }
  .contact { padding: 32px 20px; border-radius: 16px; }
  .contact h3 { font-size: 27px; }
  .contact-action { flex-direction: column; gap: 20px; }
  .email-address { font-size: 18px; }
  .footer { flex-wrap: wrap; gap: 25px; padding-top: 32px; padding-bottom: 27px; font-size: 14px; }
  .footer-brand { width: 112px; }
}
@media (max-width: 420px) {
  .hero-diagram { padding: 20px 16px; }
  .systems-map { --systems-gap: 8px; }
  .systems-node { padding-inline: 4px; font-size: 12px; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; gap: 28px; }
  .team-caption { padding: 60px 20px 22px; }
  .team-member h3 { font-size: 19px; }
}
@media (max-width: 360px) {
  .systems-sources .systems-node { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .systems-flow { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Contact form: native dialog provides focus containment and Escape dismissal. */
body.contact-open { overflow: hidden; }
.contact-dialog { width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 30px 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); }
.contact-dialog::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(4px); }
.contact-dialog [hidden] { display: none !important; }
.contact-dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.contact-wordmark { font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.contact-wordmark span { color: var(--green); }
.contact-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.contact-dialog h2 { font-size: 32px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.15; margin: 0 0 16px; }
.contact-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.contact-dialog form { display: grid; gap: 19px; }
.contact-form-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.contact-dialog label { display: block; font-size: 13px; font-weight: 500; }
.contact-optional { font-weight: 400; color: var(--muted); }
.contact-dialog input, .contact-dialog textarea { display: block; width: 100%; margin-top: 9px; padding: 13px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 9px; font: 400 16px/1.4 var(--font); }
.contact-dialog textarea { resize: vertical; min-height: 118px; }
.contact-dialog input::placeholder, .contact-dialog textarea::placeholder { color: var(--muted); opacity: .8; }
.contact-dialog input:focus-visible, .contact-dialog textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.contact-submit { width: 100%; justify-content: center; border: 0; border-radius: 10px; padding: 16px; cursor: pointer; }
.contact-submit:disabled { opacity: .55; cursor: not-allowed; }
.contact-retry { justify-self: center; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.contact-status { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.contact-status:empty { display: none; }
.contact-form-footer { border-top: 1px solid var(--line); margin: 25px 0 0; padding-top: 21px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-form-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-success { text-align: center; padding: 24px 0; }
.contact-success p { color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.contact-check { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 25px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 24px; }
@media (max-width: 480px) { .contact-dialog { padding: 22px; } .contact-form-pair { grid-template-columns: 1fr; gap: 19px; } .contact-dialog h2 { font-size: 29px; } }

/* Unreleased portfolio projects are informative, not links. */
.project-meta { flex-wrap: wrap; }
.project-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 24px; white-space: nowrap; letter-spacing: .2px; font-size: 12px; }
.project-status > span { color: var(--green-ink); font-size: 9px; }
.project-development-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 25px; color: var(--muted); }
.project-development-note > svg { flex-shrink: 0; margin-top: 3px; }
.project-development-note p { margin: 0; font-size: 14px; line-height: 1.7; }
