:root {
  --ground: #F3F0EA;
  --ink: #1F1D1A;
  --muted: #615C55;
  --line: rgba(31, 29, 26, .16);
  --line-strong: rgba(31, 29, 26, .22);
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  /* Sizes that scale with the window */
  --wordmark-size: clamp(34px, 6.4vw, 92px);
  --about-size: clamp(25px, 2.6vw, 32px);
  --arevin-h: clamp(27px, 3.6vw, 33px);
  --fresh-h: clamp(48px, 6.2vw, 57px);
  --heirs-h: clamp(40px, 5.4vw, 50px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 16px; background: var(--ink); color: var(--ground);
  font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Every section shares one measure, so text and hairlines line up on the same margins. */
.wrap { width: 100%; max-width: 1276px; margin-left: auto; margin-right: auto; padding-left: 48px; padding-right: 48px; }

/* Header */
.site-header { padding-top: 24px; display: flex; justify-content: flex-end; }
.primary-nav { display: flex; gap: 40px; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.primary-nav a { padding: 16px 0; text-decoration: none; }
.primary-nav a:last-child { margin-right: -.26em; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Hero: seal, wordmark, descriptor */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px 112px; }
.seal { display: block; width: 148px; height: 148px; color: var(--ink); }
.wordmark {
  margin: 44px 0 0; padding-left: .32em;
  font-family: var(--serif); font-weight: 400; line-height: 1;
  font-size: var(--wordmark-size); letter-spacing: .32em;
}
.eyebrow { margin: 28px 0 0; padding-left: .42em; font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }

/* Primary companies: an even register divided by hairlines */
.register {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.company {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px 56px; text-decoration: none;
}
.company + .company { border-left: 1px solid var(--line); }
a.company:focus-visible { outline-offset: -10px; }
.logo { margin: 0; height: 72px; display: flex; align-items: center; justify-content: center; gap: calc(var(--arevin-h) / 3); }
.logo svg { display: block; flex: none; }
.arevin-mono { width: calc(var(--arevin-h) * 1.2659); height: calc(var(--arevin-h) * 1.1212); color: #15181E; }
.arevin-word { width: calc(var(--arevin-h) * 4.2491); height: var(--arevin-h); color: #15181E; }
.fresh-logo { width: calc(var(--fresh-h) * 2.9778); height: var(--fresh-h); }
.heirs-logo { width: calc(var(--heirs-h) * 4.1633); height: var(--heirs-h); }
.sector { margin-top: 30px; padding-left: .3em; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.place { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.visit, .soon { margin-top: 24px; padding: 0 0 6px .26em; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.visit { border-bottom: 1px solid rgba(31, 29, 26, .35); }
.soon { color: var(--muted); }
.arrow { display: inline-block; width: 8px; height: 8px; margin-left: 4px; }
.place-arrow { display: none; }
a.company:hover .visit, a.company:focus-visible .visit { border-bottom-color: var(--ink); }

/* About uses the register's columns: label in the first, text from the second line. */
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split > .label { grid-column: 1; }
.split > :not(.label) { grid-column: 2 / -1; }
.label { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Other companies: centered under the row, each entry a card like the ones above, a column wide. */
.others { padding-top: 56px; padding-bottom: 88px; text-align: center; }
.others-title { padding-left: .3em; }
.other-list { display: flex; flex-wrap: wrap; justify-content: center; }
.other-list > .company { flex: 0 1 calc(100% / 3); padding: 26px 24px 0; }
.other .logo img { display: block; width: 150px; height: 40px; }

.about .split { align-items: baseline; border-top: 1px solid var(--line); padding: 96px 0 104px; }
.about p { margin: 0; max-width: 760px; font-family: var(--serif); font-size: var(--about-size); line-height: 1.35; }

/* Footer */
.site-footer { margin-top: auto; }
.footer-line {
  border-top: 1px solid var(--line); padding: 32px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.footer-line > span:last-child { margin-right: -.22em; }

/* Tablets: a little less padding so the logos keep their size */
@media (min-width: 761px) and (max-width: 1023px) {
  .company { padding-left: 16px; padding-right: 16px; }
}

/* Phones and narrow windows */
@media (max-width: 760px) {
  :root { --about-size: 22px; --arevin-h: 26px; --fresh-h: 46px; --heirs-h: 42px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .site-header { padding-top: 12px; justify-content: center; }
  .primary-nav { gap: 24px; }
  /* Phones read top-down: ANANIKYAN, then a hairline stem down into its companies. */
  .hero { padding: 44px 16px 0; }
  .seal { width: 120px; height: 120px; }
  .wordmark { margin-top: 32px; letter-spacing: .2em; padding-left: .2em; }
  .eyebrow { margin-top: 20px; font-size: 10px; letter-spacing: .36em; padding-left: .36em; }
  #companies::before { content: ""; display: block; width: 1px; height: 48px; margin: 30px auto 0; background: var(--line-strong); }
  .register { grid-template-columns: minmax(0, 1fr); }
  .company { padding: 30px 8px 28px; }
  .company + .company { border-left: 0; border-top: 1px solid var(--line); }
  .logo { height: 54px; }
  .sector { margin-top: 14px; font-size: 10px; }
  .place { margin-top: 6px; font-size: 20px; }
  .visit { display: none; }
  .place-arrow { display: inline-block; margin-left: 9px; vertical-align: 2px; }
  .place-arrow .arrow { margin-left: 0; }
  .soon { margin-top: 10px; font-size: 10px; }
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .split > .label, .split > :not(.label) { grid-column: 1; }
  .others { padding-top: 40px; padding-bottom: 56px; }
  .other-list > .company { flex-basis: 100%; padding: 18px 8px 0; }
  .other .logo img { width: 128px; height: 34px; }
  .about .split { padding: 48px 0 56px; row-gap: 18px; }
  .footer-line { flex-direction: column; padding: 26px 0 34px; }
}

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

/* Opener (assets/opener.js): the starting state, only while index.html has set html.opening. */
html.opening .seal circle, html.opening .seal path, html.opening .wordmark, html.opening .eyebrow,
html.opening .site-header, html.opening #companies, html.opening .others { opacity: 0; }
