:root {
  --color-white: #ffffff;
  --color-surface: #f8fbff;
  --color-surface-strong: #eef6ff;
  --color-text: #132033;
  --color-muted: #5c6b7c;
  --color-line: #d9e7f5;
  --color-primary: #1167a8;
  --color-primary-strong: #0b4f82;
  --color-accent: #1bbdd1;
  --color-accent-soft: #dff9fc;
  --color-silver: #c9d6e2;
  --color-copper: #c79b62;
  --shadow-soft: 0 18px 50px rgba(24, 78, 125, 0.12);
  --shadow-card: 0 14px 36px rgba(29, 73, 109, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --space-page: clamp(1rem, 4vw, 4rem);
  --section-gap: clamp(4rem, 8vw, 7rem);
  --max-width: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(238, 246, 255, 0.82) 0, rgba(255, 255, 255, 0) 520px),
    var(--color-white);
}

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--space-page);
  border-bottom: 1px solid rgba(217, 231, 245, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(26, 69, 110, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(27, 189, 209, 0.45);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.8) 48% 52%, transparent 53%),
    linear-gradient(180deg, transparent 47%, rgba(255, 255, 255, 0.8) 48% 52%, transparent 53%),
    linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 12px 28px rgba(17, 103, 168, 0.2);
}

.brand-mark::after {
  content: "HFS";
  color: var(--color-white);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary);
}

.nav-cta {
  padding: 0.72rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(33, 87, 134, 0.08);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.12rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--color-text);
}

.section-shell {
  width: min(var(--max-width), calc(100% - (var(--space-page) * 2)));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - var(--header-height));
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero::before {
  position: absolute;
  inset: 8% auto auto -10%;
  width: 40%;
  height: 40%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 189, 209, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  letter-spacing: 0;
}

p {
  color: var(--color-muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 2rem;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.92rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), #159fbd);
  box-shadow: 0 16px 34px rgba(17, 103, 168, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 44px rgba(17, 103, 168, 0.3);
}

.button-secondary {
  color: var(--color-primary-strong);
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(22, 71, 113, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(191, 216, 235, 0.86);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(237, 248, 253, 0.48)),
    radial-gradient(circle at 78% 18%, rgba(27, 189, 209, 0.22), transparent 30%),
    radial-gradient(circle at 18% 76%, rgba(17, 103, 168, 0.12), transparent 34%),
    linear-gradient(145deg, #ffffff, #edf7fc 56%, #f9fcff);
  box-shadow: 0 26px 70px rgba(35, 86, 126, 0.14);
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: 1px;
  z-index: 2;
  content: "";
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72) 0 18%, transparent 18% 52%, rgba(255, 255, 255, 0.3) 52% 58%, transparent 58%),
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.72), transparent 34%);
  pointer-events: none;
}

.blueprint-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(rgba(17, 103, 168, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 103, 168, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(27, 189, 209, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 189, 209, 0.075) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(218, 239, 249, 0.26));
  background-size: 52px 52px, 52px 52px, 13px 13px, 13px 13px, auto;
}

.blueprint-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0 21%, transparent 21% 100%),
    repeating-linear-gradient(58deg, transparent 0 46px, rgba(201, 214, 226, 0.18) 46px 47px, transparent 47px 94px),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5));
}

.chip,
.node,
.trace,
.arch-line,
.glass-panel,
.hfs-monogram,
.copper-trace,
.wireframe {
  position: absolute;
  z-index: 1;
  display: block;
}

