:root {
  color-scheme: light;
  --white: #f4f4f1;
  --line: rgba(255, 255, 255, 0.25);
  --muted: rgba(255, 255, 255, 0.76);
  --bg: #080d10;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-media {
  position: absolute;
  inset: -6px 0;
  z-index: -2;
  left: -5%;
  width: 105%;
  height: calc(100% + 12px);
  object-fit: cover;
  object-position: center;
}

.hero-grid-lines {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 40%;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(255,255,255,.045) calc(8.333% - 1px), rgba(255,255,255,.045) 8.333%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.82) 68%, transparent 100%);
  pointer-events: none;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.16) 0%, rgba(4, 9, 12, 0.07) 29%, transparent 58%),
    linear-gradient(0deg, rgba(255, 244, 230, 0.07), transparent 36%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 26px 30px;
  transition: padding 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 17px;
  padding-bottom: 17px;
  background: rgba(255,255,255,.96);
  color: #111315;
  box-shadow: 0 1px 0 rgba(17,19,21,.12);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .brand-logo { filter: invert(1); }
.site-header.is-scrolled .primary-nav { color: rgba(17,19,21,.78); }
.site-header.is-scrolled .language { color: #111315; }
.site-header.is-scrolled .button-light { background: #111315; color: #fff; border-color: #111315; }
.site-header.is-scrolled .menu-button span { background: #111315; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-size: 19px;
  letter-spacing: -0.045em;
}

.brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  font-size: 15px;
  color: rgba(255,255,255,.86);
}

.primary-nav a, .header-actions a, .language { transition: opacity 180ms ease, background 180ms ease; }
.primary-nav a:hover, .language:hover { opacity: .65; }

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.language {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
}

.language span { margin-left: 8px; opacity: .8; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid rgba(255,255,255,.52);
  font-weight: 500;
}

.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-light { background: #f5f4f1; color: #101113; border-color: #f5f4f1; }
.button-light:hover { background: #d9d8d5; }

.hero-content {
  position: absolute;
  left: clamp(34px, 12.4vw, 254px);
  bottom: 122px;
  display: flex;
  align-items: flex-end;
  width: min(510px, 40vw);
  padding: 0;
}

.copy-block { width: 100%; }

.copy-block h1 {
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(54px, 3.9vw, 72px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.copy-block p {
  max-width: 500px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.45;
}

.split-cta {
  display: inline-grid;
  grid-template-columns: auto 48px;
  min-height: 49px;
  border: 1px solid rgba(255,255,255,.63);
  background: #f5f4f1;
  color: #0b0d0f;
  font-weight: 500;
}

.split-cta span { display: grid; place-items: center; padding: 0 23px; }
.split-cta b { display: grid; place-items: center; background: #0e1214; color: white; font-size: 24px; font-weight: 300; }
.split-cta:hover b { background: #31383c; }

.integration-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 150px 1px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(8,13,16,.84), rgba(15,18,20,.80), rgba(17,15,14,.80));
  backdrop-filter: blur(16px);
}

.integration-bar::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 9px;
  content: "";
  background: linear-gradient(90deg, rgba(8,13,16,.82), rgba(15,18,20,.78), rgba(17,15,14,.78));
}

.integration-bar::after {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 190px;
  content: "";
  background:
    radial-gradient(ellipse 7% 95% at 12% 100%, rgba(255,239,210,.18), transparent 72%),
    radial-gradient(ellipse 8% 100% at 38% 100%, rgba(255,242,218,.14), transparent 72%),
    radial-gradient(ellipse 7% 92% at 66% 100%, rgba(255,233,199,.15), transparent 72%),
    radial-gradient(ellipse 8% 100% at 88% 100%, rgba(255,238,208,.16), transparent 72%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.rail-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.rail-divider { width: 1px; height: 50px; background: rgba(255,255,255,.38); }

.partner-rail {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(20px, 2.3vw, 42px);
  min-width: 0;
}

.partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: rgba(255,255,255,.88);
  font-size: clamp(13px, 1.15vw, 21px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.partner img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: invert(1);
  opacity: .92;
}

.partner.anthropic { text-transform: uppercase; font-size: clamp(11px, 1vw, 17px); font-weight: 600; letter-spacing: .045em; }
.partner.aws img { width: 56px; height: 31px; }
.partner.microsoft img { width: 24px; height: 24px; }
.partner.databricks img { width: 25px; height: 25px; }
.partner.snowflake img { width: 26px; height: 26px; }

.menu-toggle, .menu-button { display: none; }

.page-shell {
  --shell-width: min(1490px, calc(100% - 48px));
  --content-pad: clamp(28px, 5vw, 88px);
  position: relative;
  background:
    linear-gradient(90deg,
      transparent calc((100% - var(--shell-width)) / 2),
      rgba(17,19,21,.11) calc((100% - var(--shell-width)) / 2),
      rgba(17,19,21,.11) calc((100% - var(--shell-width)) / 2 + 1px),
      transparent calc((100% - var(--shell-width)) / 2 + 1px),
      transparent calc((100% + var(--shell-width)) / 2 - 1px),
      rgba(17,19,21,.11) calc((100% + var(--shell-width)) / 2 - 1px),
      rgba(17,19,21,.11) calc((100% + var(--shell-width)) / 2),
      transparent calc((100% + var(--shell-width)) / 2));
  background-color: #fff;
  color: #111315;
}

.research-section {
  position: relative;
  z-index: 2;
  width: var(--shell-width);
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(76px, 8vw, 142px) var(--content-pad) clamp(88px, 9vw, 150px);
  border-top: 1px solid rgba(17, 19, 21, .16);
  background: #fff;
  color: #111315;
}

.research-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(70px, 8vw, 140px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 19, 21, .24);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(56px, 9vw, 180px);
  align-items: start;
}

.research-grid h2 {
  max-width: 920px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(46px, 4.4vw, 78px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.research-copy {
  max-width: 590px;
  padding-top: 8px;
}

.research-copy p {
  margin: 0 0 24px;
  color: rgba(17, 19, 21, .74);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
}

.research-invitation {
  margin-top: 34px;
  padding: 28px 0 6px;
  border-top: 1px solid rgba(17, 19, 21, .24);
}

.research-invitation p {
  color: rgba(17, 19, 21, .66);
  font-size: clamp(15px, 1.05vw, 18px);
}

.research-invitation strong {
  color: #111315;
  font-weight: 600;
}

.research-path {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 48px;
  padding: 19px 0;
  border-top: 1px solid rgba(17, 19, 21, .24);
  border-bottom: 1px solid rgba(17, 19, 21, .24);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.research-path i {
  color: rgba(17, 19, 21, .42);
  font-size: 17px;
  font-style: normal;
}

.research-team {
  margin-top: clamp(110px, 12vw, 210px);
  padding-top: 28px;
  border-top: 1px solid rgba(17,19,21,.18);
}

.section-marker {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  color: rgba(17,19,21,.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(17,19,21,.18);
  border-left: 1px solid rgba(17,19,21,.18);
}

.profile-card {
  border-right: 1px solid rgba(17,19,21,.18);
  border-bottom: 1px solid rgba(17,19,21,.18);
  background: #f5f5f3;
}

.profile-image {
  min-height: clamp(390px, 36vw, 620px);
  border-bottom: 1px solid rgba(17,19,21,.18);
  background-repeat: no-repeat;
}

.profile-ahmet {
  background-color: #f1f1ef;
  background-image: url("assets/profile-ahmet.png");
  background-position: center 18%;
  background-size: cover;
}

.profile-ava {
  background-color: #f1f1ef;
  background-image: url("assets/profile-ava.png");
  background-position: center 20%;
  background-size: cover;
}

.profile-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 28px;
  background: #fff;
}

.profile-details h3 {
  margin: 0 0 7px;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.profile-details p {
  margin: 0;
  color: rgba(17,19,21,.55);
  font-size: 14px;
}

.profile-links {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: rgba(17,19,21,.72);
  font-size: 13px;
}

.profile-links a { border-bottom: 1px solid transparent; }
.profile-links a:hover { border-color: currentColor; }

.contribute-section {
  position: relative;
  isolation: isolate;
  width: calc(var(--shell-width) - 2 * var(--content-pad));
  min-height: 400px;
  margin: 0 auto clamp(80px, 9vw, 150px);
  overflow: hidden;
  border-right: 1px solid rgba(17,19,21,.18);
  border-left: 1px solid rgba(17,19,21,.18);
  background: #202526 url("assets/research-contribute.png") center / cover no-repeat;
  color: #fff;
}

.contribute-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), rgba(255,255,255,.055) calc(8.333% - 1px), rgba(255,255,255,.055) 8.333%),
    linear-gradient(90deg, rgba(8,12,13,.9) 0%, rgba(8,12,13,.68) 44%, rgba(8,12,13,.18) 75%, rgba(8,12,13,.08));
}

.contribute-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 155px;
  content: "";
  background:
    radial-gradient(ellipse 8% 100% at 12% 100%, rgba(255,235,198,.16), transparent 72%),
    radial-gradient(ellipse 8% 100% at 38% 100%, rgba(255,241,216,.12), transparent 72%),
    radial-gradient(ellipse 8% 100% at 65% 100%, rgba(255,233,195,.14), transparent 72%),
    radial-gradient(ellipse 8% 100% at 88% 100%, rgba(255,240,215,.12), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.contribute-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  width: min(680px, 58%);
  padding: clamp(38px, 5vw, 70px);
}

.eyebrow {
  margin: 0 0 28px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contribute-content h2 {
  margin: 0 0 20px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 4.4vw, 70px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.contribute-content > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0 0 34px;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.5;
}

.contribute-button {
  display: inline-grid;
  grid-template-columns: auto 50px;
  align-self: flex-start;
  min-height: 52px;
  background: #fff;
  color: #111315;
  font-size: 14px;
  font-weight: 600;
}

.contribute-button span { display: grid; place-items: center; padding: 0 24px; }
.contribute-button b { display: grid; place-items: center; border-left: 1px solid rgba(17,19,21,.2); font-size: 22px; font-weight: 400; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px 64px;
  width: 100%;
  min-height: 136px;
  padding: 30px max(24px, calc((100% - var(--shell-width)) / 2 + var(--content-pad)));
  background: #080b0d;
  color: rgba(255,255,255,.78);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: #fff;
  font-size: 17px;
  letter-spacing: -.035em;
}

.footer-brand img { width: 23px; height: 23px; object-fit: contain; }
.site-footer nav { display: flex; justify-self: end; gap: 36px; font-size: 13px; }
.site-footer nav a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-legal p { margin: 0; color: rgba(255,255,255,.42); font-size: 10px; line-height: 1.55; }
.footer-legal strong { color: rgba(255,255,255,.72); font-weight: 500; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .partner-rail { justify-content: flex-start; overflow: hidden; }
  .partner:nth-child(n+7) { display: none; }
  .integration-bar { grid-template-columns: 120px 1px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 920px; }
  .hero-media { object-position: 60% center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(3,8,11,.48) 0%, rgba(3,8,11,.20) 62%, rgba(3,8,11,.06)),
      linear-gradient(0deg, rgba(2,5,7,.44), transparent 48%);
  }
  .hero-content {
    left: 44px;
    bottom: 112px;
    width: min(470px, 60vw);
  }
  .research-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .research-copy {
    max-width: 680px;
  }
  .profile-image { min-height: 430px; }
  .profile-details { flex-direction: column; }
  .profile-links { justify-items: start; }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding-top: 51svh;
  }
  .hero-media {
    top: -8px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(54svh + 8px);
    object-position: 61% center;
  }
  .hero-grid-lines {
    height: 40%;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.04) calc(25% - 1px), rgba(255,255,255,.04) 25%);
  }
  .hero::before {
    background:
      linear-gradient(180deg, transparent 0%, rgba(4,9,12,.05) 37%, rgba(4,9,12,.93) 55%, #080d10 69%),
      linear-gradient(90deg, rgba(3,8,11,.13), transparent 72%);
  }
  .hero::after {
    position: absolute;
    z-index: -1;
    top: calc(54svh - 96px);
    right: 0;
    left: 0;
    height: 104px;
    content: "";
    background: linear-gradient(180deg, transparent 0%, rgba(8,13,16,.94) 58%, #080d10 78%);
    pointer-events: none;
  }
  .site-header { display: flex; justify-content: space-between; padding: 22px 20px; }
  .site-header.is-scrolled { padding: 15px 20px; }
  .brand { font-size: 18px; }
  .header-actions { display: none; }
  .menu-button { display: grid; gap: 7px; padding: 10px 2px; cursor: pointer; }
  .menu-button span { display: block; width: 25px; height: 1px; background: white; }
  .menu-toggle:checked ~ .primary-nav {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(8,13,16,.96);
    backdrop-filter: blur(18px);
  }
  .site-header.is-scrolled .menu-toggle:checked ~ .primary-nav {
    border-color: rgba(17,19,21,.15);
    background: rgba(255,255,255,.98);
    color: #111315;
  }
  .primary-nav a { padding: 13px 12px; }
  .hero-content {
    position: relative;
    left: auto;
    bottom: auto;
    align-items: flex-start;
    width: 100%;
    min-height: auto;
    padding: 10px 20px 26px;
  }
  .copy-block { width: 100%; }
  .copy-block h1 { margin-bottom: 13px; font-size: clamp(44px, 12.5vw, 56px); }
  .copy-block p { margin-bottom: 22px; font-size: 14px; max-width: 360px; }
  .split-cta { min-height: 47px; }
  .integration-bar {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 8px;
    min-height: 102px;
    padding: 12px 16px 14px;
  }
  .rail-label {
    font-size: 11px;
    letter-spacing: .02em;
  }
  .rail-label br { display: none; }
  .rail-divider { display: none; }
  .partner-rail {
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .partner-rail::-webkit-scrollbar { display: none; }
  .partner { font-size: 14px; }
  .partner img { width: 22px; height: 22px; }
  .partner:nth-child(n) { display: inline-flex; }

  .research-section {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 64px 20px 80px;
  }
  .research-kicker {
    margin-bottom: 64px;
    padding-bottom: 14px;
    font-size: 10px;
  }
  .research-grid {
    gap: 38px;
  }
  .research-grid h2 {
    font-size: clamp(39px, 11.5vw, 51px);
  }
  .research-copy p {
    font-size: 16px;
  }
  .research-invitation {
    margin-top: 30px;
    padding-top: 24px;
  }
  .research-invitation p {
    font-size: 14px;
    line-height: 1.5;
  }
  .research-path {
    flex-wrap: wrap;
    gap: 9px 11px;
    margin-top: 38px;
    font-size: 10px;
  }
  .page-shell { --shell-width: calc(100% - 28px); --content-pad: 20px; }
  .research-team { margin-top: 90px; }
  .section-marker { align-items: flex-start; flex-direction: column; gap: 8px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-image { min-height: 410px; }
  .profile-ava { background-position: center 16%; }
  .profile-details { min-height: auto; padding: 22px; }
  .contribute-section { min-height: 390px; margin-bottom: 0; background-position: 62% center; }
  .contribute-section::before { background: linear-gradient(180deg, rgba(8,12,13,.36), rgba(8,12,13,.88) 58%, rgba(8,12,13,.96)); }
  .contribute-content { justify-content: flex-end; width: 100%; min-height: 390px; padding: 24px 20px; }
  .contribute-content h2 { margin-bottom: 15px; font-size: clamp(38px, 10vw, 48px); }
  .contribute-content > p:not(.eyebrow) { margin-bottom: 23px; font-size: 14px; line-height: 1.42; }
  .eyebrow { margin-bottom: 17px; font-size: 9px; }
  .contribute-button { grid-template-columns: minmax(0,1fr) 45px; width: 100%; min-height: 48px; font-size: 12px; }
  .contribute-button span { justify-items: start; padding: 0 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 26px 28px 22px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); justify-self: stretch; gap: 12px 28px; width: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .footer-legal { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .footer-legal p { font-size: 9px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
