:root {
  color-scheme: light;

  --paper: #f1f2ef;
  --paper-bright: #fafbf8;

  --ink: #141716;
  --muted: #646a67;
  --line: #c8cdca;

  --smoke: #d8ddda;
  --glass: rgba(181, 210, 217, 0.32);

  --blue: #49747d;
  --dark-blue: #273f45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  background: var(--paper);
  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 18px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}


/* header */

.site-header {
  position: sticky;
  top: 0;

  z-index: 40;

  min-height: 74px;

  display: grid;
  grid-template-columns:
    170px
    1fr
    auto;

  align-items: center;

  padding:
    max(15px, env(safe-area-inset-top))
    clamp(20px, 4vw, 55px)
    15px;

  border-bottom:
    1px solid var(--line);

  background:
    rgba(241, 242, 239, 0.92);

  backdrop-filter:
    blur(10px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 5px;

  text-decoration: none;
}

.brand strong {
  font-size: 21px;
  letter-spacing: -0.05em;
}

.brand span {
  font-size: 9px;
  letter-spacing: 0.1em;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: var(--muted);

  font-size: 13px;

  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.header-contact {
  appearance: none;

  border: 1px solid var(--ink);

  padding: 9px 13px;

  background: transparent;
  color: var(--ink);

  font-size: 12px;

  cursor: pointer;
}


/* shared */

.overline {
  margin: 0;

  color: var(--blue);

  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.09em;
}


/* HERO */

.hero {
  min-height: 90vh;
  min-height: 90dvh;

  display: grid;
  grid-template-columns:
    0.9fr
    1.1fr;

  gap:
    clamp(
      50px,
      8vw,
      120px
    );

  align-items: center;

  padding:
    80px
    clamp(24px, 7vw, 110px)
    100px;
}


.hero-copy h1 {
  margin:
    18px
    0
    28px;

  font-size:
    clamp(
      64px,
      10vw,
      125px
    );

  line-height: 0.88;

  letter-spacing: -0.075em;
}

.hero-intro {
  max-width: 580px;

  margin: 0;

  color: #434846;

  font-size:
    clamp(
      20px,
      2.4vw,
      27px
    );
}

.hero-links {
  display: flex;
  gap: 22px;

  margin-top: 35px;
}

.hero-links a {
  color: var(--dark-blue);

  font-size: 14px;
}


/* hero glasses */

.hero-product {
  position: relative;

  min-height: 570px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-left:
    1px solid var(--line);
}

.glasses-display {
  position: relative;

  width:
    min(
      630px,
      90%
    );

  height: 230px;
}

.frame-front {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 510px;
  height: 180px;

  transform:
    translate(-50%, -50%);
}

.lens {
  position: absolute;

  top: 0;

  width: 215px;
  height: 170px;

  border:
    11px solid #242927;

  border-radius:
    46% 46% 43% 43%;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.48),
      rgba(166,202,211,0.22)
    );

  box-shadow:
    inset 0 0 18px
    rgba(255,255,255,0.4);
}

.lens-left {
  left: 0;
}

.lens-right {
  right: 0;
}

.bridge {
  position: absolute;

  left: 50%;
  top: 63px;

  width: 88px;
  height: 28px;

  transform:
    translateX(-50%);

  border-top:
    10px solid #242927;

  border-radius: 50%;
}

.temple {
  position: absolute;

  top: 48%;

  width: 180px;
  height: 11px;

  background: #242927;
}

.temple-left {
  left: -16px;

  transform:
    rotate(7deg);
}

.temple-right {
  right: -16px;

  transform:
    rotate(-7deg);
}

.measurement {
  position: absolute;

  color: #747c78;

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;
}

.measurement-a {
  left: 17%;
  top: 29%;
}

.measurement-b {
  left: 48%;
  top: 34%;
}

.measurement-c {
  right: 10%;
  bottom: 31%;
}

.hero-product-meta {
  position: absolute;

  left: 8%;
  right: 8%;
  bottom: 20px;

  display: flex;
  justify-content: space-between;

  padding-top: 13px;

  border-top:
    1px solid var(--line);

  color: var(--muted);

  font-size: 11px;
}


/* philosophy */

.principles {
  min-height: 55vh;

  display: grid;
  grid-template-columns:
    1.2fr
    0.8fr;

  gap: 60px;

  align-items: center;

  padding:
    100px
    clamp(24px, 7vw, 110px);

  background: #181b1a;
  color: #eef0ed;
}

