:root {
  --shell-ink: #111111;
  --shell-paper: #edede9;
  --shell-white: #ffffff;
  --shell-line: rgba(17, 17, 17, 0.18);
  --shell-pad: clamp(20px, 3.2vw, 58px);
  --shell-ease: cubic-bezier(.22, .61, .36, 1);
}

body.menu-is-open { overflow: hidden; }
.site-header *, .site-menu *, .side-rail *, .site-footer *, .site-loader * { box-sizing: border-box; }
.site-header a, .site-menu a, .site-footer a { color: inherit; text-decoration: none; }
.site-header p, .site-menu p, .site-footer p, .site-footer h2 { margin: 0; }
.site-menu ul { margin: 0; padding: 0; list-style: none; }
.final-container { width: min(100%, 1760px); margin-inline: auto; padding-inline: var(--shell-pad); }
.final-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--shell-ink); color: var(--shell-white); transition: opacity .5s ease, visibility .5s ease; }
.site-loader__word { display: grid; gap: .08em; font: 400 clamp(28px, 5vw, 72px)/.92 "Arial", sans-serif; letter-spacing: .18em; }
.site-loader__line { display: flex; justify-content: center; gap: .08em; }
.site-loader__line > span { animation: final-loader-pulse 1s ease-in-out infinite alternate; }
.site-loader__line:first-child > span:nth-child(2), .site-loader__line:last-child > span:nth-child(1) { animation-delay: .08s; }
.site-loader__line:first-child > span:nth-child(3), .site-loader__line:last-child > span:nth-child(2) { animation-delay: .16s; }
.site-loader__line:first-child > span:nth-child(4), .site-loader__line:last-child > span:nth-child(3) { animation-delay: .24s; }
.site-loader__line:first-child > span:nth-child(5), .site-loader__line:last-child > span:nth-child(4) { animation-delay: .32s; }
.site-loader__line:first-child > span:nth-child(6), .site-loader__line:last-child > span:nth-child(5) { animation-delay: .4s; }
.site-loader__line:last-child > span:nth-child(6) { animation-delay: .48s; }
body.is-ready .site-loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes final-loader-pulse { from { opacity: .25; } to { opacity: 1; } }

.site-header { position: fixed; inset: 0 0 auto; z-index: 120; color: var(--shell-white); border-bottom: 1px solid rgba(255, 255, 255, .22); font-family: "Ingrad Sans", "Arial", sans-serif; transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.site-header.is-scrolled, body.menu-is-open .site-header { color: var(--shell-ink); background: rgba(237, 237, 233, .96); border-bottom-color: var(--shell-line); }
.site-header__inner { min-height: 82px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.site-logo { justify-self: start; width: clamp(96px, 8vw, 132px); }
.site-logo img { display: block; width: 100%; transition: filter .3s ease; }
.site-header:not(.is-scrolled) .site-logo img { filter: invert(1); }
body.menu-is-open .site-logo img { filter: none; }
.projects-page .site-header:not(.is-scrolled) { color: var(--shell-ink); border-bottom-color: var(--shell-line); }
.projects-page .site-header:not(.is-scrolled) .site-logo img { filter: none; }
.site-header__tagline { justify-self: center; color: inherit; font-size: 12px; line-height: 1.45; letter-spacing: .035em; }
.menu-button { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; color: inherit; cursor: pointer; }
.site-header .menu-button { justify-self: end; }
.menu-button__bars { position: relative; width: 32px; height: 18px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); transition: opacity .2s ease, filter .2s ease; }
.menu-button__bars span { position: absolute; left: 0; width: 32px; height: 2px; background: currentColor; transition: transform .3s ease, top .3s ease, opacity .2s ease; }
.menu-button__bars span:nth-child(1) { top: 0; }
.menu-button__bars span:nth-child(2) { top: 8px; }
.menu-button__bars span:nth-child(3) { top: 16px; }
.menu-button:hover .menu-button__bars { opacity: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.menu-button:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }
body.menu-is-open .menu-button__bars, .site-header.is-scrolled .menu-button__bars { filter: none; }
body.menu-is-open .menu-button__bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-is-open .menu-button__bars span:nth-child(2) { opacity: 0; }
body.menu-is-open .menu-button__bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.side-rail { position: fixed; inset: 82px auto 0 0; z-index: 100; width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 24px 0 38px; color: var(--shell-white); border-right: 1px solid rgba(255, 255, 255, .22); pointer-events: none; mix-blend-mode: difference; font-family: "Ingrad Sans", "Arial", sans-serif; }
.side-rail .menu-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); pointer-events: auto; }
.side-rail__copy { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s ease; }
.projects-page .side-rail { color: var(--shell-ink); border-right-color: var(--shell-line); mix-blend-mode: normal; }
body.menu-is-open .side-rail { z-index: 121; opacity: 1; color: var(--shell-ink); pointer-events: auto; mix-blend-mode: normal; border-right-color: var(--shell-line); }
body.menu-is-open .side-rail__copy { opacity: 0; }

