/* Atropos: showcase for the first watch
   Palette is taken from the renders: true black backdrop, studio gray from the side-profile renders,
   gold from the bezel. Type: Cormorant Garamond (display, wordmark) and Jost (text). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --studio: #e6e6e6;
  --ivory: #ece9e2;
  --ink: #151515;
  --steel: #9a9893;
  --graphite: #55544f;
  --gold: #d4a94f;
  --bronze: #7a5a1c;
  --rule-dark: #262624;
  --rule-light: #c6c5c1;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --gutter: 24px;
  --measure: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

p,
dd,
figcaption {
  text-wrap: pretty;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--black);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 26px 18px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  text-decoration: none;
  color: var(--ivory);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--steel);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

/* Hero plate --------------------------------------------------------------
   Phone and short screens: title, picture, then the callouts as a list.
   Wider screens: one composed plate, with the callouts drawn onto the render. */

.hero {
  padding: 8px var(--gutter) 56px;
}

.plate {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.plate__title {
  order: 1;
  padding-block: 32px 8px;
}

.plate__title h1 {
  font-size: clamp(76px, 23vw, 120px);
  line-height: 0.88;
  letter-spacing: -0.012em;
  font-weight: 500;
}

.plate__collection {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--steel);
}

.plate__lede {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.5;
  max-width: 34ch;
}

.plate__media {
  order: 2;
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
}

.plate__media picture {
  display: block;
}

.plate__image {
  width: 100%;
  max-height: 88svh;
  object-fit: contain;
}

.plate__leaders {
  display: none;
}