.principles p {
  margin: 0;

  font-size:
    clamp(
      31px,
      5vw,
      61px
    );

  line-height: 1.05;
  letter-spacing: -0.045em;
}

.principles p:last-child {
  color: #8fa29d;

  font-size:
    clamp(
      22px,
      3vw,
      39px
    );
}


/* frames */

.frames-section {
  padding:
    120px
    clamp(24px, 7vw, 110px);
}

.section-heading {
  max-width: 850px;

  margin-bottom: 80px;
}

.section-heading > span {
  color: var(--blue);

  font-size: 11px;
  font-weight: bold;
}

.section-heading h2,
.lens-heading h2,
.fit-intro h2,
.bench-heading h2 {
  margin:
    15px
    0
    25px;

  font-size:
    clamp(
      48px,
      8vw,
      97px
    );

  line-height: 0.92;
  letter-spacing: -0.06em;
}

.section-heading p,
.lens-heading > p:last-child,
.fit-intro > p:last-child {
  max-width: 650px;

  color: var(--muted);

  font-size: 20px;
}


.frame-selector {
  display: grid;

  grid-template-columns:
    1fr
    220px;

  grid-template-rows:
    auto
    auto;

  gap:
    0
    30px;

  border-top:
    1px solid var(--ink);
}


.frame-stage {
  position: relative;

  min-height: 450px;

  grid-column: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    #f8f9f6;
}


.product-glasses {
  position: relative;

  width: 500px;
  height: 185px;
}

.product-lens {
  position: absolute;

  top: 0;

  width: 208px;
  height: 164px;

  border:
    9px solid #242927;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.7),
      rgba(173,206,215,0.22)
    );

  transition:
    border-radius 400ms ease,
    transform 400ms ease;
}

.product-left {
  left: 0;
}

.product-right {
  right: 0;
}

.product-bridge {
  position: absolute;

  left: 50%;
  top: 63px;

  width: 90px;

  transform:
    translateX(-50%);

  border-top:
    9px solid #242927;
}


.shape-round .product-lens {
  border-radius: 48%;
}

.shape-square .product-lens {
  border-radius: 12px;
}

.shape-panto .product-lens {
  border-radius:
    48% 48% 41% 41%;
}

.shape-navigator .product-lens {
  border-radius:
    18px 18px 46% 46%;
}

.shape-soft .product-lens {
  border-radius: 28px;
}


.product-measurements {
  position: absolute;

  left: 20px;
  bottom: 20px;

  color: var(--muted);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
}


.frame-list {
  grid-column: 1;

  display: grid;
  grid-template-columns:
    repeat(5, 1fr);

  border-top:
    1px solid var(--line);
}

.frame-option {
  appearance: none;

  min-height: 100px;

  display: flex;
  flex-direction: column;

  padding: 14px;

  border: 0;
  border-right:
    1px solid var(--line);

  background: transparent;
  color: var(--ink);

  text-align: left;

  cursor: pointer;
}

.frame-option span {
  color: var(--blue);

  font-size: 10px;
}

.frame-option strong {
  margin:
    auto
    0
    4px;

  font-size: 13px;
}

.frame-option small {
  color: var(--muted);
}

.frame-option.active {
  background: #e6e9e5;
}


.frame-spec {
  grid-column: 2;
  grid-row: 1 / 3;

  padding:
    25px
    0;

  border-left:
    1px solid var(--line);
}

.frame-spec > span {
  display: block;

  padding-left: 25px;

  font-size: 38px;
  font-weight: bold;
  letter-spacing: -0.05em;
}

.frame-spec dl {
  margin-top: 40px;
}

.frame-spec dl div {
  padding:
    14px
    0
    14px
    25px;

  border-top:
    1px solid var(--line);
}

.frame-spec dt {
  color: var(--muted);

  font-size: 10px;
}

.frame-spec dd {
  margin:
    4px
    0
    0;

  font-size: 13px;
}


/* materials */

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

.material {
  min-height: 390px;

  padding: 35px;

  display: flex;
  flex-direction: column;

  border-right:
    1px solid rgba(255,255,255,0.15);
}

.material span {
  font-size: 11px;
}

.material h3 {
  margin:
    auto
    0
    18px;

  font-size:
    clamp(
      40px,
      5vw,
      67px
    );

  line-height: 0.95;
  letter-spacing: -0.05em;
}

.material p {
  max-width: 360px;

  margin:
    0
    0
    12px;
}

.material-acetate {
  background: #5b3527;
  color: #f2e5dc;
}

