:root {
  --ink: #0b163f;
  --blue: #1779ba;
  --sky: #d8edf8;
  --copper: #f24d0f;
  --paper: #f7f8f5;
  --white: #ffffff;
  --graphite: #20283a;
  --muted: #687083;
  --line: #d9dde2;
  --display: "Archivo", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { color: var(--white); background: var(--blue); }

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition: background .25s, border-color .25s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.nav { height: 194px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 300px; }
.brand img { width: 100%; height: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--graphite);
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .7rem 1rem; color: var(--white) !important; background: var(--ink); }
.nav-cta span { color: var(--sky); margin-left: .4rem; }
.nav-cta:hover { background: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.nav-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: var(--ink); transition: transform .25s, opacity .25s; }

.hero {
  position: relative;
  min-height: 800px;
  overflow: hidden;
  padding: 230px 0 92px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(11,22,63,.045) 50%, transparent calc(50% + 1px)),
    var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -15vw;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(23,121,186,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(23,121,186,.025), 0 0 0 160px rgba(23,121,186,.018);
}
.hero-grid { position: relative; display: grid; grid-template-columns: .94fr 1.06fr; gap: 4rem; align-items: center; z-index: 1; }
.eyebrow, .section-index, .role, .architecture-head {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.8rem; color: var(--blue); }
.eyebrow span { width: 32px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4rem, 6.3vw, 6.7rem);
  font-stretch: 88%;
  font-weight: 680;
  line-height: .92;
  letter-spacing: -.048em;
}
.hero h1 em { color: var(--copper); font-style: normal; font-weight: 520; }
.hero-lead { max-width: 600px; margin: 2rem 0 0; color: #4d566a; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 52px;
  padding: .85rem 1.1rem .85rem 1.25rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--ease), background .2s;
}
.button span { font-size: 1rem; }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 7px 7px 0 var(--sky); }
.button-primary:hover { background: var(--blue); transform: translate(-2px, -2px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--ink);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link span { color: var(--blue); transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(2px, -2px); }
.hero-proof { display: flex; gap: 1.7rem; margin-top: 3.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-proof p { min-width: 0; margin: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { color: var(--ink); font-family: var(--display); font-size: .96rem; line-height: 1.2; }
.hero-proof span { margin-top: .25rem; color: var(--muted); font-size: .67rem; }

.architecture-view { position: relative; width: min(100%, 590px); min-height: 570px; margin-left: auto; overflow: hidden; border: 1px solid rgba(11,22,63,.17); background: rgba(255,255,255,.62); box-shadow: 18px 18px 0 rgba(216,237,248,.55); }
.architecture-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(23,121,186,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(23,121,186,.09) 1px, transparent 1px); background-size: 32px 32px; }
.architecture-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 63px; padding: 0 1.4rem; color: var(--blue); border-bottom: 1px solid rgba(11,22,63,.14); }
.architecture-head p { margin: 0; }
.architecture-head span { color: var(--muted); font-size: .55rem; }
.architecture-layers { position: relative; padding: 1rem 1.25rem 1.1rem; }
.architecture-layer { position: relative; display: grid; grid-template-columns: 134px 1fr; min-height: 102px; border-bottom: 1px solid rgba(11,22,63,.14); background: rgba(247,248,245,.78); }
.architecture-layer::after { content: ""; position: absolute; top: 50%; left: 124px; width: 20px; height: 1px; background: var(--blue); }
.layer-label { display: flex; flex-direction: column; justify-content: center; padding: .8rem; border-right: 1px solid rgba(11,22,63,.14); }
.layer-label > span { color: var(--blue); font-family: var(--mono); font-size: .52rem; }
.layer-label strong { margin-top: .15rem; color: var(--ink); font-family: var(--display); font-size: 1.05rem; letter-spacing: -.02em; }
.layer-label small { color: var(--muted); font-family: var(--mono); font-size: .48rem; text-transform: uppercase; }
.layer-content { display: flex; align-items: center; gap: .55rem; padding: 1.15rem 1.3rem; }
.layer-content span { position: relative; padding: .55rem .65rem; color: var(--ink); border: 1px solid rgba(23,121,186,.35); background: var(--white); font-family: var(--mono); font-size: .53rem; text-align: center; text-transform: uppercase; }
.business-outcomes span { flex: 1; border-top: 3px solid var(--blue); }
.system-components span { flex: 1; box-shadow: 3px 3px 0 var(--sky); }
.system-components b { color: var(--blue); font-size: .75rem; font-weight: 400; }
.platform-foundation { padding-top: 1.3rem; }
.platform-foundation span { flex: 1; color: var(--white); border-color: var(--ink); background: var(--ink); }
.delivery-track { gap: 0; }
.delivery-track span { min-width: 64px; border-color: rgba(242,77,15,.45); }
.delivery-track i { flex: 1; height: 1px; background: var(--copper); }
.delivery-track b { margin-left: .5rem; color: var(--copper); font-size: 1rem; }
.architecture-spine { position: absolute; z-index: 3; top: 94px; bottom: 75px; left: 24px; width: 2px; background: rgba(23,121,186,.22); }
.architecture-spine::before { content: ""; position: absolute; width: 2px; height: 66px; background: var(--copper); animation: architectureSignal 3.8s var(--ease) infinite; }
.architecture-spine i { position: absolute; left: -4px; width: 10px; height: 10px; border: 2px solid var(--blue); border-radius: 50%; background: var(--paper); }
.architecture-spine i:nth-child(1) { top: 8%; }.architecture-spine i:nth-child(2) { top: 33%; }.architecture-spine i:nth-child(3) { top: 59%; }.architecture-spine i:nth-child(4) { top: 85%; border-color: var(--copper); }
@keyframes architectureSignal { 0% { transform: translateY(-70px); opacity: 0; } 12%,82% { opacity: 1; } 100% { transform: translateY(390px); opacity: 0; } }
.architecture-legend { position: relative; display: flex; gap: 1.2rem; padding: .1rem 1.4rem 1.1rem 3.5rem; color: var(--muted); font-family: var(--mono); font-size: .48rem; text-transform: uppercase; }
.architecture-legend span { display: flex; align-items: center; gap: .4rem; }.architecture-legend i { width: 15px; height: 2px; background: var(--blue); }.architecture-legend span:last-child i { background: var(--copper); }
.hero-ruler { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 1rem; max-width: 1180px; margin: auto; color: var(--muted); font-family: var(--mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-ruler i { flex: 1; height: 18px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 39px); }

.section { padding: 118px 0; }
.section-intro { display: grid; grid-template-columns: 190px 1fr; gap: 2.5rem; margin-bottom: 4.5rem; }
.section-index { margin: .6rem 0 0; color: var(--blue); }
.section-index.light { color: #8fd0f0; }
.section-intro > div { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.section h2, .contact h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  font-stretch: 92%;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
}
.section-intro > div > p { max-width: 430px; margin: 0 0 .35rem; color: var(--muted); font-size: .94rem; }
.expertise { background: var(--white); }
.expertise-layers { border-top: 1px solid var(--ink); }
.expertise-row { position: relative; display: grid; grid-template-columns: 80px 1.1fr .8fr 44px; gap: 2rem; align-items: center; min-height: 170px; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.layer-code { width: 48px; margin: 0; padding: .35rem 0; color: var(--blue); border: 1px solid var(--sky); font-family: var(--mono); font-size: .6rem; text-align: center; }
.expertise-row h3 { margin: 0 0 .55rem; color: var(--ink); font-family: var(--display); font-size: 1.55rem; letter-spacing: -.025em; }
.expertise-row div p { max-width: 550px; margin: 0; color: var(--muted); font-size: .88rem; }
.expertise-row ul { margin: 0; padding: 0; list-style: none; }
.expertise-row li { padding: .18rem 0; color: #4e5769; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.expertise-row li::before { content: "+"; margin-right: .6rem; color: var(--copper); }
.row-mark { color: #dfe4e9; font-family: var(--display); font-size: 2rem; font-weight: 700; }
.expertise-row::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.expertise-row:hover::after { transform: scaleX(1); }

.approach { color: var(--white); background: var(--ink); }
.approach-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 7rem; }
.approach h2 { margin-top: 1.7rem; color: var(--white); }
.approach-heading > p:last-child { max-width: 330px; margin: 1.5rem 0 0; color: #a9b3c8; }
.approach-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.approach-steps li { display: grid; grid-template-columns: 55px 1fr; gap: 1.2rem; padding: 2.2rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.approach-steps li > span { color: var(--copper); font-family: var(--mono); font-size: .67rem; }
.approach-steps h3 { margin: 0 0 .55rem; font-family: var(--display); font-size: 1.55rem; }
.approach-steps p { max-width: 530px; margin: 0; color: #aeb7c9; font-size: .88rem; }

.track { background: var(--paper); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 185px 1fr 210px; gap: 2.5rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.timeline-date strong, .timeline-date span { display: block; }
.timeline-date strong { color: var(--ink); font-family: var(--mono); font-size: .68rem; }
.timeline-date span { margin-top: .55rem; color: var(--blue); font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.role { margin: 0 0 .55rem; color: var(--copper); }
.timeline-item h3 { max-width: 630px; margin: 0 0 .75rem; color: var(--ink); font-family: var(--display); font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
.timeline-item div > p:not(.role) { max-width: 680px; margin: 0; color: var(--muted); font-size: .84rem; }
.timeline-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .45rem; }
.timeline-tags span, .tool-line span { padding: .35rem .55rem; border: 1px solid var(--line); color: #586174; background: rgba(255,255,255,.6); font-family: var(--mono); font-size: .55rem; text-transform: uppercase; }

.profile { overflow: hidden; background: var(--sky); }
.profile-grid { display: grid; grid-template-columns: 210px 1fr; gap: 4.5rem; align-items: start; }
.profile-copy { max-width: 920px; }
.profile-portrait { margin: .35rem 0 0; }
.profile-portrait img { width: 180px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; filter: grayscale(1); border: 1px solid rgba(11,22,63,.18); box-shadow: 10px 10px 0 rgba(255,255,255,.45); }
.profile-portrait figcaption { margin-top: 1.25rem; color: var(--ink); font-family: var(--display); font-size: .9rem; font-weight: 700; line-height: 1.35; }
.profile-portrait figcaption span { color: var(--blue); font-family: var(--mono); font-size: .5rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.profile-copy h2 { margin: 1.4rem 0 1.8rem; }
.profile-lead { max-width: 650px; margin: 0 0 1.8rem; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 550; line-height: 1.4; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.profile-columns p { margin: 0; color: #4a586b; font-size: .87rem; }
.tool-line { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2rem 0 1.5rem; }
.tool-line span { border-color: rgba(11,22,63,.17); background: rgba(255,255,255,.35); }

.contact { padding: 100px 0; color: var(--white); background: var(--blue); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6rem; align-items: end; }
.contact h2 { margin-top: 1.3rem; color: var(--white); }
.contact-copy > p { max-width: 520px; margin: 0 0 2rem; color: #dcedf6; font-size: 1rem; }
.contact-mail { display: flex; align-items: center; justify-content: space-between; max-width: 520px; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.65); font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 600; text-decoration: none; }
.contact-mail span { color: var(--sky); transition: transform .25s var(--ease); }
.contact-mail:hover span { transform: translate(4px, -4px); }
.contact-details { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.6rem; color: #dcedf6; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--white); text-decoration: underline; }

.footer { padding: 2.5rem 0; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer img { width: 300px; }
.footer p { margin: 0; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.hero-copy > *, .architecture-view { animation: enter .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.architecture-view { animation-delay: .22s; }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } }

a:focus-visible, button:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }

@media (max-width: 1020px) {
  .nav-links { gap: 1.25rem; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .architecture-view { width: min(100%, 650px); margin: 2rem auto 0; }
  .hero-ruler { width: calc(100% - 48px); }
  .section-intro > div { display: block; }
  .section-intro > div > p { margin-top: 1.5rem; }
  .approach-grid { gap: 4rem; }
  .timeline-item { grid-template-columns: 145px 1fr; }
  .timeline-tags { grid-column: 2; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 620px); }
  .nav { height: 140px; }
  .brand { width: 210px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; padding: 5rem 2rem; background: var(--paper); transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { font-family: var(--display); font-size: 1.65rem; }
  .nav-cta { display: inline-block; margin-top: 1rem; font-size: 1rem !important; }
  .hero { padding: 176px 0 75px; background: var(--paper); }
  .hero-grid { gap: 3rem; }
  .hero h1 { font-size: clamp(3.45rem, 17vw, 5.3rem); }
  .hero-lead { font-size: .98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .hero-proof { gap: .8rem; justify-content: space-between; }
  .hero-proof strong { font-size: .82rem; }
  .hero-proof span { font-size: .57rem; }
  .architecture-view { min-height: 520px; margin-top: 0; box-shadow: 9px 9px 0 rgba(216,237,248,.55); }
  .architecture-head { padding: 0 1rem; }
  .architecture-layers { padding: .8rem; }
  .architecture-layer { grid-template-columns: 102px 1fr; min-height: 94px; }
  .architecture-layer::after { left: 92px; }
  .layer-label { padding: .55rem; }
  .layer-label strong { font-size: .88rem; }
  .layer-label small { font-size: .4rem; }
  .layer-content { gap: .3rem; padding: .8rem; }
  .layer-content span { padding: .45rem .3rem; font-size: .43rem; }
  .system-components b { display: none; }
  .delivery-track span { min-width: 46px; }
  .architecture-spine { top: 85px; bottom: 68px; left: 14px; }
  .architecture-legend { padding-left: 2.4rem; }
  .hero-ruler { display: none; }
  .section { padding: 80px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 3rem; }
  .section h2, .contact h2 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .expertise-row { grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.7rem 0; }
  .expertise-row ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
  .expertise-row li { font-size: .56rem; }
  .row-mark { display: none; }
  .approach-grid { grid-template-columns: 1fr; gap: 3rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .timeline-tags { grid-column: auto; }
  .profile-columns { grid-template-columns: 1fr; gap: 1rem; }
  .profile-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-portrait { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: end; }
  .profile-portrait img { width: 110px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer img { width: 210px; }
  .footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
