@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/InstrumentSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0a0b0b;
  --ink: #efeee9;
  --secondary: #b5b6b1;
  --quiet: rgba(239, 238, 233, 0.34);
  --brass: #c09559;
  --ayan-opacity: .74;
  --ayan-x: -4vw;
  --ayan-skew: -2deg;
  --girdh-opacity: .32;
  --girdh-x: 5vw;
  --girdh-skew: 2deg;
  --role-opacity: 0;
  --role-y: 12px;
  --statement-opacity: 0;
  --statement-y: 16px;
  --utility-opacity: 0;
  --utility-y: 8px;
  --identity-lift: 0vh;
  --opening-opacity: 1;
  --opening-y: 0vh;
  --method-opacity: 0;
  --method-y: 10vh;
  --experience-opacity: 1;
  --experience-y: 0vh;
  --work-opacity: 0;
  --work-y: 5vh;
  --work-preview-opacity: 0;
  --work-preview-clip: 100%;
  --navigation-opacity: 1;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  background: var(--ground);
}

html {
  overflow-x: clip;
}

body { overflow-x: clip; }

body {
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a { font: inherit; }

a { color: inherit; }

button {
  border: 0;
  background: none;
  color: inherit;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ground);
}

.edge-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(0, 0, 0, 0.62);
}

.navigation {
  position: fixed;
  z-index: 5;
  top: 28px;
  right: clamp(22px, 4vw, 64px);
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
  opacity: var(--navigation-opacity);
  will-change: opacity;
}

.navigation a,
.navigation button {
  position: relative;
  padding: 5px 0;
  text-decoration: none;
  cursor: pointer;
}

.navigation a::after,
.navigation button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

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

.experience {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: var(--experience-opacity);
  will-change: opacity;
}

.opening {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  opacity: var(--opening-opacity);
  transform: translateY(var(--opening-y));
  will-change: opacity, transform;
}

body[data-section="method"] .opening { pointer-events: none; }

.identity {
  position: absolute;
  top: 46%;
  left: clamp(22px, 5.4vw, 86px);
  width: min(1200px, 88vw);
  transform: translateY(calc(-50% - var(--identity-lift)));
}

.identity__role {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.35;
  opacity: var(--role-opacity);
  transform: translateY(var(--role-y));
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(76px, 10.2vw, 150px);
  font-weight: 480;
  line-height: 0.82;
  white-space: nowrap;
}

h1 span {
  display: inline-block;
  transform-origin: left center;
  will-change: opacity, transform;
}

h1 span:first-child {
  opacity: var(--ayan-opacity);
  transform: translateX(var(--ayan-x)) skewX(var(--ayan-skew));
}

h1 span:last-child {
  color: var(--secondary);
  opacity: var(--girdh-opacity);
  transform: translateX(var(--girdh-x)) skewX(var(--girdh-skew));
}

.identity__statement {
  width: min(520px, 76vw);
  margin: 34px 0 0 clamp(12vw, 18vw, 260px);
  color: #d2d2cd;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.48;
  opacity: var(--statement-opacity);
  transform: translateY(var(--statement-y));
}

.contact {
  position: absolute;
  bottom: 30px;
  left: clamp(22px, 5.4vw, 86px);
  color: var(--secondary);
  font-size: 12px;
  text-decoration: none;
  opacity: var(--utility-opacity);
  transform: translateY(var(--utility-y));
  transition: color 200ms ease;
}

.contact:hover,
.contact:focus-visible { color: var(--ink); }

.method {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: 88px clamp(40px, 6vw, 96px) 34px;
  grid-template-rows: auto 1fr auto auto;
  opacity: var(--method-opacity);
  transform: translateY(var(--method-y));
  will-change: opacity, transform;
}

.method__header {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 238, 233, 0.2);
  color: var(--secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.method__lead {
  display: grid;
  align-self: center;
  padding: clamp(34px, 5vh, 58px) 0 clamp(28px, 4vh, 46px);
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: end;
}

.method__lead-copy > p {
  margin: 0 0 20px;
  color: var(--brass);
  font-size: 13px;
}

.method h2 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 5.6vw, 88px);
  font-weight: 430;
  line-height: 0.96;
}

.method h2 em {
  color: var(--brass);
  font-style: normal;
  font-weight: 430;
}

.method__definition {
  max-width: 390px;
  margin: 0 0 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 238, 233, 0.28);
  color: #c8c9c4;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.58;
}

