@import "tailwindcss";

:root {
  --paper: #f7f6f2;
  --paper-deep: #ecebe5;
  --ink: #181817;
  --ink-soft: #5d5c56;
  --line: rgba(24, 24, 23, 0.16);
  --line-light: rgba(247, 246, 242, 0.2);
  --sky: #bfd8ed;
  --hero-shift: 0px;
  --radius: 999px;
}

@theme inline {
  --color-background: var(--paper);
  --color-foreground: var(--ink);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

.site-shell {
  min-width: 320px;
  overflow: clip;
}

.wrap {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid rgba(24, 24, 23, 0.13);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1440px);
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  transition: opacity 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.62;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 52px);
  font-size: 0.86rem;
  letter-spacing: -0.015em;
}

.primary-nav > a:not(.nav-cta) {
  position: relative;
  color: var(--ink-soft);
  transition: color 180ms ease;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-cta):hover,
.primary-nav > a:not(.nav-cta):focus-visible {
  color: var(--ink);
}

.primary-nav > a:not(.nav-cta):hover::after,
.primary-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 20px;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button--dark:hover,
.button--dark:focus-visible {
  background: #363632;
}

.nav-cta span,
.button span {
  font-size: 1rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
}

.menu-toggle i,
.menu-toggle i::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle i::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] i {
  transform: rotate(45deg) translateY(4px);
}

.menu-toggle[aria-expanded="true"] i::after {
  transform: rotate(-90deg) translateX(6px);
}

.hero-media {
  position: relative;
  height: min(72svh, 850px);
  min-height: 520px;
  overflow: hidden;
  background: #3d667e;
}

.hero-media__image {
  width: 100%;
  height: calc(100% + 34px);
  object-fit: cover;
  object-position: center 46%;
  transform: translateY(calc(var(--hero-shift) * -0.38));
  will-change: transform;
}

.hero-media__title {
  position: absolute;
  right: 0;
  bottom: clamp(58px, 8vw, 108px);
  left: 0;
  z-index: 1;
  color: var(--paper);
}

.hero-media__title .eyebrow {
  margin-bottom: 22px;
}

.hero-media__title h1 {
  max-width: 940px;
  margin-bottom: 0;
  color: var(--paper);
}

.hero-media__caption,
.hero-media__scroll {
  position: absolute;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: rgba(247, 246, 242, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-media__caption {
  top: clamp(94px, 7vw, 118px);
  right: 24px;
  left: 24px;
}

.hero-media__scroll {
  right: 24px;
  bottom: 28px;
  left: 24px;
  align-items: center;
  gap: 12px;
}

.hero-media__scroll span:last-child {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-intro {
  padding-top: clamp(60px, 8vw, 116px);
  padding-bottom: clamp(100px, 13vw, 196px);
}

.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(247, 246, 242, 0.64);
}

.hero-intro__content {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

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

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.07em;
}

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(4rem, 8.7vw, 9.35rem);
  line-height: 0.88;
}

.hero-intro__aside {
  width: min(100%, 380px);
  padding-bottom: 6px;
}

.hero-intro__aside > p {
  max-width: 380px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  opacity: 0.56;
}

.beliefs {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(78px, 9vw, 144px) 0 clamp(90px, 11vw, 172px);
}

.section-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}

.section-topline__note {
  margin: 0;
  color: rgba(247, 246, 242, 0.56);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.beliefs__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  gap: clamp(42px, 9vw, 150px);
  align-items: end;
  padding: clamp(78px, 10vw, 150px) 0 clamp(90px, 12vw, 190px);
}

.beliefs h2 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(3.5rem, 7.5vw, 8.2rem);
  line-height: 0.9;
}

