/* Init Systems — System / porządek. Tokens, base, sections, responsive, motion. */
:root {
  --ink:#171719;
  --paper:#f2f1ed;
  --white:#faf9f6;
  --muted:#626268;
  --line:#cecdc9;
  --purple:#bba2ed;
  --purple-ink:#654093;
  --dark-line:#424246;
  --max:1600px;
  --gutter:clamp(22px,4.4vw,76px);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:28px;
}

body {
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

body:has(dialog[open]) {
  overflow:hidden;
}

::selection {
  background:var(--purple);
  color:var(--ink);
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,textarea,select {
  font:inherit;
}

button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

button {
  color:inherit;
}

a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #8a5cbc;
  outline-offset:6px;
}

.hero a:focus-visible,.header a:focus-visible,.footer a:focus-visible,.footer button:focus-visible,.resilience a:focus-visible {
  outline-color:var(--purple);
}

h1,h2,h3,p,figure {
  margin:0;
}

h1,h2,h3 {
  line-height:1.06;
  font-weight:500;
  letter-spacing:-.015em;
}

p {
  max-width:65ch;
}

button {
  border:0;
  background:none;
}

svg {
  display:block;
  width:100%;
}

[hidden] {
  display:none!important;
}

.mono,.eyebrow,.section-label {
  font-family:"Courier New",monospace;
  font-size:.8125rem;
  letter-spacing:.025em;
}

.eyebrow {
  text-transform:uppercase;
}

.violet {
  color:var(--purple);
}

.muted {
  color:var(--muted);
}

.skip-link {
  position:fixed;
  top:10px;
  left:20px;
  transform:translateY(-200%);
  background:var(--paper);
  color:var(--ink);
  padding:16px;
  z-index:100;
}

.skip-link:focus {
  transform:translateY(0);
}

.header,.hero,.section-pad,.footer {
  padding-left:var(--gutter);
  padding-right:var(--gutter);
  max-width:var(--max);
  margin:auto;
}

.header {
  height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--dark-line);
  gap:30px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
  letter-spacing:-1.3px;
  font-size:27px;
  font-weight:700;
  line-height:1;
}

.brand svg {
  width:34px;
  height:40px;
  fill:none;
  stroke:var(--purple);
  stroke-width:2;
}

.brand-light {
  font-weight:400;
}

.brand-point {
  color:var(--purple);
}

.menu-toggle {
  display:none;
}

nav {
  display:flex;
  align-items:center;
  gap:36px;
  font-size:.875rem;
}

nav a {
  padding:12px 0;
  position:relative;
}

nav a:after {
  content:"";
  position:absolute;
  bottom:5px;
  height:1px;
  background:var(--purple);
  left:0;
  right:100%;
  transition:right .2s;
}

nav a:hover:after {
  right:0;
}

nav .nav-contact {
  margin-left:25px;
  display:flex;
  align-items:center;
  gap:28px;
  color:var(--purple);
}

.contact-mark {
  font-size:26px;
  font-weight:400;
  line-height:1;
}

.hero {
  padding-top:35px;
  overflow:hidden;
}

.hero-kicker {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.875rem;
}

.hero-kicker .mono {
  color:#bab8c0;
}

h1 {
  font-size:clamp(62px,10.48vw,166px);
  letter-spacing:.005em;
  white-space:nowrap;
  line-height:1.15;
  margin:35px 0 15px -7px;
  font-weight:500;
}

.hero-body {
  display:grid;
  grid-template-columns:1.52fr 1fr;
  gap:8.5%;
  align-items:center;
}

.system-art {
  position:relative;
  min-width:0;
}

.architecture {
  width:100%;
  height:auto;
  overflow:visible;
}

.system-art figcaption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#b1adb8;
  padding:0 6% 20px;
  font-size:13px;
}

.figure-cross {
  font-size:25px;
  line-height:1;
}

.hero-copy {
  padding:20px 0 42px;
}