.glass-panel {
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(232, 247, 252, 0.26)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
  box-shadow: 0 28px 70px rgba(52, 93, 126, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.glass-a {
  top: 13%;
  right: 9%;
  width: 42%;
  height: 29%;
  transform: skewY(-5deg);
}

.glass-b {
  left: 9%;
  bottom: 12%;
  width: 44%;
  height: 25%;
  transform: skewY(6deg);
}

.hfs-monogram {
  z-index: 3;
  right: 13%;
  top: 17%;
  color: rgba(11, 79, 130, 0.14);
  font-size: clamp(4rem, 9vw, 7.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.chip {
  z-index: 4;
  border: 1px solid rgba(17, 103, 168, 0.28);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(199, 155, 98, 0.18) 13px 14px, transparent 14px 22px),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(27, 189, 209, 0.12) 15px 16px, transparent 16px 25px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 250, 0.9));
  box-shadow: 0 24px 54px rgba(25, 72, 111, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.chip::before,
.chip::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(27, 189, 209, 0.36);
  border-radius: 6px;
}

.chip::before {
  inset: 18%;
}

.chip::after {
  inset: 34%;
  background: rgba(255, 255, 255, 0.58);
}

.chip-main {
  top: 29%;
  left: 23%;
  width: 47%;
  aspect-ratio: 1;
  transform: rotate(-8deg);
}

.chip-small {
  right: 8%;
  bottom: 13%;
  width: 24%;
  aspect-ratio: 1.18;
  transform: rotate(8deg);
}

.node {
  width: 13px;
  height: 13px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(27, 189, 209, 0.12);
}

.node-a {
  top: 18%;
  left: 14%;
}

.node-b {
  top: 21%;
  right: 14%;
}

.node-c {
  bottom: 22%;
  left: 16%;
}

.node-d {
  right: 22%;
  bottom: 34%;
}

.trace {
  z-index: 3;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(17, 103, 168, 0.62), rgba(27, 189, 209, 0.7));
  box-shadow: 0 0 12px rgba(27, 189, 209, 0.12);
}

.trace-a {
  top: 19%;
  left: 16%;
  width: 52%;
  transform: rotate(2deg);
}

.trace-b {
  top: 34%;
  left: 52%;
  width: 31%;
  transform: rotate(42deg);
}

.trace-c {
  bottom: 24%;
  left: 18%;
  width: 44%;
  transform: rotate(-18deg);
}

.trace-d {
  right: 21%;
  bottom: 35%;
  width: 20%;
  transform: rotate(90deg);
}

.copper-trace {
  z-index: 3;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(199, 155, 98, 0.86), rgba(199, 155, 98, 0.28));
}

