/* =========================================================================
   AVOCADO DIGITAL: SESSION SLEEVE
   Gold field and black ink with a clean white work room, duotone
   photography cropped hard to an edge, Gloock headlines over Hanken Grotesk.
   ========================================================================= */

:root {
  --gold: #caa75c;
  --gold-deep: #b8954b;
  --ink: #0c0c0c;
  --ink-soft: #3a2e14;   /* secondary text on gold: tinted from the field */
  --on-ink-soft: #d9c79c; /* secondary text on black: tinted gold */
  --on-ink-bright: #f4ebd3; /* sleeve copy on black: brighter gold-white */
  --paper: #ffffff;
  --newsprint: #ebe9e2;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 10px;

  --display: 'Gloock', Georgia, serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;

  --edge: clamp(20px, 4.4vw, 64px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  accent-color: var(--ink);
  scrollbar-color: var(--ink) var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}
::selection { background: var(--ink); color: var(--gold); }
.on-ink ::selection, .on-ink::selection { background: var(--gold); color: var(--ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -60px; background: var(--ink); color: var(--gold); padding: 12px 18px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .92;
  text-wrap: balance;
  margin: 0;
}

/* ---------- buttons & title lines ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--ink); color: var(--gold);
  font: 600 17px/1 var(--body);
  padding: 18px 26px;
  border-radius: 999px;
  border: 0; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.on-ink .btn { background: var(--gold); color: var(--ink); }
.on-ink .btn:hover { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }

.textlink { font-weight: 600; text-decoration: underline; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.site-head {
  position: absolute; z-index: 10; top: 0; right: 0;
  left: 40%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px var(--edge) 0 clamp(28px, 4vw, 64px);
}
.site-head .wordmark svg { width: clamp(150px, 15vw, 210px); height: auto; fill: var(--ink); }
.site-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.site-nav a { font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--ink); color: var(--gold); padding: 11px 18px; border-radius: 999px; text-decoration: none; }
.site-nav .nav-cta:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; }

/* ---------- duotone ---------- */
.duo { margin: 0; position: relative; overflow: hidden; background: var(--gold); isolation: isolate; }
.duo img, .duo video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.02);
  mix-blend-mode: multiply;
}
.duo.is-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(12,12,12,.32) 0 1px, transparent 1.4px) 0 0 / 4px 4px; mix-blend-mode: multiply; }

/* ---------- 1. hero sleeve ---------- */
.hero {
  position: relative; min-height: max(100svh, 720px);
  display: grid; grid-template-columns: 40% 1fr;
  overflow: hidden;
}
.hero-photo { grid-column: 1; min-height: 100%; }
.hero-photo.duo img { object-position: 22% 30%; }
.notes-photo { margin-top: 44px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.notes-photo img { object-position: 50% 45%; }
.start-photo { margin-top: 44px; aspect-ratio: 16 / 10; max-width: 520px; border-radius: var(--r-lg); }
.start-photo img { object-position: 45% 55%; }
.hero-copy {
  grid-column: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--edge) clamp(56px, 7vh, 88px) clamp(28px, 4vw, 64px);
}
.hero-title { font-size: clamp(72px, 9.6vw, 148px); margin: 0 0 clamp(36px, 5vh, 60px) -.03em; }
.hero-lede { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; max-width: 32ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.hero-actions .textlink { font-size: 17px; }

/* ---------- 2. what we build: title lines ---------- */
.build { background: var(--ink); color: var(--gold); padding: var(--section) var(--edge); position: relative; overflow: hidden; }
.build-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.build-head h2 { font-size: clamp(44px, 5.4vw, 80px); }
.build-head p { color: var(--on-ink-soft); font-size: 19px; max-width: 46ch; margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(202,167,92,.35); }
.line { border-bottom: 1px solid rgba(202,167,92,.35); }
.line-btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: clamp(18px, 2vw, 28px) 18px;
  position: relative;
}
.line-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--gold); border-radius: var(--r-md);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
  z-index: 0;
}
.line-btn > * { position: relative; z-index: 1; }
.line-name { font-size: clamp(32px, 3.8vw, 56px); transition: color .3s var(--ease); }
.line-sum { color: var(--on-ink-soft); font-size: 17px; max-width: 44ch; transition: color .3s var(--ease); }
.line.is-active .line-btn::before, .line-btn:hover::before { transform: scaleY(1); }
.line.is-active .line-name, .line.is-active .line-sum,
.line-btn:hover .line-name, .line-btn:hover .line-sum { color: var(--ink); }
.line-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.line-detail {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px;
  overflow: hidden; max-height: 0; transition: max-height .5s var(--ease);
}
.line.is-active .line-detail { max-height: 420px; }
.line-detail-inner { grid-column: 2; padding: 24px 18px 36px; }
.line-detail p { margin: 0 0 18px; color: var(--on-ink-soft); max-width: 52ch; }
.line-detail ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-ink-soft); font-size: 16px; }
.line-detail ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--gold); margin-right: 9px; vertical-align: middle; }
.line-detail a { color: var(--gold); }