.method__steps {
  display: grid;
  margin: 0 0 28px;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.method__steps li {
  min-width: 0;
  padding: 18px clamp(18px, 2.3vw, 36px) 0 0;
  border-top: 1px solid rgba(239, 238, 233, 0.28);
}

.method__steps li + li { padding-left: clamp(18px, 2.3vw, 36px); }

.method__steps li > span {
  display: block;
  margin-bottom: 22px;
  color: var(--brass);
  font-size: 11px;
}

.method__steps h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 480;
}

.method__steps p {
  max-width: 350px;
  margin: 0;
  color: var(--secondary);
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.55;
}

.method__note {
  max-width: 700px;
  margin: 0;
  color: rgba(239, 238, 233, 0.64);
  font-size: 11px;
  line-height: 1.45;
}

.availability {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: 88px clamp(40px, 6vw, 96px) 34px;
  grid-template-rows: auto 1fr auto;
}

.availability__header {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 238, 233, 0.2);
  color: var(--secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.availability__body {
  display: grid;
  align-self: center;
  padding: clamp(44px, 7vh, 76px) 0;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.5fr);
  gap: clamp(54px, 8vw, 128px);
  align-items: end;
}

.availability__lead > p {
  margin: 0 0 20px;
  color: var(--brass);
  font-size: 13px;
}

.availability h2 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(56px, 6.7vw, 104px);
  font-weight: 430;
  line-height: 0.94;
}

.availability h2 em {
  color: var(--brass);
  font-style: normal;
  font-weight: 430;
}

.availability__details {
  max-width: 390px;
}

.availability__statement {
  margin: 0 0 30px;
  color: #d1d2cd;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.56;
}

.availability__details dl { margin: 0; }

.availability__details dl > div {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(239, 238, 233, 0.24);
}

.availability__details dt {
  margin-bottom: 8px;
  color: var(--brass);
  font-size: 10px;
  text-transform: uppercase;
}

.availability__details dd {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}

.availability__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.availability__links > * {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 2.4vw, 38px) 0 0;
  border-top: 1px solid rgba(239, 238, 233, 0.3);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.availability__links > * + * { padding-left: clamp(18px, 2.4vw, 38px); }

.availability__email-address {
  color: var(--secondary);
  overflow-wrap: anywhere;
  text-align: right;
  text-transform: none;
}

.availability__links i {
  font-style: normal;
  transition: transform 240ms ease;
}

.availability__links a:hover i,
.availability__links a:focus-visible i { transform: translate(3px, -3px); }

.availability__links a:last-child:hover i,
.availability__links a:last-child:focus-visible i { transform: translateY(3px); }

.work-index {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  min-width: 280px;
  padding: 28px clamp(40px, 6vw, 96px) 34px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  opacity: var(--work-opacity);
  pointer-events: none;
  transform: translateY(var(--work-y));
  visibility: hidden;
  will-change: opacity, transform;
}

body[data-work="open"] .work-index {
  pointer-events: auto;
  visibility: visible;
}

body[data-work="closing"] .work-index { visibility: visible; }

.work-index__header {
  display: grid;
  grid-template-columns: 1fr auto 42px;
  gap: 28px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(239, 238, 233, 0.22);
  color: var(--secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.work-index__close {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.work-projects {
  display: grid;
  min-height: 0;
  gap: clamp(28px, 4vh, 52px);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.work-project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
  gap: clamp(42px, 6vw, 104px);
  align-items: center;
  min-height: 0;
}

.work-project + .work-project {
  border-top: 1px solid rgba(239, 238, 233, 0.16);
}

.work-project__link {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 18px 0;
  text-decoration: none;
}

.work-project__index {
  display: block;
  margin-bottom: 14px;
  color: var(--brass);
  font-size: 11px;
}

.work-project__link h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 5.2vw, 82px);
  font-weight: 430;
  line-height: 0.9;
}

.work-project__link > p {
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 12px;
}

.work-project__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(239, 238, 233, 0.46);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.work-project__cta i {
  font-style: normal;
  transition: transform 240ms ease;
}

.work-project__link:hover .work-project__cta i,
.work-project__link:focus-visible .work-project__cta i {
  transform: translate(3px, -3px);
}

.work-project__preview {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  width: auto;
  max-width: 100%;
  height: min(510px, calc((100vh - 220px) / 2));
  margin: 0;
  aspect-ratio: 1905 / 1080;
  justify-self: end;
  clip-path: inset(0 var(--work-preview-clip) 0 0);
  opacity: var(--work-preview-opacity);
  overflow: hidden;
  transform: none;
  will-change: clip-path, opacity;
}

.work-project__preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(239, 238, 233, 0.14);
  content: "";
  pointer-events: none;
}

