:root {
  color-scheme: dark;
  --ink: #101011;
  --panel: #171718;
  --paper: #f2ece3;
  --muted: #bab3aa;
  --amber: #e3bf95;
  --rule: #3b3734;
  --display: Georgia, 'Times New Roman', serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.6 'Segoe UI', system-ui, sans-serif;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 85% 5%, #262220, transparent 72%);
  content: '';
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.wrap {
  width: min(100% - clamp(2rem, 9vw, 9rem), 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 1; }

.top {
  min-height: 5.375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: grid;
  align-items: center;
  width: clamp(8rem, 31vw, 13.2rem);
  min-height: 2.75rem;
}

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

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 4vw, 3.5rem);
  font-size: 0.94rem;
  color: var(--muted);
}

.top nav a { padding-block: 0.65rem; }

.top nav a:hover,
.top nav a[aria-current='page'],
.text-link:hover {
  color: var(--amber);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 31%;
  mask-image:
    linear-gradient(90deg, transparent, #000 38%),
    linear-gradient(0deg, transparent, #000 27%);
  mask-composite: intersect;
  pointer-events: none;
}

.hero-art::before {
  position: absolute;
  inset: -36px;
  background: url('noir-architecture.svg') right center / cover no-repeat;
  content: '';
}

.hero-rain {
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .hero-rain { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art::before { animation: hero-drift 16s ease-in-out infinite alternate; }
}

@keyframes hero-drift {
  from { transform: translate3d(10px, -6px, 0) scale(1); }
  to { transform: translate3d(-20px, 8px, 0) scale(1.045); }
}

.hero-inner {
  min-height: clamp(34rem, 53vw, 44rem);
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.hero-copy { max-width: 59rem; }

.intro {
  margin-bottom: clamp(1.1rem, 3vw, 2rem);
  color: var(--amber);
}

h1, h2 { font-family: var(--display); font-weight: 400; }

h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.97;
  letter-spacing: -0.063em;
  text-wrap: balance;
}

@media (forced-colors: none) {
  .hero h1 {
    text-shadow:
      0 0.012em 0.025em rgb(10 7 5 / 40%),
      var(--heading-shadow-x, 0.025em) var(--heading-shadow-y, 0.035em)
        0.065em rgb(14 9 7 / 64%);
  }
}

.lead {
  max-width: 36rem;
  margin-top: clamp(1.5rem, 3.2vw, 2.35rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding-inline-start: 0.875rem;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #1e1814;
  font-weight: 650;
}

.button:hover,
.button:focus-visible { background: #f4d5b0; }

.button-outline {
  border-color: #76685b;
  background: #181617;
  color: var(--paper);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--amber);
  background: #2b241f;
  color: var(--amber);
}

.button-arrow {
  display: grid;
  flex: none;
  align-self: stretch;
  place-items: center;
  min-width: 2.25rem;
  min-height: 3rem;
  border-inline-start: 1px solid currentColor;
  border-inline-start-color: color-mix(in srgb, currentColor 30%, transparent);
  background: rgb(255 255 255 / 8%);
}

.button-outline .button-arrow { color: var(--amber); }
.button:is(:hover, :focus-visible) .button-arrow { background: rgb(255 255 255 / 16%); }

@property --button-shimmer-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0turn;
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .button-shimmer { position: relative; }

  .button-shimmer::before {
    position: absolute;
    inset: -1px;
    padding: 2px;
    background: conic-gradient(from var(--button-shimmer-angle), transparent 72%, #c28c56 85%, #fff6e6 93%, transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: button-shimmer 3s linear infinite;
    pointer-events: none;
    content: '';
  }
}

@keyframes button-shimmer {
  to { --button-shimmer-angle: 1turn; }
}

.button-ripple {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.button-wave {
  position: absolute;
  z-index: -1;
  width: var(--wave-size);
  aspect-ratio: 1;
  border: 1px solid rgb(227 191 149 / 65%);
  border-radius: 50%;
  background: rgb(227 191 149 / 28%);
  translate: -50% -50%;
  pointer-events: none;
}

.text-link {
  width: fit-content;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

.text-link span { margin-left: 0.3em; }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2.3rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.services h2, .contact h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.services p, .contact p {
  max-width: 49ch;
  margin-top: 0.65rem;
  color: var(--muted);
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 2.3rem 3.4rem;
  border-top: 1px solid var(--rule);
}

.contact-links {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
}

.works {
  padding-block: clamp(2.7rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.works h1 { margin-bottom: clamp(1.6rem, 4vw, 3rem); }

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

.work-card {
  display: block;
  height: 100%;
  perspective: 1100px;
}

.work-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(155deg, #24201e, var(--panel) 72%);
  border: 1px solid var(--rule);
  border-radius: 5px;
  box-shadow:
    0 2px 0 rgb(238 193 141 / 9%),
    0 8px 18px rgb(0 0 0 / 32%),
    0 22px 42px -18px rgb(0 0 0 / 68%);
  pointer-events: none;
}

.work-surface::after {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(transparent 30%, #796044 42%, var(--amber) 49%,
      var(--paper) 52%, #796044 58%, transparent 70%)
    16% 16% / 300% 300%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  content: '';
}

@media (prefers-reduced-motion: no-preference) {
  .work-surface::after { animation: work-shine 14s linear infinite; }
  .work-grid > article:nth-child(2) .work-surface::after { animation-delay: -3s; }
  .work-grid > article:nth-child(3) .work-surface::after { animation-delay: -6s; }
}

@keyframes work-shine {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.work-surface img {
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
}

.work-caption {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: start;
  gap: 0.6rem;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border-top: 1px solid var(--rule);
}

.work-caption h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.work-caption p {
  margin-top: 0.55rem;
  max-width: 39ch;
  color: var(--muted);
}

.work-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  color: var(--amber);
}

.work-archive {
  flex: none;
  padding-top: 0.2rem;
  color: var(--amber);
  font-size: 0.86rem;
}

.work-card:is(:hover, :focus-visible) .work-arrow {
  background: var(--amber);
  color: var(--ink);
}

.cursor-glow { display: none; }

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero h1 { transition: text-shadow 220ms ease-out; }

  .hero-art::before {
    translate: var(--hero-parallax-x, 0px) var(--hero-parallax-y, 0px);
    transition: translate 360ms ease-out;
  }

  .cursor-glow {
    position: fixed;
    display: block;
    z-index: 2;
    top: 0;
    left: 0;
    width: 11rem;
    aspect-ratio: 1;
    opacity: 0;
    background: radial-gradient(circle, rgb(239 193 141 / 13%), transparent 68%);
    transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 50%), 0);
    transition: opacity 180ms ease-out;
    pointer-events: none;
  }

  .cursor-glow.is-visible { opacity: 1; }

  .work-surface { transition: transform 240ms ease-out; }
  .work-card:hover .work-surface { transition-duration: 100ms; }
}

@media (max-width: 48rem) {
  .hero-art {
    inset: 0 0 0 12%;
    opacity: 0.62;
  }

  .hero-art::before { background-position: 70% center; }

  .hero-inner { min-height: 36rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  .top { min-height: 4.25rem; }
  .top nav { font-size: 0.88rem; }
  .hero-inner { min-height: 0; padding-block: 4.5rem 4rem; }
  .hero-break { display: none; }
  h1 { font-size: clamp(2.65rem, 11vw, 3.8rem); }
  .button { padding-inline-start: 0.7rem; }
  .button-arrow { min-width: 2rem; }
  .services { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .top, .top nav { column-gap: 0.5rem; }
  .top nav { font-size: 0.8rem; }
  .hero-actions { display: grid; }
}

@media (forced-colors: active) {
  .brand img { background: #101011; forced-color-adjust: none; }
  .button { border: 1px solid ButtonText; }
  .work-surface::after { content: none; }
}
