:root {
  color-scheme: dark;
  --ink: #111315;
  --ink-2: #191c1f;
  --paper: #f2eee7;
  --paper-2: #e8e2d8;
  --white: #fffdf9;
  --text: #e8e3dc;
  --muted: #aaa59e;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(17, 19, 21, 0.18);
  --coral: #ff5948;
  --coral-dark: #c9362a;
  --cyan: #20c9ff;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1220px, calc(100% - 64px));
  --section-space: clamp(88px, 10vw, 148px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--coral);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 19, 21, 0.9);
  border-color: var(--line-dark);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand small {
  margin-left: 2px;
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 0.45em;
  font-weight: 700;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  color: #e6e1da;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--coral);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 14px;
}

.button-accent {
  background: var(--coral);
  color: var(--white);
}

.button-accent:hover {
  background: #ff7061;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(17, 19, 21, 0.32);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(17, 19, 21, 0.7);
}

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #15181b;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.98) 0%, rgba(17, 19, 21, 0.92) 29%, rgba(17, 19, 21, 0.26) 64%, rgba(17, 19, 21, 0.08) 100%),
    linear-gradient(0deg, rgba(17, 19, 21, 0.8) 0%, transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 136px;
  padding-bottom: 84px;
}

.hero-content > * {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--coral-dark);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(56px, 7.2vw, 104px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

h1 em {
  color: var(--paper-2);
  font-weight: 400;
}

.hero-lede {
  margin: 0;
  color: #d3cec7;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.founder-note {
  margin: 32px 0 0;
  color: #bbb6af;
  font-size: 14px;
}

.founder-note strong {
  color: var(--white);
}

.skills-rail {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #1b1e22;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.skills-list a {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid var(--line-dark);
  color: #e5e1da;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: color 180ms ease, background 180ms ease;
}

.skills-list a:last-child {
  border-right: 1px solid var(--line-dark);
}

.skills-list a:hover {
  background: #23272c;
  color: var(--white);
}

.skills-list span {
  color: var(--coral);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section {
  padding-block: var(--section-space);
}

.section-light,
.section-paper,
.contact {
  color: var(--ink);
  background: var(--paper);
}

.section-paper {
  background: var(--paper-2);
}

.section-dark {
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading h2,
.about-copy h2,
.partnership h2,
.contact h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.section-heading > p {
  margin: 0;
  color: #5e5b56;
  font-size: 17px;
}

.section-heading-dark > p {
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.work-item {
  position: relative;
  min-height: 410px;
  padding: 38px 34px 34px;
  border-left: 1px solid var(--line-light);
}

.work-item:last-child {
  border-right: 1px solid var(--line-light);
}

.work-number {
  position: absolute;
  right: 24px;
  top: 14px;
  color: rgba(17, 19, 21, 0.06);
  font-family: var(--font-display);
  font-size: 112px;
  line-height: 1;
}

.work-kicker {
  position: relative;
  margin: 0 0 52px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-item h3 {
  position: relative;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
}

.work-item > p:not(.work-kicker) {
  position: relative;
  margin: 0;
  color: #55524e;
}

.tag-list {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  border: 1px solid var(--line-light);
  color: #4d4944;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-list {
  border-top: 1px solid var(--line-dark);
}

.service-row {
  display: grid;
  grid-template-columns: 64px minmax(230px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid var(--line-dark);
}

.service-index {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

.service-row h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.25;
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.toolkit span {
  padding: 9px 13px;
  border: 1px solid var(--line-dark);
  color: #c7c1b9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}

.about-copy h2 {
  margin-bottom: 34px;
}

.about-copy p {
  color: #4f4c47;
}

.about-copy .about-lede {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
}

.process {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.process li {
  display: grid;
  grid-template-columns: 48px 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-light);
}

.process span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
}

.process strong {
  font-size: 17px;
}

.process p {
  margin: 0;
  color: #5c5954;
}

.partnership {
  position: relative;
  overflow: hidden;
  padding-block: 86px;
  background: #02070d;
}

.partnership-glow {
  position: absolute;
  inset: 0;
  background-image: url("assets/inferenco-flame.webp");
  background-repeat: no-repeat;
  background-position: 5% 42%;
  background-size: 540px;
  filter: blur(54px);
  opacity: 0.12;
  transform: scale(1.2);
}

.partnership-grid {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 54px;
  align-items: center;
}

.inferenco-mark {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid rgba(32, 201, 255, 0.2);
}

.partnership-copy .eyebrow {
  color: var(--cyan);
}

.partnership h2 {
  color: var(--white);
}

.partnership-copy > p:last-child {
  max-width: 670px;
  margin: 20px 0 0;
  color: #aeb6bf;
  font-size: 17px;
}

.button-cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button-cyan:hover {
  background: var(--cyan);
  color: #031018;
}

.contact {
  padding-block: var(--section-space);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 100px;
  align-items: start;
}

.contact h2 {
  max-width: 760px;
}

.contact-copy p {
  margin: 4px 0 28px;
  color: #55524d;
  font-size: 17px;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: #2a2e32;
}

.email-link {
  display: block;
  width: fit-content;
  margin-top: 20px;
  border-bottom: 1px solid currentColor;
  color: #4d4944;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
}

.footer-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.brand-footer {
  font-size: 20px;
}

.brand-footer img {
  width: 42px;
  height: 42px;
}

.footer-grid p,
.footer-grid > a:last-child {
  margin: 0;
  color: #8e8982;
  font-size: 12px;
}

.footer-grid > a:last-child {
  justify-self: end;
  border-bottom: 1px solid #5a5650;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 42px, 900px);
  }

  .site-nav {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 820px;
  }

  .hero-image {
    object-position: 64% 50%;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(17, 19, 21, 0.98) 0%, rgba(17, 19, 21, 0.92) 44%, rgba(17, 19, 21, 0.25) 100%);
  }

  .hero-content > * {
    max-width: 580px;
  }

  .skills-list {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    overflow-x: auto;
  }

  .section-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    min-height: 330px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
  }

  .work-item:last-child {
    border-bottom: 0;
  }

  .partnership-grid {
    grid-template-columns: 140px 1fr;
  }

  .partnership-grid .button {
    grid-column: 2;
    justify-self: start;
  }

  .inferenco-mark {
    width: 140px;
    height: 140px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-grid p {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
    --section-space: 78px;
  }

  .nav-shell {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .button-small {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero {
    min-height: 820px;
    align-items: end;
  }

  .hero-image {
    height: 56%;
    top: 70px;
    object-position: 70% 38%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(17, 19, 21, 1) 0%, rgba(17, 19, 21, 0.98) 44%, rgba(17, 19, 21, 0.1) 72%, rgba(17, 19, 21, 0.12) 100%),
      linear-gradient(90deg, rgba(17, 19, 21, 0.3), transparent);
  }

  .hero-content {
    padding-top: 330px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(47px, 14vw, 66px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .founder-note {
    font-size: 12px;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .section-heading h2,
  .about-copy h2,
  .partnership h2,
  .contact h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .work-item {
    padding-inline: 24px;
  }

  .tag-list {
    left: 24px;
    right: 24px;
  }

  .service-row {
    grid-template-columns: 38px 1fr;
    gap: 12px 16px;
    padding-block: 25px;
  }

  .service-row p {
    grid-column: 2;
  }

  .process li {
    grid-template-columns: 38px 1fr;
  }

  .process p {
    grid-column: 2;
  }

  .partnership-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .partnership-grid .button {
    grid-column: 1;
  }

  .inferenco-mark {
    width: 112px;
    height: 112px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-block: 26px;
  }

  .footer-grid > a:last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