.site-menu { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34vw); padding: 130px var(--shell-pad) 54px calc(var(--shell-pad) + 76px); background: var(--shell-white); color: var(--shell-ink); visibility: hidden; opacity: 0; transform: translateY(-18px); font-family: "Ingrad Sans", "Arial", sans-serif; transition: opacity .35s ease, transform .45s var(--shell-ease), visibility .45s; }
body.menu-is-open .site-menu { visibility: visible; opacity: 1; transform: none; }
.site-menu__nav { align-self: center; }
.site-menu__nav a { display: block; padding: 9px 0; font-size: clamp(40px, 6vw, 100px); line-height: .95; letter-spacing: -.065em; }
.site-menu__meta { align-self: end; border-top: 1px solid var(--shell-line); padding-top: 22px; font-size: 16px; line-height: 1.45; letter-spacing: -.025em; }
.site-menu__meta p + p { margin-top: 18px; }
.site-menu__label { font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }
.site-menu__contact { margin-top: 42px; font-size: clamp(18px, 2vw, 30px); }
.site-menu__socials { display: flex; gap: 12px; margin-top: 28px; }
.site-menu__social-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--shell-line); border-radius: 50%; color: var(--shell-ink); font-size: 20px; }

.site-footer { position: relative; z-index: 2; padding: clamp(82px, 9vw, 150px) 0 34px; background: var(--shell-ink); color: var(--shell-white); font-family: "Ingrad Sans", "Arial", sans-serif; font-size: 16px; line-height: 1.45; letter-spacing: -.025em; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .6fr .6fr .8fr; gap: clamp(36px, 5vw, 88px); }
.site-footer h2 { color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: .11em; text-transform: uppercase; }
.site-footer__lead { color: var(--shell-white); font-size: clamp(48px, 7vw, 120px); line-height: .86; letter-spacing: -.075em; }
.site-footer__column a, .site-footer__column p { display: block; margin-top: 14px; color: rgba(255, 255, 255, .78); }
.site-footer__column a:hover { color: var(--shell-white); }
.site-footer__form { margin-top: 54px; max-width: 620px; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.site-footer__form input { width: 100%; border: 0; padding: 16px 0; background: transparent; color: var(--shell-white); outline: none; }
.site-footer__form input::placeholder { color: rgba(255, 255, 255, .55); }
.site-footer__form button { border: 0; padding: 16px 0 16px 24px; background: transparent; color: var(--shell-white); cursor: pointer; }
.site-footer__bottom { margin-top: clamp(70px, 10vw, 160px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; justify-content: space-between; gap: 24px; color: rgba(255, 255, 255, .55); font-size: 12px; }

.final-project-nav { width: min(100%, 1650px); margin: 0 auto; padding: 32px var(--shell-pad); display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(17, 17, 17, .18); font-family: "Ingrad Sans", "Arial", sans-serif; }
.final-project-nav a { color: inherit; text-decoration: none; }

.site-back-to-top { position: fixed; z-index: 105; right: max(20px, calc(env(safe-area-inset-right) + 20px)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px)); width: 52px; height: 58px; padding: 0; border: 1px solid rgba(17,17,17,.34); background: rgba(237,237,233,.92); color: var(--shell-ink); backdrop-filter: blur(10px); cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px); transition: opacity .25s ease, visibility .25s ease, transform .25s var(--shell-ease), color .2s ease, background-color .2s ease; }
.site-back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.site-back-to-top__arrow { position: absolute; top: 17px; left: 50%; width: 12px; height: 22px; transform: translateX(-50%); }
.site-back-to-top__arrow::before { content: ""; position: absolute; top: -1px; left: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.site-back-to-top__arrow::after { content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: 22px; background: currentColor; transform: translateX(-50%); }
.site-back-to-top:hover, .site-back-to-top:focus-visible { color: var(--shell-white); background: var(--shell-ink); outline: 0; }
body.menu-is-open .site-back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }

@media (min-width: 1200px) {
  .site-footer .final-container { padding-left: 108px; }
}
@media (max-width: 1199px) {
  .side-rail { display: none; }
  .site-menu { grid-template-columns: 1fr 300px; padding-left: var(--shell-pad); }
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .site-footer__office { grid-column: 2; }
}
@media (max-width: 767px) {
  :root { --shell-pad: 20px; }
  .site-header__inner { min-height: 68px; grid-template-columns: 1fr auto; }
  .site-header__tagline { display: none; }
  .site-logo { width: 95px; }
  .site-menu { grid-template-columns: 1fr; padding-top: 104px; }
  .site-menu__nav { align-self: start; }
  .site-menu__nav a { padding: 8px 0; font-size: clamp(39px, 13vw, 62px); }
  .site-menu__meta { margin-top: 28px; }
  .site-menu__contact { margin-top: 24px; font-size: 18px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__office { grid-column: 1 / -1; }
  .site-footer__lead { font-size: clamp(54px, 17vw, 76px); overflow-wrap: anywhere; }
  .site-footer__form { grid-template-columns: 1fr; }
  .site-footer__form button { padding-left: 0; text-align: left; }
  .site-footer__bottom { flex-direction: column; }
  .final-project-nav { flex-direction: column; }
  .site-back-to-top { right: max(14px, calc(env(safe-area-inset-right) + 14px)); bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px)); width: 48px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader__line > span { animation: none; }
  .site-menu, .site-header, .menu-button__bars span, .site-back-to-top { transition-duration: .01ms; }
}
