:root {
  color-scheme: light;
  --kk-blue: #0b6fb6;
  --kk-blue-dark: #075a96;
  --kk-blue-soft: #dbeaf6;
  --kk-blue-rgb: 11, 111, 182;
  --kk-gray: #b5b8bb;
  --kk-gray-dark: #5f6871;
  --kk-gray-rgb: 181, 184, 187;
  --kk-success: #148b72;
  --kk-surface: #f6f8fa;
  --kk-text: #121a24;

  --ink: var(--kk-text);
  --ink-soft: #43515f;
  --muted: var(--kk-gray-dark);
  --paper: #ffffff;
  --surface: var(--kk-surface);
  --surface-strong: #e8f1f8;
  --line: #d6e0ea;
  --brand: var(--kk-blue);
  --brand-strong: var(--kk-blue-dark);
  --accent: var(--kk-gray);
  --accent-soft: #eef2f5;
  --success: var(--kk-success);
  --panel-dark: #111923;
  --blue: #4c91c7;
  --shadow: 0 24px 70px rgba(18, 26, 36, 0.12);
  --radius: 8px;
  --content: min(1160px, calc(100vw - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(246, 248, 250, 0.96), var(--surface)),
    radial-gradient(circle at 15% 0%, rgba(var(--kk-blue-rgb), 0.11), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(var(--kk-gray-rgb), 0.2), transparent 30%);
  color: var(--ink);
}

body.is-menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: var(--content);
  min-height: 74px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  position: fixed;
  inset: 0 0 auto 0;
  height: 74px;
  content: "";
  background: rgba(246, 248, 250, 0.88);
  border-bottom: 1px solid rgba(214, 224, 234, 0.86);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 250px;
}

