:root {
  --paper: #f5f3ed;
  --ink: #181916;
  --muted: #696b64;
  --accent: #ed4b2d;
  --rule: #d8d7d0;
  --gutter: clamp(24px, 4.5vw, 72px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
::selection { background: var(--accent); color: var(--ink); }
.page { width: min(100%, 1536px); padding: 0 var(--gutter); margin: 0 auto; }
.skip-link { position: absolute; top: 12px; left: var(--gutter); z-index: 5; background: var(--ink); color: var(--paper); padding: 12px 18px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; }
.wordmark { font-size: 27px; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.wordmark span { color: var(--accent); }
.masthead nav { font-size: 12px; }
.masthead nav a { padding: 8px 0; }
.masthead nav span { margin-left: 20px; }
.masthead nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { position: relative; min-height: 610px; padding-top: 66px; margin-bottom: 32px; }
.hero h1 { font-size: clamp(76px, 8.5vw, 124px); font-weight: 500; line-height: .91; letter-spacing: -.075em; }
.hero-opening { display: block; position: relative; z-index: 2; width: fit-content; }
.hero-closing { position: absolute; right: 0; bottom: 34px; z-index: 2; font-size: clamp(68px, 7.2vw, 108px); white-space: nowrap; }
.mosaic { position: absolute; top: 0; right: 5.8%; width: min(42vw, 550px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { background-image: url('/assets/glass-eight.webp'); background-size: calc(300% + 12px) calc(300% + 12px); background-position: calc(var(--x) * 50%) calc(var(--y) * 50%); }
.tile-muted { filter: grayscale(1); }
.tile-solid { background: var(--accent); }
.hero-note { position: absolute; bottom: 58px; left: 0; max-width: 290px; }
.hero-note p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.hero-note a { display: inline-flex; align-items: center; gap: 28px; margin-top: 24px; padding-bottom: 7px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.hero-note a:hover { border-color: var(--ink); }
.hero-note a span { font-size: 20px; }
.portfolio { padding-top: 24px; }
.portfolio > h2 { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 10px; line-height: 1.5; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brand { min-width: 0; padding: 28px 32px 28px 0; display: flex; flex-direction: column; }
.brand + .brand { border-left: 1px solid var(--rule); padding-left: 32px; }
.brand:last-child { padding-right: 0; }
.brand-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.brand-heading h3 { font-size: clamp(25px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; }
.brand-heading > span { font-size: 24px; transition: transform 160ms ease; }
.brand p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 280px; margin-top: 13px; }
.brand-domain { padding-top: 24px; margin-top: auto; font-size: 11px; color: var(--muted); }
.brand:hover .brand-heading > span { transform: translate(3px, -3px); }
.brand:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: 11px; color: var(--muted); }
.company-details { max-width: 680px; line-height: 1.7; }
.company-details p + p { margin-top: 4px; }
.company-details a { text-decoration: underline; text-underline-offset: 3px; }
.back-to-top { flex-shrink: 0; align-self: flex-start; line-height: 1.7; }
.site-footer a span { margin-left: 16px; }
.site-footer a:hover { color: var(--ink); }
@media (min-width: 1600px) { .hero { min-height: 650px; } }
@media (min-width: 801px) and (max-width: 1100px) {
  .hero { min-height: 530px; padding-top: 48px; }
  .hero h1 { font-size: 8.7vw; }
  .hero-closing { font-size: 7vw; bottom: 36px; }
  .hero-note { max-width: 250px; bottom: 48px; }
  .hero-note p { font-size: 14px; }
  .mosaic { right: 2%; width: 43vw; }
  .brand { padding-right: 22px; }
  .brand + .brand { padding-left: 22px; }
}
@media (max-width: 800px) {
  .masthead { padding: 26px 0; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: 32px; margin-bottom: 40px; }
  .hero h1 { display: contents; }
  .hero-opening { order: 0; font-size: clamp(68px, 12.8vw, 100px); font-weight: 500; line-height: .92; letter-spacing: -.075em; }
  .mosaic { order: 1; position: relative; top: auto; right: auto; width: min(72%, 350px); align-self: flex-end; margin-top: -38px; }
  .hero-closing { order: 2; position: relative; right: auto; bottom: auto; margin-top: 22px; font-size: clamp(46px, 9.5vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
  .hero-note { order: 3; position: relative; bottom: auto; max-width: 370px; margin-top: 26px; }
  .hero-note p { font-size: 14px; }
  .hero-note a { margin-top: 20px; }
  .portfolio { padding-top: 12px; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .brand, .brand + .brand, .brand:last-child { padding: 22px 0; border-left: 0; }
  .brand + .brand { border-top: 1px solid var(--rule); }
  .brand-heading h3 { font-size: 29px; }
  .brand p { max-width: none; margin-top: 8px; }
  .brand-domain { padding-top: 14px; }
  .site-footer { padding: 24px 0; flex-direction: column; gap: 16px; }
}
@media (max-width: 380px) {
  .hero-opening { font-size: 64px; }
  .mosaic { width: 76%; margin-top: -14px; }
  .hero-closing { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
