@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #050b12;
  --line: rgba(190, 205, 222, .18);
  --line-strong: rgba(190, 205, 222, .34);
  --text: #e8edf4;
  --muted: #9ba8ba;
  --blue: #6da4dd;
  --silver: #d7dce4;
  --max: 1540px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 83% 10%, rgba(145, 160, 180, .16), transparent 32rem),
    linear-gradient(135deg, #03070d, #07111d 48%, #040911);
  color: var(--text);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 92px 92px;
  pointer-events: none;
  opacity: .38;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 55%, rgba(190, 205, 222, .055) 56%, transparent 57%),
    linear-gradient(150deg, transparent 62%, rgba(190, 205, 222, .035) 63%, transparent 64%);
  pointer-events: none;
  z-index: -1;
}

.inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

/* HEADER */

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

.site-header .inner {
  height: 104px;
  display: grid;
  grid-template-columns: 270px 1fr;
  align-items: center;
  padding: 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.35;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(32px, 4.7vw, 72px);
  align-items: center;
}

.nav a,
.nav span {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .7rem;
  font-weight: 700;
  opacity: .85;
}

.menu-toggle { display: none; }

/* HERO */

.hero {
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 72% 42%, rgba(109, 164, 221, .11), transparent 26rem),
    linear-gradient(90deg, rgba(5, 11, 18, .08), rgba(255,255,255,.018), rgba(5, 11, 18, .08));
}

.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: 47% 53%;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 110px var(--pad) 84px;
  position: relative;
  z-index: 4;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .76rem;
  font-weight: 700;
  margin: 0 0 24px;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  font-size: clamp(5rem, 7.6vw, 8.4rem);
  line-height: .78;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 0 0 32px;
}

h1 span,
.contact h2 span {
  color: var(--blue);
}

.lead {
  max-width: 470px;
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.72;
}

.quote {
  max-width: 410px;
  color: var(--silver);
  border-left: 2px solid var(--blue);
  padding-left: 24px;
  font-style: italic;
  line-height: 1.65;
  margin: 30px 0;
}

.actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  min-width: 210px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, #f3f4f6, #bfc6cf);
  color: #08111d;
}

/* integrated hero animation */

.system-graphic {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  border: 0;
}

.system-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 69% 34%, rgba(109, 164, 221, .12), transparent 20rem),
    radial-gradient(circle at 48% 72%, rgba(215, 220, 228, .045), transparent 22rem);
  opacity: .9;
}

.system-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(190, 205, 222, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 205, 222, .022) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: .24;
  mask-image: linear-gradient(to right, transparent 0%, transparent 36%, black 62%, black 100%);
}

.trace {
  position: absolute;
  height: 1px;
  width: 48%;
  overflow: hidden;
  transform-origin: center;
  opacity: .36;
  z-index: 2;
}

.trace::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 39%,
    rgba(109, 164, 221, .08) 45%,
    rgba(215, 220, 228, .52) 50%,
    rgba(109, 164, 221, .11) 56%,
    transparent 64%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: traceMove 8.5s linear infinite;
  filter: drop-shadow(0 0 7px rgba(109, 164, 221, .26));
}

.trace-one { top: 30%; left: 54%; transform: rotate(-28deg); }
.trace-two { top: 47%; left: 48%; transform: rotate(24deg); }
.trace-three { top: 65%; left: 53%; transform: rotate(-13deg); }
.trace-four { top: 39%; left: 70%; width: 26%; transform: rotate(68deg); }

.trace-two::before { animation-delay: 1.8s; }
.trace-three::before { animation-delay: 3.7s; }
.trace-four::before { animation-delay: 5.1s; }

.system-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(215, 220, 228, .62);
  box-shadow:
    0 0 10px rgba(215, 220, 228, .42),
    0 0 24px rgba(109, 164, 221, .24);
  opacity: .34;
  animation: nodePulse 6s ease-in-out infinite;
  z-index: 3;
}

.node-one { top: 30%; left: 64%; }
.node-two { top: 45%; left: 82%; animation-delay: 1.4s; }
.node-three { top: 64%; left: 67%; animation-delay: 2.8s; }
.node-four { top: 37%; left: 89%; animation-delay: 4.2s; }