.material-titanium {
  background: #a9afad;
  color: #1b1e1d;
}

.material-steel {
  background: #263236;
  color: #e6eeee;
}


/* lenses */

.lens-lab {
  padding:
    120px
    clamp(24px, 7vw, 110px);

  background: #e7eceb;
}

.lens-heading {
  max-width: 850px;

  margin-bottom: 70px;
}


.lens-demo {
  display: grid;

  grid-template-columns:
    180px
    minmax(0, 1fr)
    260px;

  min-height: 520px;

  border:
    1px solid #aeb8b5;
}

.lens-controls {
  display: flex;
  flex-direction: column;

  border-right:
    1px solid #aeb8b5;
}

.lens-control {
  appearance: none;

  flex: 1;

  border: 0;
  border-bottom:
    1px solid #aeb8b5;

  background: transparent;
  color: #626d69;

  cursor: pointer;
}

.lens-control.active {
  background: #24393d;
  color: #fff;
}


.optical-window {
  position: relative;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: white;
}

.test-chart {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: #151515;

  line-height: 1.7;
}

.test-chart strong {
  font-size: 100px;
}

.test-chart span:nth-child(2) {
  font-size: 48px;
}

.test-chart span:nth-child(3) {
  font-size: 28px;
}

.test-chart span:nth-child(4) {
  font-size: 19px;
}

.test-chart span:nth-child(5) {
  font-size: 13px;
}


.demo-lens {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 340px;
  height: 420px;

  transform:
    translate(-50%, -50%);

  border:
    1px solid rgba(101,132,139,0.35);

  border-radius: 47%;

  box-shadow:
    inset 0 0 25px
    rgba(255,255,255,0.6);

  transition:
    background 400ms ease;
}

.lens-clear {
  background:
    rgba(187,217,223,0.08);
}

.lens-anti {
  background:
    linear-gradient(
      135deg,
      rgba(121,189,198,0.18),
      rgba(153,114,211,0.12),
      rgba(255,255,255,0.05)
    );
}

.lens-sun {
  background:
    rgba(70, 75, 69, 0.58);
}

.lens-photo {
  background:
    linear-gradient(
      135deg,
      rgba(70,75,69,0.55),
      rgba(140,150,145,0.27)
    );
}


.lens-description {
  padding: 28px;

  border-left:
    1px solid #aeb8b5;
}

.lens-description span {
  font-size: 30px;
  font-weight: bold;
}

.lens-description p {
  margin-top: 30px;

  color: #53605c;
}


.lens-spec-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 35px;

  border-top:
    1px solid #aeb8b5;
}

.lens-spec-grid article {
  min-height: 185px;

  padding:
    20px
    18px;

  border-right:
    1px solid #aeb8b5;
}

.lens-spec-grid article > span {
  display: block;

  margin-bottom: 35px;

  color: var(--blue);

  font-size: 24px;
}

.lens-spec-grid strong {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;
}

.lens-spec-grid p {
  margin: 0;

  color: #64716d;

  font-size: 14px;
}


/* fit */

.fit-section {
  padding:
    120px
    clamp(24px, 7vw, 110px);
}

.fit-intro {
  max-width: 850px;
}


.fit-diagram {
  position: relative;

  min-height: 500px;

  margin:
    80px
    0;

  overflow: hidden;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.face-line {
  position: absolute;

  left: 50%;
  top: 8%;

  width: 270px;
  height: 430px;

  transform:
    translateX(-50%);

  border:
    1px solid #858d89;

  border-radius:
    45% 45% 50% 50%;
}


.fit-frame {
  position: absolute;

  left: 50%;
  top: 42%;

  width: 500px;
  height: 150px;

  transform:
    translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;
}

.fit-lens {
  width: 190px;
  height: 130px;

  border:
    5px solid #212523;

  border-radius: 36%;
}

.fit-bridge {
  width: 65px;

  border-top:
    5px solid #212523;
}


.dimension {
  position: absolute;

  color: var(--blue);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
}

.dimension-pd {
  left: 50%;
  top: 26%;
}

.dimension-vertex {
  right: 22%;
  top: 43%;
}

.dimension-angle {
  left: 24%;
  bottom: 26%;
}


.fit-data {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  border-top:
    1px solid var(--ink);
}

.fit-data article {
  padding:
    20px;

  border-right:
    1px solid var(--line);
}

.fit-data article > span {
  color: var(--blue);

  font-size: 12px;
}

.fit-data h3 {
  margin:
    25px
    0
    10px;

  font-size: 19px;
}

.fit-data p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}


