@layer reset, base, layout, components, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
}

@layer base {
  :root {
    --paper: #f2efe7;
    --paper-dark: #e4e0d6;
    --ink: #11110f;
    --ink-soft: #363630;
    --rule: #b9b6ad;
    --oxide: #b74b28;
    --white: #f8f6f0;
    --max: 1440px;
    --gutter: clamp(20px, 4vw, 64px);
    --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
  }

  html { background: var(--ink); }
  body {
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-variation-settings: "wdth" 98;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--oxide); color: var(--white); }

  .skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 100;
    background: var(--ink);
    color: var(--white);
    padding: 12px 16px;
  }
  .skip-link:focus { top: 16px; }

  .section-number,
  .kicker,
  .project-type,
  figcaption,
  .project-output span {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .text-link {
    display: inline-flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    width: max-content;
    border-bottom: 1px solid currentColor;
    padding: 0 0 8px;
    text-decoration: none;
    font-weight: 600;
  }
  .text-link:hover span { transform: translateY(4px); }
  .text-link span { transition: transform 180ms ease; }
  .text-link--large { font-size: 17px; }
}

@layer layout {
  .masthead {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 92px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .wordmark {
    display: inline-flex;
    align-items: flex-start;
    width: max-content;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
  }
  .wordmark-main {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.055em;
  }
  .wordmark-legal {
    margin: -2px 0 0 5px;
    color: var(--oxide);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .nav { display: flex; gap: clamp(20px, 3vw, 48px); }
  .nav a {
    position: relative;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
  }
  .nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--oxide);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: min(780px, calc(100svh - 92px));
    border-bottom: 1px solid var(--ink);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(64px, 8vw, 132px) var(--gutter);
  }
  .hero-copy .kicker { color: var(--oxide); margin-bottom: 34px; }
  .hero-copy h1 {
    max-width: 780px;
    font-size: clamp(52px, 6.25vw, 112px);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.91;
    text-wrap: balance;
  }
  .hero-copy h1 em {
    color: var(--oxide);
    font-style: normal;
    font-weight: 300;
  }
  .hero-intro {
    max-width: 600px;
    margin: clamp(32px, 5vw, 64px) 0 40px;
    font-size: clamp(18px, 1.45vw, 23px);
    font-weight: 390;
    line-height: 1.45;
  }

  .hero-workflow {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #d8d8d1;
    isolation: isolate;
  }
  .hero-workflow::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg, transparent 49.85%, rgba(19,19,17,.12) 50%, transparent 50.15%),
      linear-gradient(transparent 49.85%, rgba(19,19,17,.12) 50%, transparent 50.15%);
    background-size: 80px 80px;
    content: "";
  }
  .workflow-editor,
  .workflow-evidence,
  .workflow-report {
    position: absolute;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 10px 12px 0 rgba(19,19,17,.16);
    transition: transform 400ms cubic-bezier(.2,.7,.2,1);
  }
  .workflow-editor {
    top: 7%;
    right: -8%;
    width: 82%;
    height: 72%;
    overflow: hidden;
  }
  .workflow-editor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
  }
  .workflow-evidence {
    bottom: 7%;
    left: 5%;
    z-index: 3;
    width: 39%;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .workflow-evidence img { width: 100%; height: 100%; object-fit: cover; }
  .workflow-report {
    right: 5%;
    bottom: 4%;
    z-index: 2;
    width: 39%;
    aspect-ratio: 1.08;
    overflow: hidden;
  }
  .workflow-report img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .hero-workflow:hover .workflow-editor { transform: translate(-5px, -4px); }
  .hero-workflow:hover .workflow-evidence { transform: translate(4px, -5px) rotate(-.6deg); }
  .hero-workflow:hover .workflow-report { transform: translate(-4px, 5px) rotate(.5deg); }
  .workflow-label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 9px 11px;
    color: var(--white);
    background: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .workflow-label--editor { right: 0; left: auto; background: var(--oxide); }
  .hero-workflow figcaption {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--paper);
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .hero-index {
    position: absolute;
    bottom: 20px;
    left: var(--gutter);
    color: var(--rule);
    font-family: var(--mono);
    font-size: 11px;
  }

  .statement {
    display: grid;
    grid-template-columns: 2fr 10fr;
    gap: 24px;
    padding: clamp(88px, 13vw, 190px) var(--gutter);
    background: var(--paper);
  }
  .statement-text {
    max-width: 1180px;
    font-size: clamp(38px, 5vw, 78px);
    font-weight: 440;
    letter-spacing: -0.045em;
    line-height: 1.04;
  }

  .work { background: var(--ink); color: var(--white); }
  .section-heading {
    display: grid;
    grid-template-columns: 2fr 10fr;
    gap: 24px;
    padding: clamp(72px, 9vw, 130px) var(--gutter) clamp(52px, 6vw, 84px);
    border-bottom: 1px solid #45453f;
  }
  .section-heading .section-number { color: #9a9992; }
  .section-heading h2,
  .origin-copy h2,
  .contact h2 {
    font-size: clamp(42px, 5vw, 78px);
    font-weight: 420;
    letter-spacing: -0.05em;
    line-height: 1.02;
  }

  .project {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 5fr 2fr 2fr 2fr;
    min-height: 430px;
    border-bottom: 1px solid;
  }
  .project > * { padding: 38px 28px; border-right: 1px solid; }
  .project > *:last-child { border-right: 0; }
  .project--light {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--paper);
  }
  .project--light > * { border-color: var(--ink); }
  .project--dark {
    color: var(--white);
    border-color: #45453f;
    background: var(--ink);
  }
  .project--dark > * { border-color: #45453f; }
  .project-number { color: var(--oxide); font-family: var(--mono); font-size: 13px; }
  .project-main { display: flex; flex-direction: column; }
  .project-type { margin-bottom: 38px; color: var(--oxide); }
  .project h3 {
    margin-bottom: auto;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 720;
    letter-spacing: -0.065em;
    line-height: 0.95;
  }
  .project-description {
    max-width: 670px;
    margin-top: 60px;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.45;
  }
  .project-output span { display: block; margin-bottom: 28px; color: var(--oxide); }
  .project-output p { font-size: 15px; line-height: 1.75; }
  .project-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    color: inherit;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease;
  }
  .project--light .project-link:hover { background: var(--oxide); color: var(--white); }
  .project--dark .project-link:hover { background: var(--oxide); }
  .project-link span { font-size: 22px; transition: transform 180ms ease; }
  .project-link:hover span { transform: translate(4px, -4px); }

  .origin {
    display: grid;
    grid-template-columns: 7fr 5fr;
    min-height: 760px;
    border-bottom: 1px solid var(--ink);
  }
  .origin-image { min-height: 620px; overflow: hidden; background: #6f6256; }
  .origin-image img { width: 100%; height: 100%; object-fit: cover; }
  .origin-copy {
    display: flex;
    flex-direction: column;
    padding: clamp(52px, 6vw, 92px) var(--gutter);
    border-left: 1px solid var(--ink);
  }
  .origin-copy .section-number { color: var(--oxide); margin-bottom: 44px; }
  .origin-copy h2 { margin-bottom: 52px; }
  .origin-copy > p {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
  }
  .company-facts { margin-top: auto; border-top: 1px solid var(--ink); }
  .company-facts div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule);
  }
  .company-facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
  .company-facts dd { font-size: 14px; }

  .contact {
    padding: clamp(90px, 12vw, 180px) var(--gutter);
    color: var(--white);
    background: var(--oxide);
  }
  .contact .section-number { margin-bottom: 54px; }
  .contact h2 { max-width: 1100px; }
  .contact-email {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(70px, 10vw, 150px);
    padding: 24px 0 12px;
    border-bottom: 2px solid currentColor;
    color: var(--white);
    font-size: clamp(25px, 4vw, 64px);
    font-weight: 650;
    letter-spacing: -0.045em;
    text-decoration: none;
  }
  .contact-email span { transition: transform 180ms ease; }
  .contact-email:hover span { transform: translate(8px, -8px); }

  .footer {
    padding: 56px var(--gutter) 44px;
    color: var(--white);
    background: var(--ink);
  }
  .footer-wordmark {
    border-bottom: 1px solid #45453f;
    padding-bottom: 48px;
    font-size: clamp(66px, 14vw, 220px);
    font-weight: 850;
    letter-spacing: -0.075em;
    line-height: 0.78;
  }
  .footer-wordmark span {
    margin-left: 10px;
    color: var(--oxide);
    font-family: var(--mono);
    font-size: 0.1em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: top;
  }
  .footer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 28px;
    color: #a8a79f;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.8;
    text-transform: uppercase;
  }
  .footer-details p:last-child { text-align: right; }
  .footer-details a { color: inherit; }
}

