@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Libre+Caslon+Display&display=swap');
:root {
  --paper: #faf9f4;
  --ink: #1b1d20;
  --blue: #044bff;
  --line: #d9d9d0;
  --muted: #646760;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 'DM Sans',Arial,sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 7px;
}

.wrap {
  max-width: 1360px;
  margin: auto;
  padding: 0 64px;
}

.brand {
  display: inline-block;
  width: 140px;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 0 28px;
}

nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
}

nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav > a:not(.pill):hover {
  color: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border-radius: 100px;
  padding: 14px 24px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  transition: transform .2s,background .2s;
}

.pill:hover {
  background: #003bd4;
  transform: translateY(-2px);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow:before {
  content: '';
  height: 1px;
  width: 30px;
  background: currentColor;
}

.hero {
  padding: 85px 0 88px;
  position: relative;
}

.hero h1 {
  font: clamp(70px,7.5vw,112px)/.98 'Libre Caslon Display',Georgia,serif;
  letter-spacing: -3.5px;
  max-width: 970px;
  margin: 31px 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero p {
  max-width: 475px;
  font-size: 19px;
  line-height: 1.6;
  margin: 30px 0;
}

.hero .pill {
  margin-top: 8px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}


.hero-bottom {
  padding-right: 0;
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section {
  padding: 66px 0 76px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 33px;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font: 44px/1.1 'Libre Caslon Display',Georgia,serif;
  letter-spacing: -1px;
  margin: 0;
}

.section-heading span {
  font-size: 13px;
  color: var(--muted);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: #eeeee7;
  border: 1px solid #e2e2d9;
  border-radius: 8px;
  overflow: hidden;
}

.product-art {
  background: var(--blue);
  color: white;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px;
  position: relative;
}

.product-art .small {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .8;
}

.frameword {
  font-size: clamp(44px,5vw,72px);
  letter-spacing: -4px;
  font-weight: 600;
  line-height: 1.1;
}

.frame-symbol {
  width: 56px;
  height: 56px;
  border: 3px solid white;
  border-radius: 10px;
  position: relative;
  margin-bottom: 23px;
}

.frame-symbol:after {
  content: '';
  position: absolute;
  left: 19px;
  top: 14px;
  border-left: 15px solid white;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.product-art .rule {
  border-top: 1px solid #ffffff50;
  padding-top: 15px;
  font-size: 13px;
}

.product-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.product-copy h3 {
  font: 42px/1.15 'Libre Caslon Display',Georgia,serif;
  letter-spacing: -.6px;
  margin: 18px 0;
}

.product-copy p {
  color: #575b57;
  margin: 0 0 30px;
  max-width: 390px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 5px;
  font-size: 14px;
}

.text-link:hover {
  color: var(--blue);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
}

.about h2 {
  font: 62px/1.05 'Libre Caslon Display',Georgia,serif;
  letter-spacing: -2px;
  margin: 26px 0;
}

.about .body {
  padding-top: 39px;
  max-width: 580px;
  font-size: 20px;
  line-height: 1.65;
}

.about .body p {
  margin: 0 0 20px;
}

.about .body p:last-child {
  font-size: 16px;
  color: var(--muted);
}

footer {
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand .brand {
  width: 100px;
}

.footer-right {
  display: flex;
  gap: 28px;
}

::selection {
  background: #c8d7ff;
}


@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .pill {
    transition: none;
  }
}

@media(min-width:1450px) {
  .hero h1 {
    font-size: 112px;
  }
}

@media (max-width: 900px) {
  .hero-bottom {
    padding-right: 0;
  }
  .hero-bottom span:last-child {
    display: none;
  }
  .wrap {
    padding: 0 32px;
  }
  .hero {
    padding-top: 65px;
  }
  .hero h1 {
    font-size: clamp(58px, 9vw, 83px);
    max-width: 700px;
  }
  .hero p {
    max-width: 400px;
  }
  .product-copy {
    padding: 30px;
  }
  .about {
    gap: 40px;
  }
  .about h2 {
    font-size: 53px;
  }
  .about .body {
    font-size: 18px;
  }
}

/* Stack content before two columns become too narrow to read comfortably. */
@media (max-width: 760px) {
  nav .pill {
    display: none;
  }

  .product,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    gap: 0;
  }

  .about .body {
    padding-top: 18px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 24px;
  }

  header {
    padding-top: 34px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .brand {
    width: 120px;
  }

  nav {
    gap: 22px;
  }

  .hero {
    padding: 53px 0 160px;
  }

  .hero h1 {
    font-size: clamp(46px, 11vw, 66px);
    letter-spacing: -2px;
    margin-top: 26px;
  }

  .hero p {
    font-size: 17px;
    max-width: 310px;
  }

  .hero-bottom {
    margin-top: 36px;
    font-size: 10px;
  }


  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading h2 {
    font-size: 37px;
  }

  .product-art {
    min-height: 290px;
  }

  .product-copy,
  .product-art {
    padding: 24px;
  }

  .frameword {
    font-size: clamp(44px, 12vw, 60px);
  }

  .product-copy h3 {
    font-size: 38px;
  }

  .about h2 {
    font-size: clamp(44px, 10vw, 53px);
    margin-bottom: 10px;
  }

  footer {
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-right {
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .footer-brand {
    gap: 10px;
    font-size: 12px;
  }
}

/* One visitor, clipped by the viewport rather than individual sections. */
.mascot-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: paint;
  visibility: hidden;
}

.mascot-ready .mascot-stage { visibility: visible; }

.mascot-peek {
  position: absolute;
  left: var(--peek-x, 110vw);
  top: var(--peek-y, 50vh);
  width: var(--peek-size, 100px);
  transform: translate(calc(-50% + var(--hide-x, 130px)), calc(-50% + var(--hide-y, 0px))) scale(.85);
  transition: transform 240ms ease-in;
}

.mascot-stage.is-visible .mascot-peek {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 850ms cubic-bezier(.16, 1, .3, 1);
}

.mascot-stage.is-startled .mascot-peek { transition-duration: 140ms; }
.mascot-stage.is-gone .mascot-peek { visibility: hidden; }
.mascot-stage.is-positioning .mascot-peek { transition: none; }

.mascot-art {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(var(--mirror, 1));
  transform-origin: center;
}

.mascot-stage.is-visible .mascot-art {
  animation: curious-tilt 2400ms 900ms both;
}

@keyframes curious-tilt {
  0%, 100% { transform: scaleX(var(--mirror, 1)) rotate(0); }
  45% { transform: scaleX(var(--mirror, 1)) rotate(-6deg); }
}

/* Vertical peeks use a front-facing head connected to the relevant edge. */
.mascot-art--top,
.mascot-art--bottom { display: none; }

.mascot-stage:is([data-edge="top"], [data-edge="bottom"]) .mascot-art--side {
  display: none;
}
.mascot-stage[data-edge="top"] .mascot-art--top,
.mascot-stage[data-edge="bottom"] .mascot-art--bottom { display: block; }

.mascot-stage[data-edge="top"].is-visible .mascot-peek {
  transition-duration: 1050ms;
}
.mascot-stage[data-edge="bottom"].is-visible .mascot-peek {
  transition-duration: 950ms;
}
.mascot-stage[data-edge="top"].is-visible .mascot-art {
  animation-name: curious-look-down;
  transform-origin: center top;
}
.mascot-stage[data-edge="bottom"].is-visible .mascot-art {
  animation-name: curious-look-up;
  transform-origin: center bottom;
}

@keyframes curious-look-down {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(3px); }
}
@keyframes curious-look-up {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-stage { display: none; }
}

/* Blink in the eye’s local coordinates; its parent supplies the fixed tilt. */
.mascot-eye {
  transform-box: fill-box;
  transform-origin: center;
}

/* Brows inherit the same tilt as the eyes and lift only a few screen pixels. */
.mascot-brow {
  fill: none;
  stroke: var(--paper);
  stroke-width: 5;
  stroke-linecap: round;
  transform: translateY(var(--brow-lift, 0px));
  transition: transform 220ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .mascot-brow {
    transform: none;
    transition: none;
  }
}

.not-found {
  max-width: 900px;
  padding: 80px 0;
}

.not-found h1 {
  font: clamp(42px, 6vw, 76px)/1.08 'Libre Caslon Display', Georgia, serif;
  letter-spacing: -1.5px;
  margin: 30px 0;
}

.not-found h1 em {
  color: var(--blue);
  font-style: normal;
}

.not-found p {
  max-width: 490px;
  margin-bottom: 32px;
  color: var(--muted);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact:hover { color: var(--blue); }

@media (max-width: 600px) {
  .not-found { padding: 48px 0; }
  .footer-right .footer-contact { justify-content: flex-end; }
}
