:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f2f2f2;
  --muted: #8e8e8e;
  --dim: #5d5d5d;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.34);
  --panel: rgba(255, 255, 255, 0.035);
  --max: 1460px;
  --gutter: clamp(20px, 4.1vw, 58px);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

#work,
#about,
#services,
#contact {
  scroll-margin-top: 96px;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 var(--gutter) 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 70px);
  min-height: 50px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 5px;
  background: #000;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 1);
}

.site-header::after {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  z-index: 240;
  background: transparent;
  box-shadow: none;
}

body.menu-open .site-header::after,
body.menu-open .brand {
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  filter: drop-shadow(2px 0 rgba(255,255,255,0.34));
}

.brand img {
  width: clamp(48px, 3.8vw, 58px);
  height: auto;
}

.desktop-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(48px, 4.7vw, 78px);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #dedede;
  text-shadow: none;
}

.desktop-nav a::after {
  display: none;
}

.desktop-nav a,
.site-footer a,
.section-bar a,
.button-link,
.button-primary {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover,
.section-bar a:hover,
.button-link:hover {
  color: #fff;
}

.desktop-nav a:hover {
  color: #fff;
  transform: none;
  text-shadow: -1px 0 0 rgba(255, 255, 255, 0.34), 1px 0 0 rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.62);
}

.header-dot {
  display: none;
  justify-self: end;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8f8f8;
  box-shadow: 0 0 18px rgba(255,255,255,0.6);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.94fr) minmax(430px, 0.74fr) minmax(170px, 0.26fr);
  align-items: center;
  min-height: clamp(610px, calc(100vh - 50px), 720px);
  gap: clamp(22px, 3vw, 48px);
  padding: 34px 0 34px;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  grid-column: 1 / 3;
  align-self: end;
  max-width: 960px;
}

.mono-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-100px);
}

.hero h1 {
  position: relative;
  z-index: 3;
  max-width: 940px;
  margin: 0;
  font-size: clamp(54px, 5vw, 82px);
  font-weight: 900;
  line-height: 1.16;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
  text-shadow: none;
  transform: translateY(-100px);
}

.hero-lede {
  position: relative;
  z-index: 3;
  max-width: 395px;
  margin: 30px 0 0;
  color: #d5d5d5;
  font-size: clamp(14px, 0.86vw, 16px);
  line-height: 1.68;
  transform: translateY(-100px);
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: clamp(92px, 9.2vh, 118px);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 150px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  color: #f4f4f4;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-primary:hover {
  border-color: rgba(255,255,255,0.74);
  transform: translateY(-1px);
}

.button-primary svg,
.section-bar a svg,
.work-caption svg,
.site-footer svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #c8c8c8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-link span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: -18px;
  left: 62%;
  width: min(57vw, 744px);
  min-width: 0;
  transform: translateX(-34%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  left: 6%;
  right: 12%;
  height: 1px;
  background: rgba(255,255,255,0.72);
  box-shadow: 210px 0 0 rgba(255,255,255,0.28);
  content: "";
}

.hero-visual::before {
  top: 30%;
}

.hero-visual::after {
  top: 49%;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 63%, rgba(0,0,0,0.96) 70%, transparent 91%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 63%, rgba(0,0,0,0.96) 70%, transparent 91%);
}

.hero-meta {
  position: relative;
  z-index: 4;
  grid-column: 3;
  align-self: end;
  justify-self: end;
  min-width: 0;
  width: 100%;
  margin-top: 0;
}

.hero-meta ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dcdcdc;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.meta-line {
  width: 100%;
  max-width: 170px;
  height: 1px;
  margin: 44px 0 28px;
  background: var(--line-strong);
}

.socials {
  display: flex;
  gap: 17px;
}

.socials a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #f0f0f0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.section-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-bar h2,
.section-bar a {
  margin: 0;
  color: #d8d8d8;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.section-bar h2 span {
  margin-right: 12px;
  color: #fff;
}

.section-bar i {
  height: 1px;
  background: var(--line-strong);
}

.section-bar i::before {
  display: block;
  width: 6px;
  height: 6px;
  margin: -2.5px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.section-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work-section {
  margin-top: -2px;
  padding-left: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.5vw, 34px);
}

.work-card {
  min-width: 0;
}

.work-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #090909;
  aspect-ratio: 2.02 / 1;
}

.work-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 180ms ease, transform 420ms ease;
  content: "";
}

.work-image:hover::after {
  opacity: 1;
  transform: translateX(45%);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 520ms ease, filter 520ms ease;
}

.work-image:hover img {
  transform: scale(1.035);
  filter: grayscale(1) contrast(1.22);
}

.work-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  padding-top: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.work-caption span,
.work-caption p {
  color: #929292;
}

.work-caption span,
.work-caption h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.work-caption h3,
.work-caption p {
  margin: 0;
}