.hero-copy .eyebrow {
  color:var(--purple);
  display:block;
  margin-bottom:22px;
}

.hero-lead {
  font-size:clamp(22px,2.1vw,32px);
  line-height:1.25;
  letter-spacing:-.035em;
  margin-bottom:22px;
}

.hero-copy>p:not(.hero-lead) {
  color:#b9b7bf;
  font-size:1rem;
  max-width:360px;
}

.button {
  min-height:54px;
  padding:15px 20px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  font-size:.875rem;
  border:1px solid transparent;
  line-height:1.4;
  transition:background .2s,color .2s;
}

.button span {
  font-size:24px;
  line-height:1;
}

.button-light {
  background:var(--paper);
  color:var(--ink);
  margin-top:32px;
}

.button-light:hover {
  background:var(--purple);
}

.button-dark {
  background:var(--ink);
  color:var(--paper);
}

.button-dark:hover {
  background:#453253;
}

.hero-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.8125rem;
  border-top:1px solid var(--dark-line);
  padding:24px 0 27px;
  color:#b9b7bf;
  gap:20px;
}

.hero-bottom a {
  min-height:32px;
  display:flex;
  gap:35px;
  align-items:center;
  color:var(--paper);
}

.hero-bottom a span {
  color:var(--purple);
  font-size:20px;
}

.light-section {
  background:var(--paper);
  color:var(--ink);
}

.section-pad {
  padding-top:110px;
  padding-bottom:110px;
}

.section-label {
  display:flex;
  align-items:center;
  gap:10px;
  align-self:start;
  line-height:1.5;
}

.square {
  height:6px;
  width:6px;
  flex-shrink:0;
  background:currentColor;
}

.philosophy,.services,.technology {
  display:grid;
  grid-template-columns:22% 78%;
}

.philosophy {
  border-top:7px solid var(--purple);
  padding-top:100px;
  padding-bottom:100px;
}

.philosophy h2 {
  font-size:clamp(33px,4.15vw,64px);
  line-height:1.14;
}

.philosophy-bottom {
  display:grid;
  grid-template-columns:36% 64%;
  margin-top:50px;
  gap:0;
}

.philosophy-bottom p {
  max-width:550px;
}

.philosophy-bottom p+p {
  margin-top:20px;
  color:#56565c;
}

.small-schematic {
  width:140px;
  height:128px;
  position:relative;
  margin-top:8px;
}

.small-schematic i {
  position:absolute;
  width:60px;
  height:60px;
  border:1px solid #969398;
  transform:rotate(-30deg) skewX(30deg) scaleY(.85);
  left:28px;
  top:0;
}

.small-schematic i:nth-child(2) {
  top:17px;
}

.small-schematic i:nth-child(3) {
  top:34px;
  border-color:#78549d;
}

.small-schematic i:nth-child(4) {
  top:51px;
}

.small-schematic span {
  font-family:"Courier New",monospace;
  font-size:12px;
  position:absolute;
  bottom:0;
  left:0;
  color:#626268;
}

.services {
  border-top:1px solid var(--line);
  padding-top:75px;
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:45px;
}

h2 {
  font-size:clamp(34px,3.55vw,55px);
}

.section-heading>p {
  font-size:.875rem;
  max-width:235px;
  line-height:1.6;
  color:#5a5a61;
}

.service-list {
  border-top:1px solid var(--ink);
}

details {
  border-bottom:1px solid var(--line);
}

summary {
  list-style:none;
  display:grid;
  grid-template-columns:1fr 240px 26px;
  gap:20px;
  align-items:center;
  min-height:98px;
  padding:20px 0;
  cursor:pointer;
}

summary::-webkit-details-marker {
  display:none;
}

summary>span:first-child {
  font-size:clamp(23px,2.15vw,33px);
  letter-spacing:-.045em;
  line-height:1.2;
  transition:color .2s;
}

summary:hover>span:first-child {
  color:var(--purple-ink);
}

