:root {
  color-scheme: light;
  --ink: #10110f;
  --muted: #686b63;
  --paper: #f4f1e8;
  --cream: #fffaf0;
  --line: #d8d1bf;
  --acid: #c3a24a;
  --blue: #315f73;
  --red: #9f3f2f;
  --green: #52705c;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(16, 17, 15, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--red) 50%, var(--acid) 50%);
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 96px clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(rgba(16, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(104deg, transparent 0 58%, rgba(195, 162, 74, 0.28) 58% 70%, transparent 70%),
    linear-gradient(171deg, rgba(159, 63, 47, 0.12) 0 28%, transparent 28% 100%),
    linear-gradient(126deg, #fffaf0 0%, #f1eadb 62%, #ead7c8 126%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--ink);
}

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

.hero::after {
  content: "STUDIO EDGAR / STUDIO EDGAR / STUDIO EDGAR";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: 22px;
  height: 34px;
  border-block: 1px solid rgba(16, 17, 15, 0.25);
  color: rgba(16, 17, 15, 0.42);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 32px;
  white-space: nowrap;
  word-spacing: 22px;
  transform: rotate(-1.4deg);
  pointer-events: none;
}

.hero-label {
  position: absolute;
  top: 96px;
  right: clamp(18px, 6vw, 84px);
  z-index: 1;
  color: var(--red);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 900;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-rows: 1fr auto;
  gap: clamp(22px, 4vw, 48px);
  width: 100%;
  min-height: calc(96vh - 130px);
}

.hero-type {
  align-self: center;
  max-width: 1080px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(4.2rem, 15vw, 14rem);
  line-height: 0.72;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(24px, 10vw, 130px);
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.16vw, 2px) var(--ink);
  text-shadow: 0.045em 0.04em 0 rgba(195, 162, 74, 0.55);
}

.hero h1 i {
  display: inline-block;
  width: 0.42em;
  color: var(--red);
  font-style: normal;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: translateY(-0.06em);
}

.hero-copy {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.brief-machine {
  align-self: center;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
}

.machine-topline,
.machine-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.machine-topline {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-machine p {
  min-height: 148px;
  margin: 20px 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.02;
}

.machine-actions button {
  min-width: 68px;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.machine-actions button:hover,
.machine-actions button:focus-visible {
  background: var(--acid);
}

.studio-specimens {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.specimen {
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid rgba(16, 17, 15, 0.36);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.62);
  color: var(--ink);
  font-size: clamp(0.95rem, 1.6vw, 1.22rem);
  font-weight: 900;
  line-height: 1;
  transform: rotate(var(--tilt));
}

.specimen span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.74rem;
}

.specimen-a {
  --tilt: -1.5deg;
}

.specimen-b {
  --tilt: 1deg;
  background: rgba(195, 162, 74, 0.22);
}

.specimen-c {
  --tilt: -0.4deg;
  background: rgba(0, 87, 255, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.46);
  color: var(--ink);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-band {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.intro {
  padding: clamp(48px, 8vw, 92px) 0;
}

.intro-grid,
.approach-grid,
.contact-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section-kicker {
  color: var(--green);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 12px;
  font-size: 1.45rem;
  line-height: 1.05;
}

p {
  font-size: 1rem;
}

.intro p:not(.section-kicker),
.contact-panel p {
  margin: 24px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.work-section {
  padding: clamp(60px, 10vw, 118px) 0;
}

.section-heading {
  max-width: 820px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.work-card {
  min-height: 278px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.work-card:nth-child(2) {
  background: #eef6ff;
}

.work-card:nth-child(3) {
  background: #efffeb;
}

.work-card:nth-child(4) {
  background: #fff0ed;
}

.card-index {
  display: inline-flex;
  color: var(--red);
  font-weight: 900;
}

.work-card p,
.steps {
  color: var(--muted);
}

.approach {
  padding: clamp(56px, 9vw, 108px) 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 26px 46px;
  border-left: 2px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: -18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
}

.steps strong {
  display: block;
  color: var(--ink);
}

.contact-section {
  padding: clamp(60px, 10vw, 118px) 0;
}

.contact-panel {
  border-left: 4px solid var(--red);
  padding-left: clamp(20px, 4vw, 36px);
}

.contact-panel .button {
  margin-top: 26px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  color: var(--ink);
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    color: var(--ink);
  }

  .nav-links {
    gap: 14px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brief-machine {
    align-self: start;
    max-width: 420px;
    transform: rotate(-1deg);
  }

  .studio-specimens {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }

  .intro-grid,
  .approach-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 210px;
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 20vw, 6.4rem);
  }

  .hero-label {
    top: 82px;
  }

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

  .button {
    width: 100%;
  }

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

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