@layer reset, base, components, utilities;

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

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

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

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

@layer base {
  :root {
    --ink: #f4f4f2;
    --muted: #989b9f;
    --dim: #686b6f;
    --line: rgba(255, 255, 255, 0.12);
    --line-bright: rgba(255, 255, 255, 0.26);
    --surface: #0b0c0e;
    --surface-raised: #111315;
    --silver: #d8dadd;
    --page-x: clamp(1.4rem, 5vw, 5.75rem);
    --serif: "Bodoni 72", Didot, "Times New Roman", serif;
    --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background: #070809;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: rgba(216, 218, 221, 0.25);
    color: #fff;
  }

  :focus-visible {
    outline: 1px solid #fff;
    outline-offset: 5px;
  }
}

@layer components {
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    transform: translateY(-150%);
    background: #fff;
    color: #08090a;
    transition: transform 180ms ease;
  }

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

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.25rem;
    padding: 0 var(--page-x);
    border-bottom: 1px solid transparent;
    transition: background 300ms ease, border-color 300ms ease,
      backdrop-filter 300ms ease;
  }

  .site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(7, 8, 9, 0.76);
    backdrop-filter: blur(18px) saturate(120%);
  }

  .brand,
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
  }

  .brand__mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.18rem;
  }

  .brand__name,
  .footer-brand span {
    font-size: 0.75rem;
    font-weight: 560;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .site-nav {
    display: flex;
    gap: clamp(1.2rem, 3vw, 3.2rem);
  }

  .site-nav a {
    position: relative;
    color: #b3b5b8;
    font-size: 0.7rem;
    font-weight: 560;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 180ms ease;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    background: #fff;
    content: "";
    transition: transform 180ms ease;
  }

  .site-nav a:hover {
    color: #fff;
  }

  .site-nav a:hover::after {
    transform: scaleX(1);
  }

  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
    align-items: center;
    min-height: 100svh;
    overflow: hidden;
    padding: 8rem var(--page-x) 5rem;
    isolation: isolate;
  }

  .hero__atmosphere {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
      radial-gradient(circle at 78% 42%, rgba(166, 173, 181, 0.12), transparent 25%),
      radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.035), transparent 20%),
      linear-gradient(135deg, #090a0b, #050607 62%, #090a0c);
  }

  .hero__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.18;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 7.5rem 7.5rem;
    mask-image: linear-gradient(90deg, black, transparent 75%);
  }

  .hero::after {
    position: absolute;
    right: var(--page-x);
    bottom: 0;
    left: var(--page-x);
    height: 1px;
    background: var(--line);
    content: "";
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    max-width: 54rem;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a6a9ac;
    font-size: 0.69rem;
    font-weight: 560;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .eyebrow span {
    width: 2.3rem;
    height: 1px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.16));
  }

  .hero h1 {
    max-width: 13ch;
    margin: clamp(1.5rem, 3vw, 2.4rem) 0 1.7rem;
    font-family: var(--serif);
    font-size: clamp(3.5rem, 7.2vw, 7.8rem);
    font-weight: 400;
    letter-spacing: -0.052em;
    line-height: 0.92;
  }

  .hero h1 em {
    color: #b9bcc0;
    font-weight: 400;
  }

  .hero__intro {
    max-width: 38rem;
    padding-left: 1.15rem;
    border-left: 1px solid var(--line-bright);
    color: #a5a8ab;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
  }

  .hero__visual {
    position: relative;
    z-index: 1;
    width: min(46vw, 44rem);
    justify-self: end;
  }

  .hero__image-wrap {
    position: relative;
    filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.55));
  }

  .hero__image-wrap::after {
    position: absolute;
    inset: 10%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(207, 216, 224, 0.11);
    content: "";
    filter: blur(3rem);
  }

  .hero__image-wrap img {
    width: 100%;
    mix-blend-mode: screen;
  }

  .hero__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero__orbit::before {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 1rem 0.25rem rgba(255, 255, 255, 0.28);
    content: "";
  }

  .hero__orbit--outer {
    width: 108%;
    aspect-ratio: 1;
    animation: orbit 32s linear infinite;
  }

  .hero__orbit--inner {
    width: 82%;
    aspect-ratio: 1;
    animation: orbit-reverse 24s linear infinite;
    border-color: rgba(255, 255, 255, 0.05);
  }

  .scroll-cue {
    position: absolute;
    bottom: 2.25rem;
    left: var(--page-x);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #777a7d;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .scroll-cue i {
    position: relative;
    width: 3.5rem;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
  }

  .scroll-cue i::after {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: #fff;
    content: "";
    animation: scan 2.4s ease-in-out infinite;
  }

  .section {
    position: relative;
    padding: clamp(6rem, 11vw, 11rem) var(--page-x);
  }

  .section__heading {
    display: grid;
    grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1.2fr);
    column-gap: clamp(2rem, 9vw, 9rem);
    margin-bottom: clamp(3rem, 7vw, 6rem);
  }

  .section__heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 2.3rem;
  }

  .section h2 {
    max-width: 17ch;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5.2vw, 5.7rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
  }

  .section__heading > p:last-child {
    max-width: 31rem;
    align-self: end;
    padding-bottom: 0.5rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
  }

  .portfolio {
    background: #090a0b;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .portfolio-card {
    position: relative;
    display: flex;
    min-height: 21rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(1.6rem, 3.4vw, 3.4rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.008);
    transition: background 350ms ease;
  }

  .portfolio-card::before {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 65%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    content: "";
    filter: blur(4rem);
    opacity: 0;
    transition: opacity 350ms ease;
  }

  .portfolio-card:hover {
    background: rgba(255, 255, 255, 0.025);
  }

  .portfolio-card:hover::before {
    opacity: 1;
  }

  .portfolio-card__index {
    color: #66696c;
    font-family: var(--serif);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .portfolio-card h3 {
    max-width: 15ch;
    margin-bottom: 1rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.04;
  }

  .portfolio-card p {
    max-width: 33rem;
    color: var(--muted);
  }

  .portfolio-card__line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #f7f7f7, transparent 75%);
    transition: transform 500ms ease;
  }

  .portfolio-card:hover .portfolio-card__line {
    transform: scaleX(1);
  }

  .perspectives {
    overflow: hidden;
    background:
      radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.045), transparent 25%),
      #070809;
  }

  .perspectives__heading {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
    column-gap: clamp(2rem, 9vw, 9rem);
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
  }

  .perspectives__heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 2.3rem;
  }

  .perspectives__heading h2 em {
    color: #aeb1b5;
    font-weight: 400;
  }

  .perspectives__heading > p:last-child {
    max-width: 32rem;
    align-self: end;
    padding-bottom: 0.55rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
  }

  .editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-rows: repeat(2, minmax(18rem, 27vw));
    gap: clamp(0.75rem, 1.5vw, 1.4rem);
  }

  .editorial-card {
    --shift-x: 0px;
    --shift-y: 0px;
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111315;
    isolation: isolate;
  }

  .editorial-card--architecture {
    grid-row: 1 / 3;
  }

  .editorial-card img {
    position: absolute;
    inset: -1.5rem;
    width: calc(100% + 3rem);
    height: calc(100% + 3rem);
    max-width: none;
    transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.04);
    filter: saturate(0.65) contrast(1.04) brightness(0.84);
    object-fit: cover;
    transition: filter 700ms ease, transform 250ms ease-out;
  }

  .editorial-card--consulting img {
    object-position: 54% center;
  }

  .editorial-card--operations img {
    object-position: 62% center;
  }

  .editorial-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, transparent 35%, rgba(4, 5, 6, 0.86) 100%),
      linear-gradient(90deg, rgba(4, 5, 6, 0.2), transparent 55%);
    transition: opacity 500ms ease;
  }

  .editorial-card::after {
    position: absolute;
    inset: 1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    content: "";
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 400ms ease, transform 500ms ease;
    pointer-events: none;
  }

  .editorial-card__meta {
    position: absolute;
    right: clamp(1.5rem, 3vw, 3rem);
    bottom: clamp(1.5rem, 3vw, 3rem);
    left: clamp(1.5rem, 3vw, 3rem);
    z-index: 3;
  }

  .editorial-card__meta span {
    display: block;
    margin-bottom: 0.8rem;
    color: #b4b7ba;
    font-size: 0.64rem;
    font-weight: 560;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .editorial-card__meta h3 {
    max-width: 15ch;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.4vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.98;
  }

  .editorial-card:not(.editorial-card--architecture) .editorial-card__meta h3 {
    font-size: clamp(1.65rem, 2.3vw, 2.65rem);
  }

  .editorial-card:hover img {
    filter: saturate(0.9) contrast(1.02) brightness(0.98);
  }

  .editorial-card:hover .editorial-card__shade {
    opacity: 0.76;
  }

  .editorial-card:hover::after {
    opacity: 1;
    transform: scale(1);
  }

  .approach {
    overflow: hidden;
    background:
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.045), transparent 24%),
      #0d0f11;
  }

  .approach__panel {
    display: grid;
    grid-template-columns: minmax(17rem, 0.78fr) minmax(25rem, 1.2fr);
    gap: clamp(3rem, 10vw, 10rem);
  }

  .approach__intro h2 {
    margin: 2rem 0;
  }

  .approach__intro > p:last-child {
    max-width: 31rem;
    color: var(--muted);
    font-size: 1.06rem;
  }

  .principles {
    border-top: 1px solid var(--line-bright);
  }

  .principles article {
    display: grid;
    grid-template-columns: 5rem minmax(10rem, 0.8fr) minmax(12rem, 1fr);
    gap: 1.4rem;
    align-items: center;
    min-height: 9rem;
    border-bottom: 1px solid var(--line);
  }

  .principles span {
    color: #74777a;
    font-size: 0.65rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }

  .principles h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.025em;
  }

  .principles p {
    color: var(--muted);
    font-size: 0.93rem;
  }

  .scale {
    display: grid;
    min-height: 80vh;
    place-items: center;
    overflow: hidden;
    text-align: center;
    background: #08090a;
    isolation: isolate;
  }

  .scale::before,
  .scale::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(86vw, 76rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    content: "";
  }

  .scale::after {
    width: min(58vw, 48rem);
    border-color: rgba(255, 255, 255, 0.09);
  }

  .scale__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -2;
    width: 35rem;
    height: 35rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(199, 207, 215, 0.06);
    filter: blur(5rem);
  }

  .scale__content {
    max-width: 76rem;
  }

  .scale .eyebrow {
    justify-content: center;
  }

  .scale h2 {
    max-width: 19ch;
    margin: 2.2rem auto 2rem;
  }

  .scale h2 strong {
    color: #fff;
    font-weight: 400;
    text-shadow: 0 0 2.5rem rgba(255, 255, 255, 0.18);
  }

  .scale__content > p:last-child {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--muted);
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2.3rem var(--page-x);
    border-top: 1px solid var(--line);
    background: #060708;
    color: #66696c;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-footer > p:last-child {
    justify-self: end;
  }

  .footer-brand {
    color: #b6b8bb;
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(1.6rem);
    transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  [data-reveal][data-delay="1"] {
    transition-delay: 100ms;
  }

  [data-reveal][data-delay="2"] {
    transition-delay: 200ms;
  }

  [data-reveal][data-delay="3"] {
    transition-delay: 300ms;
  }

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

  @keyframes orbit {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  @keyframes orbit-reverse {
    from {
      transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(0deg);
    }
  }

  @keyframes scan {
    0%,
    30% {
      transform: translateX(-100%);
    }
    70%,
    100% {
      transform: translateX(100%);
    }
  }
}

@layer utilities {
  @media (max-width: 980px) {
    .hero {
      grid-template-columns: 1fr 0.85fr;
    }

    .hero__visual {
      width: 53vw;
      margin-right: -12vw;
    }

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

    .approach__intro > p:last-child {
      max-width: 42rem;
    }

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

    .site-footer > p:nth-child(2) {
      justify-self: end;
    }

    .site-footer > p:last-child {
      grid-column: 1 / -1;
      justify-self: start;
    }
  }

  @media (max-width: 720px) {
    .site-header {
      min-height: 4.5rem;
    }

    .brand__name {
      max-width: 9rem;
    }

    .site-nav {
      display: none;
    }

    .hero {
      display: block;
      min-height: 100svh;
      padding-top: 7rem;
    }

    .hero__copy {
      position: relative;
      z-index: 3;
    }

    .hero h1 {
      font-size: clamp(3.3rem, 15vw, 5.5rem);
    }

    .hero__intro {
      max-width: 29rem;
      font-size: 0.96rem;
    }

    .hero__visual {
      position: absolute;
      right: -24vw;
      bottom: 0;
      width: 90vw;
      margin: 0;
      opacity: 0.52;
    }

    .hero__image-wrap {
      mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
    }

    .hero__grid {
      background-size: 5rem 5rem;
    }

    .section__heading {
      display: block;
    }

    .perspectives__heading {
      display: block;
    }

    .perspectives__heading h2 {
      margin-bottom: 1.6rem;
    }

    .section__heading h2 {
      margin-bottom: 1.6rem;
    }

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

    .portfolio-card {
      min-height: 18rem;
    }

    .editorial-grid {
      grid-template-columns: 1fr;
      grid-template-rows: none;
    }

    .editorial-card,
    .editorial-card--architecture {
      grid-row: auto;
      min-height: 25rem;
    }

    .editorial-card--consulting,
    .editorial-card--operations {
      min-height: 20rem;
    }

    .principles article {
      grid-template-columns: 1fr;
      gap: 0.55rem;
      padding: 2rem 0;
    }

    .principles span {
      margin-bottom: 0.35rem;
    }

    .scale {
      min-height: 70vh;
    }

    .scale::before {
      width: 150vw;
    }

    .scale::after {
      width: 105vw;
    }

    .site-footer {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .site-footer > p:nth-child(2),
    .site-footer > p:last-child {
      grid-column: auto;
      justify-self: start;
    }
  }

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

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

    [data-reveal] {
      opacity: 1;
      transform: none;
    }
  }
}