.work-caption p {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(280px, 0.68fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 3.6vw, 58px);
  align-items: start;
  padding: 46px 0 42px;
}

.section-bar.compact {
  margin-bottom: 24px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.12;
}

.about-copy h2 em {
  font-style: italic;
  font-weight: 500;
}

.about-copy p {
  max-width: 455px;
  margin: 22px 0 20px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.about-copy img {
  width: 138px;
  opacity: 0.95;
}

.about-image {
  overflow: hidden;
  min-height: 236px;
  background: #000;
  mix-blend-mode: screen;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 248px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.1) brightness(0.86);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 58%, rgba(0,0,0,0.92) 72%, transparent 94%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 58%, rgba(0,0,0,0.92) 72%, transparent 94%);
}

.service-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.service-row span,
.service-row strong,
.service-row i {
  font-family: var(--mono);
  line-height: 1;
  text-transform: uppercase;
}

.service-row span {
  color: #999;
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 400;
}

.service-row strong {
  font-size: clamp(20px, 1.75vw, 29px);
  font-weight: 400;
  letter-spacing: 0;
}

.service-row i {
  justify-self: end;
  color: #f2f2f2;
  font-size: clamp(24px, 2.1vw, 34px);
  font-style: normal;
  font-weight: 400;
  transition: transform 180ms ease;
}

.service-row:hover i,
.service-row.is-open i {
  transform: rotate(45deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  color: #777;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 38px;
  color: #9b9b9b;
}

@media (max-width: 1180px) {
  .site-shell {
    padding-top: 0;
  }

  .hero {
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
    min-height: 600px;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(50px, 6.8vw, 76px);
  }

  .hero-actions {
    margin-top: clamp(64px, 7vh, 88px);
  }

  .hero-visual {
    left: 60%;
    width: min(64vw, 620px);
    transform: translateX(-24%);
  }

  .hero-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .hero-meta ul {
    grid-template-columns: repeat(4, auto);
    gap: 14px 24px;
  }

  .meta-line {
    flex: 1;
    margin: 0;
  }

  .work-section,
  .bottom-grid,
  .site-footer {
    padding-left: 0;
  }

  .bottom-grid {
    grid-template-columns: 1fr 0.85fr;
  }

  .services-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-dot {
    display: none;
  }

  .menu-button {
    display: grid;
    position: relative;
    z-index: 230;
    align-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin-inline: auto;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button[aria-expanded="true"] {
    position: fixed;
    top: 22px;
    left: 22px;
    width: 30px;
    height: 30px;
    gap: 0;
    place-items: center;
    z-index: 260;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    position: absolute;
    margin: 0;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    position: absolute;
    margin: 0;
    transform: rotate(-45deg);
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 220;
    align-content: center;
    justify-items: center;
    gap: 30px;
    min-height: 100vh;
    margin: 0;
    border: 0;
    background: #000;
  }

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

  .mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    background: transparent;
    color: #fff;
    font-family: var(--mono);
    font-size: clamp(22px, 5.5vw, 30px);
    font-weight: 700;
    line-height: 1;
    text-shadow: -1px 0 0 rgba(255, 255, 255, 0.34), 1px 0 0 rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0 40px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    max-width: 720px;
    text-wrap: balance;
    white-space: normal;
    mix-blend-mode: normal;
  }

  .hero-actions {
    margin-top: 42px;
  }

  .hero-visual {
    position: relative;
    top: auto;
    left: auto;
    order: -1;
    width: min(88vw, 500px);
    margin-inline: auto;
    opacity: 0.95;
    transform: none;
  }

  .hero-meta {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-meta ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-line {
    width: 100%;
    max-width: none;
  }

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

  .work-section {
    margin-top: 0;
  }

  .about-image {
    order: -1;
  }

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

  .site-footer p:nth-child(2),
  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding: 0 18px 24px;
  }

  .brand {
    min-width: 56px;
  }

  .brand img {
    width: 56px;
  }

  .hero {
    padding-top: 42px;
    gap: 32px;
  }

  .mono-label {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 55px);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    gap: 20px;
  }

  .button-primary {
    width: 100%;
  }

  .hero-meta ul {
    grid-template-columns: 1fr;
  }

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

  .section-bar a {
    grid-column: 1 / -1;
    justify-self: end;
  }

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

  .work-caption svg {
    display: none;
  }

  .bottom-grid {
    padding-top: 54px;
  }

  .service-row {
    grid-template-columns: 52px 1fr 24px;
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: spectral-drift 6s linear infinite;
  }

  @keyframes spectral-drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    48% { transform: translate3d(0, -3px, 0); }
    50% { transform: translate3d(7px, 1px, 0); }
    52% { transform: translate3d(-5px, -1px, 0); }
  }
}