@layer motion {
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .workflow-editor, .workflow-evidence, .workflow-report, .text-link span, .project-link span, .contact-email span { transition: none; }
  }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 620px; }
  .hero-workflow { min-height: 68vw; max-height: 820px; }
  .statement, .section-heading { grid-template-columns: 1fr; }
  .statement .section-number, .section-heading .section-number { margin-bottom: 28px; }
  .project { grid-template-columns: 70px 1fr 1fr; }
  .project-main { grid-column: span 2; }
  .project-output { border-top: 1px solid; }
  .project-link { border-top: 1px solid; }
  .project--light .project-output, .project--light .project-link { border-top-color: var(--ink); }
  .project--dark .project-output, .project--dark .project-link { border-top-color: #45453f; }
  .origin { grid-template-columns: 1fr; }
  .origin-copy { min-height: 680px; border-top: 1px solid var(--ink); border-left: 0; }
}

@media (max-width: 680px) {
  .masthead { height: 74px; }
  .nav { gap: 18px; }
  .nav a:nth-child(2) { display: none; }
  .wordmark-main { font-size: 21px; }

  .hero { min-height: auto; }
  .hero-copy { min-height: 560px; padding-top: 72px; padding-bottom: 72px; }
  .hero-copy h1 { font-size: clamp(49px, 15vw, 72px); }
  .hero-intro { font-size: 17px; }
  .hero-workflow { min-height: 112vw; max-height: none; }
  .workflow-editor { top: 8%; right: -23%; width: 108%; height: 60%; }
  .workflow-evidence { bottom: 8%; left: 5%; width: 47%; }
  .workflow-report { right: 4%; bottom: 5%; width: 45%; }
  .hero-workflow figcaption { max-width: 68%; font-size: 9px; line-height: 1.4; }
  .hero-index { display: none; }

  .statement { padding-top: 92px; padding-bottom: 92px; }
  .statement-text { font-size: 36px; }

  .section-heading h2, .origin-copy h2, .contact h2 { font-size: 43px; }
  .project {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }
  .project > * { padding: 26px 20px; }
  .project-number {
    grid-column: 1 / -1;
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid;
  }
  .project-main {
    grid-column: 1 / -1;
    min-width: 0;
    border-right: 0;
  }
  .project--light .project-number { border-bottom-color: var(--ink); }
  .project--dark .project-number { border-bottom-color: #45453f; }
  .project h3 {
    max-width: 100%;
    font-size: 38px;
    overflow-wrap: anywhere;
  }
  .project-description { margin-top: 50px; font-size: 17px; }
  .project-output {
    grid-column: auto;
    min-width: 0;
    border-top: 1px solid;
  }
  .project-output p { font-size: 14px; line-height: 1.6; overflow-wrap: break-word; }
  .project-main + .project-output { border-right: 1px solid; }
  .project-output + .project-output { border-right: 0; }
  .project--light .project-main + .project-output { border-right-color: var(--ink); }
  .project--dark .project-main + .project-output { border-right-color: #45453f; }
  .project-link { grid-column: 1 / -1; min-height: 104px; border-right: 0; border-top: 1px solid; }

  .origin-image { min-height: 72vw; }
  .origin-copy { min-height: 680px; }
  .company-facts div { grid-template-columns: 1fr; gap: 5px; }

  .contact { padding-top: 96px; padding-bottom: 96px; }
  .contact-email { font-size: 24px; overflow-wrap: anywhere; }

  .footer { padding-top: 46px; }
  .footer-wordmark { font-size: 24vw; }
  .footer-details { grid-template-columns: 1fr; }
  .footer-details p:last-child { text-align: left; }
}