@keyframes traceMove {
  0% { transform: translateX(-100%); opacity: 0; }
  14% { opacity: .65; }
  58% { opacity: .42; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes nodePulse {
  0%, 100% { opacity: .22; transform: scale(1); }
  45% { opacity: .72; transform: scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
  .trace::before,
  .system-node {
    animation: none;
  }
}

/* WORK */

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

.work-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.rail {
  grid-column: 1;
  grid-row: 1 / span 3;
  border-right: 1px solid var(--line-strong);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.featured,
.project-row {
  grid-column: 2;
}

.featured {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 480px;
  border-bottom: 1px solid var(--line);
}

.project-copy {
  padding: 68px var(--pad);
}

.project-copy h2,
.project-row h3 {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: 2.75rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.project-copy p,
.project-row p,
.contact-info p {
  color: var(--muted);
}

ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

li {
  color: var(--silver);
  margin: 10px 0;
  font-size: .9rem;
}

li::before {
  content: "→";
  color: var(--muted);
  margin-right: 12px;
}

.text-link {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: " →";
  margin-left: 18px;
}

.blackwick-visual {
  position: relative;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 56% 44%, rgba(215, 220, 228, .11), transparent 20rem),
    linear-gradient(135deg, rgba(10, 18, 29, .9), rgba(3, 6, 10, .98));
}

.blackwick-visual::before {
  content: "";
  position: absolute;
  width: min(72%, 620px);
  height: 390px;
  right: 6%;
  top: 70px;
  background: linear-gradient(135deg, #101319, #020304);
  transform: perspective(900px) rotateX(52deg) rotateZ(-24deg);
  box-shadow: 0 48px 110px rgba(0, 0, 0, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  opacity: .92;
}

.box-face {
  position: absolute;
  right: 19%;
  top: 140px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(205, 170, 105, .42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(205, 170, 105, .85);
  text-transform: uppercase;
  letter-spacing: .2em;
  text-align: center;
  font-size: .76rem;
  transform: rotate(-24deg);
  box-shadow: 0 0 42px rgba(205, 170, 105, .13);
}

.project-row {
  display: grid;
  grid-template-columns: 34% 44% 22%;
  column-gap: 32px;
  align-items: center;
  min-height: 150px;
  padding: 44px var(--pad);
  border-bottom: 1px solid var(--line);
}

.project-row > * {
  min-width: 0;
}

.num {
  color: var(--blue) !important;
  letter-spacing: .22em;
  font-size: .82rem;
}

.project-row h3 {
  font-size: 1.38rem;
  font-family: Inter, sans-serif;
  font-weight: 500;
}

.project-row ul {
  margin: 0;
}

.project-row li {
  font-size: .82rem;
  margin: 7px 0;
}

.project-row .text-link {
  justify-self: end;
}

/* LOGOS */

.logos,
.approach,
.contact,
footer {
  border-bottom: 1px solid var(--line-strong);
}

.logos-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.logos-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  margin: 0;
  padding: 34px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.logos-grid {
  padding: 34px var(--pad);
  display: grid;
  grid-template-columns: repeat(9, minmax(74px, 1fr));
  gap: 24px 34px;
  align-items: center;
}

.logos-grid img {
  width: 100%;
  max-width: 120px;
  height: 62px;
  object-fit: contain;
  opacity: .5;
  justify-self: center;
  filter: grayscale(100%) brightness(1.35) contrast(.9);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.logos-grid img:hover {
  opacity: .9;
  transform: translateY(-2px);
  filter: grayscale(100%) brightness(1.8) contrast(1);
}

/* APPROACH */

.approach-grid {
  display: grid;
  grid-template-columns: 150px repeat(4, 1fr);
  gap: 40px;
  padding: 52px var(--pad) 58px;
}

.approach-grid > div {
  border-left: 1px solid var(--line);
  padding-left: 38px;
}

.approach span {
  color: var(--blue);
  letter-spacing: .22em;
}

.approach h3 {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .9rem;
  margin: 18px 0 12px;
}

.approach p:not(.eyebrow) {
  color: var(--muted);
  font-size: .86rem;
  margin: 0;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 30% 46% 24%;
  gap: 44px;
  padding: 72px var(--pad);
  align-items: start;
}

.contact h2 {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  font-size: 3.3rem;
  line-height: .95;
  letter-spacing: .02em;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea,
.contact button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
}

textarea {
  height: 92px;
  margin: 14px 0;
  resize: vertical;
}

.contact button {
  background: linear-gradient(135deg, #f1f3f6, #b8c0ca);
  color: #07101d;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}

.contact-info {
  border-left: 1px solid var(--line-strong);
  padding-left: 40px;
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
}

/* FOOTER */

.footer-grid {
  display: flex;
  justify-content: space-between;
  padding: 18px var(--pad);
  color: rgba(215, 220, 228, .52);
  font-size: .76rem;
}

/* MOBILE */

@media (max-width: 1100px) {
  :root { --max: 100%; }

  .logos-grid {
    grid-template-columns: repeat(6, minmax(74px, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header .inner {
    height: auto;
    padding: 22px 24px;
    grid-template-columns: 1fr auto;
  }

  .brand span { font-size: .7rem; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 13, .96);
    z-index: 20;
    flex-direction: column;
    justify-content: center;
  }

  .nav.open { display: flex; }

  .menu-toggle {
    display: block;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: .16em;
    z-index: 30;
  }

  .hero-grid,
  .featured,
  .project-row,
  .logos-inner,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { min-height: auto; }

  .hero-copy {
    padding: 64px 24px;
  }

  .system-graphic {
    position: relative;
    min-height: 320px;
  }

  .trace-one { left: 15%; }
  .trace-two { left: 28%; }
  .trace-three { left: 18%; }
  .trace-four { left: 58%; }

  .node-one { left: 32%; }
  .node-two { left: 65%; }
  .node-three { left: 46%; }
  .node-four { left: 82%; }

  .work-grid { display: block; }

  .rail {
    writing-mode: initial;
    transform: none;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
  }

  .project-copy,
  .project-row,
  .logos-grid,
  .approach-grid,
  .contact-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .blackwick-visual {
    min-height: 320px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .blackwick-visual::before {
    width: 400px;
    height: 270px;
    right: -40px;
    top: 50px;
  }

  .box-face {
    right: 80px;
    top: 105px;
    width: 150px;
    height: 150px;
  }

  .project-row .text-link { justify-self: start; }

  .logos-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .approach-grid > div,
  .contact-info {
    padding-left: 0;
    border-left: 0;
  }

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

  .footer-grid {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .brand span { display: none; }

  h1 { font-size: 4.35rem; }

  .actions { display: grid; }

  .btn { width: 100%; }

  .contact h2 { font-size: 2.75rem; }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}