.copper-trace::after {
  position: absolute;
  right: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid rgba(199, 155, 98, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.copper-a {
  top: 27%;
  left: 9%;
  width: 32%;
  transform: rotate(28deg);
}

.copper-b {
  top: 62%;
  left: 50%;
  width: 38%;
  transform: rotate(-34deg);
}

.copper-c {
  bottom: 18%;
  left: 26%;
  width: 47%;
  transform: rotate(8deg);
}

.arch-line {
  border: 1px solid rgba(17, 103, 168, 0.22);
  border-radius: 999px;
}

.arch-a {
  right: -12%;
  top: 8%;
  width: 44%;
  aspect-ratio: 1;
}

.arch-b {
  left: -10%;
  bottom: -8%;
  width: 48%;
  aspect-ratio: 1;
}

.arch-c {
  right: 18%;
  top: 16%;
  width: 30%;
  aspect-ratio: 1;
  border-style: dashed;
}

.wireframe {
  z-index: 2;
  border: 1px solid rgba(116, 150, 176, 0.28);
  transform: rotate(-12deg) skewX(-10deg);
}

.wireframe::before,
.wireframe::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(116, 150, 176, 0.2);
}

.wireframe::before {
  inset: 16%;
}

.wireframe::after {
  inset: 31%;
}

.wire-a {
  left: 12%;
  top: 12%;
  width: 24%;
  height: 20%;
}

.wire-b {
  right: 12%;
  bottom: 21%;
  width: 24%;
  height: 18%;
  transform: rotate(15deg) skewX(12deg);
}

.services,
.process,
.capabilities,
.portfolio,
.contact {
  padding: var(--section-gap) 0 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.card-grid {
  display: grid;
  gap: 1.15rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.project-card:hover {
  border-color: rgba(27, 189, 209, 0.42);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.service-card {
  padding: 1.35rem;
}

.service-card p,
.project-card p {
  margin-bottom: 0;
}

.icon-frame {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(27, 189, 209, 0.28);
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.icon-frame svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: var(--shadow-soft);
}

.process-rail article {
  position: relative;
  min-height: 260px;
  padding: 1.5rem;
  border-right: 1px solid var(--color-line);
}

.process-rail article:last-child {
  border-right: 0;
}

.process-rail article::after {
  position: absolute;
  right: -0.5rem;
  top: 2rem;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  content: "";
  border-top: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  background: var(--color-white);
  transform: rotate(45deg);
}

.process-rail article:last-child::after {
  display: none;
}

.process-rail span {
  display: inline-flex;
  margin-bottom: 5rem;
  color: rgba(17, 103, 168, 0.45);
  font-size: 0.8rem;
  font-weight: 800;
}

.process-rail h3 {
  margin-bottom: 0.5rem;
}

.process-rail p {
  font-size: 0.94rem;
}

.capabilities {
  width: 100%;
  max-width: none;
  padding-right: var(--space-page);
  padding-left: var(--space-page);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0) 0, rgba(248, 251, 255, 0.95) 12% 88%, rgba(248, 251, 255, 0) 100%);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 249, 252, 0.64)),
    linear-gradient(rgba(17, 103, 168, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 103, 168, 0.06) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow: var(--shadow-soft);
}

.capability-layers {
  display: grid;
  gap: 1rem;
}

.capability-layer {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(17, 103, 168, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(26, 83, 129, 0.07);
}

.capability-layer::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.capability-layer h3 {
  margin-bottom: 0.35rem;
}

.capability-layer p {
  margin-bottom: 0.9rem;
  font-size: 0.94rem;
}

.software-stack {
  display: grid;
  gap: 0.85rem;
}

.software-platform {
  padding: 0.85rem;
  border: 1px solid rgba(17, 103, 168, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(248, 251, 255, 0.72);
}

.software-platform h4 {
  margin: 0 0 0.55rem;
  color: var(--color-primary-strong);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(17, 103, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-primary-strong);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(26, 83, 129, 0.07);
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-card > div:last-child {
  padding: 1.25rem;
}

.project-visual {
  position: relative;
  min-height: 210px;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(rgba(17, 103, 168, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 103, 168, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff, #e6f7fb);
  background-size: 24px 24px, 24px 24px, auto;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  content: "";
}

.project-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: contain;
  padding: 1rem;
}

.module-image {
  display: grid;
  place-items: center;
}

.module-image::before,
.module-image::after {
  display: none;
}

.industrial::before {
  left: 18%;
  top: 28%;
  width: 64%;
  height: 42%;
  border: 1px solid rgba(17, 103, 168, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(17, 103, 168, 0.13);
}

.industrial::after {
  left: 25%;
  right: 25%;
  top: 48%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.gateway::before {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(17, 103, 168, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 22px rgba(27, 189, 209, 0.1), 0 0 0 48px rgba(17, 103, 168, 0.07);
  transform: translate(-50%, -50%);
}

.gateway::after {
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

.module::before {
  left: 22%;
  top: 24%;
  width: 56%;
  height: 52%;
  border: 1px solid rgba(17, 103, 168, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 28%, var(--color-accent) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 68%, var(--color-accent) 0 5px, transparent 6px),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(17, 103, 168, 0.12) 16px 18px),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(17, 103, 168, 0.13);
}

.module::after {
  left: 34%;
  top: 40%;
  width: 32%;
  height: 22%;
  border: 1px solid rgba(17, 103, 168, 0.28);
  border-radius: 7px;
  background: rgba(238, 246, 255, 0.92);
}

.project-type {
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact {
  padding-bottom: var(--section-gap);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(27, 189, 209, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(231, 249, 252, 0.72)),
    radial-gradient(circle at 88% 18%, rgba(27, 189, 209, 0.16), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.contact-panel h2 {
  max-width: 840px;
}

.contact-panel p {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  padding: 1.6rem var(--space-page);
  border-top: 1px solid var(--color-line);
  text-align: center;
  background: var(--color-surface);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .capability-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

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

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

  .process-rail {
    grid-template-columns: 1fr;
  }

  .process-rail article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .process-rail article:last-child {
    border-bottom: 0;
  }

  .process-rail article::after {
    display: none;
  }

  .process-rail span {
    margin-bottom: 1.25rem;
  }

  .contact-panel .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .brand span:last-child {
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    z-index: 25;
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) var(--space-page) auto;
    z-index: 21;
    display: grid;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--color-surface);
  }

  .nav-cta {
    border-radius: var(--radius-sm);
    box-shadow: none;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.25rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.75rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 340px;
    border-radius: 18px;
  }

  .chip-main {
    left: 20%;
    width: 54%;
  }

  .capabilities {
    padding-right: var(--space-page);
    padding-left: var(--space-page);
  }

  .capability-layout {
    padding: 1.4rem;
    border-radius: 18px;
  }

  .project-visual {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