.plate__callouts {
  order: 3;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.callout {
  border-top: 1px solid var(--gold);
  padding-top: 10px;
}

.callout__name {
  display: block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.callout__text {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--steel);
  text-wrap: balance;
}

.plate__caption {
  order: 4;
  margin-top: 28px;
  font-size: 13px;
  color: var(--steel);
}

@media (min-width: 760px) and (min-height: 560px) {
  :root {
    /* the hero plate keeps the render's 1019 x 708 proportions and fits the first screen */
    --plate-w: min(1240px, 100vw - 2 * var(--gutter), (100svh - 112px) * 1.4393);
  }

  .site-header {
    width: var(--plate-w);
    max-width: calc(100% - 2 * var(--gutter));
    padding-inline: calc(var(--plate-w) * 0.039);
  }

  .hero {
    padding: 0 var(--gutter) 40px;
  }

  .plate {
    position: relative;
    display: block;
    width: var(--plate-w);
    max-width: 100%;
    aspect-ratio: 1019 / 708;
    container-type: inline-size;
  }

  .plate__media {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .plate__image {
    max-height: none;
  }

  .plate__leaders {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .plate__title,
  .plate__callouts,
  .plate__caption {
    z-index: 1;
  }

  .plate__title {
    position: absolute;
    left: 3.9%;
    top: 7%;
    width: 31%;
    padding: 0;
  }

  .plate__title h1 {
    font-size: 9.6cqw;
  }

  .plate__collection {
    margin-top: 1.9cqw;
    font-size: max(14px, 1.4cqw);
  }

  .plate__lede {
    margin-top: 0.9cqw;
    font-size: max(15px, 1.62cqw);
    max-width: none;
  }

  .plate__callouts {
    position: absolute;
    inset: 0;
    margin: 0;
    display: block;
  }

  .callout {
    position: absolute;
    width: 23%;
    border-top: 0;
    padding-top: 0;
    transform: translateY(-50%);
  }

  .callout__name {
    font-size: max(13px, 1.38cqw);
  }

  .callout__text {
    font-size: max(13px, 1.3cqw);
  }

  /* label edges sit at x = 280 (left) and x = 712 (right) on the 1019 x 708 render */
  .callout--left {
    right: 72.52%;
    text-align: right;
  }

  .callout--right {
    left: 69.87%;
  }

  .callout--bracelet { top: 37.01%; }
  .callout--crown    { top: 61.72%; }
  .callout--bezel    { top: 59.32%; }
  .callout--dial     { top: 74.15%; }

  .plate__caption {
    position: absolute;
    right: 3.9%;
    bottom: 4.2%;
    margin: 0;
    font-size: max(12px, 1.12cqw);
  }
}

.leader {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.leader-dot {
  fill: var(--ivory);
  stroke: var(--black);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* The one moment of motion: the render settles in, then the leader lines draw out to the parts. */
@media (prefers-reduced-motion: no-preference) {
  .plate__image {
    animation: settle 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .leader {
    transform-box: fill-box;
    animation: draw 520ms cubic-bezier(0.5, 0, 0.2, 1) both;
    animation-delay: calc(800ms + var(--i) * 160ms);
  }

  /* each line grows from its label toward the part it names */
  .leader--from-left  { transform-origin: left center; }
  .leader--from-right { transform-origin: right center; }

  .leader-dot,
  .callout {
    animation: appear 420ms ease-out both;
    animation-delay: calc(1180ms + var(--i) * 160ms);
  }

  .callout--bracelet, .leader--bracelet, .leader-dot--bracelet { --i: 0; }
  .callout--bezel,    .leader--bezel,    .leader-dot--bezel    { --i: 1; }
  .callout--crown,    .leader--crown,    .leader-dot--crown    { --i: 2; }
  .callout--dial,     .leader--dial,     .leader-dot--dial     { --i: 3; }
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.025); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: none; }
}

@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding-block: clamp(80px, 11vw, 152px);
}

.section--dark {
  background: var(--black);
  color: var(--ivory);
}

.section--studio {
  background: var(--studio);
  color: var(--ink);
}

.section--studio + .section--studio {
  padding-top: 0;
}

.section--studio :focus-visible {
  outline-color: var(--ink);
}

.section--studio a {
  text-decoration-color: var(--bronze);
}

.section h2 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.008em;
}

.section__intro {
  margin-top: 14px;
  font-size: 19px;
  max-width: 44ch;
  color: var(--steel);
}

.section--studio .section__intro {
  color: var(--graphite);
}

/* Colorways ---------------------------------------------------------------- */

.colorways {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.colorway img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
}

.colorway h3 {
  margin-top: 6px;
  font-size: 38px;
  line-height: 1.1;
}

.colorway p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
  color: var(--steel);
}

@media (min-width: 760px) {
  .colorways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

/* Details ------------------------------------------------------------------ */

.profiles {
  margin: 56px 0 0;
  display: grid;
  gap: 44px;
}

.profile {
  margin: 0;
}

.profile img {
  width: 100%;
}

.profile figcaption {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
  color: var(--graphite);
}

.record {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid;
  gap: 28px;
}

.record h3 {
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.1;
}

.record__intro {
  margin-top: 10px;
  font-size: 17px;
  max-width: 32ch;
  color: var(--graphite);
}

/* label-and-value rows, used by the design record and the specifications */
.rows {
  margin: 0;
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 32px;
  padding-block: 16px;
  border-top: 1px solid var(--rule-light);
}

.rows > div:last-child {
  border-bottom: 1px solid var(--rule-light);
}

.rows dt {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.rows dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 760px) {
  .record {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
  }

  .rows > div {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

/* Specifications ----------------------------------------------------------- */

.spec {
  padding-top: clamp(72px, 9vw, 120px);
  display: grid;
  gap: 40px;
  grid-template-areas:
    "title"
    "figure"
    "list";
}

.spec__title  { grid-area: title; }
.spec__figure { grid-area: figure; }
.spec__list   { grid-area: list; }

.spec__figure {
  margin: 0;
}

.drawing {
  width: 100%;
  max-width: 560px;
  height: auto;
  overflow: visible;
}

.drawing * {
  vector-effect: non-scaling-stroke;
}

.d-part   { fill: var(--studio); stroke: var(--ink); stroke-width: 1.25; }
.d-gold   { fill: #d8c290; stroke: var(--ink); stroke-width: 1.25; }
.d-fine   { fill: none; stroke: var(--ink); stroke-width: 0.6; }
.d-baton  { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.d-pin    { fill: var(--ink); }
.d-center { fill: none; stroke: #8c8b87; stroke-width: 0.75; stroke-dasharray: 14 3 2 3; }
.d-ext    { fill: none; stroke: var(--bronze); stroke-width: 0.6; }
.d-dim    { fill: none; stroke: var(--bronze); stroke-width: 0.9; }
.d-head   { fill: var(--bronze); }
.d-text   { font-family: var(--sans); font-size: 2.5px; fill: var(--ink); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

.spec__figure figcaption {
  margin-top: 16px;
  font-size: 15px;
  color: var(--graphite);
}

.spec__note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--graphite);
}

@media (min-width: 960px) {
  .spec {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "figure title"
      "figure list";
    gap: 32px 64px;
    align-items: start;
  }
}

@media (max-width: 599px) {
  .d-text {
    font-size: 3.1px;
  }
}

/* Closing and footer --------------------------------------------------------- */

.closing h2 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1;
  max-width: 14ch;
}

.closing__text {
  margin-top: 24px;
  font-size: 19px;
  max-width: 46ch;
  color: var(--steel);
}

.closing__contact {
  margin-top: 36px;
  font-size: 19px;
}

.site-footer {
  border-top: 1px solid var(--rule-dark);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  font-size: 14px;
  color: var(--steel);
}

.site-footer .wordmark {
  font-size: 16px;
}

/* 404 ---------------------------------------------------------------------- */

.site-header--plain {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  padding-inline: 0;
}

.missing {
  min-height: 70svh;
  display: grid;
  align-content: center;
  gap: 20px;
}

.missing h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
}

.missing p {
  color: var(--steel);
  font-size: 19px;
}

/* Brand page additions ---------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: rgba(212, 169, 79, 0.14);
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: #e2bc68;
}

@media (min-width: 760px) and (min-height: 560px) {
  .plate__title .actions {
    margin-top: 2.2cqw;
  }
  .plate__title .btn {
    font-size: max(13px, 1.3cqw);
    padding: 1.1cqw 1.9cqw;
  }
  .plate__collection {
    font-family: var(--serif);
    font-size: max(18px, 2.1cqw);
    letter-spacing: 0;
    color: var(--ivory);
  }
}

.story__grid {
  display: grid;
  gap: 32px;
}

.story__text p {
  font-size: 20px;
  line-height: 1.65;
  max-width: 52ch;
  color: #cfccc4;
}

.story__text p + p {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: start;
  }
}

.features {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 36px;
}

.features li {
  border-top: 1px solid var(--rule-light);
  padding-top: 20px;
}

.features h3 {
  font-size: 32px;
  line-height: 1.1;
}

.features p {
  margin-top: 10px;
  font-size: 17px;
  color: var(--graphite);
  max-width: 40ch;
}

@media (min-width: 860px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.design-profiles,
.features + .profiles {
  margin-top: clamp(64px, 8vw, 104px);
}

.glance h2 {
  font-size: clamp(36px, 4vw, 48px);
}

.glance__list {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.glance__list div {
  border-top: 1px solid var(--rule-light);
  padding-top: 12px;
}

.glance__list dt {
  font-size: 14px;
  color: var(--graphite);
}

.glance__list dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
}

@media (min-width: 860px) {
  .glance__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.glance .spec__note {
  margin-top: 24px;
}

.closing .actions {
  margin-top: 32px;
}

.colorway__finish {
  color: var(--ivory);
}

.colorways--eight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 20px;
}

.colorways--eight h3 {
  font-size: 30px;
}

.colorways--eight p {
  font-size: 15px;
}

@media (min-width: 1000px) {
  .colorways--eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 28px;
  }
}

/* Scroll effects (only when assets/site.js runs and motion is allowed) ------ */

.fx .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx .reveal.is-in {
  opacity: 1;
  transform: none;
}

.fx .colorway.reveal {
  transform: translate3d(0, 40px, 0) scale(0.97);
}

.fx .colorway.reveal.is-in {
  transform: none;
}

.fx .profile.reveal {
  transform: none;
}

.fx .plate__media,
.fx .plate__title,
.fx .profile img {
  will-change: transform;
}

.fx .profiles {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  transition: background-color 300ms ease, backdrop-filter 300ms ease;
}

/* the backdrop spans the full window even though the header content sits on the hero's grid */
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.96);
  clip-path: inset(0 -100vmax);
}

/* Footer with link columns ------------------------------------------------- */

.site-footer .footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-block: 64px 40px;
  align-items: start;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--steel);
}

