/* Charlotte Kezirian. A founder's index: one flared serif in berry for everything she
   says, one small grotesque for the facts, on a blush ground. Built on the structure of
   an editorial personal portfolio: a name on its side, a quiet top line, giant pale
   letters behind the person. */
@import url("fonts.css");

:root {
  --blush: #f6ecef;        /* the ground, from her own pink */
  --petal: #f4b8d0;        /* her original accent, used only as a fill */
  --berry: #9b1b4d;        /* everything she says, in the serif */
  --berry-deep: #7c1239;
  --ink: #2a1a21;          /* the facts */
  --muted: #69505c;        /* 6.5:1 on blush */
  --line: #dcc3cc;
  --pale: #ffffff;         /* the giant letters: barely there, on purpose */
  --focus: var(--berry);
  --selection: var(--berry);
  --selection-ink: #fff;

  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-say: "Marcellus", "Optima", "Candara", Georgia, serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.3vw, 2.5rem);
  --step-3:  clamp(2rem, 1.4rem + 2.6vw, 3.9rem);
  --step-4:  clamp(2.2rem, 0.9rem + 5.4vw, 5.6rem);

  --gutter: clamp(18px, 3.4vw, 48px);
  --rail: 0px;
  --measure: 46ch;
  --bar-height: 60px;

  --reveal: 700ms;
  --arrive: 1000ms;
  --stagger: 70ms;
  --rise: 18px;
  --ease-out: cubic-bezier(.22, .68, .18, 1);
}
@media (min-width: 56em) { :root { --rail: 92px; --bar-height: 72px; } }

html { background: var(--blush); scrollbar-color: var(--berry) var(--blush); }

body {
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  caret-color: var(--berry);
}
@media (min-width: 56em) {
  body { background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-position: var(--rail) 0; background-repeat: no-repeat; }
}
a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .25em; }
a:hover { text-decoration-color: currentColor; }

.say {
  font-family: var(--font-say);
  font-weight: 400;
  color: var(--berry);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.4;
}

/* --------------------------------------------------------------- the bar -- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: var(--bar-height);
  padding: env(safe-area-inset-top) var(--gutter) 0 calc(var(--rail) + var(--gutter));
  background: var(--blush);
  font-size: var(--step--1);
  transition: box-shadow 300ms var(--ease-out);
}
html[data-scrolled] .bar { box-shadow: 0 1px 0 var(--line); }
.bar a, .menu-button { display: inline-flex; align-items: center; min-height: 44px; }
.bar .name {
  margin-inline-end: auto;
  text-decoration: none;
  font-family: var(--font-say);
  font-size: 1.05rem;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.where { color: var(--muted); }
.where-city { color: var(--ink); font-weight: 600; }
.enquire { display: none; color: var(--muted); }
.enquire a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); }
.menu-button { padding: 0 14px; border: 1px solid var(--berry); border-radius: 999px; background: none; color: var(--berry); font-weight: 600; }
.menu ul { display: flex; gap: 22px; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 600; }

@media (max-width: 55.99em) {
  .where { display: none; }
  .menu:popover-open {
    inset: var(--bar-height) 0 auto;
    margin: 0;
    width: 100%;
    padding: 12px var(--gutter) 28px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--blush);
    color: var(--ink);
  }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { font-family: var(--font-say); font-weight: 400; color: var(--berry); text-transform: uppercase; font-size: var(--step-2); min-height: 52px; }
}

@media (min-width: 56em) {
  .bar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  /* the name lies along a rail on the left, like a spine */
  .bar .name {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 26px;
    background: var(--blush);
    font-size: 1.55rem;
    letter-spacing: .06em;
    z-index: 11;
  }
  .bar .name span { writing-mode: vertical-rl; rotate: 180deg; }
  .menu-button { display: none !important; }
  .where { grid-column: 1 / span 3; }
  .menu { grid-column: 4 / span 5; }
  .enquire { display: block; grid-column: 9 / -1; justify-self: end; white-space: nowrap; }
  .where { white-space: nowrap; }
  .enquire-label { margin-inline-end: 8px; }
}

/* -------------------------------------------------------------- the page -- */
main, .foot { padding-left: var(--rail); }
main > section { padding: clamp(64px, 10vw, 150px) var(--gutter); }
main p { max-width: var(--measure); }

.text-link { color: var(--berry); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: var(--berry); }