/* bench */

.bench {
  padding:
    120px
    clamp(24px, 7vw, 110px);

  background: #282723;
  color: #eeeae2;
}

.bench-heading {
  max-width: 800px;
}


.bench-table {
  min-height: 430px;

  display: grid;
  grid-template-columns:
    1.2fr
    0.8fr;

  margin-top: 60px;

  border-top:
    14px solid #6b4b31;

  background:
    #43301f;
}

.bench-photo {
  min-height: 430px;

  overflow: hidden;
}

.bench-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  filter:
    saturate(0.82)
    contrast(1.06);
}

.tool-row {
  display: none;
}


.tool-row {
  position: relative;

  min-height: 360px;
}


.tool {
  position: absolute;
}

.screwdriver {
  left: 18%;
  top: 25%;

  width: 280px;
  height: 30px;

  transform:
    rotate(-18deg);

  background:
    linear-gradient(
      90deg,
      #282825 0 73%,
      #9f3326 73%
    );

  border-radius: 20px;
}

.pliers {
  left: 38%;
  top: 55%;

  width: 260px;
  height: 25px;

  transform:
    rotate(23deg);

  background: #a9aaa5;
}

.lens-cloth {
  left: 8%;
  bottom: 8%;

  width: 160px;
  height: 130px;

  transform:
    rotate(8deg);

  background: #54727a;
}


.loose-screws {
  position: absolute;

  right: 12%;
  top: 20%;
}

.loose-screws i {
  display: inline-block;

  width: 12px;
  height: 4px;

  margin: 9px;

  background: #b8bbb4;
}

.service-list {
  display: flex;
  flex-direction: column;

  border-left:
    1px solid rgba(255,255,255,0.18);
}

.service-list div {
  flex: 1;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  align-items: center;

  padding: 20px;

  border-bottom:
    1px solid rgba(255,255,255,0.18);
}

.service-list strong {
  font-size: 16px;
}

.service-list span {
  color: #aca99f;

  font-size: 12px;
}


/* rx */

.prescription {
  display: grid;
  grid-template-columns:
    0.85fr
    1.15fr;

  min-height: 680px;
}


.rx {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(
      30px,
      7vw,
      90px
    );

  background: #eef3f2;
}

.rx > span {
  margin-bottom: 60px;

  color: var(--blue);

  font-size: 70px;
  font-weight: bold;
}

.rx-row {
  display: grid;
  grid-template-columns:
    50px
    repeat(4, 1fr);

  padding:
    10px
    0;

  border-bottom:
    1px solid #bac4c1;

  font-size: 12px;
}

.rx-row.values {
  color: #808a86;
}


.prescription-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(
      40px,
      8vw,
      120px
    );

  background: #162a2e;
  color: white;
}

.prescription-copy h2 {
  margin:
    15px
    0
    25px;

  font-size:
    clamp(
      50px,
      7vw,
      90px
    );

  line-height: 0.91;
  letter-spacing: -0.06em;
}

.prescription-copy > p:last-of-type {
  max-width: 600px;

  color: #b9c7c8;

  font-size: 18px;
}

.prescription-copy button {
  appearance: none;

  width: fit-content;

  margin-top: 25px;

  border: 0;
  border-bottom:
    1px solid #d1dddd;

  padding:
    4px
    0;

  background: transparent;
  color: white;

  cursor: pointer;
}


/* final */

.final-section {
  min-height: 55vh;

  display: grid;
  grid-template-columns:
    1fr
    1fr;

  align-items: end;

  gap: 60px;

  padding:
    100px
    clamp(24px, 7vw, 110px)
    max(60px, env(safe-area-inset-bottom));

  background: #f7f7f3;
}


.final-mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.final-mark strong {
  font-size:
    clamp(
      65px,
      11vw,
      145px
    );

  letter-spacing: -0.08em;
}

.final-mark span {
  font-size: 12px;
  letter-spacing: 0.13em;
}


.final-copy {
  max-width: 510px;

  justify-self: end;
}

.final-copy p {
  margin:
    0
    0
    30px;

  font-size:
    clamp(
      22px,
      3vw,
      33px
    );
}

.final-copy button {
  appearance: none;

  border: 1px solid var(--ink);

  padding:
    10px
    14px;

  background: transparent;

  cursor: pointer;
}


/* mobile */