.service-meta {
  font-family:"Courier New",monospace;
  font-size:.75rem;
  color:#65656a;
}

.expand {
  position:relative;
  width:24px;
  height:24px;
}

.expand:before,.expand:after {
  content:"";
  position:absolute;
  top:11px;
  left:4px;
  width:16px;
  height:1px;
  background:currentColor;
}

.expand:after {
  transform:rotate(90deg);
  transition:transform .2s;
}

details[open] .expand:after {
  transform:rotate(0);
}

details[open] summary>span:first-child {
  color:var(--purple-ink);
}

.service-detail {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  padding:0 50px 35px 0;
}

.service-detail p {
  color:#56565c;
  font-size:1rem;
}

.service-detail ul {
  margin:0;
  padding:0;
  list-style:none;
  font-size:.875rem;
}

.service-detail li {
  padding-left:15px;
  position:relative;
  margin-bottom:7px;
}

.service-detail li:before {
  content:"";
  width:4px;
  height:4px;
  background:var(--purple-ink);
  position:absolute;
  left:0;
  top:9px;
}

.services-note,.tech-note {
  font-size:.8125rem;
  color:#626268;
  margin-top:23px;
}

.method {
  background:#e2dee7;
  color:var(--ink);
  border-top:1px solid #c1bbc9;
}

.method-top {
  display:grid;
  grid-template-columns:22% 78%;
}

.method-intro {
  margin:25px 0 60px 22%;
  color:#56515f;
}

.method-steps {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0;
  padding:0;
  list-style:none;
}

.method-steps li {
  position:relative;
  border-top:1px solid #a8a0b2;
  padding:35px 35px 0 0;
  display:flex;
  flex-direction:column;
}

.step-node {
  position:absolute;
  top:-5px;
  left:0;
  width:9px;
  height:9px;
  background:var(--purple-ink);
}

.step-stage {
  font-family:"Courier New",monospace;
  font-size:.8125rem;
  margin-bottom:24px;
  color:#514660;
}

.method-steps h3 {
  font-size:clamp(26px,2.6vw,40px);
  margin-bottom:20px;
  line-height:1.12;
}

.method-steps p {
  font-size:.9375rem;
  color:#57525d;
  max-width:260px;
  flex:1;
}

.step-result {
  margin-top:35px;
  font-size:.75rem;
  color:#57525d;
  font-family:"Courier New",monospace;
}

.tech-index {
  margin:0;
}

.tech-index>div {
  display:grid;
  grid-template-columns:220px 1fr;
  padding:25px 0;
  border-top:1px solid var(--line);
  gap:25px;
  align-items:baseline;
}

.tech-index>div:last-child {
  border-bottom:1px solid var(--line);
}

.tech-index dt {
  font-size:.8125rem;
  font-family:"Courier New",monospace;
  color:#626268;
}

.tech-index dd {
  margin:0;
  font-size:clamp(19px,1.8vw,28px);
  letter-spacing:-.035em;
  line-height:1.6;
}

.tech-index dd span {
  font-weight:400;
  color:#88848d;
  padding:0 10px;
}

.resilience {
  background:#222225;
  position:relative;
  overflow:hidden;
}

.resilience>.section-label {
  color:var(--purple);
}

.resilience-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15%;
  margin-top:55px;
}

.resilience-copy h2 {
  font-size:clamp(45px,5.3vw,82px);
  line-height:1.06;
}

.resilience-copy h2 em {
  font-style:normal;
  color:var(--purple);
}

.resilience-copy>p {
  color:#bdbac5;
  max-width:400px;
  margin-top:30px;
}

.text-link {
  padding:10px 0;
  border-bottom:1px solid currentColor;
  display:inline-block;
  font-size:.875rem;
  line-height:1.5;
  transition:color .2s;
}

.text-link:hover {
  color:var(--purple-ink);
}

.resilience .text-link {
  margin-top:23px;
  color:var(--paper);
}

.resilience .text-link:hover {
  color:var(--purple);
}

