/* ==========================================================
   Jacquejeme — editorial black / white / cherry red
   ========================================================== */

:root {
  --white: #ffffff;
  --paper: #ffffff;
  --black: #0a0a0a;
  --red: #c8102e;        /* cherry red */
  --red-deep: #9e0b23;
  --grey: #6b6b6b;
  --line: 2px solid var(--black);
  --hair: 1px solid var(--black);

  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(12px, 1.6vw, 20px);
  --max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--red); color: var(--white); }

main, .masthead, .footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  border-bottom: 4px solid var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ticker__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 10px 0;
  animation: ticker 32s linear infinite;
}
.ticker .dot { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Masthead ---------- */
.masthead { padding-top: 24px; }
.masthead__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-top: var(--line);
  border-bottom: var(--hair);
  padding: 8px 0;
}
.masthead__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 13.2vw, 210px);
  line-height: .86;
  letter-spacing: -.035em;
  text-align: center;
  margin: .1em 0 .06em;
  text-transform: uppercase;
}
.masthead__title em {
  font-weight: 400;
  color: var(--red);
  text-transform: lowercase;
  letter-spacing: -.02em;
}

/* ---------- Nav ---------- */
.nav {
  border-top: var(--hair);
  border-bottom: var(--line);
  position: relative;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.nav__list li { border-left: var(--hair); }
.nav__list li:last-child { border-right: var(--hair); }
.nav__list a {
  display: block;
  padding: 14px clamp(14px, 2.4vw, 34px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav__list a:hover { background: var(--black); color: var(--white); }
.nav__cta { background: var(--red); color: var(--white); }
.nav__list a.nav__cta:hover { background: var(--black); }
.nav__toggle { display: none; }

/* ---------- Boxes ---------- */
.box { position: relative; padding: clamp(20px, 3vw, 40px); }
.box--black { background: var(--black); color: var(--white); }
.box--red { background: var(--red); color: var(--white); }
.box--outline { background: var(--white); border: var(--line); }

.tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: .95;
  letter-spacing: -.025em;
  margin: .45em 0 .35em;
}
.display em { font-weight: 400; color: var(--red); }

/* ---------- Cover ---------- */
.cover {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}
.cover__lead {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cover__lead .tag { position: absolute; top: clamp(20px, 3vw, 40px); left: clamp(20px, 3vw, 40px); }
.lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: #d8d8d8;
  margin: 0 0 28px;
}
.link-arrow {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.link-arrow span { display: inline-block; transition: transform .2s; color: var(--red); }
.link-arrow:hover span { transform: translateX(6px); }

.cover__side { display: grid; grid-template-rows: auto 1fr; gap: var(--gap); }
.cover__stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.stat__num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(90px, 10vw, 150px);
  line-height: .8;
}
.stat__label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.contents { list-style: none; margin: 0; padding: 0; }
.contents li { border-top: var(--hair); }
.contents li:last-child { border-bottom: var(--hair); }
.contents a {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 22px;
  transition: color .2s, padding .2s;
}
.contents a span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--grey);
  padding-top: 8px;
  min-width: 34px;
}
.contents a:hover { color: var(--red); padding-left: 6px; }

