@layer reset, base, layout, components, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input { font: inherit; }
  button, a, input, summary { -webkit-tap-highlight-color: transparent; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  button { color: inherit; }
}

@layer base {
  :root { --paper: #f1f3f5; --ink: #111316; --blue: #1833eb; --line: #c6cbd0; --muted: #565d65; --gutter: clamp(1.35rem, 4.2vw, 5.25rem); --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace; --ease-out: cubic-bezier(.16, 1, .3, 1); }
  html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
  body { background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
  ::selection { background: #b3c4ff; color: #0b174c; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
  :where(.section-blue, .research, .site-footer) :focus-visible { outline-color: var(--paper); }
  a { text-decoration: none; }
  button { cursor: pointer; }
  h1, h2, h3 { font-weight: 400; text-wrap: balance; }
  h2 { font-size: clamp(3.3rem, 6.6vw, 7.25rem); line-height: 1.01; letter-spacing: -.057em; }
  p { font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; }
  section { scroll-margin-top: 0; }
  .eyebrow, .small-label, .section-kicker, .step-number { font-family: var(--mono); font-size: .75rem; font-weight: 400; letter-spacing: .045em; line-height: 1.6; text-transform: uppercase; }
  .section-kicker { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: 2.75rem; }
  .text-link { display: inline-flex; gap: 2.8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 45%, transparent); font-size: 1rem; }
  .text-link, .footer-contact { position: relative; }
  .text-link::after, .footer-contact::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
  .text-link:is(:hover, :focus-visible)::after, .footer-contact:is(:hover, :focus-visible)::after { transform: scaleX(1); transform-origin: left; }
  .text-link span, .back-top span, .nav-explore span, .scroll-link span, .footer-contact > span:first-child > span { transition: transform .4s var(--ease-out); }
  .text-link:is(:hover, :focus-visible) span, .nav-explore:is(:hover, :focus-visible) span, .footer-contact:is(:hover, :focus-visible) > span:first-child > span { transform: translate(4px, -4px); }
  .scroll-link:is(:hover, :focus-visible) span { transform: translateY(4px); }
  .skip-link { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); background: white; color: var(--ink); padding: .8rem 1.2rem; z-index: 100; }
  .skip-link:focus { transform: none; }
}

@layer layout {
  .site-header { position: sticky; top: 0; z-index: 20; min-height: 6.4rem; padding: 1.45rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: rgb(241 243 245 / .94); backdrop-filter: blur(16px); }
  .site-header::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
  .wordmark { display: inline-flex; flex-direction: column; flex-shrink: 0; transition: color .25s ease; }
  .wordmark:is(:hover, :focus-visible) { color: var(--blue); }
  .wordmark-name { text-transform: uppercase; font-size: 1.85rem; line-height: 1.15; letter-spacing: .24em; margin-right: -.24em; }
  .wordmark-sub { text-transform: uppercase; font-size: .75rem; line-height: 1.2; letter-spacing: .12em; margin-top: .33rem; }
  .main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
  .main-nav a { font-size: .9375rem; line-height: 1.6; position: relative; white-space: nowrap; transition: color .25s ease; }
  .main-nav a::after { content: ""; position: absolute; bottom: -.3rem; left: 0; height: 1px; width: 100%; transform: scaleX(0); transform-origin: left; background: currentColor; transition: transform .25s ease; }
  .main-nav a:is(:hover, :focus-visible, [aria-current="location"]) { color: var(--blue); }
  .main-nav a:is(:hover, :focus-visible, [aria-current="location"])::after { transform: scaleX(1); }
  .main-nav .nav-explore { display: flex; gap: 1.5rem; color: var(--blue); }
  .menu-toggle { display: none; }
  .hero { display: flex; flex-direction: column; min-height: min(850px, calc(100svh - 6.4rem)); padding: 4rem var(--gutter) 1.8rem; }
  .hero-content { width: 100%; }
  .hero-eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin-bottom: 2.6rem; }
  .cross-mark { font-size: 1.25rem; line-height: 1; color: var(--blue); }
  .hero h1 { font-size: clamp(4.5rem, 11.5vw, 12rem); letter-spacing: -.068em; line-height: .98; }
  .hero h1 > span { display: block; }
  .blue-period { color: var(--blue); }
  .hero-support { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-top: 3.6rem; max-width: 74rem; }
  .hero-description { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.42; letter-spacing: -.015em; }
  .hero .text-link { flex-shrink: 0; }
  .hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: auto; padding-top: 4rem; }
  .hero-bottom .small-label { color: var(--muted); }
  .scroll-link { font-size: .875rem; display: flex; align-items: center; gap: 1.5rem; }
  .scroll-link span { font-size: 1.2rem; }
  .section-blue { background: var(--blue); color: white; }
  .approach { padding: 3rem var(--gutter) 4.4rem; }
  .approach .section-kicker { color: #d5ddff; }
  .approach-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 5rem; align-items: end; }
  .approach-statement { max-width: 28rem; padding-bottom: .2rem; }
  .approach-statement p:first-child { font-size: clamp(1.55rem, 2vw, 2.2rem); line-height: 1.2; letter-spacing: -.028em; margin-bottom: 1.4rem; }
  .approach-statement p + p { color: #e1e6ff; max-width: 25rem; }
  .approach-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 5rem; }
  .approach-steps article { border-top: 1px solid rgb(255 255 255 / .43); padding-top: 1rem; }
  .step-number { color: #c4d0ff; }
  .approach-steps h3 { font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -.045em; margin: 2.3rem 0 .8rem; }
  .approach-steps p { font-size: 1rem; }
  .approach-steps .step-description { color: #dce3ff; font-size: .9375rem; line-height: 1.55; margin-top: .65rem; max-width: 23rem; }
  .research { background: #11151b; color: var(--paper); padding: 3rem var(--gutter) 5.5rem; }
  .research .section-kicker { color: #aab1bf; }
  .research-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin: 1rem 0 3.6rem; }
  .research-heading-row h2 { font-size: clamp(3rem, 5.6vw, 6.4rem); }
  .research-heading-row > p { color: #b9c0ca; padding-bottom: .4rem; font-size: 1rem; }
  .research-questions { margin-top: 4rem; }
  .research-questions article { display: grid; grid-template-columns: .13fr 1fr 1fr; align-items: start; gap: 2rem; border-top: 1px solid #46505e; padding: 2.25rem 0; }
  .research-questions article:last-child { border-bottom: 1px solid #46505e; }
  .research-questions .step-number { color: #9eaaff; padding-top: .45rem; }
  .research-questions h3 { font-size: clamp(1.75rem, 2.8vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
  .research-questions p { color: #bbc4d2; max-width: 29rem; padding-top: .35rem; }
  .about { padding: 3rem var(--gutter) 7rem; }
  .about .section-kicker { color: var(--muted); }
  .about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; margin-top: 2rem; align-items: start; }
  .about h2 { font-size: clamp(3.1rem, 6.6vw, 7.25rem); }
  .about h2 span { color: var(--blue); }
  .about-copy { max-width: 29rem; padding-top: .5rem; }
  .about-copy p { color: #535a63; margin-bottom: 1.35rem; }
  .about-copy .about-lead { color: var(--ink); font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.3; letter-spacing: -.025em; margin-bottom: 2rem; }
  .about-copy .text-link { margin-top: .75rem; }
  .research-interests { margin-top: 6rem; }
  .research-interests > .eyebrow { color: var(--muted); margin-bottom: 1.2rem; }
  .interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .interest-grid article { border-top: 1px solid var(--line); padding-top: 1rem; }
  .interest-grid .small-label { color: var(--blue); }
  .interest-grid h3 { font-size: clamp(1.75rem, 2.4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.12; margin: 2rem 0 1.2rem; }
  .interest-grid p { font-size: .9375rem; color: #535a63; max-width: 25rem; }
  .site-footer { padding: 3rem var(--gutter) 1.6rem; background: var(--blue); color: white; overflow: clip; }
  .footer-top { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
  .footer-top p { font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; }
  .footer-contact { display: flex; flex-direction: column; gap: .8rem; padding-bottom: .7rem; border-bottom: 1px solid rgb(255 255 255 / .6); }
  .footer-contact > span:first-child { display: flex; justify-content: space-between; gap: 2rem; font-size: .875rem; }
  .footer-contact > span:last-child { font-size: clamp(1rem, 1.7vw, 1.7rem); letter-spacing: -.02em; }
  .back-top { display: flex; gap: 2rem; font-size: .875rem; line-height: 1.8; }
  .back-top:is(:hover, :focus-visible) span { transform: translateY(-4px); }
  .footer-wordmark { font-size: clamp(5rem, 17.6vw, 26rem); letter-spacing: -.054em; line-height: 1; margin: 3rem -.05em 2rem; text-align: center; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(255 255 255 / .45); padding-top: 1.15rem; font-size: .75rem; line-height: 1.6; color: #e0e6ff; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html.enhanced [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .85s var(--ease-out); }
    html.enhanced [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
    :is(.approach-steps, .interest-grid) article:nth-child(2) { transition-delay: .08s; }
    :is(.approach-steps, .interest-grid) article:nth-child(3) { transition-delay: .16s; }
    .hero-eyebrow { animation: enter .75s var(--ease-out) both; }
    .hero h1 > span { animation: headline-enter 1.05s var(--ease-out) both; }
    .hero h1 > span:first-child { animation-delay: .08s; }
    .hero h1 > span:nth-child(2) { animation-delay: .2s; }
    .hero-support { animation: enter .85s .34s var(--ease-out) both; }
    .hero-bottom { animation: enter .85s .46s var(--ease-out) both; }
    @keyframes headline-enter { from { opacity: 0; transform: translateY(.22em); } to { opacity: 1; transform: none; } }
    @keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    @keyframes menu-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
    @media (max-width: 760px) {
      .main-nav.is-open { animation: menu-enter .3s var(--ease-out) both; }
      .main-nav.is-open a { animation: enter .35s .03s var(--ease-out) both; }
      .main-nav.is-open a:nth-child(2) { animation-delay: .06s; }
      .main-nav.is-open a:nth-child(3) { animation-delay: .09s; }
      .main-nav.is-open a:nth-child(4) { animation-delay: .12s; }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}

@layer responsive {
  @media (min-width: 1700px) {
    .hero { min-height: 900px; }
  }
  @media (max-width: 1150px) {
    .main-nav { gap: 1.7rem; }
    .main-nav .nav-explore { display: none; }
    .hero { min-height: 690px; }
    .approach-intro { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
    .approach-steps { gap: 2rem; }
    .research-heading-row > p { max-width: 14rem; }
    .about-grid { gap: 2rem; }
  }
  @media (max-width: 760px) {
    html { scroll-padding-top: 5.4rem; }
    section { scroll-margin-top: 0; }
    .site-header { min-height: 5.4rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
    .wordmark-name { font-size: 1.5rem; }
    .wordmark-sub { font-size: .75rem; letter-spacing: .012em; }
    .menu-toggle { display: flex; align-items: center; gap: 1rem; border: 0; background: none; padding: .45rem 0 .45rem .5rem; font-size: .875rem; min-height: 2.75rem; }
    .menu-toggle span { font-size: 1.5rem; transition: transform .25s; }
    .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgb(0 0 0 / .04); }
    .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
    .main-nav a { padding: .55rem 0; font-size: 1.125rem; }
    .main-nav .nav-explore { display: flex; justify-content: space-between; }
    .main-nav a::after { display: none; }
    .hero { padding-top: 2.4rem; padding-bottom: 1.5rem; min-height: auto; }
    .hero h1 { font-size: clamp(2rem, 12.6vw, 5.3rem); line-height: 1.04; }
    .hero-eyebrow { margin-bottom: 2rem; font-size: .75rem; letter-spacing: 0; }
    .hero-content { width: 100%; }
    .hero-support { flex-direction: column; align-items: start; gap: 1.5rem; margin-top: 2.2rem; }
    .hero-description { font-size: 1.125rem; }
    .hero-bottom { padding-top: 3.8rem; }
    .hero-bottom .small-label { font-size: .75rem; letter-spacing: 0; max-width: 12rem; }
    .scroll-link { font-size: .8125rem; gap: .7rem; }
    .approach, .research, .about { padding-top: 2rem; padding-bottom: 3.5rem; }
    .section-kicker { font-size: .75rem; gap: 1rem; padding-bottom: 2.2rem; }
    .section-kicker > span:last-child { text-align: right; max-width: 45%; }
    .approach-intro { grid-template-columns: 1fr; gap: 2rem; }
    h2 { font-size: clamp(3rem, 9vw, 4.6rem); }
    .approach-statement { max-width: 29rem; }
    .approach-statement p:first-child { font-size: 1.65rem; }
    .approach-statement p:first-child br { display: none; }
    .approach-statement p + p { max-width: none; font-size: 1rem; }
    .approach-steps { grid-template-columns: 1fr; gap: 1.7rem; margin-top: 2.5rem; }
    .approach-steps article { position: relative; padding: 1.3rem 0 0 2.4rem; }
    .approach-steps .step-number { position: absolute; top: 1.5rem; left: 0; }
    .approach-steps h3 { font-size: 2rem; margin: 0 0 .5rem; }
    .approach-steps .step-description { max-width: 29rem; }
    .research-heading-row { flex-direction: column; align-items: start; gap: 1.3rem; margin: .1rem 0 2rem; }
    .research-heading-row h2 { font-size: clamp(2.8rem, 8.4vw, 4.4rem); }
    .research-heading-row > p { max-width: none; }
    .research-heading-row .desktop-break { display: none; }
    .research-questions { margin-top: 2.5rem; }
    .research-questions article { grid-template-columns: 1.25rem 1fr; gap: 1rem; padding: 1.8rem 0; }
    .research-questions h3 { font-size: 2rem; }
    .research-questions h3 br { display: none; }
    .research-questions p { grid-column: 2; font-size: 1rem; padding-top: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: .2rem; }
    .about h2 { font-size: clamp(3.1rem, 10vw, 4.8rem); }
    .about-copy { max-width: none; }
    .about-copy .about-lead { font-size: 1.6rem; }
    .research-interests { margin-top: 3.4rem; }
    .interest-grid { grid-template-columns: 1fr; gap: 2rem; }
    .interest-grid h3 { font-size: 2rem; margin-top: 1.3rem; }
    .site-footer { padding-top: 2rem; }
    .footer-top { flex-direction: column; }
    .footer-top p { font-size: 1.8rem; }
    .footer-contact { margin-top: .5rem; width: 100%; }
    .footer-contact > span:last-child { font-size: 1.17rem; }
    .back-top { gap: .8rem; font-size: .8125rem; }
    .footer-wordmark { margin-top: 3.7rem; margin-bottom: 2rem; font-size: 16.7vw; }
    .footer-bottom { flex-direction: column; gap: .35rem; font-size: .75rem; }
    .footer-bottom .back-top { margin-top: .7rem; }
  }
  @media (max-width: 360px) {
    .hero-eyebrow { font-size: .75rem; }
    .footer-top { gap: 1rem; }
    .footer-top p { font-size: 1.4rem; }
    .about h2 { font-size: 2.85rem; }
  }
}
