:root {
  color-scheme: dark;
  font-family: var(--studio-body-font);
  color: var(--studio-cream);
  background: var(--studio-black);
  --muted: #c2bab0;
  --line: #3d3730;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--studio-bronze); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--studio-heading-font); }

.skip-link {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px;
  transform: translateY(-150%);
  color: var(--studio-black);
  background: var(--studio-cream);
}

.skip-link:focus { transform: none; }
.shell { width: min(1200px, calc(100% - clamp(36px, 9vw, 144px))); margin-inline: auto; }
.bar { display: flex; align-items: center; min-height: 78px; gap: clamp(18px, 3vw, 46px); }
.site-nav { display: flex; gap: clamp(16px, 2.1vw, 32px); margin-inline-start: auto; }
.site-nav a, .language { display: grid; place-items: center; min-height: 44px; font-size: .91rem; text-decoration: none; }
.site-nav a:hover, .language:hover { color: var(--studio-bronze); }
.language { min-width: 44px; border: 1px solid var(--line); border-radius: 5px; color: var(--studio-bronze); }

.opening {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(450px, 42vw, 600px);
  overflow: hidden;
  border-block: 1px solid #23201d;
}

.opening-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(84%, 1400px);
  height: 100%;
  object-fit: cover;
  object-position: 74% 44%;
}

.opening::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b0b0b 5%, #0b0b0bf5 28%, #0b0b0b76 56%, transparent 78%);
}

.opening-content { padding-block: clamp(54px, 8vw, 114px); }
.opening h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5.2vw, 4.6rem);
  line-height: 1.03;
  font-weight: 690;
  letter-spacing: -.057em;
}
.opening h1 span { display: block; }
.opening p { max-width: 37ch; margin-top: 22px; color: #e4ded5; font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.action, .project-link { display: inline-flex; align-items: center; width: fit-content; min-height: 46px; font-weight: 650; }
.action { border: 1px solid transparent; border-radius: 6px; padding: 10px 18px; text-decoration: none; }
.action-primary { color: var(--studio-black); background: var(--studio-cream); }
.action-primary:hover { background: var(--studio-bronze); }
.action-outline { border-color: #a89376; color: var(--studio-cream); background: #0b0b0b96; }
.action-outline:hover { border-color: var(--studio-cream); background: #24201b; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}

.services article { display: grid; justify-items: center; align-content: start; padding: 6px clamp(20px, 3vw, 44px); text-align: center; }
.services article + article { border-inline-start: 1px solid var(--line); }
.services h2 { font-size: clamp(1.05rem, 1.8vw, 1.33rem); line-height: 1.28; letter-spacing: -.03em; text-wrap: balance; }
.services p, .work-heading p, .project-copy p, .footer p { color: var(--muted); line-height: 1.6; }
.services p { max-width: 29ch; margin-top: 9px; }

.service-icon { position: relative; display: block; width: 42px; height: 37px; margin-bottom: 16px; color: var(--studio-bronze); }
.monitor::before, .monitor::after { content: ""; position: absolute; }
.monitor::before { inset: 2px 1px 9px; border: 2px solid; border-radius: 3px; }
.monitor::after { top: 28px; left: 14px; width: 14px; height: 7px; border-bottom: 2px solid; background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.layers i { position: absolute; top: 3px; left: 10px; width: 22px; height: 22px; border: 2px solid; transform: rotate(45deg) skew(-12deg, -12deg); }
.layers i:nth-child(2) { top: 8px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.layers i:nth-child(3) { top: 13px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.chart { display: flex; align-items: end; justify-content: space-evenly; border-bottom: 2px solid; padding-inline: 2px; }
.chart i { width: 8px; height: 13px; border: 2px solid; border-bottom: 0; }
.chart i:nth-child(2) { height: 22px; }
.chart i:nth-child(3) { height: 32px; }

.work { padding-block: clamp(54px, 7vw, 98px); }
.work-heading { margin-bottom: 25px; }
.work-heading h2 { margin-bottom: 7px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.047em; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 25px); }
.projects article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #141210; }
.projects article:focus-within, .projects article:hover { border-color: #84735e; }
.projects img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.project-copy { display: grid; grid-template-rows: auto 1fr auto; gap: 9px; flex: 1; padding: clamp(16px, 2vw, 24px); }
.project-copy h3 { font-size: 1.22rem; letter-spacing: -.025em; }
.project-link { color: var(--studio-bronze); text-underline-offset: .23em; }
.project-link:hover { color: var(--studio-cream); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 27px 38px; border-top: 1px solid var(--line); }
.footer p { font-size: .95rem; }

@media (max-width: 760px) {
  .bar { min-height: 72px; }
  .opening { min-height: 480px; }
  .opening-image { width: 100%; object-position: 65% 49%; }
  .opening::after { background: linear-gradient(90deg, #0b0b0bf2 0%, #0b0b0bb8 39%, #0b0b0b30 100%); }
  .services { grid-template-columns: minmax(0, 1fr); padding-block: 10px; }
  .services article { grid-template-columns: 44px 1fr; justify-items: start; column-gap: 20px; padding: 22px 0; text-align: start; }
  .services article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .services .service-icon { grid-row: span 2; align-self: center; margin-bottom: 0; }
  .services p { max-width: none; margin-top: 5px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 530px) {
  .bar { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 10px; }
  .site-nav { grid-area: 2 / 1 / 3 / -1; width: 100%; justify-content: space-between; margin-inline-start: 0; }
  .opening { align-items: start; min-height: 535px; }
  .opening-content { padding-block: 54px 130px; }
  .opening-image { inset: auto 0 0 auto; height: 86%; object-position: 73% 50%; }
  .opening::after { background: linear-gradient(180deg, #0b0b0b 5%, #0b0b0bde 30%, #0b0b0b5e 74%, transparent 100%); }
  .actions { margin-top: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .action, .site-nav a, .language, .projects article { transition: background-color 160ms, color 160ms, border-color 160ms; }
}
