@font-face {
  font-family: "IIS Sans";
  src: url("./assets/iis-sans.woff") format("woff");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172923;
  --ink-soft: #415750;
  --dark: #11221e;
  --mid: #1b322b;
  --white: #f7fbf8;
  --mint: #acebcd;
  --mint-deep: #256c53;
  --line: #cdd9d2;
  --engineering: #e8f0f3;
  --blue: #265c76;
  --frame: min(100% - 112px, 1312px);
  font-family: "IIS Sans", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--dark);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.037em; text-wrap: balance; }
p, dd { line-height: 1.56; }
section[id] { scroll-margin-block-start: 2rem; }
::selection { color: #0e2920; background: #acebcd; }
:focus-visible { outline: 2px solid #4986b0; outline-offset: 5px; }
.masthead :focus-visible, .opening :focus-visible, .contact-section :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }
.frame { width: var(--frame); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 4;
  inset: .7rem auto auto .7rem;
  padding: .6rem 1rem;
  border-radius: .25rem;
  color: var(--ink);
  background: var(--mint);
  transform: translateY(calc(-100% - 2rem));
}
.skip:focus { transform: none; }

.masthead, .opening, .site-footer { color: var(--white); background: var(--dark); }
.site-header { min-height: 88px; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid #3e554c; }
.brand { display: inline-flex; align-items: center; width: clamp(148px, 14.5vw, 212px); flex-shrink: 0; }
.brand img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.site-header nav { margin-left: auto; display: flex; gap: clamp(1.2rem, 3vw, 3rem); color: #cfe0d8; }
.site-header nav a, .footer-layout a { text-decoration: none; }
.site-header nav a:hover, .footer-layout a:hover, .phone:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: .68rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  border-radius: .38rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-outline { color: var(--white); border: 1px solid #687c73; }
.button-outline:hover { background: #294239; border-color: #9cb7a9; }
.button-primary { color: #132821; background: var(--mint); border: 1px solid var(--mint); }
.button-primary:hover { background: #cdf6df; border-color: #cdf6df; }

.hero {
  position: relative;
  min-height: 602px;
  padding-block: 4.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: 1.7rem;
}
.hero-copy { position: relative; z-index: 1; padding-block-end: 1.35rem; }
.hero h1 { font-size: clamp(3.35rem, 5.2vw, 5.55rem); line-height: .99; text-wrap: initial; }
.hero h1 span { color: var(--mint); display: block; font-size: .83em; margin-top: .13em; }
.hero-copy p { margin-block: 1.65rem 2rem; max-width: 41ch; color: #d3e2da; font-size: clamp(1.04rem, 1.45vw, 1.17rem); }
.hero-media {
  min-width: 0;
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 0 7% 3%;
  background: #1c362d;
  border-radius: .7rem;
}
.hero-media img { width: 100%; height: auto; object-fit: contain; }
.hero-media figcaption { align-self: flex-end; color: #b7cfc2; margin: .55rem 1rem 0 0; font-size: .86rem; }
.chapter-nav {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #3e554c;
}
.chapter-nav a {
  display: grid;
  grid-template-columns: .55rem minmax(0, 1fr);
  column-gap: .85rem;
  align-content: center;
  padding: 1rem 1rem 1rem 0;
  text-decoration: none;
}
.chapter-nav a + a { padding-inline-start: 1.85rem; border-inline-start: 1px solid #3e554c; }
.chapter-nav strong { font-weight: 600; font-size: 1.04rem; }
.chapter-nav a:hover strong { text-decoration: underline; }
.chapter-nav a > span:last-child { grid-column: 2; color: #b7cfc2; font-size: .91rem; }
.chapter-indicator { display: block; inline-size: .53rem; block-size: .53rem; margin-block-start: .49rem; border-radius: 2px; }
.chapter-indicator.software { background: var(--mint); }
.chapter-indicator.engineering { background: #a7d6ef; }

.content { background: #f5f8f6; }
.takt-section { padding-block: clamp(4.5rem, 7.3vw, 8rem); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .77fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.2rem, 4vw, 4rem);
}
.section-intro h2 { font-size: clamp(3.8rem, 6.7vw, 6rem); color: #1e654b; line-height: .92; text-wrap: initial; }
.section-intro .section-heading {
  margin-block-start: .78rem;
  font-size: clamp(1.45rem, 2.45vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.06;
}
.section-intro > p { max-width: 52ch; color: var(--ink-soft); font-size: clamp(1.04rem, 1.45vw, 1.2rem); }
.takt-demo {
  display: grid;
  grid-template-columns: minmax(200px, .285fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: .72rem;
  background: #e2eee7;
}
.demo-menu { display: flex; flex-direction: column; min-width: 0; padding: 1.55rem 1.2rem; background: #e9f1eb; border-right: 1px solid var(--line); }
.demo-title { font-size: .92rem; color: #415951; margin: .4rem .62rem 1.12rem; }
.demo-tabs { display: flex; flex-direction: column; gap: .22rem; }
.demo-tabs a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: .52rem .64rem;
  color: #354d43;
  border-radius: .38rem;
  text-decoration: none;
  font-weight: 550;
}
.demo-tabs a:hover, .demo-tabs a[aria-selected="true"] { background: #ccdfd2; color: #12392a; }
.demo-tabs a[aria-selected="true"] { font-weight: 650; }
.demo-detail { max-width: 35ch; margin: 1.6rem .62rem .4rem; color: #39544a; font-size: 1rem; }
.demo-screen { margin: 0; min-width: 0; padding: clamp(1rem, 2.7vw, 2.2rem); }
.demo-screen:focus-visible { outline-offset: -5px; }
.demo-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 916;
  border-radius: .52rem;
  box-shadow: 0 11px 20px -14px #2b4237a3;
  background: white;
}
.demo-screen figcaption { margin-top: .7rem; color: #415951; font-size: .86rem; }
.takt-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.takt-notes > div { padding: .95rem 1.28rem .4rem 0; border-top: 1px solid var(--line); }
.takt-notes > div + div { border-left: 1px solid var(--line); padding-left: 1.28rem; }
.takt-notes h3 { font-weight: 620; font-size: 1.13rem; line-height: 1.2; margin-bottom: .35rem; }
.takt-notes p { color: var(--ink-soft); }

.engineering-section { background: var(--engineering); border-top: 1px solid #d3dfe4; }
.engineering-layout {
  padding-block: clamp(4.5rem, 7.3vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.engineering-copy h2, .contact-layout h2 {
  font-size: clamp(2.5rem, 4.25vw, 4rem);
  line-height: 1.02;
  text-wrap: initial;
}
.engineering-copy > p { color: #385566; margin-block: 1.25rem 1.9rem; font-size: 1.12rem; max-width: 50ch; }
.engineering-list > div { padding-block: .9rem; border-top: 1px solid #b5c8d2; }
.engineering-list > div:last-child { border-bottom: 1px solid #b5c8d2; }
.engineering-list dt { color: #204c65; font-size: 1.12rem; font-weight: 640; }
.engineering-list dd { color: #385566; line-height: 1.42; margin-top: .18rem; }
.engineering-media {
  min-width: 0;
  padding: clamp(1rem, 2.8vw, 2.45rem);
  color: #3a5666;
  background: #d8e6ec;
  border-radius: .75rem;
}
.engineering-media img { width: 100%; height: auto; object-fit: contain; }
.engineering-media figcaption { margin-top: 1rem; font-size: .86rem; }

.contact-section { background: #1b332a; color: var(--white); }
.contact-layout { padding-block: clamp(3rem, 6.2vw, 6.25rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.contact-layout p { margin-top: .65rem; max-width: 48ch; font-size: 1.12rem; color: #d3e2da; }
.contact-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: .95rem; align-items: center; }
.contact-actions .phone { font-variant-numeric: tabular-nums; text-decoration: none; }
.contact-actions .phone:hover { text-decoration: underline; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; min-height: 114px; gap: 1.5rem; color: #c2d4cb; padding-block: 1.15rem; }
.footer-layout .brand { width: 158px; }
.footer-layout > span { font-size: .87rem; text-align: right; }

@media (max-width: 1100px) {
  :root { --frame: min(100% - 72px, 1312px); }
  .hero { min-height: 510px; }
  .hero h1 { font-size: clamp(2.85rem, 5.1vw, 4.2rem); }
  .hero-media::before { inset-block: 11% 13%; }
}
@media (max-width: 780px) {
  :root { --frame: calc(100% - 46px); }
  .site-header { min-height: 70px; gap: 1.2rem; }
  .site-header nav { gap: .85rem; font-size: .92rem; }
  .header-contact { min-height: 42px; padding-inline: .62rem; font-size: .9rem; }
  .hero { min-height: unset; padding-block: 2.8rem 1.5rem; grid-template-columns: 1fr; gap: .75rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.6rem, 7.6vw, 4.2rem); max-width: 15ch; }
  .hero h1 span { font-size: 1em; margin-top: 0; }
  .hero-copy p { margin-block: 1.2rem 1.4rem; }
  .hero-media { max-width: 630px; }
  .hero-media::before { inset-block: 7% 10%; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.55rem; }
  .takt-demo { grid-template-columns: 1fr; }
  .demo-menu { border-right: 0; padding: .8rem 1rem .75rem; border-bottom: 1px solid var(--line); }
  .demo-title { margin: .15rem 0 .45rem; }
  .demo-tabs { flex-direction: row; flex-wrap: wrap; }
  .demo-detail { margin: .6rem 0 0; max-width: 62ch; }
  .takt-notes { grid-template-columns: 1fr; }
  .takt-notes > div, .takt-notes > div + div { padding: .82rem 0; border-left: 0; }
  .engineering-layout { grid-template-columns: 1fr; }
  .engineering-media { max-width: 640px; }
  .footer-layout { flex-wrap: wrap; }
  .footer-layout > span { text-align: left; }
}
@media (max-width: 480px) {
  :root { --frame: calc(100% - 38px); }
  .site-header { flex-wrap: wrap; gap: 0; min-height: auto; padding-top: .8rem; }
  .site-header .brand { width: 151px; }
  .site-header nav { order: 3; width: 100%; min-height: 46px; gap: 1.1rem; align-items: center; margin-left: 0; }
  .header-contact { margin-left: auto; }
  .hero-media figcaption { margin-right: .25rem; }
  .chapter-nav { min-height: 94px; }
  .chapter-nav a { column-gap: .47rem; }
  .chapter-nav a + a { padding-inline-start: .62rem; padding-inline-end: 0; }
  .chapter-nav strong { font-size: .94rem; line-height: 1.2; margin: .15rem 0 .25rem; }
  .chapter-nav a > span:last-child { font-size: .82rem; line-height: 1.25; }
  .demo-tabs a { min-height: 2.75rem; padding-inline: .43rem; font-size: .9rem; }
  .demo-screen { padding: .75rem; }
  .contact-layout { flex-direction: column; align-items: flex-start; }
  .contact-actions { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
