:root {
  --bg: oklch(0.975 0.004 255);
  --surface: oklch(1 0 0);
  --ink: oklch(0.18 0.02 264);
  --body: oklch(0.39 0.028 264);
  --muted: oklch(0.47 0.025 264);
  --line: oklch(0.88 0.012 255);
  --blue: oklch(0.53 0.235 264);
  --blue-dark: oklch(0.31 0.145 264);
  --blue-pale: oklch(0.92 0.045 264);
  --dark: oklch(0.17 0.022 264);
  --dark-field: oklch(0.225 0.025 264);
  --white: oklch(1 0 0);
  --success: oklch(0.78 0.15 156);
  --error: oklch(0.79 0.13 27);
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(88px, 10vw, 148px);
  --focus: 0 0 0 4px oklch(0.72 0.16 264 / 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  font-family: "Geologica", Arial, sans-serif;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

.shell {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 11px 15px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: "Geologica", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
  align-items: center;
  gap: clamp(56px, 7vw, 112px);
  padding-block: clamp(64px, 8vw, 112px);
}

.hero-copy {
  min-width: 0;
}

.hero-role {
  margin-bottom: 26px;
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 700;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 32px;
  font-size: clamp(50px, 5vw, 74px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 61ch;
  margin-bottom: 34px;
  color: var(--body);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.52;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-bottom: 52px;
}

.primary-link,
.plain-link,
.case-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.primary-link {
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.primary-link:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.plain-link,
.case-link {
  color: var(--ink);
  text-decoration-color: var(--line);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.plain-link:hover,
.case-link:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.experience-line {
  max-width: 64ch;
  margin-bottom: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.experience-line strong {
  color: var(--ink);
}

.hero-portrait {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 5;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--line);
}

.hero-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 172px;
  padding: 15px 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-portrait figcaption span {
  color: var(--muted);
  font-weight: 500;
}

.hero-copy,
.hero-portrait {
  animation: hero-enter 720ms var(--ease-out) both;
}

.hero-portrait {
  animation-delay: 90ms;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.section-opening {
  max-width: 760px;
  margin-bottom: clamp(72px, 8vw, 112px);
}

.section-opening > p:first-child,
.capabilities-intro > p,
.contact-copy > p:first-child {
  margin-bottom: 18px;
  font-weight: 700;
}

.section-opening h2,
.capabilities-intro h2,
.about-layout h2,
.contact-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(44px, 5.8vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-opening > p:last-child {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--body);
  font-size: 20px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
  padding-block: clamp(64px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.case-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.case-image img {
  width: 100%;
  height: auto;
  transition: transform 280ms var(--ease-out);
}

.case-image:hover img {
  transform: scale(1.012);
}

.case-copy {
  max-width: 500px;
}

.case-heading {
  margin-bottom: 28px;
}

.case-heading p {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 700;
}

.case-heading h3 {
  margin-bottom: 0;
  font-size: clamp(34px, 3.7vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.case-copy > p:not(.case-stack) {
  margin-bottom: 24px;
  color: var(--body);
  font-size: 18px;
}

.case-stack {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.case-link {
  justify-content: flex-start;
  gap: 8px;
}

.case-reverse .case-image {
  grid-column: 2;
}

.case-reverse .case-copy {
  grid-column: 1;
  grid-row: 1;
}

.more-work {
  margin-top: clamp(64px, 7vw, 104px);
  padding-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--ink);
}

.more-work h3 {
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.more-work ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-work li {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px;
  align-items: center;
  gap: 30px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.more-work li:last-child {
  border-bottom: 1px solid var(--line);
}

.more-work li > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: 34px;
  align-items: baseline;
}

.more-work strong {
  font-family: "Geologica", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.more-work li > div span {
  color: var(--body);
}

.more-work a,
.more-work-state {
  justify-self: end;
  font-size: 15px;
  font-weight: 700;
}

.more-work a:hover {
  color: var(--blue);
}

.more-work-state {
  color: var(--muted);
  font-weight: 600;
}

.capabilities-section {
  padding-block: var(--section-space);
  background: var(--blue);
  color: var(--white);
}

.capabilities-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: start;
}

.capabilities-intro {
  position: sticky;
  top: 48px;
}

.capabilities-intro > p {
  color: var(--blue-pale);
}

.capabilities-intro h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

.capability-list > div {
  padding-block: 34px;
  border-top: 1px solid oklch(1 0 0 / 0.34);
}

.capability-list > div:last-child {
  border-bottom: 1px solid oklch(1 0 0 / 0.34);
}

.capability-list h3 {
  margin-bottom: 10px;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.capability-list p {
  max-width: 58ch;
  margin-bottom: 0;
  color: oklch(0.94 0.025 264);
  font-size: 18px;
}

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

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(64px, 10vw, 160px);
  align-items: start;
}

.about-layout h2 {
  margin-bottom: 0;
}

.about-copy {
  max-width: 720px;
}

.about-copy p {
  margin-bottom: 24px;
  color: var(--body);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.58;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-section {
  padding-block: var(--section-space);
  background: var(--dark);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: start;
}

.contact-copy > p:first-child {
  color: var(--blue-pale);
}

.contact-copy h2 {
  max-width: 10ch;
}

.contact-copy > p:not(:first-child) {
  max-width: 46ch;
  margin-bottom: 26px;
  color: oklch(0.84 0.022 264);
  font-size: 18px;
}

.contact-copy > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-weight: 700;
}

.contact-copy > a:hover {
  color: var(--blue-pale);
}

.contact-form {
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.field label span {
  color: oklch(0.72 0.025 264);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid oklch(0.48 0.025 264);
  border-radius: 4px;
  outline: none;
  background: var(--dark-field);
  color: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 164px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: oklch(0.64 0.03 264);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-pale);
  box-shadow: 0 0 0 3px oklch(0.88 0.07 264 / 0.2);
  background: oklch(0.245 0.03 264);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

.field-help {
  margin: 8px 0 0;
  color: oklch(0.72 0.025 264);
  font-size: 14px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-submit button {
  min-width: 152px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--white);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.form-submit button:hover:not(:disabled) {
  background: var(--blue-pale);
}

.form-submit button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: oklch(0.82 0.025 264);
  font-size: 15px;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.site-footer {
  border-top: 1px solid oklch(1 0 0 / 0.16);
  background: var(--dark);
  color: var(--white);
}

.not-found {
  min-height: calc(100svh - 77px);
  display: grid;
  align-content: center;
  padding-block: var(--section-space);
}

.not-found p:first-child {
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-weight: 700;
}

.not-found h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.not-found p:not(:first-child) {
  max-width: 46ch;
  margin-bottom: 30px;
  color: var(--body);
  font-size: 20px;
}

.not-found .primary-link {
  width: fit-content;
}

.footer-inner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 32px;
}

.footer-inner p {
  margin-bottom: 0;
  color: oklch(0.79 0.02 264);
  font-size: 15px;
  line-height: 1.55;
}

.footer-inner strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: oklch(0.79 0.02 264);
  font-size: 14px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(46px, 6vw, 66px);
  }

  .case-study {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 46px;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
  }
}

@media (max-width: 820px) {
  .hero-layout,
  .capabilities-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(50px, 9vw, 70px);
  }

  .hero-portrait {
    width: min(100%, 620px);
  }

  .case-study,
  .case-reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .case-reverse .case-image,
  .case-reverse .case-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .case-copy {
    max-width: 660px;
  }

  .more-work li > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .capabilities-intro {
    position: static;
  }

  .capabilities-intro h2,
  .contact-copy h2 {
    max-width: 12ch;
  }

  .about-layout,
  .contact-layout,
  .capabilities-layout {
    gap: 48px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-space: 78px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 68px;
    gap: 16px;
  }

  .brand {
    font-size: 14px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero-layout {
    min-height: 0;
    padding-block: 58px 76px;
  }

  .hero-role {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 26px;
    font-size: clamp(42px, 12.4vw, 58px);
    letter-spacing: -0.035em;
  }

  .hero-intro {
    font-size: 18px;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 42px;
  }

  .primary-link,
  .plain-link {
    width: 100%;
  }

  .hero-portrait figcaption {
    min-width: 154px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .section-opening {
    margin-bottom: 52px;
  }

  .section-opening h2,
  .capabilities-intro h2,
  .about-layout h2,
  .contact-copy h2 {
    font-size: clamp(39px, 11.5vw, 54px);
    letter-spacing: -0.035em;
  }

  .section-opening > p:last-child {
    font-size: 18px;
  }

  .case-study {
    padding-block: 52px;
  }

  .case-heading h3 {
    font-size: 34px;
  }

  .more-work li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .more-work a,
  .more-work-state {
    justify-self: start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero h1 {
    font-size: 41px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
