:root {
  color-scheme: light;
  --ink: #111715;
  --ink-soft: #3f4a45;
  --paper: #f8f4ec;
  --paper-deep: #ece4d6;
  --line: rgba(17, 23, 21, 0.14);
  --field: rgba(255, 255, 255, 0.7);
  --copper: #ba5d2d;
  --moss: #5d7562;
  --teal: #0f5c67;
  --charcoal: #0f1b1c;
  --white: #fffaf1;
  --shadow: 0 24px 70px rgba(15, 27, 28, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body::selection {
  background: rgba(186, 93, 45, 0.24);
}

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

.skip-link {
  background: var(--charcoal);
  color: var(--white);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 100;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav-links {
  align-items: center;
  background: rgba(248, 244, 236, 0.76);
  border: 1px solid rgba(17, 23, 21, 0.13);
  display: flex;
  min-height: 2.75rem;
}

.brand {
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(15, 27, 28, 0.08);
  font-size: 0.86rem;
  font-weight: 750;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
}

.brand-mark {
  align-items: center;
  background: var(--charcoal);
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.68rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-links {
  border-radius: 6px;
  gap: 0.15rem;
  padding: 0.2rem;
}

.nav-links a {
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.62rem 0.85rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(15, 27, 28, 0.08);
  color: var(--ink);
}

.hero {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.25rem, 6vw, 5rem) 5rem;
  place-items: center start;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(15, 27, 28, 0.85), rgba(15, 27, 28, 0.3) 48%, rgba(15, 27, 28, 0.68)),
    linear-gradient(180deg, rgba(15, 27, 28, 0.26), rgba(15, 27, 28, 0.9));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

#signal-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-content {
  min-width: 0;
  max-width: 920px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.eyebrow {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e9a16f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 1.4rem;
  max-width: 12ch;
  overflow-wrap: break-word;
}

.hero-copy {
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 640px;
  width: min(100%, 640px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--copper);
  color: var(--white);
}

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

.button-secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.hero .button-secondary {
  border-color: rgba(255, 250, 241, 0.42);
}

.scroll-cue {
  align-items: center;
  bottom: 1.6rem;
  color: rgba(255, 250, 241, 0.74);
  display: flex;
  font-size: 0.83rem;
  font-weight: 750;
  gap: 0.5rem;
  left: clamp(1.25rem, 6vw, 5rem);
  position: absolute;
  z-index: 3;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
}

.section-heading {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin: 0 auto 2rem;
  max-width: 1180px;
}

.section-heading h2,
.contact-inner h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

.work-section {
  background: var(--paper);
}

.work-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.work-card {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(15, 27, 28, 0.08);
  min-width: 0;
  overflow: hidden;
}

.work-media {
  aspect-ratio: 1.32;
  background: var(--charcoal);
  display: grid;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.work-media::before,
.work-media::after,
.work-media span {
  content: "";
  position: absolute;
}

.work-media-a {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.1), transparent 35%),
    #142225;
}

.work-media-a::before {
  border: 1px solid rgba(255, 250, 241, 0.34);
  height: 62%;
  left: 18%;
  top: 18%;
  transform: skewX(-8deg);
  width: 58%;
}

.work-media-a::after {
  background: var(--copper);
  height: 0.35rem;
  left: 23%;
  top: 44%;
  width: 42%;
}

.work-media-a span {
  background: var(--moss);
  height: 34%;
  right: 18%;
  top: 28%;
  width: 0.35rem;
}

.work-media-b {
  background: #e5dccd;
}

.work-media-b::before {
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
}

.work-media-b::after {
  background: var(--teal);
  border-radius: 4px;
  height: 34%;
  left: 16%;
  top: 24%;
  width: 68%;
}

.work-media-b span {
  background: var(--copper);
  border-radius: 4px;
  bottom: 21%;
  height: 13%;
  left: 16%;
  width: 48%;
}

.work-media-c {
  background:
    repeating-linear-gradient(45deg, rgba(255, 250, 241, 0.08) 0 1px, transparent 1px 14px),
    #102528;
}

.work-media-c::before {
  border: 1px solid rgba(255, 250, 241, 0.34);
  border-radius: 50%;
  height: 54%;
  width: 54%;
}

.work-media-c::after {
  background: var(--copper);
  border-radius: 50%;
  height: 18%;
  transform: translate(42%, -26%);
  width: 18%;
}

.work-media-c span {
  border: 1px solid rgba(255, 250, 241, 0.34);
  height: 1px;
  transform: rotate(-28deg);
  width: 72%;
}

.work-body {
  padding: 1.25rem;
}

.work-type {
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.work-body h3 {
  font-size: 1.3rem;
  letter-spacing: 0;
  margin-bottom: 0.65rem;
}

.work-body p:last-child {
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
}

.practice-section {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.practice-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  margin: 0 auto;
  max-width: 1180px;
}

.practice-copy p {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.capability-list {
  border-top: 1px solid var(--line);
  margin: 0;
}

.capability-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
  padding: 1.15rem 0;
}

.capability-list dt {
  font-weight: 850;
}

.capability-list dd {
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.contact-section {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
}

.contact-inner {
  max-width: 780px;
}

.contact-inner p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.78);
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 1.2rem 0 1.8rem;
}

.site-footer {
  align-items: center;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 250, 241, 0.16);
  color: rgba(255, 250, 241, 0.7);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 6vw, 5rem);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 750;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    gap: 0.75rem;
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding-top: 7.5rem;
  }

  h1 {
    max-width: 10ch;
  }

  .section-heading,
  .practice-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand {
    max-width: calc(100vw - 2rem);
  }

  .hero {
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.05rem);
    line-height: 0.96;
    max-width: 100%;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .capability-list div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