.button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--berry);
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.button-quiet { background: transparent; color: var(--berry); }
.button-quiet:hover { background: var(--petal); border-color: var(--berry); }

/* the first screen: what she does, set large; the two ways to ask at the foot */
.first {
  min-height: calc(100svh - var(--bar-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(28px, 5vw, 64px) !important;
  padding-bottom: clamp(32px, 4vw, 56px) !important;
}
@media (max-width: 55.99em) { .first { min-height: 0; gap: 40px; padding-bottom: 64px !important; } }
.first h1 { font-size: clamp(2.1rem, 0.8rem + 4.6vw, 5.2rem); max-width: none; }
.first-foot { display: grid; gap: 24px; align-items: end; }
.first-line { font-size: var(--step-1); line-height: 1.4; color: var(--ink); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; max-width: none !important; }
@media (min-width: 56em) {
  .first h1 .ln { display: block; }
  .first h1 .ln:nth-child(2) { padding-left: 1.2em; }
  .first h1 .ln:nth-child(3) { padding-left: 2.4em; }
  .first-foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 28px; }
  .first-line { grid-column: 1 / span 6; }
  .actions { grid-column: 8 / -1; justify-content: flex-end; }
}

/* video: a pale 12 that fills its half, the offer in the other */
.video { display: grid; gap: 8px; align-items: center; border-top: 1px solid var(--line); overflow: clip; }
.giant {
  font-family: var(--font-text);
  font-weight: 500;
  color: var(--pale);
  line-height: .8;
  letter-spacing: -.04em;
  user-select: none;
}
.video .giant { font-size: clamp(11rem, 44vw, 40rem); max-width: none; margin-left: -.04em; }
.video-words { display: grid; gap: 18px; }
.video-words h2 { font-size: var(--step-3); }
.video-words p:not(.label) { font-size: var(--step-1); line-height: 1.45; }
@media (min-width: 56em) {
  .video { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .video .giant { grid-column: 1 / span 7; }
  .video-words { grid-column: 8 / -1; }
}


/* SEO and AEO: the mirror of the video section, words left, the pale letters right */
.seo { display: grid; gap: 8px; align-items: center; border-top: 1px solid var(--line); overflow: clip; }
.seo-words { display: grid; gap: 18px; }
.seo-words h2 { font-size: var(--step-3); }
.seo-words p:not(.label) { font-size: var(--step-1); line-height: 1.45; }
.giant-pair { display: grid; font-size: clamp(6rem, 30vw, 22rem); line-height: .82; max-width: none; }
.giant-pair span + span { padding-left: .35em; }
@media (max-width: 55.99em) { .giant-pair { order: -1; } }
@media (min-width: 56em) {
  .seo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .seo-words { grid-column: 1 / span 5; }
  .giant-pair { grid-column: 7 / -1; justify-self: end; font-size: min(19vw, 20rem); }
}

/* websites: a spec sheet on the left, the work on the right, its name set over the edge */
.sites { border-top: 1px solid var(--line); }
.sites-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vw, 80px); }
.sites-head h2 { font-size: var(--step-3); }
.project { display: grid; gap: 28px; }
.spec { display: grid; gap: 0; margin: 0; }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 56em) { .spec > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; } }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: var(--step--1); padding-top: .2em; }
.spec dd { margin: 0; font-weight: 500; }
.shot { margin: 0; }
.shot a { display: block; border-radius: 6px; overflow: clip; box-shadow: 0 30px 60px -40px rgb(124 18 57 / .45); }
.shot img { width: 100%; }
.shot figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--muted); }
.project-title { font-size: var(--step-3); }
.project-side { display: contents; }
.sites-ask { margin-top: 8px; order: 1; }
@media (min-width: 56em) {
  .project-side { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 3vw, 40px); grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .project-side .spec { align-self: stretch; }
  .sites-ask { margin: 0; order: 0; }
}
@media (min-width: 56em) {
  .sites-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .sites-head .label { grid-column: 1 / -1; }
  .sites-head h2 { grid-column: 1 / span 7; }
  .sites-head p:last-child { grid-column: 9 / -1; justify-self: end; text-align: right; color: var(--muted); }
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .shot { grid-column: 4 / -1; grid-row: 1; }
  .project-title {
    grid-column: 5 / -1; grid-row: 2;
    justify-self: end; text-align: right;
    margin-top: calc(var(--step-4) * -1.25);
    padding: 18px 0 0 28px;
    background: var(--blush);
    border-top-left-radius: 6px;
    position: relative;
    font-size: var(--step-4);
  }
}

