/* Cortona's optical identity. The copy and interaction patterns live in the page templates. */
:root {
  --ink: #0d2443;
  --muted: #415773;
  --blue: #173fba;
  --deep: #071837;
  --pale: #edf3fb;
  --line: #cbd7e5;
  --wrap: 83rem;
  --gutter: clamp(1.2rem, 5vw, 6rem);
  --studio: #e7f0f8;
  --paper: #f7f9fc;
  --serif: Georgia, "Times New Roman", serif;
}
.masthead {
  background: var(--studio);
  padding: .8rem max(.85rem, calc((100% - 94rem) / 2));
}
.nav-shell {
  background: #ffffffef;
  border-color: #b6c9de;
  box-shadow: 0 .2rem .6rem #1d487407;
}
.nav-cta, .button.primary, .intake-send {
  background: var(--ink);
  color: white;
}
.nav-cta:hover, .button.primary:hover, .intake-send:hover {
  background: var(--blue);
}
.desktop-nav > a, .desktop-nav > .nav-group > summary {
  min-height: 2.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.desktop-nav .nav-panel, .mobile-menu nav, dialog {
  border-color: #bfcfe0;
  box-shadow: 0 1rem 3.25rem #0f274629;
}
.nav-actions { flex-shrink: 0; }
.nav-cta, .search-trigger, .mobile-menu > summary { min-height: 2.75rem; }
:focus-visible, .home-hero :focus-visible {
  outline-color: #2359d5;
}
.eyebrow { font-size: .75rem; letter-spacing: .14em; }
.home-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.01fr);
  grid-template-areas: "copy sculpture";
  align-items: center;
  gap: clamp(.8rem, 2.2vw, 2.9rem);
  padding: clamp(2.5rem, 4.4vw, 4.7rem) max(var(--gutter), calc((100% - var(--wrap)) / 2)) clamp(2.8rem, 4.8vw, 5rem);
  background: radial-gradient(ellipse at 83% 38%, #d5e6f3 0%, transparent 56%), linear-gradient(125deg, #edf4fa, var(--studio) 67%, #e4eff9);
  color: var(--ink);
  border-bottom: 1px solid #c5d4e4;
}
.hero-inner, .hero-image { position: relative; inset: auto; min-width: 0; }
.hero-inner {
  grid-area: copy;
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.hero-kicker {
  color: #284875;
  gap: .67rem;
  max-width: none;
  letter-spacing: .115em;
  font-size: clamp(.68rem, .82vw, .77rem);
}
.hero-kicker span { width: 1.75rem; height: .13rem; flex: none; background: #2154bf; }
.home-hero h1 {
  margin: clamp(1.15rem, 2.2vw, 2.1rem) 0 clamp(1rem, 1.8vw, 1.8rem);
  font-size: clamp(3.15rem, 5.35vw, 5.95rem);
  font-weight: 400;
  line-height: 1.025;
  letter-spacing: -.068em;
  max-width: none;
}
.home-hero em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: #1745a6;
  letter-spacing: -.065em;
  line-height: .99;
}
.hero-lead {
  width: auto;
  max-width: 44ch;
  color: #304761;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.58;
}
.home-hero .actions { margin-top: clamp(1.35rem, 2.3vw, 2.25rem); gap: .6rem; }
.home-hero .button { min-height: 3.05rem; padding-inline: 1.45rem; }
.home-hero .button.light { background: var(--ink); color: white; }
.home-hero .button.light:hover { background: var(--blue); }
.home-hero .button.on-dark { background: #ffffff70; color: var(--ink); border-color: #879fb8; }
.home-hero .button.on-dark:hover { background: white; border-color: var(--blue); }
.hero-image {
  grid-area: sculpture;
  display: block;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  --soft-sides: linear-gradient(to right, transparent, #000 13%, #000 85%, transparent);
  --soft-ends: linear-gradient(to bottom, transparent, #000 4%, #000 84%, transparent);
  -webkit-mask-image: var(--soft-sides), var(--soft-ends);
  -webkit-mask-composite: source-in;
  mask-image: var(--soft-sides), var(--soft-ends);
  mask-composite: intersect;
}
.hero-image img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: contain;
}
.hero-scrim {
  pointer-events: none;
  height: auto;
  z-index: -1;
  background: radial-gradient(ellipse at 38% 78%, #ffffff8f, transparent 65%);
}
.pathway-band {
  background: white;
  padding-block: clamp(2.45rem, 4.2vw, 4.5rem) clamp(3rem, 5.2vw, 5.3rem);
}
.pathway-band h2, .service-index h2, .directory-intro h2, .governance-grid h2,
.delivery-models h2, .inner-hero h1, .intake-intro h1 {
  font-weight: 400;
  letter-spacing: -.055em;
}
.pathway-band h2 { font-size: clamp(2rem, 3.55vw, 3.6rem); }
.section-title-row > .text-link { flex-shrink: 0; }
.text-link { text-decoration-thickness: 1px; text-decoration-color: #95aad5; }
.sector-grid { gap: clamp(.9rem, 1.65vw, 1.7rem); }
.sector-panel {
  --sector-color: #203e9e;
  --sector-ground: #e5eafa;
  --sector-img: url('/images/optic-medicine.webp');
  border-color: #c9d4e4;
  border-radius: 1.15rem;
  box-shadow: 0 .4rem 1.1rem #132e4908;
}
.sector-device {
  --sector-color: #165c6b;
  --sector-ground: #e2eff1;
  --sector-img: url('/images/optic-device.webp');
}
.sector-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.1rem 1.1rem 0 0;
  border: 0;
  min-height: clamp(8.5rem, 11vw, 11rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .7rem;
  padding: 1.25rem clamp(1.25rem, 2.2vw, 2.3rem);
  background: var(--sector-ground);
}
.sector-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 41%;
  background: var(--sector-img) no-repeat center / cover;
  -webkit-mask-image: linear-gradient(to right, transparent, black 24%);
  mask-image: linear-gradient(to right, transparent, black 24%);
}
.sector-heading h3 { max-width: 65%; font-size: clamp(1.45rem, 2.4vw, 2.45rem); font-weight: 400; line-height: 1.08; }
.sector-icon, .sector-panel:nth-child(2) .sector-icon {
  background: transparent; color: var(--sector-color); width: 1.5rem; height: 1.5rem;
}
.sector-options > a { min-height: 6.4rem; }
.sector-options .arrow {
  width: 2.05rem; height: 2.05rem; flex: none; border: 1px solid #cfdae6;
  border-radius: 50%; display: grid; place-items: center; color: var(--sector-color); font-size: 1.05rem;
}
.sector-options a:hover .arrow { color: white; background: var(--sector-color); border-color: transparent; }
.service-index, .service-guide { background: var(--paper); }
.index-grid { border-top: 1px solid #8097b2; }
.index-grid a { padding: 1.4rem .25rem 1.55rem 0; }
.index-grid a:hover { border-bottom-color: #345eab; }
.index-grid strong { color: #193b78; }
.example-panel {
  border-radius: 1rem; border: 1px solid #b5c8df; border-top: 2px solid #476dd4;
  background: linear-gradient(120deg, #f5f8fd, #e8f0fa); box-shadow: none;
}
.expertise-strip, .invite {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b2048;
}
.expertise-strip::before, .invite::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse 42rem 52rem at 112% 128%, transparent 0 19px, #6089ca24 20px, transparent 21px 42px), linear-gradient(105deg, #0b1a37, #173866);
}
.expertise-split h2, .invite h2 { font-weight: 400; }
.expertise-split > div + div { border-color: #657e9b; }
.delivery-models .card, .card {
  background: linear-gradient(145deg, #f9fafc, #fff);
  border: 1px solid var(--line);
  border-top: 2px solid #6786c3;
  border-radius: .85rem;
}
.global-delivery { background: #eff4fa; }
.stage-choice { background: white; border-radius: .75rem; }
.stage-symbol { border-radius: 50%; color: #194aa7; background: #e9f0fa; }
footer { background: #08172e; }
.inner-hero {
  --field: #e9f1f9;
  --art: url('/images/optic-hero-small.webp');
  isolation: isolate; position: relative;
  background: linear-gradient(100deg, #f2f6fb, var(--field) 69%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.inner-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; right: 0; bottom: 0;
  width: max(29%, calc((100% - var(--wrap)) / 2 + var(--wrap) * .24));
  max-width: 38%;
  background: var(--art) no-repeat 56% center / cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%);
  mask-image: linear-gradient(to right, transparent, #000 34%);
}
.pharma-hero { --field: #e6ebf9; --art: url('/images/optic-medicine.webp'); }
.device-hero { --field: #e1eff2; --art: url('/images/optic-device.webp'); }
.inner-hero .wrap > h1 { max-width: min(69%, 17em); font-size: clamp(2.75rem, 4.8vw, 5.2rem); }
.inner-hero .inner-lead { max-width: min(68%, 63ch); }
.crumb { font-size: .84rem; }
.directory-rows { border-radius: .85rem; }
.service-item[open] > summary { color: #133b8d; }
.service-toggle { border: 1px solid #b9cbe0; border-radius: 50%; width: 1.65rem; height: 1.65rem; }
.sample { border-radius: .75rem; border-left: 3px solid #5578bd; }
.table-scroll { border-radius: .65rem; }
caption { background: #e7eff9; }
.study-intake { background: radial-gradient(ellipse at 0 10%, #dbe8f6, transparent 54%), #f1f5fa; }
.intake-card { border-color: #bacbdc; box-shadow: 0 .7rem 2rem #1a35530a; }
.intake-next { border-color: #98adc5; }
@media (min-width: 1241px) and (max-width: 1440px) {
  .nav-shell { gap: 1rem; padding-inline: 1.35rem; }
  .desktop-nav { gap: clamp(.8rem, 1.25vw, 1.15rem); }
  .desktop-nav > a, .desktop-nav > .nav-group > summary { font-size: .9rem; }
  .nav-actions { gap: .5rem; }
  .nav-cta { padding-inline: 1rem; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .home-hero { gap: .7rem; grid-template-columns: 1.15fr .85fr; }
  .home-hero h1 { font-size: clamp(2.9rem, 5.55vw, 3.15rem); }
  .hero-kicker { max-width: 31ch; }
  .hero-lead { font-size: 1rem; }
  .hero-image { width: 110%; margin-inline: -5%; }
  .sector-heading h3 { font-size: 1.55rem; }
}
@media (max-width: 700px) {
  .masthead { padding: .5rem; }
  .nav-shell { padding-inline: .63rem; }
  .home-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "sculpture";
    gap: .65rem;
    padding-top: clamp(1.7rem, 6vw, 2.7rem);
    padding-bottom: .8rem;
    background: linear-gradient(145deg, #f0f5fb 0%, #e4eff8 75%);
  }
  .hero-inner { width: min(100%, 33rem); justify-self: center; }
  .hero-kicker { font-size: .74rem; line-height: 1.5; gap: .55rem; letter-spacing: .095em; }
  .hero-kicker span { width: 1.15rem; }
  .home-hero h1 { font-size: clamp(2.55rem, 10.2vw, 4rem); margin: .98rem 0 .88rem; }
  .hero-lead { font-size: 1rem; line-height: 1.48; }
  .home-hero .actions { margin-top: 1.08rem; }
  .home-hero .button { padding-inline: 1.1rem; min-height: 2.8rem; }
  .hero-image { width: min(82%, 19rem); justify-self: center; }
  .sector-heading { min-height: 7.1rem; gap: .55rem; }
  .sector-options > a { min-height: 5.35rem; }
  .inner-hero::after { width: 22%; opacity: .25; -webkit-mask-image: linear-gradient(to right,transparent,black); mask-image: linear-gradient(to right,transparent,black); }
  .inner-hero .wrap > h1 { max-width: 100%; font-size: clamp(2.45rem, 8.6vw, 3.5rem); overflow-wrap: break-word; }
  .inner-hero .inner-lead { max-width: 100%; }
  .pathway-band { padding-top: 2.15rem; }
  .pathway-band .section-title-row h2 { font-size: clamp(1.6rem, 6.4vw, 2.5rem); }
  .pathway-band .section-title-row { gap: .6rem; }
}
@media (max-width: 385px) {
  .masthead { padding: .4rem; }
  .nav-shell { padding-inline: .4rem; gap: .2rem; }
  .masthead .identity { gap: .2rem; }
  .masthead .identity svg { width: 1.65rem; height: 1.65rem; }
  .masthead .brand-words strong { font-size: 1.22rem; }
  .masthead .brand-words small { font-size: .44rem; letter-spacing: .12em; }
  .nav-actions { gap: .18rem; }
  .nav-cta { font-size: .8rem; padding-inline: .55rem; }
  .mobile-menu > summary { width: 2.5rem; }
  .home-hero .button { font-size: .86rem; padding-inline: .75rem; }
  .home-hero .actions { gap: .43rem; }
  .hero-kicker { max-width: 36ch; }
}
@media (forced-colors: active) {
  .button, .nav-cta, .intake-send, .search-trigger, .sector-options .arrow { border: 1px solid ButtonText; }
}
@media print {
  .hero-image, .hero-scrim, .inner-hero::after, .expertise-strip::before, .invite::before { display: none; }
  .home-hero, .inner-hero, .study-intake { display: block; background: white; color: black; padding: 1rem 0; }
  .inner-hero .wrap > h1, .inner-hero .inner-lead, .hero-lead { max-width: none; }
}
