/* FECOM site refinement: compact identity, clearer rhythm, and faster mobile paths. */
.site-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  min-height: 88px;
  padding-block: 10px;
  gap: clamp(14px, 2vw, 28px);
}

.header-inner .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
}

html[data-color-theme] .header-inner .brand,
html:not([data-theme]) .header-inner .brand {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.header-inner .brand img {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 4px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  clip-path: none;
}

.brand-name {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.057em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  gap: clamp(18px, 2.5vw, 38px);
}

.main-nav a {
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink);
  transition: color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.hero {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 0;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  line-height: 1.06;
  text-wrap: balance;
}

.hero-intro {
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.72;
}

.needs {
  gap: 14px;
  margin-top: 34px;
}

.need-link,
.need-link:first-child {
  min-height: 142px;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 17%, transparent), color-mix(in srgb, var(--ink) 9%, transparent));
}

.need-link:hover,
.need-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #00152c35;
}

.need-link:focus-visible {
  outline: 2px solid #a6d8ff;
  outline-offset: 3px;
}

.service,
.project,
.timeline-story,
.process > div {
  border-radius: 12px;
}

.service {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.service[open] {
  box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 10%, transparent);
}

.section-heading {
  gap: clamp(24px, 5vw, 72px);
}

.section-heading > p,
.about-copy p,
.service-body > p,
.process p {
  line-height: 1.75;
}