.continuity {
  padding-top:7px;
}

.continuity-caption {
  color:#bcb5c7;
  margin-bottom:38px;
  max-width:320px;
}

.continuity-item {
  display:flex;
  gap:30px;
  position:relative;
  padding-bottom:34px;
  min-height:125px;
}

.continuity-item:before {
  content:"";
  position:absolute;
  left:8px;
  width:1px;
  top:17px;
  bottom:0;
  background:#665b77;
}

.line-symbol {
  position:relative;
  width:17px;
  height:17px;
  flex-shrink:0;
  border:1px solid var(--purple);
  margin-top:6px;
}

.line-symbol:after {
  content:"";
  position:absolute;
  inset:5px;
  background:var(--purple);
}

.continuity-item h3 {
  font-size:25px;
  letter-spacing:-.035em;
  margin-bottom:12px;
}

.continuity-item p {
  font-size:.9375rem;
  color:#bdbac5;
  max-width:300px;
}

.continuity-end {
  display:flex;
  align-items:center;
  gap:24px;
  color:var(--purple);
  font-size:.8125rem;
}

.continuity-end span {
  font-size:29px;
  line-height:1;
}

.contact {
  padding-top:65px;
  padding-bottom:85px;
}

.contact-top {
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.contact-top>.mono {
  color:#626268;
}

.contact h2 {
  font-size:clamp(58px,8.5vw,132px);
  line-height:1.03;
  letter-spacing:-.015em;
  margin-top:55px;
}

.contact h2 .violet {
  color:var(--purple-ink);
}

.contact-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15%;
  margin-top:60px;
}

.contact-direct>p:first-child {
  font-size:24px;
  line-height:1.4;
  letter-spacing:-.035em;
  margin-bottom:30px;
}

.email {
  font-size:clamp(17px,1.65vw,25px);
  letter-spacing:-.025em;
  border-bottom:1px solid #9a969f;
  padding-bottom:8px;
  display:inline-block;
  overflow-wrap:anywhere;
  line-height:1.5;
}

.email:hover {
  color:var(--purple-ink);
}

.copy-email {
  display:block;
  padding:12px 0;
  font-size:.8125rem;
  color:#626268;
  text-decoration:underline;
  text-underline-offset:4px;
  min-height:44px;
}

.contact-person {
  font-size:.875rem;
  margin-top:26px;
}

.contact-form h3 {
  font-size:24px;
  letter-spacing:-.035em;
  margin-bottom:28px;
}

.field {
  margin-bottom:24px;
}

.field label {
  display:block;
  font-size:.8125rem;
  margin-bottom:9px;
}

.field label span {
  color:#626268;
}

select,textarea {
  border-radius:0;
  width:100%;
  background:transparent;
  color:var(--ink);
  border:1px solid #8b888f;
  padding:12px;
  font-size:1rem;
  line-height:1.5;
}

select {
  appearance:none;
  padding-right:40px;
  background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="m4 6 4 4 4-4" fill="none" stroke="%23171719" stroke-width="1.5"/%3E%3C/svg%3E');
  background-repeat:no-repeat;
  background-size:16px;
  background-position:right 14px center;
}

textarea {
  resize:vertical;
  min-height:108px;
}

textarea::placeholder {
  color:#69666e;
  opacity:1;
}

.contact-form>.button {
  width:100%;
}

.form-note {
  font-size:.75rem;
  line-height:1.7;
  color:#626268;
  margin-top:14px;
}

.status {
  font-size:.8125rem;
  color:var(--purple-ink);
  margin-top:10px;
}

.mail-fallback {
  margin-top:20px;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:.8125rem;
}

.mail-fallback label {
  display:block;
  margin:20px 0 8px;
}

.mail-fallback textarea {
  font-size:.875rem;
}

.footer {
  border-top:1px solid #424246;
  padding-top:35px;
  padding-bottom:35px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}

.footer>.brand {
  font-size:23px;
}

