/* ==============================================================
   IT MATTERS — SINGLE SHARED STYLESHEET

   All three language versions use this file. The color palette,
   spacing, and layout can be adjusted below without a build step.
   ============================================================== */

/* 1. THEME / DESIGN TOKENS ------------------------------------ */
:root {
  color-scheme: dark;
  --background: #071e2d;
  --surface: #102f43;
  --surface-border: #2b5f76;
  --text: #f4f8fa;
  --muted-text: #cbd8df;
  --teal: #2dd2c7;
  --teal-dark: #0db9aa;
  --lavender: #c69edb;
  --mint: #8ed9b5;
  --content-width: 1120px;
  --radius: 21px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

/* 2. RESET / ACCESSIBILITY ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
::selection { background: var(--teal); color: var(--background); }
[id] { scroll-margin-top: 32px; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 20; top: -100px; left: 24px;
  padding: 12px 16px; background: var(--teal); color: var(--background);
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 3. HEADER / NAVIGATION ------------------------------------ */
.site-header { position: relative; z-index: 3; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-block: 28px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 18px; min-width: 0; text-decoration: none; }
.brand-icon { flex: none; width: 57px; height: 48px; color: var(--teal); }
.brand-copy {
  display: flex; flex-direction: column; gap: 4px;
  border-left: 2px solid var(--teal); padding-left: 17px;
}
.brand-name { color: #fff; font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: .045em; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--teal); }
.brand-tagline { color: #d7e1e7; font-size: .64rem; letter-spacing: .065em; text-transform: uppercase; font-weight: 600; }
.header-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 24px;
  padding: 9px 13px; border-radius: 12px;
  background: rgba(7,30,45,.72); backdrop-filter: blur(5px);
}
.primary-nav, .language-nav { display: flex; align-items: center; }
.primary-nav { gap: clamp(10px, 1.6vw, 24px); }
.primary-nav a { text-decoration: none; font-size: .88rem; font-weight: 600; color: #e2edf0; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--teal); }
.language-nav { gap: 4px; padding-left: 17px; border-left: 1px solid #335568; }
.language-nav a {
  padding: 6px 7px; border-radius: 6px; text-decoration: none;
  color: #a4b9c4; font-size: .79rem; font-weight: 800;
}
.language-nav a:hover { color: #fff; }
.language-nav a[aria-current="page"] { color: var(--background); background: var(--teal); }

/* 4. HERO / INTRODUCTION ------------------------------------ */
.hero { position: relative; isolation: isolate; min-height: 410px; }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: -110px 0 -48px;
  background-image: url("assets/hero-landscape.webp");
  background-position: center top; background-repeat: no-repeat; background-size: cover;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: -110px 0 -49px;
  background: linear-gradient(90deg, #071e2d 0%, rgba(7,30,45,.93) 26%, rgba(7,30,45,.34) 62%, rgba(7,30,45,.05) 100%),
              linear-gradient(0deg, #071e2d 0%, transparent 45%);
}
.hero-inner { padding-top: clamp(78px, 9vw, 120px); padding-bottom: 84px; }
.hero-copy { max-width: 720px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 690px; font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--teal); }
.accent-rule { width: 100px; height: 4px; background: var(--teal); border-radius: 10px; margin-bottom: 22px; }
.hero p { max-width: 710px; margin-bottom: 12px; font-size: 1.04rem; line-height: 1.58; color: var(--muted-text); }

/* 5. SHARED PANELS / SECTION SPACING ------------------------- */
.main-sections { position: relative; z-index: 2; display: grid; gap: 30px; padding-bottom: 0; }
.panel { background: rgba(16,47,67,.96); border: 1px solid var(--surface-border); border-radius: var(--radius); }
section h2 { font-size: clamp(1.5rem, 2.2vw, 1.92rem); line-height: 1.2; letter-spacing: -.018em; }
section p { line-height: 1.55; }

/* 6. AI TRANSFORMATION -------------------------------------- */
.ai-section { padding: clamp(26px, 4.5vw, 46px); border-color: #18b6ad; box-shadow: inset 0 0 0 1px rgba(23,180,171,.16); }
.ai-section .eyebrow { margin-bottom: 2px; color: var(--teal); font-size: .85rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.ai-section h2 { margin-bottom: 25px; }
.ai-section p:not(.eyebrow, .ai-closing) { max-width: 1000px; color: var(--muted-text); margin-bottom: 16px; }
.ai-section .ai-closing { margin: 24px 0 0; padding-top: 17px; border-top: 1px solid #35657a; color: var(--teal); font-size: 1.13rem; font-weight: 800; }

/* 7. SERVICE CARDS ------------------------------------------ */
.services-section > h2 { margin: 8px 0 20px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { min-width: 0; min-height: 260px; padding: 29px 26px; border: 1px solid var(--surface-border); border-radius: var(--radius); background: var(--surface); }
.service-card::before { content: ""; display: block; width: 52px; height: 4px; margin-bottom: 19px; border-radius: 6px; background: var(--card-accent); }
.service-card h3 { max-width: 250px; margin-bottom: 20px; color: var(--card-accent); font-size: 1.25rem; line-height: 1.22; }
.service-card p { margin: 0; color: var(--muted-text); font-size: .99rem; }
.service-card--engineering { --card-accent: var(--teal); }
.service-card--leadership { --card-accent: var(--lavender); }
.service-card--career { --card-accent: var(--mint); }

/* 8. ABOUT / PORTRAIT --------------------------------------- */
.about-section { display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: center; gap: 30px; padding: 30px; }
.portrait-frame { width: 168px; aspect-ratio: 1; border: 3px solid var(--teal); border-radius: 50%; padding: 4px; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-copy { padding-left: 27px; border-left: 2px solid #1f9b9a; }
.about-copy h2 { margin: 0 0 3px; }
.about-copy .person-name { margin: 0 0 15px; color: var(--teal); font-weight: 800; font-size: 1.03rem; }
.about-copy p:not(.person-name) { color: var(--muted-text); margin: 0 0 10px; }
.about-copy p:last-child { margin-bottom: 0; }

/* 9. COLLABORATION / CONTACT -------------------------------- */
.bottom-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.collaboration-section, .contact-section { padding: clamp(25px, 3vw, 34px); min-width: 0; }
.collaboration-section h2, .contact-section h2 { margin-bottom: 17px; }
.collaboration-section p { color: var(--muted-text); margin: 0 0 15px; }
.collaboration-section .collaboration-highlight { margin: 0; color: var(--teal); font-weight: 800; }
.contact-section { display: flex; flex-direction: column; background: var(--teal-dark); color: #082331; border-radius: var(--radius); }
.contact-section p { color: #0d3440; margin-bottom: 20px; }
.contact-details { display: flex; flex-direction: column; margin-top: auto; padding: 16px 20px; border-radius: 12px; background: #082b3d; color: #fff; font-style: normal; font-size: 1.05rem; font-weight: 750; overflow-wrap: anywhere; }
.contact-details a { display: inline-block; text-decoration: none; width: fit-content; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 10. FOOTER ------------------------------------------------ */
.site-footer { padding: 23px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; color: #7e99a9; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.footer-inner a { text-decoration: none; color: inherit; }
.footer-inner a:hover { color: var(--teal); }

/* 11. TABLET / PHONE ---------------------------------------- */
@media (max-width: 950px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: space-between; }
  .hero-inner { padding-top: 85px; }
  .hero::after { background: linear-gradient(90deg, #071e2d 0%, rgba(7,30,45,.85) 43%, rgba(7,30,45,.26) 100%), linear-gradient(0deg, #071e2d 0%, transparent 50%); }
  .service-card { padding: 25px 20px; }
}
@media (max-width: 720px) {
  .container { width: min(var(--content-width), calc(100% - 32px)); }
  .header-inner { padding-top: 22px; gap: 18px; }
  .brand-icon { width: 43px; height: 36px; }
  .brand { gap: 12px; }
  .brand-copy { padding-left: 12px; }
  .brand-name { font-size: 1.36rem; }
  .brand-tagline { max-width: 240px; font-size: .56rem; line-height: 1.3; }
  .header-actions { gap: 12px; }
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: .78rem; }
  .language-nav { padding-left: 10px; }
  .language-nav a { font-size: .72rem; padding: 5px; }
  .hero { min-height: 0; }
  .hero::before, .hero::after { inset: -160px 0 -30px; }
  .hero::before { background-size: auto 520px; background-position: 59% top; }
  .hero::after { background: linear-gradient(0deg, #071e2d 0%, rgba(7,30,45,.93) 39%, rgba(7,30,45,.53) 78%, rgba(7,30,45,.52) 100%); }
  .hero-inner { padding-top: 98px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(2.05rem, 7.3vw, 3rem); }
  .hero p { font-size: .97rem; }
  .main-sections { gap: 25px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { min-height: 0; padding: 23px; }
  .service-card h3 { max-width: none; margin-bottom: 12px; }
  .service-card::before { margin-bottom: 15px; }
  .about-section { grid-template-columns: 1fr; justify-items: start; gap: 22px; padding: 26px; }
  .portrait-frame { width: 146px; }
  .about-copy { border-left: none; padding-left: 0; }
  .bottom-grid { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 400px) {
  .header-actions { align-items: flex-start; }
  .primary-nav { flex-wrap: wrap; gap: 8px 12px; }
  .hero-inner { padding-top: 76px; }
  .ai-section { padding: 23px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