.work-project__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-index__footer {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid rgba(239, 238, 233, 0.22);
  color: var(--secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.progress {
  position: fixed;
  z-index: 6;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.progress button {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  cursor: pointer;
}

.progress button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--quiet);
  content: "";
  transform: translate(-50%, -50%);
  transition: width 300ms ease, height 300ms ease, background 300ms ease;
}

.progress button:hover::before,
.progress button:focus-visible::before,
.progress button.is-active::before {
  width: 7px;
  height: 7px;
  background: var(--brass);
}

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

@media (max-width: 760px) {
  .navigation { top: 18px; right: 18px; gap: 20px; font-size: 12px; }
  .identity { top: 43%; left: 18px; width: calc(100% - 36px); }
  h1 { font-size: clamp(66px, 22vw, 114px); line-height: .8; white-space: normal; }
  h1 span { display: block; }
  .identity__role { width: 240px; margin-bottom: 22px; font-size: 13px; }
  .identity__statement { width: min(330px, 88vw); margin: 28px 0 0; font-size: 14px; }
  .contact { bottom: 24px; left: 18px; font-size: 10px; }
  .progress { right: 8px; }
  .method {
    min-height: auto;
    padding: 78px 18px 34px;
    grid-template-rows: auto auto auto auto;
  }
  .method__header { font-size: 9px; }
  .method__header span:last-child { max-width: 190px; text-align: right; }
  .method__lead {
    display: block;
    padding: 12vh 0 10vh;
  }
  .method h2 { font-size: clamp(42px, 12.5vw, 70px); line-height: 0.98; }
  .method__definition {
    max-width: 520px;
    margin-top: 34px;
    font-size: 14px;
  }
  .method__steps { grid-template-columns: 1fr; margin-bottom: 52px; }
  .method__steps li { padding: 16px 0 30px; }
  .method__steps li + li { padding-left: 0; }
  .method__steps li > span { margin-bottom: 15px; }
  .method__steps p { max-width: 520px; font-size: 13px; }
  .method__note { max-width: 520px; font-size: 10px; }
  .availability {
    min-height: auto;
    padding: 78px 18px 28px;
    grid-template-rows: auto auto auto;
  }
  .availability__header { font-size: 9px; }
  .availability__header span:last-child { max-width: 190px; text-align: right; }
  .availability__body {
    display: block;
    padding: 12vh 0 10vh;
  }
  .availability h2 {
    font-size: clamp(48px, 14vw, 74px);
    line-height: 0.95;
  }
  .availability__details {
    max-width: 520px;
    margin-top: 48px;
  }
  .availability__statement { font-size: 14px; }
  .availability__details dd { font-size: 12px; }
  .availability__links { grid-template-columns: 1fr; }
  .availability__links > * { padding: 14px 0 18px; }
  .availability__links > * + * { padding-left: 0; }
  .work-index {
    display: block;
    padding: 18px 18px 24px;
    overflow-y: auto;
  }
  .work-index__header {
    position: sticky;
    z-index: 5;
    top: 0;
    grid-template-columns: 1fr auto 36px;
    gap: 10px;
    background: var(--ground);
    font-size: 9px;
  }
  .work-index__close { width: 36px; height: 36px; font-size: 25px; }
  .work-projects { display: block; }
  .work-project {
    display: grid;
    min-height: auto;
    padding: 7vh 0 6vh;
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
  }
  .work-project + .work-project { border-top-color: rgba(239, 238, 233, 0.22); }
  .work-project__link { width: 100%; padding: 0; }
  .work-project__link h2 { font-size: clamp(52px, 15vw, 76px); }
  .work-project__link > p { max-width: 250px; margin-top: 24px; line-height: 1.5; }
  .work-project__preview {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin-top: 28px;
    transform: none;
  }
  .work-index__footer { margin-top: 18px; font-size: 9px; }
}

@media (max-width: 370px) {
  .identity { top: 41%; }
  h1 { font-size: 67px; }
  .identity__statement { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