.footer>.brand svg {
  width:28px;
}

.footer>span {
  font-size:.8125rem;
  color:#aaa6b1;
}

.footer>div {
  display:flex;
  gap:25px;
  align-items:center;
  font-size:.75rem;
}

.footer button,.footer>div>a {
  font-size:.75rem;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0;
}

.copyright {
  color:#aaa6b1;
}

dialog {
  border:0;
  padding:34px;
  background:var(--paper);
  color:var(--ink);
  max-width:min(620px,calc(100% - 32px));
  max-height:85dvh;
}

dialog::backdrop {
  background:#000b;
}

.dialog-head {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  margin-bottom:24px;
}

.dialog-head h2 {
  font-size:32px;
}

.dialog-head button {
  font-size:32px;
  min-width:44px;
  min-height:44px;
}

dialog p {
  margin:16px 0;
  font-size:.9375rem;
}

dialog a {
  overflow-wrap:anywhere;
  text-decoration:underline;
}

@media(min-width:1601px) {
  body {
    background:#111113;
  }
  .header,.hero,.footer {
    background:var(--ink);
  }
}

@media(max-width:1100px) {
  nav {
    gap:22px;
  }
  nav .nav-contact {
    margin-left:8px;
  }
  .hero-body {
    gap:4%;
    grid-template-columns:1.2fr 1fr;
  }
  .philosophy,.services,.technology {
    grid-template-columns:19% 81%;
  }
  .section-heading {
    display:block;
  }
  .section-heading>p {
    max-width:450px;
    margin-top:20px;
  }
  .service-meta {
    font-size:.75rem;
  }
  summary {
    grid-template-columns:1fr 205px 26px;
    gap:15px;
  }
  .method-top {
    grid-template-columns:19% 81%;
  }
  .method-intro {
    margin-left:19%;
  }
  .method-steps li {
    padding-right:22px;
  }
  .resilience-layout,.contact-layout {
    gap:8%;
  }
  .tech-index>div {
    grid-template-columns:175px 1fr;
  }
  .tech-index dd span {
    padding:0 5px;
  }
  .footer {
    flex-wrap:wrap;
  }
  .footer>div {
    margin-left:auto;
  }
}

