:root {
  --paper: #f2f0eb;
  --ink: #11110f;
  --soft-ink: #65635d;
  --line: rgba(17, 17, 15, 0.18);
  --white: #faf9f6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17,17,15,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,15,.02) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }

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

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity .2s;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}

.site-header.scrolled {
  background: rgba(242,240,235,.9);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.08em;
  text-decoration: none;
}

.wordmark span {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .16em;
}

nav { display: flex; gap: clamp(24px, 4vw, 52px); }

nav a {
  position: relative;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

nav a:hover::after, nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button { display: none; }

main { overflow: hidden; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  padding: 120px clamp(22px, 7vw, 112px) 70px;
}

.about-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: .45fr 1.05fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(70px, 10vw, 150px);
  padding: 60px 0 30px;
  border-top: 1px solid var(--ink);
}

.about-index {
  margin: 8px 0 0;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.about-title .eyebrow { margin-bottom: 20px; }
.about-title h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.055em;
}
.about-title h2 em { font-family: Georgia, serif; font-weight: 400; }
.about-copy { padding-top: 33px; }
.about-copy p { margin: 0 0 22px; color: #3e3d38; font-size: clamp(15px, 1.25vw, 18px); }
.about-copy strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  margin: 0 0 25px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero h1, .section-heading h2, .contact-copy h2, .work-dialog h2 {
  margin: 0;
  font-size: clamp(58px, 8.3vw, 132px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 500;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.intro {
  max-width: 570px;
  margin: 42px 0 30px;
  color: #35342f;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary-link span { transition: transform .25s var(--ease); }
.primary-link:hover span { transform: translateY(5px); }

.hero-object {
  position: relative;
  justify-self: end;
  width: min(39vw, 560px);
  aspect-ratio: .78;
  background: #dedbd4;
  border: 1px solid var(--ink);
  box-shadow: 18px 18px 0 var(--ink);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.hero-object::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .17;
  background: repeating-linear-gradient(73deg, transparent 0 5px, rgba(242,240,235,.16) 5px 6px);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: grayscale(1) contrast(1.08);
  transition: transform 1.2s var(--ease);
}

.hero-object:hover .hero-video { transform: scale(1.025); }

.object-label {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 4px 6px;
  color: var(--paper);
  background: rgba(17,17,15,.78);
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.video-control, .video-caption {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  color: var(--paper);
  background: rgba(17,17,15,.78);
  font: 8px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.video-control { left: 16px; padding: 7px 8px; border: 0; cursor: pointer; }
.video-caption { right: 16px; padding: 7px 8px; }

.pattern { position: absolute; border: 1px solid var(--ink); }
.pattern-one { inset: 14% 38% 48% 10%; border-radius: 55% 45% 20% 10%; transform: rotate(-7deg); }
.pattern-two { inset: 33% 9% 12% 48%; border-radius: 50% 8% 33% 48%; transform: rotate(8deg); background: var(--ink); }
.pattern-three { width: 40%; aspect-ratio: 1; left: 11%; bottom: 10%; border-radius: 50%; }
.pattern-three::after { content: ""; position: absolute; inset: 20%; border: 1px dashed var(--ink); border-radius: inherit; }
.seam { position: absolute; height: 1px; background: var(--ink); transform-origin: left; }
.seam-one { width: 84%; left: 8%; top: 50%; transform: rotate(17deg); }
.seam-two { width: 95%; left: 4%; top: 72%; transform: rotate(-35deg); }
.measure { position: absolute; z-index: 2; padding: 3px 5px; background: #dedbd4; font: 9px "DM Mono", monospace; text-transform: uppercase; }
.measure-one { right: 10%; top: 23%; transform: rotate(90deg); }
.measure-two { left: 11%; bottom: 28%; transform: rotate(-35deg); }

.work-section {
  padding: 130px clamp(22px, 7vw, 112px) 120px;
  color: var(--paper);
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  align-items: end;
}

.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(48px, 7vw, 102px); }
.section-heading > p:last-child { max-width: 430px; margin: 0 0 8px; color: #aaa79e; font-size: 17px; }

.filter-bar {
  display: flex;
  gap: 8px;
  margin: 88px 0 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242,240,235,.25);
  overflow-x: auto;
}

.filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #aaa79e;
  background: transparent;
  border: 1px solid rgba(242,240,235,.25);
  border-radius: 100px;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  transition: color .25s, background .25s, border-color .25s;
}

.filter sup { margin-left: 4px; font-size: 7px; }
.filter:hover, .filter.active { color: var(--ink); background: var(--paper); border-color: var(--paper); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 24px; }

.work-card { cursor: pointer; outline: none; transition: opacity .35s, transform .55s var(--ease); }
.work-card.hidden { display: none; }
.work-card:focus-visible .card-visual { outline: 2px solid var(--paper); outline-offset: 5px; }

.card-visual {
  position: relative;
  height: clamp(280px, 41vw, 570px);
  margin-bottom: 20px;
  overflow: hidden;
  background: #d9d6cf;
}

.card-visual::before, .card-visual::after, .card-visual i { content: ""; position: absolute; transition: transform .8s var(--ease); }
.card-visual span { position: absolute; z-index: 3; top: 14px; left: 14px; color: var(--ink); font: 10px "DM Mono", monospace; }
.visual-placeholder b { position: absolute; z-index: 3; right: 14px; bottom: 14px; color: var(--ink); font: 9px "DM Mono", monospace; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.work-card:hover .card-visual::before { transform: rotate(5deg) scale(1.08); }
.work-card:hover .card-visual::after { transform: rotate(-4deg) scale(1.06); }
.work-card:hover .card-visual i { transform: translate(9px, -7px) rotate(5deg); }

.visual-one { background: radial-gradient(circle at 22% 24%, transparent 0 7%, rgba(17,17,15,.18) 7.3% 8%, transparent 8.3%), radial-gradient(circle at 78% 68%, transparent 0 9%, rgba(17,17,15,.18) 9.3% 10%, transparent 10.3%), #d7d4cc; }
.visual-one::before { width: 27%; height: 82%; left: 36.5%; top: 8%; background: var(--ink); clip-path: polygon(39% 0, 61% 0, 69% 15%, 100% 76%, 50% 100%, 0 76%, 31% 15%); }
.visual-one::after { width: 15%; height: 69%; left: 42.5%; top: 16%; border: 1px dashed var(--paper); clip-path: polygon(39% 0, 61% 0, 100% 80%, 50% 100%, 0 80%); }
.visual-one i { width: 70%; height: 1px; left: 15%; top: 50%; background: rgba(17,17,15,.5); transform: rotate(-22deg); }

.visual-two { background: #a6a39c; }
.visual-two::before { width: 27%; height: 82%; left: 36.5%; top: 8%; background: var(--ink); clip-path: polygon(39% 0, 61% 0, 69% 15%, 100% 76%, 50% 100%, 0 76%, 31% 15%); transform: rotate(5deg); }
.visual-two::after { width: 76%; aspect-ratio: 1; left: 12%; top: 14%; border: 1px solid rgba(17,17,15,.45); border-radius: 50%; }
.visual-two i { width: 84%; height: 1px; left: 8%; top: 50%; background: var(--paper); transform: rotate(17deg); }

.visual-three { background: #c9c6be; }
.visual-three::before { width: 67%; height: 54%; left: 16.5%; top: 27%; background: var(--ink); border-radius: 46% 46% 22% 22% / 32% 32% 62% 62%; }
.visual-three::after { width: 33%; height: 31%; left: 33.5%; top: 15%; border: 1px solid var(--ink); border-radius: 50% 50% 0 0; }
.visual-three i { width: 53%; height: 1px; left: 23.5%; top: 52%; background: var(--paper); }

.visual-four { background: repeating-linear-gradient(45deg, #d9d6cf 0 13px, #aaa79f 13px 14px, #d9d6cf 14px 27px); }
.visual-four::before { width: 67%; height: 54%; left: 16.5%; top: 27%; background: var(--ink); border-radius: 42% 42% 18% 18% / 30% 30% 48% 48%; }
.visual-four::after { width: 33%; height: 31%; left: 33.5%; top: 15%; border: 1px solid var(--ink); border-radius: 50% 50% 0 0; }
.visual-four i { width: 56%; height: 42%; left: 22%; top: 33%; border: 1px dashed var(--paper); border-radius: 35%; }

.visual-five { background: #b8b5ae; }
.visual-five::before { width: 55%; height: 41%; left: 22.5%; top: 35%; background: var(--ink); border-radius: 42% 42% 20% 20% / 38% 38% 50% 50%; }
.visual-five::after { width: 38%; height: 45%; left: 31%; top: 19%; border: 1px solid var(--ink); border-radius: 50%; }
.visual-five i { width: 45%; height: 1px; left: 27.5%; top: 54%; background: var(--paper); }

.visual-six { background: #d4d1c9; }
.visual-six::before { width: 49%; height: 82%; left: 25.5%; top: 9%; background: var(--ink); clip-path: polygon(4% 0, 96% 0, 88% 100%, 54% 100%, 50% 48%, 46% 100%, 12% 100%); }
.visual-six::after { content: "ACDM STUDIO"; z-index: 2; width: 22%; left: 54%; bottom: 14%; padding: 5px 3px; color: var(--paper); border: 1px solid var(--paper); font: 7px "DM Mono", monospace; text-align: center; }
.visual-six i { width: 41%; height: 1px; left: 29.5%; top: 22%; background: var(--paper); }

.visual-seven { background: #c2bfb7; }
.visual-seven::before { width: 61%; height: 56%; left: 19.5%; top: 24%; background: var(--ink); clip-path: polygon(4% 0, 96% 0, 100% 100%, 57% 100%, 50% 48%, 43% 100%, 0 100%); }
.visual-seven::after { width: 61%; height: 7%; left: 19.5%; top: 24%; border-top: 1px solid var(--paper); border-bottom: 1px dashed var(--paper); }
.visual-seven i { width: 32%; height: 28%; left: 34%; top: 21%; border: 1px solid var(--paper); border-width: 0 1px 1px; border-radius: 0 0 50% 50%; }

.card-meta { display: flex; justify-content: space-between; gap: 20px; color: #8c8981; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.work-card h3 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 45px); font-weight: 400; letter-spacing: -.04em; }
.card-detail { display: none; }

.services-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  margin-top: 130px;
  padding-top: 45px;
  border-top: 1px solid rgba(242,240,235,.45);
}
.services-panel h3 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: .96; font-weight: 400; letter-spacing: -.055em; }
.service-list p { display: grid; grid-template-columns: 35px 150px 1fr; gap: 15px; align-items: baseline; margin: 0; padding: 19px 0; border-bottom: 1px solid rgba(242,240,235,.2); }
.service-list span { color: #77746e; font: 9px "DM Mono", monospace; }
.service-list strong { font-weight: 500; }
.service-list small { color: #aaa79e; font-size: 12px; line-height: 1.55; }
.honesty-note { max-width: 650px; margin: 95px 0 0 auto; padding-top: 18px; border-top: 1px solid rgba(242,240,235,.4); color: #aaa79e; font: 12px/1.7 "DM Mono", monospace; }

.contact-section {
  min-height: 82svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 160px);
  align-items: center;
  padding: 120px clamp(22px, 7vw, 112px);
}

.contact-copy h2 { font-size: clamp(54px, 7.2vw, 110px); }
.contact-copy > p:last-child { max-width: 490px; margin: 35px 0 0; color: var(--soft-ink); font-size: 17px; }

.contact-actions { border-top: 1px solid var(--ink); }
.email-link { position: relative; display: block; padding: 24px 45px 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.email-link span { display: block; margin-bottom: 5px; color: var(--soft-ink); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.email-link strong { font-size: clamp(18px, 2.3vw, 32px); font-weight: 400; letter-spacing: -.04em; }
.email-link i { position: absolute; top: 35px; right: 0; font-style: normal; font-size: 24px; transition: transform .3s var(--ease); }
.email-link:hover i { transform: translate(5px, -5px); }
.social-links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font: 11px "DM Mono", monospace; text-decoration: none; text-transform: uppercase; }
.social-links a span { color: var(--soft-ink); text-transform: none; }

.direct-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
}

.direct-actions a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font: 10px "DM Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s, background .25s;
}
.direct-actions a:hover { color: var(--ink); background: transparent; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px clamp(22px, 4vw, 64px);
  color: var(--paper);
  background: var(--ink);
}

footer p, .back-to-top { margin: 0; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.back-to-top { color: inherit; background: none; border: 0; cursor: pointer; }

.work-dialog {
  width: min(610px, calc(100% - 30px));
  padding: clamp(30px, 6vw, 70px);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(242,240,235,.45);
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.work-dialog::backdrop { background: rgba(17,17,15,.72); backdrop-filter: blur(8px); }
.work-dialog h2 { font-size: clamp(46px, 8vw, 78px); }
.work-dialog > p:not(.eyebrow) { margin: 30px 0 42px; color: #bbb8af; font-size: 17px; }
.work-dialog > a { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--paper); font: 11px "DM Mono", monospace; text-decoration: none; text-transform: uppercase; }
.dialog-close { position: absolute; top: 15px; right: 20px; padding: 0; color: var(--paper); background: none; border: 0; font-size: 32px; font-weight: 300; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { height: 65px; }
  .menu-button { display: flex; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; font: 10px "DM Mono", monospace; text-transform: uppercase; cursor: pointer; }
  .menu-button i, .menu-button i::after { display: block; width: 17px; height: 1px; background: var(--ink); transition: transform .25s; }
  .menu-button i::after { content: ""; transform: translateY(5px); }
  .menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i::after { transform: rotate(90deg); }
  nav { position: fixed; inset: 65px 0 auto; display: grid; gap: 0; padding: 14px 22px 22px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .45s var(--ease); }
  nav.open { transform: none; }
  nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding-top: 115px; }
  .about-panel { grid-column: auto; grid-template-columns: 1fr; gap: 20px; }
  .about-copy { padding-top: 0; }
  .hero-object { justify-self: center; width: min(86vw, 520px); margin: 20px 10px 30px 0; }
  .section-heading, .contact-section { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 32px; }
  .work-grid { grid-template-columns: 1fr; gap: 55px; }
  .card-visual { height: 112vw; max-height: 550px; }
  .services-panel { grid-template-columns: 1fr; margin-top: 90px; }
  .service-list p { grid-template-columns: 25px 105px 1fr; gap: 10px; }
  .contact-section { min-height: auto; }
  .direct-actions { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
  footer p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