@media (max-width: 820px) {

  body {
    font-size: 17px;
  }

  .site-header {
    grid-template-columns:
      1fr
      auto;

    padding-left: 16px;
    padding-right: 16px;
  }

  nav {
    display: none;
  }

  .header-contact {
    font-size: 10px;
  }


  .hero {
    grid-template-columns: 1fr;

    padding:
      60px
      20px
      80px;
  }

  .hero-product {
    min-height: 380px;

    border-left: 0;
    border-top:
      1px solid var(--line);
  }

  .glasses-display {
    transform:
      scale(0.65);
  }


  .principles {
    grid-template-columns: 1fr;

    padding:
      80px
      20px;
  }


  .frames-section,
  .lens-lab,
  .fit-section,
  .bench {
    padding-left: 20px;
    padding-right: 20px;
  }


  .frame-selector {
    grid-template-columns: 1fr;
  }

  .frame-stage {
    min-height: 330px;
  }

  .product-glasses {
    transform:
      scale(0.62);
  }

  .frame-list {
    grid-template-columns:
      1fr
      1fr;
  }

  .frame-spec {
    grid-column: 1;
    grid-row: auto;

    border-left: 0;
    border-top:
      1px solid var(--line);
  }


  .materials {
    grid-template-columns: 1fr;
  }


  .lens-demo {
    grid-template-columns: 1fr;
  }

  .lens-controls {
    flex-direction: row;

    border-right: 0;
    border-bottom:
      1px solid #aeb8b5;
  }

  .lens-control {
    min-height: 65px;

    border-right:
      1px solid #aeb8b5;
  }

  .optical-window {
    min-height: 420px;
  }

  .demo-lens {
    width: 260px;
    height: 330px;
  }

  .lens-description {
    border-left: 0;
    border-top:
      1px solid #aeb8b5;
  }

  .lens-spec-grid {
    grid-template-columns:
      1fr
      1fr;
  }


  .fit-data {
    grid-template-columns:
      1fr
      1fr;
  }

  .fit-diagram {
    min-height: 380px;
  }

  .fit-frame {
    transform:
      translate(-50%, -50%)
      scale(0.64);
  }


  .bench-table {
    grid-template-columns: 1fr;
  }

  .service-list {
    border-left: 0;
    border-top:
      1px solid rgba(255,255,255,0.18);
  }


  .prescription {
    grid-template-columns: 1fr;
  }


  .final-section {
    grid-template-columns: 1fr;

    padding:
      80px
      20px
      max(
        50px,
        env(safe-area-inset-bottom)
      );

  }

  .final-copy {
    justify-self: start;
  }

    .wear-section {
    grid-template-columns: 1fr;
  }

  .wear-image {
    min-height: 65dvh;
  }

  .wear-copy {
    min-height: 340px;
  }

  .bench-table {
    grid-template-columns: 1fr;
  }

  .bench-photo {
    min-height: 55dvh;
  }

}

.hero-photo {
  position: absolute;
  inset: 45px 6% 65px;

  overflow: hidden;

  background: #d8dcda;
}

.hero-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.glasses-display {
  z-index: 2;
}

.wear-section {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;

  min-height: 680px;

  background: #d9ddda;
}

.wear-image {
  min-height: 680px;

  overflow: hidden;
}

.wear-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.wear-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding:
    45px
    clamp(28px, 5vw, 70px);
}

.wear-copy span {
  color: var(--blue);

  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.09em;
}

.wear-copy p {
  margin: 0;

  font-size:
    clamp(
      30px,
      4.5vw,
      58px
    );

  line-height: 1.05;
  letter-spacing: -0.045em;
}

.material {
  position: relative;

  overflow: hidden;
}

.material-photo {
  height: 220px;

  margin:
    -35px
    -35px
    35px;

  overflow: hidden;
}

.material-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.lens-editorial {
  position: relative;

  height:
    clamp(
      420px,
      62vw,
      760px
    );

  margin-bottom: 55px;

  overflow: hidden;

  background: #bac8c8;
}

.lens-editorial img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.lens-editorial p {
  position: absolute;

  left:
    clamp(
      24px,
      5vw,
      65px
    );

  bottom:
    clamp(
      25px,
      5vw,
      60px
    );

  max-width: 500px;

  margin: 0;

  color: white;

  font-size:
    clamp(
      34px,
      6vw,
      72px
    );

  line-height: 0.95;
  letter-spacing: -0.055em;

  text-shadow:
    0 2px 18px
    rgba(0,0,0,0.35);
}