@media(max-width:760px) {
  .header {
    height:auto;
    min-height:88px;
    flex-wrap:wrap;
    gap:0;
    padding-top:20px;
    padding-bottom:20px;
    position:relative;
  }
  .brand {
    font-size:25px;
  }
  .brand svg {
    width:30px;
    height:32px;
  }
  .menu-toggle {
    display:flex;
    gap:20px;
    align-items:center;
    min-height:44px;
    padding:0 0 0 16px;
    font-size:.875rem;
  }
  .menu-toggle span {
    font-size:24px;
  }
  nav {
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding-top:20px;
  }
  nav a {
    padding:13px 0;
    border-top:1px solid var(--dark-line);
    font-size:1rem;
  }
  nav .nav-contact {
    margin-left:0;
    justify-content:space-between;
  }
  nav a:after {
    display:none;
  }
  .js nav:not(.is-open) {
    display:none;
  }
  .hero {
    padding-top:27px;
  }
  .hero-kicker {
    font-size:.75rem;
    gap:15px;
    align-items:flex-start;
  }
  .hero-kicker .mono {
    font-size:.75rem;
    max-width:95px;
    text-align:right;
  }
  h1 {
    white-space:normal;
    font-size:clamp(48px,13.4vw,96px);
    letter-spacing:-.015em;
    line-height:1.14;
    margin:35px 0 30px -3px;
    max-width:100%;
  }
  .hero-body {
    grid-template-columns:1fr;
    gap:20px;
  }
  .system-art {
    width:100%;
    max-width:560px;
    justify-self:center;
    order:1;
  }
  .hero-copy {
    padding:0 0 5px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px 24px;
  }
  .hero-copy .eyebrow {
    display:none;
  }
  .hero-lead {
    font-size:24px;
    margin:0;
  }
  .hero-copy>p:not(.hero-lead) {
    font-size:.875rem;
  }
  .hero-copy .button {
    margin-top:4px;
    grid-column:1/-1;
    justify-self:start;
  }
  .system-art figcaption {
    padding:0 0 15px;
  }
  .system-art .mono {
    font-size:.75rem;
  }
  .architecture {
    margin-top:12px;
  }
  .hero-bottom {
    font-size:.75rem;
    align-items:flex-start;
    padding:20px 0 25px;
  }
  .hero-bottom>span {
    max-width:190px;
  }
  .hero-bottom>a {
    gap:15px;
    white-space:nowrap;
  }
  .section-pad {
    padding-top:65px;
    padding-bottom:65px;
  }
  .philosophy,.services,.technology {
    display:block;
  }
  .section-label {
    margin-bottom:32px;
    font-size:.75rem;
  }
  .philosophy h2 {
    font-size:clamp(30px,5.8vw,44px);
  }
  .philosophy-bottom {
    grid-template-columns:26% 74%;
    margin-top:35px;
    gap:0;
  }
  .philosophy-bottom p {
    font-size:.9375rem;
  }
  .small-schematic {
    transform:scale(.7);
    transform-origin:left top;
  }
  .services {
    padding-top:55px;
  }
  .section-heading {
    margin-bottom:35px;
  }
  h2 {
    font-size:36px;
  }
  .section-heading>p {
    font-size:.9375rem;
  }
  summary {
    grid-template-columns:1fr 24px;
    gap:8px;
    min-height:104px;
    padding:23px 0;
  }
  .service-meta {
    grid-row:2;
    grid-column:1;
    font-size:.75rem;
  }
  .expand {
    grid-column:2;
    grid-row:1/3;
  }
  summary>span:first-child {
    font-size:28px;
  }
  .service-detail {
    grid-template-columns:1fr;
    gap:20px;
    padding:0 12px 27px 0;
  }
  .service-detail ul {
    font-size:.875rem;
  }
  .method-top {
    display:block;
  }
  .method-intro {
    margin:25px 0 40px;
    font-size:.9375rem;
  }
  .method-steps {
    grid-template-columns:1fr 1fr;
    gap:40px 0;
  }
  .method-steps li {
    padding:25px 24px 0 0;
  }
  .method-steps h3 {
    font-size:30px;
  }
  .step-stage {
    margin-bottom:18px;
  }
  .step-result {
    font-size:.75rem;
    margin-top:22px;
  }
  .method-steps p {
    font-size:.875rem;
  }
  .tech-index>div {
    grid-template-columns:1fr;
    gap:9px;
    padding:20px 0;
  }
  .tech-index dd {
    font-size:23px;
    line-height:1.6;
  }
  .tech-index dt {
    font-size:.75rem;
  }
  .resilience-layout {
    grid-template-columns:1fr;
    gap:45px;
    margin-top:0;
  }
  .resilience-copy h2 {
    font-size:clamp(48px,8.5vw,68px);
  }
  .resilience-copy>p {
    font-size:.9375rem;
    max-width:500px;
  }
  .continuity {
    padding-left:15%;
  }
  .continuity-item p {
    max-width:100%;
  }
  .continuity-caption {
    max-width:100%;
  }
  .contact-top .section-label {
    margin:0;
  }
  .contact-top>.mono {
    font-size:.75rem;
    max-width:135px;
    text-align:right;
  }
  .contact h2 {
    font-size:clamp(48px,9.5vw,76px);
    margin-top:40px;
  }
  .contact-layout {
    grid-template-columns:1fr;
    gap:45px;
    margin-top:35px;
  }
  .email {
    font-size:clamp(16px,3.8vw,24px);
  }
  .contact-direct>p:first-child {
    font-size:22px;
    margin-bottom:24px;
  }
  .contact-person {
    margin-top:16px;
  }
  .contact-form {
    padding-top:35px;
    border-top:1px solid var(--line);
  }
  .footer {
    gap:22px;
    padding-top:30px;
    padding-bottom:24px;
  }
  .footer>span {
    font-size:.75rem;
  }
  .footer>div {
    width:100%;
    justify-content:space-between;
    gap:12px;
  }
  .copyright {
    font-size:.75rem;
  }
  dialog {
    padding:24px;
  }
  .dialog-head h2 {
    font-size:28px;
  }
}