/* about: the things she loves as a list, then Boston, her, NYC */
.about { display: grid; gap: 28px; border-top: 1px solid var(--line); overflow: clip; }
.likes { font-size: var(--step-2); line-height: 1.18; display: grid; gap: .85em; }
@media (min-width: 56em) { .likes { gap: .6em; } }
.route { display: contents; }
.about .giant { font-size: clamp(4.5rem, 22vw, 13rem); white-space: nowrap; line-height: 1; }
@media (min-width: 56em) { .about .giant { font-size: min(9.5vw, 12rem); } }
.portrait { margin: 0; border-radius: 50%; overflow: clip; aspect-ratio: 1; width: min(62vw, 300px); background: #2a1d17; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.cols { display: grid; gap: 28px; }
.col { display: grid; gap: 10px; align-content: start; }
.col .lead { font-weight: 600; }
.offer-list { display: grid; gap: 6px; }
.offer-list a { color: var(--berry); font-weight: 600; text-decoration: none; }

@media (max-width: 55.99em) {
  .about { grid-template-columns: 1fr; }
  .likes, .cols { grid-column: 1 / -1; }
  .giant-from { grid-row: 2; justify-self: start; }
  .portrait { grid-row: 3; justify-self: center; width: 56vw; }
  .giant-to { grid-row: 4; justify-self: end; }
  .likes { grid-row: 1; margin-bottom: 32px; }
  .cols { grid-row: 5; margin-top: 24px; }
}
@media (min-width: 56em) {
  .about {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 0;
  }
  .likes { grid-column: 1 / -1; grid-row: 1; font-size: clamp(1.5rem, 0.9rem + 1.1vw, 2.1rem); margin-bottom: clamp(56px, 7vw, 112px); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0; }
  .likes li { padding: .55em 0; border-top: 1px solid var(--line); }
  .likes li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .giant-from { grid-column: 1 / span 5; grid-row: 2; align-self: center; margin-left: -.05em; }
  .portrait { grid-column: 6 / span 3; grid-row: 2; align-self: center; justify-self: center; width: 100%; max-width: 300px; }
  .giant-to { grid-column: 9 / -1; grid-row: 2; align-self: center; justify-self: end; margin-right: -.04em; }
  .cols { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(24px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
  .cols p { font-size: .98rem; }
}

/* contact: the closing line is the link */
.contact { border-top: 1px solid var(--line); display: grid; gap: 18px; }
.contact h2 { font-size: var(--step-4); max-width: none; }
.contact-link { text-decoration: none; color: var(--berry); }
.contact-link span { display: inline-block; transition: translate 300ms var(--ease-out); }
.contact-link:hover span, .contact-link:focus-visible span { translate: .12em -.12em; }
.contact-link:hover { color: var(--berry-deep); }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center;
  padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom));
  padding-right: var(--gutter);
  padding-left: calc(var(--rail) + var(--gutter));
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot-small { color: var(--muted); margin-left: auto; }

/* --------------------------------------------------------------- motion -- */
/* Signature: the headline's lines wipe in one after another, once per visit,
   and Boston and NYC drift toward her as the about section scrolls through. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-seen]) .first h1 .ln {
    animation: line-in 1100ms cubic-bezier(.6, 0, .2, 1) backwards;
  }
  html:not([data-seen]) .first h1 .ln:nth-child(2) { animation-delay: 120ms; }
  html:not([data-seen]) .first h1 .ln:nth-child(3) { animation-delay: 240ms; }
  html:not([data-seen]) .first h1 .ln:nth-child(4) { animation-delay: 360ms; }
  @keyframes line-in { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

  @supports (animation-timeline: view()) {
    [data-slide] { animation: slide linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    [data-slide="left"] { --from: -8%; }
    [data-slide="right"] { --from: 8%; }
    @keyframes slide { from { translate: var(--from) 0; } to { translate: 0 0; } }
  }
}

@media print {
  .bar .name { position: static; writing-mode: horizontal-tb; }
  main, .foot { padding-left: 0; }
  .giant { display: none; }
}

@media (min-width: 56em) and (max-width: 74.99em) {
  .where, .enquire-label { display: none; }
  .menu { grid-column: 1 / span 8; }
  .menu ul { gap: 18px; }
}
@media (min-width: 56em) { .menu a { white-space: nowrap; } }