.contact-section {
  background-image: linear-gradient(118deg, var(--paint-071526,#071526), var(--paint-082141,#082141) 62%, var(--paint-073462,#073462));
  background-image: radial-gradient(ellipse at 88% 14%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 40%), linear-gradient(118deg, var(--paint-071526,#071526), var(--paint-082141,#082141) 62%, var(--paint-073462,#073462));
}

.contact-email {
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

@media (max-width: 1100px) {
  .header-inner .brand { width: 300px; }
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 78px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    max-width: 15ch;
  }
}

@media (min-width: 601px) and (max-width: 700px) {
  .header-inner .brand { width: 245px; gap: 8px; }
  .brand-name { font-size: 2em; }
  .brand-tagline { font-size: .8rem; }
}

@media (max-width: 700px) {
  .hero-art { display: none; }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 72px;
    padding-block: 8px;
    grid-template-columns: minmax(176px, max-content) minmax(0, 1fr) 44px 44px;
    gap: 6px;
  }

  .header-inner .brand { width: 176px; gap: 5px; }
  .header-inner .brand img { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: .46rem; }

  .hero {
    padding-top: 38px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 9.2vw, 3.15rem);
    line-height: 1.08;
  }

  .hero-intro {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-guidance {
    margin-top: 14px;
    font-size: .92rem;
  }

  .hero-art {
    display: none;
  }

  .needs {
    margin-top: 24px;
    gap: 10px;
    padding-bottom: 10px;
  }

  .need-link,
  .need-link:first-child {
    min-height: 76px;
    padding: 15px 17px;
    border-radius: 10px;
  }

  .need-copy .eyebrow {
    margin-bottom: 4px;
    font-size: .68rem;
  }

  .need-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .need-link .arrow-icon {
    width: 20px;
    flex-basis: 20px;
  }

  .trust-strip {
    margin-top: 18px;
    padding: 20px 0 24px;
  }

  .section {
    padding-block: 56px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    grid-template-columns: minmax(152px, max-content) minmax(0, 1fr) 40px 40px;
    gap: 4px;
  }

  .header-inner .brand { width: 152px; gap: 3px; }
  .header-inner .brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-name { font-size: .78rem; }
  .brand-tagline { font-size: .42rem; }

  .header-inner .theme-picker,
  .header-inner .theme-trigger,
  .header-inner .language-picker,
  .header-inner .language-trigger,
  .header-inner .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .need-link,
  .service {
    transition: none;
  }
}

/* Apply the same hover and keyboard-focus fill to each card in the dark blue theme. */
html[data-theme="blue"] .needs > .need-link:hover,
html[data-theme="blue"] .needs > .need-link:focus-visible {
  background: color-mix(in srgb, var(--brand) 28%, var(--paper));
  border-color: var(--brand);
}

/* Give the first card a later, equally strong rule despite legacy :first-child styling. */
html[data-theme="blue"] .needs > .need-link:first-child:hover,
html[data-theme="blue"] .needs > .need-link:first-child:focus-visible {
  background: color-mix(in srgb, var(--brand) 28%, var(--paper));
  border-color: var(--brand);
}

html:not([data-color-theme]) .need-link:hover,
html:not([data-color-theme]) .need-link:focus-visible {
  background: #eaf4ff;
  border-color: #075ecb;
}
/* Customer websites remain available without opening project details. */
.portfolio-client a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.portfolio-client a:hover { text-decoration-thickness: 2px; }
.portfolio-client a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* Balanced density: more content on screen without shrinking touch targets. */
html { font-size:16px; }
.container { max-width:1920px; }
.header-inner { min-height:72px; padding-block:8px; gap:16px; }
.header-inner .brand { width:270px; }
.header-inner .brand img { width:40px; height:40px; flex-basis:40px; }
.brand-name { font-size:1.6rem; }
.main-nav { gap:clamp(12px,1.8vw,26px); }
.hero { padding-top:40px; }
.hero h1 { font-size:clamp(2.4rem,3.4vw,3.6rem); }
h2 { font-size:clamp(1.8rem,2.6vw,2.65rem); }
.hero-art { height:clamp(280px,25vw,390px); }
.hero-intro { font-size:1rem; line-height:1.65; margin-top:20px; }
.hero-guidance { margin-top:16px; }
.needs { margin-top:24px; gap:12px; }
.need-link,.need-link:first-child { min-height:112px; padding:18px; }
.need-title { font-size:1.08rem; }
.trust-strip { margin-top:22px; padding:20px 0 24px; }
.trust-title { font-size:1.15rem; }
.section,.contact-section { padding-block:48px; }
.section-heading { margin-bottom:28px; gap:32px; }
.section-heading > p,.contact-intro,.service-body p { font-size:1rem; line-height:1.65; }
.about-copy p,.process p { line-height:1.65; }
.service summary { padding-block:22px; font-size:1.35rem; }
.service-body { padding-bottom:28px; }
.timeline-nav { margin-bottom:24px; padding:6px; }
.timeline-nav a { padding:6px 12px; }
.timeline-entry { padding-bottom:28px; }
.portfolio-project summary { padding:18px 20px; }
.portfolio-heading { gap:6px; }
.portfolio-title { font-size:1.08rem; }
.portfolio-body { margin-inline:20px; padding-bottom:20px; line-height:1.65; }
.timeline-milestone,.timeline-story { padding:24px; }
.timeline-milestone p,.timeline-story p { line-height:1.65; }
.process { margin-top:30px; gap:24px; }
.contact-section h2 { font-size:clamp(1.9rem,3vw,3rem); }
.contact-email { font-size:clamp(1.25rem,2.4vw,2.25rem); }
.contact-phone { font-size:1.2rem; }
@media (min-width:1600px) { html { font-size:17px; } }
@media (min-width:701px) and (max-width:1100px) {
 .hero-grid { grid-template-columns:1.15fr 1fr; gap:24px; }
 .hero-art { width:100%; height:280px; margin:0; }
 .hero h1 { font-size:2.5rem; }
 .needs { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .need-link,.need-link:first-child { padding:16px; }
}
@media (max-width:700px) {
 .hero { padding-top:30px; }
 .hero h1 { font-size:clamp(2.1rem,7.8vw,2.75rem); max-width:15ch; }
 .section,.contact-section { padding-block:40px; }
 .need-link,.need-link:first-child { min-height:76px; padding:15px 17px; }
 .portfolio-project summary { padding:16px; }
 .portfolio-body { margin-inline:16px; }
 .timeline-milestone,.timeline-story { padding:20px; }
}
@media (max-width:600px) {
 .header-inner { min-height:64px; grid-template-columns:minmax(0,1fr) 44px 44px 44px; gap:6px; }
 .header-inner .brand { width:auto; gap:5px; }
 .header-inner .brand img { width:32px; height:32px; flex-basis:32px; }
 .brand-name { font-size:1.15rem; }
 .brand-tagline { display:none; }
 .header-inner .theme-picker,.header-inner .theme-trigger,.header-inner .language-picker,.header-inner .language-trigger,.header-inner .menu-toggle { width:44px; height:44px; }
 .header-inner .language-options { right:-100px; max-width:calc(100vw - 32px); }
 .need-title { font-size:1rem; }
}
@media print { html { font-size:12pt; } }

/* Keep the animated code inside its more compact illustration. */
@media (min-width:701px) {
 .code-content { padding:14px 18px; font-size:clamp(9px,.85vw,12px); line-height:1.8; }
 .window-bar { height:30px; }
 .code-footer { margin-top:8px; font-size:8px; }
 .art-label { bottom:20%; font-size:8px; padding:5px 9px; }
 .chip-code,.chip-data { width:64px; height:64px; }
}
@media (min-width:701px) and (max-width:1100px) {
 .code-content { padding:10px; font-size:9px; }
 .code-number { width:17px; }
 .code-content .code-indent { padding-left:10px; }
 .code-footer { font-size:6px; letter-spacing:.04em; }
 .art-label { left:16%; font-size:7px; }
 .binary-ribbon { font-size:8px; height:30px; }
 .chip-code,.chip-data { width:50px; height:50px; }
}
/* Keep both document choices readable on narrow screens. */
.project-downloads { display:flex; flex-direction:column; align-items:flex-start; gap:14px; min-width:0; }
.project-downloads .text-link { flex-wrap:wrap; max-width:100%; }
html[lang="en"] .download-english { display:none; }