@media(max-width:400px) {
  .hero-copy {
    grid-template-columns:1fr;
  }
  .hero-lead {
    font-size:23px;
  }
  .hero-copy>p:not(.hero-lead) {
    max-width:100%;
  }
  .hero-bottom>span {
    max-width:130px;
  }
  .hero-bottom a {
    gap:8px;
    font-size:.75rem;
  }
  .philosophy-bottom {
    display:block;
  }
  .small-schematic {
    display:none;
  }
  .method-steps {
    grid-template-columns:1fr;
    gap:30px;
  }
  .method-steps li {
    padding-right:0;
  }
  .method-steps h3 br {
    display:none;
  }
  .method-steps p {
    max-width:100%;
  }
  .method-steps h3 {
    font-size:28px;
  }
  .step-result {
    margin-top:16px;
  }
  .continuity {
    padding-left:0;
  }
  .footer>.brand {
    font-size:20px;
  }
  .footer>.brand svg {
    width:25px;
  }
  .footer>div {
    flex-wrap:wrap;
  }
  .copyright {
    width:100%;
  }
  .contact h2 {
    font-size:12.5vw;
  }
  .hero-kicker>span:first-child {
    max-width:150px;
  }
}

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

@media(forced-colors:active) {
  .square,.step-node,.line-symbol:after {
    background:CanvasText;
  }
  .button {
    border:1px solid ButtonText;
  }
  .expand:before,.expand:after {
    background:ButtonText;
  }
}

@media print {
  body {
    background:white;
    color:black;
  }
  .header,.hero,.section-pad,.footer {
    max-width:none;
    padding:20px;
    background:white;
    color:black;
  }
  .menu-toggle,.contact-form,.copy-email,.footer button,dialog,.system-art {
    display:none!important;
  }
  .hero-body,.philosophy,.services,.technology,.method-top,.resilience-layout,.contact-layout {
    display:block;
  }
  h1 {
    font-size:50px;
  }
  .section-pad {
    break-inside:avoid;
  }
  a {
    text-decoration:underline;
  }
  .hero-copy>p,.resilience-copy>p,.continuity-item p {
    color:black;
  }
}

/* Reading sizes remain comfortable at every breakpoint. */
.hero-copy>p:not(.hero-lead),.philosophy-bottom p,.method-steps p,.resilience-copy>p,.continuity-item p {
  font-size:1rem;
}

.section-label,.eyebrow,.step-stage,.field label,.tech-index dt {
  font-size:.875rem;
}

.form-note {
  font-size:.8125rem;
}

.mail-fallback .text-link {
  margin-right:16px;
  min-height:44px;
}

/* Intrinsic sizing also accommodates large user text settings. */
summary>* {
  min-width:0;
  overflow-wrap:anywhere;
}

.hero-bottom {
  flex-wrap:wrap;
}

.hero-bottom>a {
  white-space:normal;
}

.contact-top {
  flex-wrap:wrap;
}

.section-main,.contact-form,.contact-direct {
  min-width:0;
}

.method-steps li {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 600px) {
  .method-steps {
    grid-template-columns: 1fr;
  }
  .method-steps p {
    max-width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .header {
    height: auto;
    min-height: 110px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .header nav {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
}


/* Motion is controlled by hero-animation.js; static SVG is the fallback. */
.system-art figcaption { flex-wrap:wrap; gap:8px 16px; }
@media (max-width:760px) { h1 { letter-spacing:.005em; } }