.brand-logo {
  width: min(300px, 28vw);
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.mobile-language-toggle {
  display: none;
}

.lang-button,
.menu-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-button {
  width: 38px;
  height: 30px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.lang-button.is-active {
  background: var(--brand);
  color: #ffffff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  align-items: center;
  min-height: min(820px, calc(100vh - 76px));
  gap: 56px;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1,
.hero-copy p {
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 680px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
  box-shadow: 0 16px 28px rgba(var(--kk-blue-rgb), 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button:focus-visible,
.lang-button:focus-visible,
.menu-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.button-secondary {
  background: transparent;
  color: var(--brand);
}

.button-secondary:hover {
  color: #ffffff;
}

.button-small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 40px 0 0;
}

.signal-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.signal-row dt {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.signal-row dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.system-window,
.preview-card,
.case-card,
.service-grid article,
.timeline article,
.contact-panel,
.intro-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.window-main {
  position: absolute;
  top: 34px;
  right: 0;
  width: min(100%, 520px);
  min-height: 350px;
  overflow: hidden;
  background: var(--panel-dark);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kk-gray);
}

.window-bar span:nth-child(2) {
  background: #7ca8cb;
}

.window-bar span:nth-child(3) {
  background: var(--brand);
}

.window-bar strong {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.system-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 50px 36px;
}

.system-map::before {
  position: absolute;
  inset: 38px 54px 46px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%);
}

.map-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.primary-node {
  background: var(--brand);
  color: #ffffff;
}

.preview-card {
  position: absolute;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.preview-card:hover,
.preview-card:focus-visible {
  z-index: 20;
  border-color: rgba(var(--kk-blue-rgb), 0.38);
  box-shadow: 0 24px 60px rgba(18, 26, 36, 0.18);
  transform: translateY(-10px) scale(1.02);
}

.preview-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.preview-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
}

.preview-caption {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.preview-one {
  left: 0;
  bottom: 56px;
  z-index: 2;
  width: 280px;
}

.preview-two {
  right: 0;
  bottom: 96px;
  z-index: 5;
  width: 300px;
}

.preview-three {
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 280px;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  padding: 42px;
}

.intro-band h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.intro-band p:last-child {
  margin: 0;
  font-size: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 22px;
  font-size: 17px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  min-height: 100%;
  overflow: hidden;
}

.case-card-reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.72fr);
}

.case-card-reverse .case-copy {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.case-card-reverse .case-media-grid {
  order: 1;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: rgba(234, 242, 255, 0.54);
}

.case-card-reverse .case-media-grid {
  background:
    linear-gradient(135deg, rgba(var(--kk-gray-rgb), 0.2), rgba(var(--kk-blue-rgb), 0.11)),
    rgba(255, 255, 255, 0.66);
}

.case-media-single {
  grid-template-columns: 1fr;
}

.case-shot {
  display: block;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.case-shot-wide {
  grid-column: span 2;
}

.case-shot-full {
  grid-column: 1 / -1;
}

.case-media-single .case-shot {
  min-height: 300px;
}

.case-shot img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  transition: transform 500ms ease;
}

.case-shot-contain {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.case-shot-contain img {
  width: 100%;
  object-fit: contain;
}

.case-media-single .case-shot img {
  height: 300px;
}

.case-card:hover .case-shot img {
  transform: scale(1.025);
}

.case-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.case-copy p {
  margin-bottom: 18px;
}

.case-copy a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.visual-card {
  background: #ffffff;
}

.document-visual {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(135deg, var(--surface-strong), var(--accent-soft));
}

.doc-page {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.doc-page span {
  display: block;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #c4d8e8;
}

.doc-page span:nth-child(1) {
  width: 78%;
}

.doc-page span:nth-child(2) {
  width: 56%;
}

.doc-page span:nth-child(3) {
  width: 88%;
}

.table-lines {
  height: 72px;
  margin-top: 22px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 18px, 34% 100%;
}

.extract-panel {
  align-self: center;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel-dark);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
}

.extract-panel span,
.extract-panel strong {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article {
  min-height: 250px;
  padding: 26px;
}

.service-index {
  display: block;
  margin-bottom: 46px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline article {
  padding: 26px;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.contact {
  padding-bottom: 70px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 46px;
  align-items: start;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(17, 25, 35, 0.98), rgba(var(--kk-blue-rgb), 0.92)),
    var(--ink);
  color: #ffffff;
}

.contact-panel h2 {
  max-width: 780px;
  margin-bottom: 16px;
  color: #ffffff;
}

.contact-panel p,
.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-details p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.contact-details a {
  color: #ffffff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 14px;
}

.contact-form input,
.contact-form select {
  height: 44px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 126px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.form-actions .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.form-status[data-status="success"] {
  color: #d7f7ee;
}

.form-status[data-status="error"] {
  color: #ffe0e0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px 20px 24px;
    background: rgba(246, 248, 250, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .menu-button {
    display: inline-block;
  }

  .header-actions .button-small {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .intro-band,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card-reverse {
    grid-template-columns: 1fr;
  }

  .case-card-reverse .case-copy,
  .case-card-reverse .case-media-grid {
    order: initial;
  }

  .case-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-card-reverse .case-copy {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  :root {
    --content: min(1160px, calc(100vw - 28px));
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    width: calc(100vw - 14px);
    min-height: 66px;
  }

  .site-header::before {
    height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(150px, 40vw);
  }

  .language-toggle {
    display: none;
  }

  .lang-button {
    width: 32px;
  }

  .header-actions {
    display: none;
  }

  .menu-button {
    display: none;
  }

  .mobile-language-toggle {
    position: fixed !important;
    top: 16px;
    right: auto !important;
    left: 164px !important;
    z-index: 50;
    display: inline-flex !important;
    width: 72px;
  }

  .site-nav {
    inset: 66px 0 auto;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 36px;
    gap: 30px;
  }

  .hero-copy,
  .hero-visual {
    max-width: calc(100vw - 28px);
  }

  .hero-copy p {
    max-width: 320px;
  }

  h1 {
    max-width: 340px;
    font-size: 33px;
    line-height: 1.06;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede,
  .intro-band p:last-child {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-row,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .case-media-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .case-shot,
  .case-media-single .case-shot {
    min-height: 230px;
  }

  .case-shot img,
  .case-media-single .case-shot img {
    height: 230px;
  }

  .case-shot-wide,
  .case-shot-full {
    grid-column: auto;
  }

  .intro-band,
  .contact-panel {
    padding: 26px;
  }

  .contact-panel {
    gap: 28px;
  }

  .contact-details p,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 445px;
  }

  .window-main {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-height: 280px;
  }

  .system-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 32px 18px;
  }

  .system-map::before {
    inset: 28px 26px 30px;
  }

  .map-node {
    min-height: 66px;
  }

  .preview-card {
    display: none;
  }

  .document-visual {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

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