/* ---------- 3. sessions: sleeves ---------- */
.sessions { padding: var(--section) var(--edge); background: var(--newsprint); position: relative; isolation: isolate; }
/* broadsheet: newsprint grain plus faint six-column rules behind the sleeves */
.sessions::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .2; mix-blend-mode: multiply; }
.sessions::after { content: ""; position: absolute; inset: 0 var(--edge); z-index: -1; pointer-events: none; opacity: .5; background-image: repeating-linear-gradient(90deg, rgba(12,12,12,.22) 0 1px, transparent 1px calc((100% - 1px) / 6)); }
.sessions-head { padding-bottom: 28px; border-bottom: 4px double var(--ink); }
.sessions-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 88px); }
.sessions-head h2 { font-size: clamp(44px, 5.4vw, 80px); }
.sessions-head p { max-width: 42ch; margin: 0; color: #3f3d37; font-size: 19px; }
.sleeves { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sleeve {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  background: var(--ink); color: var(--gold);
  border-radius: var(--r-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sleeve:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(12,12,12,.45); }
.sleeve:nth-child(1) { grid-column: 1 / span 7; }
.sleeve:nth-child(2) { grid-column: 8 / span 5; align-self: end; }
.sleeve:nth-child(3) { grid-column: 1 / span 5; }
.sleeve:nth-child(4) { grid-column: 6 / span 7; }
.sleeve:nth-child(5) { grid-column: 3 / span 8; aspect-ratio: 16 / 9; }
.sleeve.is-field { background: var(--gold-deep); color: var(--ink); }
.sleeve.is-black { background: #000; }
.session-inline { display: block; font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.sleeve .duo { position: absolute; }
.sleeve .crop-tr { top: 0; right: 0; width: 58%; height: 72%; }
.sleeve .crop-bl { left: 0; bottom: 0; width: 64%; height: 62%; }
.sleeve .crop-r  { top: 0; right: 0; width: 46%; height: 100%; }
.sleeve .crop-tr2 { top: 0; right: 0; width: 50%; height: 50%; }
.sleeve .crop-br2 { bottom: 0; right: 0; width: 50%; height: 50%; }
.sleeve .crop-br2 img { object-position: 45% 44%; }
.sleeve .crop-tl { top: 0; left: 0; width: 60%; height: 60%; }
.sleeve-title { position: absolute; left: 6%; bottom: 8%; font-size: clamp(34px, 3.8vw, 64px); }
.sleeve-title.top { bottom: auto; top: 9%; }
.sleeve-meta { position: absolute; right: 6%; bottom: 6%; text-align: right; max-width: 30ch; font-size: 15px; line-height: 1.45; }
.sleeve-meta b { display: block; font-size: 17px; margin-bottom: 2px; }
.sleeve:not(.is-field):not(.is-placeholder) .sleeve-meta { color: var(--on-ink-bright); }
.sleeve:not(.is-field):not(.is-placeholder) .sleeve-meta b { color: var(--gold); }
.sleeve.is-field .sleeve-meta, .sleeve.is-field .session { color: var(--ink); }
.sleeve.is-field .sleeve-meta b { color: var(--ink); }
.sleeve-meta.bl { right: auto; left: 6%; text-align: left; }
.sleeve-meta.left { right: auto; left: 6%; text-align: left; bottom: auto; top: 13%; }
.sleeve-tag { position: absolute; left: 6%; top: 6%; font-size: 14px; font-weight: 600; }
.sleeve.is-placeholder { background: #f4f4f1; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12,12,12,.14); }
.sleeve.is-placeholder .sleeve-meta { color: #4a4a46; }
.sleeve.is-placeholder .sleeve-meta b { color: var(--ink); }
.cc-mark { position: absolute; top: 10%; right: 9%; width: 38%; height: auto; color: var(--ink); }
.sleeve .crop-full-r { top: 0; right: 0; bottom: 0; width: 50%; height: 100%; }
.sleeve .crop-full-r img { object-position: top; filter: grayscale(1) contrast(1.55) brightness(1.12); }
.session { position: absolute; left: 6%; top: 6%; font-size: 14px; font-weight: 600; color: var(--gold); }
.sleeve.is-placeholder .session { color: var(--ink); }
.sleeve.is-case .sleeve-meta.left { max-width: 34ch; }
.case-read { position: absolute; right: 6%; bottom: 8%; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }

/* ---------- 4. liner notes ---------- */
.notes { background: var(--ink); color: var(--gold); padding: var(--section) var(--edge); overflow: hidden; }
.notes-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.notes h2 { font-size: clamp(44px, 5.4vw, 80px); }
.notes-intro { color: var(--on-ink-soft); max-width: 36ch; margin: 36px 0 0; font-size: 19px; }
.notes-cols { columns: 2 260px; column-gap: clamp(28px, 3.5vw, 56px); }
.note { break-inside: avoid; margin: 0 0 34px; }
.note h3 { font: 700 22px/1.25 var(--body); margin: 0 0 8px; color: var(--gold); }
.note p { margin: 0; color: var(--on-ink-soft); font-size: 17px; line-height: 1.6; }
.credits { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid rgba(202,167,92,.35); display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-ink-soft); font-size: 16px; }
.credits b { color: var(--gold); font-weight: 600; margin-right: 6px; }

/* ---------- 5. start a project ---------- */
.start { padding: var(--section) var(--edge); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); overflow: hidden; }
.start h2 { font-size: clamp(56px, 7vw, 108px); margin-bottom: 40px; }
.start-aside p { color: var(--ink-soft); max-width: 40ch; font-size: 19px; margin: 0 0 28px; }
.contact-lines { display: grid; gap: 8px; font-size: 18px; }
.contact-lines a { font-weight: 600; }
.form { background: var(--ink); color: var(--gold); padding: clamp(28px, 3.5vw, 52px); align-self: start; border-radius: var(--r-lg); }
.form h3 { font: 700 26px/1.2 var(--body); margin: 0 0 6px; }
.form-body > p { color: var(--on-ink-soft); margin: 0 0 26px; font-size: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 7px; color: var(--gold); }
.field .opt { font-weight: 400; color: var(--on-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--gold);
  background: #1a1710; border: 1px solid rgba(202,167,92,.45); border-radius: var(--r-sm);
  padding: 14px 15px; caret-color: var(--gold);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #a08f69; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e7836b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 16px; color: var(--on-ink-soft); min-height: 1.4em; }
.form-status.is-error { color: #f0a08c; }
.form.is-sent .form-body { display: none; }
.form-done { display: none; }
.form.is-sent .form-done { display: block; }
.form-done h3 { font-size: 30px; }
.form-done p { color: var(--on-ink-soft); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--gold); padding: 72px var(--edge) 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(202,167,92,.35); }
.foot-top svg { width: 220px; height: auto; fill: var(--gold); }
.foot-top p { color: var(--on-ink-soft); max-width: 30ch; margin: 22px 0 0; font-size: 16px; }
.foot-col h4 { font: 600 13px var(--body); margin: 0 0 16px; color: var(--gold); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--on-ink-soft); text-decoration: none; font-size: 16px; }
.foot-col a:hover { color: var(--gold); text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: var(--on-ink-soft); font-size: 14px; }

/* ---------- the one authored moment: the sleeve slides out ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-photo { animation: pull .9s var(--ease) both; }
  .js .hero-title { animation: settle 1s .15s var(--ease) both; }
  .js .hero-lede, .js .hero-actions { animation: rise .8s .45s var(--ease) both; }
  @keyframes pull { from { transform: translateX(-4%); } to { transform: none; } }
  @keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sleeve, .line-btn::before, .line-detail { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav .hide-md { display: none; }
  .build-head, .notes-grid, .start { grid-template-columns: 1fr; }
  .line-btn, .line-detail { grid-template-columns: 1fr; gap: 10px; }
  .line-detail-inner { grid-column: 1; padding-top: 4px; }
  .sessions-head { flex-direction: column; align-items: flex-start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: auto; }
  .hero-photo { grid-column: 1; height: 46svh; min-height: 300px; }
  .hero-copy { grid-column: 1; padding: 56px var(--edge) 56px; }
  .site-head { position: relative; left: 0; order: -1; padding: 18px var(--edge); background: var(--gold); grid-column: 1; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-title { font-size: clamp(56px, 16vw, 88px); margin-bottom: 32px; }
  .sleeves { grid-template-columns: 1fr; }
  .sleeve:nth-child(n) { grid-column: 1; aspect-ratio: 1 / 1; }
  .sleeve.is-waypoint { order: -1; }
  .sleeve.is-case .sleeve-title { bottom: 17%; }
  .case-read { right: auto; left: 6%; bottom: 7%; }
  .sleeve-title { font-size: clamp(32px, 9.5vw, 48px); }
  .sleeve-meta { max-width: 44%; font-size: 14px; }
  .sleeve-meta b { font-size: 15px; }
  .sleeve .crop-tr { width: 46%; height: 64%; }
  .cc-mark { width: 32%; top: 8%; right: 8%; }
  .session { font-size: 13px; white-space: nowrap; }
  .session .seg-3, .session-inline .seg-3 { display: none; }
  .sleeve .crop-r { height: 62%; width: 44%; }
  .sleeve .crop-tr2, .sleeve .crop-br2 { width: 40%; }
  .sleeve-meta.bl { max-width: 52%; }
  .field-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}