/* ---------- Sections ---------- */
.section { margin-top: clamp(64px, 9vw, 120px); }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--white);
  background: var(--red);
  padding: 4px 8px;
  align-self: center;
}
.section__title {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
  white-space: nowrap;
}
.section__rule { flex: 1; border-top: var(--line); align-self: center; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.work {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform .25s ease;
}
.work--xl { grid-column: span 2; grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work__art { flex: 1; min-height: 240px; }
.work--wide .work__art { min-height: 300px; }
.work__body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding: 18px 22px 22px;
  border-top: var(--line);
}
.box--black .work__body { border-top-color: var(--red); border-top-width: 4px; }
.work__index { grid-row: span 2; font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.work__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  margin: 0;
}
.work--xl .work__title { font-size: clamp(30px, 3.6vw, 52px); }
.work__meta {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}
.box--black .work__meta { color: #a9a9a9; }
.work:hover { transform: translateY(-4px); }
.work:hover .work__title { color: var(--red); }

/* Abstract editorial "art" placeholders — swap for real project imagery */
.art { position: relative; background: var(--white); }
.art--a {
  background:
    radial-gradient(circle at 62% 46%, var(--red) 0 22%, transparent 22.3%),
    linear-gradient(var(--black), var(--black));
}
.art--a::after {
  content: "N";
  position: absolute; left: 6%; bottom: -8%;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(180px, 26vw, 400px); line-height: 1;
  color: var(--white);
}
.art--b {
  background:
    linear-gradient(90deg, transparent 0 48%, var(--red) 48% 52%, transparent 52%),
    var(--black);
}
.art--b::after {
  content: "R";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 180px; color: var(--white);
}
.art--c {
  background:
    repeating-linear-gradient(0deg, var(--white) 0 2px, transparent 2px 22px),
    var(--black);
}
.art--c::after {
  content: "";
  position: absolute; width: 38%; aspect-ratio: 1; right: 12%; top: 18%;
  background: var(--red);
}
.art--d {
  background:
    conic-gradient(from 45deg at 50% 50%, var(--red) 0 25%, var(--white) 25% 50%, var(--red) 50% 75%, var(--white) 75%);
}
.art--d::after {
  content: "";
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: var(--black);
}
.art--e { background: var(--white); border-bottom: 0; }
.art--e::before {
  content: "The Long Margin";
  position: absolute; left: 5%; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.03em;
  color: var(--black); white-space: nowrap;
}
.art--e::after {
  content: "";
  position: absolute; right: 5%; top: 14%; bottom: 14%; width: 8px;
  background: var(--red);
}

/* ---------- Inventory ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.product__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d9d9d9;
}
.product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 922 / 1384;
  transition: transform .6s ease;
}
.product__media:hover img { transform: scale(1.03); }
.product__badge { position: absolute; top: 18px; left: 18px; }
.product__info { display: flex; flex-direction: column; }
.product__index {
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.product__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 18px 0 10px;
}
.product__title em { font-weight: 400; color: var(--red); }
.product__desc { margin: 0 0 30px; max-width: 52ch; color: #d8d8d8; font-size: 17px; }

.product__stock { display: flex; gap: 10px; align-items: baseline; margin: 0 0 26px; font-size: 14px; color: #cfcfcf; }
.pulse {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); transform: translateY(-1px);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.btn {
  display: block;
  text-align: center;
  padding: 20px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: wait; }

.notify label {
  display: block; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.notify__row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 60px;
  padding: 0 18px;
  background: transparent; color: var(--white);
  border: 1px solid var(--white); border-radius: 0;
  font: 400 17px/1 var(--sans);
}
.notify input[type="email"]::placeholder { color: #8a8a8a; }
.notify input[type="email"]:focus-visible { outline: 2px solid #ff4d5e; outline-offset: 3px; }
.notify .btn { flex: 1 1 180px; border: 0; cursor: pointer; font-family: var(--sans); }
.notify__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify__status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: #cfcfcf; }

.product__details {
  margin: auto 0 0; padding-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.product__details div { border-top: 1px solid #444; padding: 12px 10px 0 0; }
.product__details dt { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; }
.product__details dd { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.pullquote { margin: 0; display: flex; flex-direction: column; justify-content: center; min-height: 420px; }
.pullquote__mark {
  font-family: var(--serif);
  font-size: 180px;
  line-height: .6;
  color: var(--red);
  height: 70px;
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 24px;
}
.pullquote p em { color: var(--red); }
.pullquote cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.about__copy {
  border: var(--line);
  padding: clamp(20px, 3vw, 40px);
  font-size: 18px;
}
.about__copy p { margin: 0 0 1.1em; max-width: 60ch; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 5.2em;
  line-height: .78;
  padding: 6px 12px 0 0;
  color: var(--red);
}
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--line); }
.facts div { padding: 14px 12px 0 0; }
.facts div + div { border-left: var(--hair); padding-left: 12px; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.facts .red { color: var(--red); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.service { min-height: 320px; display: flex; flex-direction: column; transition: transform .25s; }
.service:hover { transform: translateY(-4px); }
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--red);
  margin-bottom: auto;
}
.box--red .service__num { color: var(--black); }
.service h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
  margin: 40px 0 10px;
}
.service p { margin: 0; font-size: 15px; }
.box--black.service p { color: #cfcfcf; }

/* ---------- Journal ---------- */
.journal { border-top: var(--line); }
.entry {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: var(--hair);
}
.entry__date { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.entry h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  margin: 0;
}
.entry h3 a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .3s; }
.entry h3 a:hover { background-size: 100% 3px; }
.entry p { margin: 0; color: var(--grey); }

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(32px, 6vw, 88px);
  border-top: 8px solid var(--red);
}
.contact__title { margin-top: .5em; }
.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 52px);
  border-bottom: 3px solid var(--red);
  margin: 8px 0 36px;
  word-break: break-word;
  transition: color .2s;
}
.contact__mail:hover { color: var(--red); }
.contact__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.contact__links a {
  display: block;
  padding: 12px 22px;
  border: 1px solid var(--white);
  margin: 0 -1px -1px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.contact__links a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 32px;
  margin-top: var(--gap);
  border-top: var(--line);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer__mark { font-family: var(--serif); font-weight: 900; font-size: 28px; letter-spacing: 0; }
.footer__top:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work--xl { grid-column: span 2; grid-row: auto; }
  .work--wide { grid-column: auto; }
  .work--xl .work__art { min-height: 380px; }
}

@media (max-width: 820px) {
  .cover, .about, .product { grid-template-columns: 1fr; }
  .cover__lead { min-height: 480px; }
  .cover__side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .entry { grid-template-columns: 1fr; gap: 6px; }

  .nav__toggle {
    display: block;
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: 0;
    padding: 14px;
    font: 700 13px/1 var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav__toggle[aria-expanded="true"] { background: var(--red); }
  .nav__list { display: none; flex-direction: column; }
  .nav__list.is-open { display: flex; }
  .nav__list li { border-left: 0; border-top: var(--hair); }
  .nav__list li:last-child { border-right: 0; }
  .nav__list a { text-align: center; }
}

@media (max-width: 560px) {
  .masthead__meta span:nth-child(2) { display: none; }
  .cover__side { grid-template-columns: 1fr; }
  .work-grid, .services { grid-template-columns: 1fr; }
  .work--xl, .work--wide { grid-column: auto; }
  .work--xl .work__art { min-height: 280px; }
  .service { min-height: 240px; }
  .facts { grid-template-columns: 1fr; }
  .product__details { grid-template-columns: 1fr 1fr; }
  .facts div + div { border-left: 0; padding-left: 0; border-top: var(--hair); margin-top: 12px; }
  .section__title { white-space: normal; }
  .art--b::after { font-size: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .pulse { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