.footer__brand .wordmark {
  font-size: 18px;
}

.footer__col h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.footer__col ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__col a,
.footer__brand a:not(.wordmark) {
  color: var(--steel);
  text-decoration: none;
  font-size: 15px;
}

.footer__col a:hover,
.footer__brand a:not(.wordmark):hover {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.soon {
  font-size: 15px;
  color: #6f6e6a;
}

.soon small {
  font-size: 12px;
  margin-left: 4px;
}

.site-footer .footer__legal {
  display: block;
  border-top: 1px solid var(--rule-dark);
  padding-block: 20px 32px;
  font-size: 13px;
  color: #77756f;
}

@media (min-width: 640px) {
  .site-footer .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .site-footer .footer__grid {
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Info pages ---------------------------------------------------------------- */

.page {
  padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 128px);
}

.page h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
}

.page__intro {
  margin-top: 18px;
  font-size: 20px;
  max-width: 46ch;
  color: var(--steel);
}

.prose {
  margin-top: 48px;
  max-width: 68ch;
}

.prose h2 {
  margin-top: 44px;
  font-size: 30px;
  line-height: 1.15;
}

.prose p,
.prose li {
  font-size: 18px;
  line-height: 1.7;
  color: #d6d3cb;
}

.prose p {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.prose strong {
  color: var(--ivory);
  font-weight: 500;
}

.draft {
  display: inline-block;
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  background: #111110;
  font-size: 15px !important;
  color: var(--steel) !important;
}

/* Creator badge: stays in the bottom-right corner on every page ------------- */

.creator-badge {
  position: fixed;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  bottom: 20px;
  z-index: 20;
  padding: 10px 14px;
  background: rgba(236, 233, 226, 0.96);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 200ms ease;
}

.creator-badge {
  text-decoration: none;
}

.creator-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.creator-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.creator-badge img {
  display: block;
  width: 128px;
  height: auto;
}

/* keep the last lines of the page clear of the badge */
.site-footer .footer__legal {
  padding-bottom: 88px;
}

@media (max-width: 599px) {
  .creator-badge {
    left: 12px;
    bottom: 12px;
    padding: 8px 11px;
  }
  .creator-badge img {
    width: 96px;
  }
}

.creator-badge__by {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
}

@media (max-width: 599px) {
  .creator-badge__by {
    font-size: 15px;
  }
}