.beliefs__lead > p {
  max-width: 360px;
  margin-bottom: 5px;
  color: rgba(247, 246, 242, 0.66);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.anchor-target {
  display: block;
  position: relative;
  top: -110px;
  visibility: hidden;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  min-height: 222px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.principle__number {
  display: block;
  margin-bottom: 56px;
  color: rgba(247, 246, 242, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.principle h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1;
}

.principle p {
  max-width: 275px;
  margin-bottom: 0;
  color: rgba(247, 246, 242, 0.58);
  font-size: 0.96rem;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.work-section {
  padding: clamp(96px, 13vw, 208px) 0 clamp(92px, 11vw, 168px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.65fr);
  gap: clamp(42px, 9vw, 150px);
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 800px;
  margin: 26px 0 0;
  font-size: clamp(3.4rem, 6.8vw, 7.7rem);
  line-height: 0.9;
}

.section-heading__note {
  max-width: 360px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.project-row {
  display: grid;
  grid-template-columns: 42px 64px minmax(240px, 1.3fr) minmax(140px, 0.55fr) minmax(130px, 0.45fr) 32px;
  gap: 20px;
  align-items: center;
  min-height: 142px;
  padding: 24px 0;
  transition: background-color 220ms ease;
}

.project-row:hover,
.project-row:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.project-row--static {
  cursor: default;
}

.project-index,
.project-category,
.project-status {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--project-accent);
  color: rgba(24, 24, 23, 0.78);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 23, 0.08);
  transition: transform 220ms ease;
}

.project-row:hover .project-icon,
.project-row:focus-visible .project-icon {
  transform: rotate(-7deg) scale(1.05);
}

.project-main {
  display: grid;
  gap: 7px;
}

.project-name {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  letter-spacing: -0.06em;
}

.project-description {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.project-status {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.project-status span:last-child {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.project-arrow {
  align-self: center;
  justify-self: end;
  color: var(--ink-soft);
  font-size: 1.35rem;
  transition: transform 220ms ease, color 220ms ease;
}

.project-row:hover .project-arrow,
.project-row:focus-visible .project-arrow {
  color: var(--ink);
  transform: translate(4px, -4px);
}

.work-footnote {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.closing-cta {
  position: relative;
  min-height: min(76svh, 900px);
  overflow: hidden;
  background: var(--sky);
  color: var(--ink);
}

.closing-cta__image,
.closing-cta__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-cta__image {
  object-fit: cover;
  object-position: center center;
}

.closing-cta__scrim {
  background: linear-gradient(180deg, rgba(191, 216, 237, 0.02) 34%, rgba(247, 246, 242, 0.56) 100%);
}

.closing-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(76svh, 900px);
  padding-top: clamp(28px, 4vw, 58px);
  padding-bottom: clamp(34px, 5vw, 72px);
}

.closing-cta h2 {
  max-width: 960px;
  margin: auto 0;
  font-size: clamp(4.2rem, 9.2vw, 10rem);
  line-height: 0.87;
}

.closing-cta__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.closing-cta__bottom p {
  max-width: 300px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  background: var(--paper);
  padding: 28px 0 34px;
}

.site-footer__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.hero-intro.reveal {
  transition-delay: 120ms;
}

.beliefs__lead.reveal {
  transition-delay: 80ms;
}

.principle:nth-child(2).reveal,
.project-item:nth-child(2).reveal {
  transition-delay: 90ms;
}

.principle:nth-child(3).reveal,
.project-item:nth-child(3).reveal {
  transition-delay: 180ms;
}

*:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 940px) {
  .project-row {
    grid-template-columns: 34px 58px minmax(180px, 1fr) minmax(115px, 0.5fr) 32px;
  }

  .project-category {
    display: none;
  }
}

@media (max-width: 720px) {
  .wrap,
  .site-header__inner {
    width: min(100% - 32px, 1440px);
  }

  .site-header__inner {
    min-height: 70px;
  }

  .brand {
    width: 128px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -16px;
    left: -16px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 246, 242, 0.98);
    box-shadow: 0 18px 36px rgba(24, 24, 23, 0.08);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav > a:not(.nav-cta) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }

  .primary-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .primary-nav .nav-cta {
    margin-top: 16px;
    min-height: 48px;
  }

  .hero-media {
    height: 70svh;
    min-height: 480px;
  }

  .hero-media__image {
    object-position: 58% 46%;
  }

  .hero-media__caption,
  .hero-media__scroll {
    right: 16px;
    left: 16px;
  }

  .hero-media__caption {
    top: 88px;
  }

  .hero-media__scroll {
    bottom: 20px;
  }

  .hero-media__title {
    bottom: 56px;
  }

  .hero-media__title .eyebrow {
    margin-bottom: 16px;
  }

  .hero-media__title h1 {
    max-width: 620px;
  }

  .hero-intro__content,
  .beliefs__lead,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-intro {
    padding-top: 58px;
    padding-bottom: 92px;
  }

  h1 {
    font-size: clamp(3.8rem, 17vw, 7rem);
    line-height: 0.87;
  }

  .hero-intro__aside > p {
    max-width: 430px;
  }

  .section-topline__note {
    max-width: 150px;
    text-align: right;
  }

  .beliefs__lead {
    padding-top: 78px;
    padding-bottom: 92px;
  }

  .beliefs h2,
  .section-heading h2 {
    font-size: clamp(3.35rem, 15vw, 6.8rem);
  }

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

  .principle {
    min-height: auto;
    padding: 20px 0 30px;
  }

  .principle__number {
    margin-bottom: 34px;
  }

  .section-heading__note {
    max-width: 380px;
  }

  .project-row {
    grid-template-columns: 42px 52px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 118px;
    padding: 18px 0;
  }

  .project-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .project-index {
    align-self: start;
    padding-top: 16px;
  }

  .project-name {
    font-size: 1.6rem;
  }

  .project-description {
    max-width: 220px;
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .project-status {
    display: none;
  }

  .closing-cta,
  .closing-cta__content {
    min-height: 70svh;
  }

  .closing-cta__image {
    object-position: 52% center;
  }

  .closing-cta h2 {
    font-size: clamp(4.1rem, 17vw, 7.4rem);
  }

  .closing-cta__bottom {
    align-items: start;
    flex-direction: column;
  }

  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

  .site-footer__links {
    justify-content: start;
    gap: 10px 18px;
  }
}

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

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

  .hero-media__image {
    transform: none;
  }

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


/* Static Cloudflare Pages fallback: keep server-rendered content visible. */
.cloudflare-static .reveal {
  opacity: 1;
  transform: none;
}
