/* ==========================================================
   LANCE | Lance Fine Art Advisory
   Minimal, warm, a little mid-century.
   Fonts: Instrument Serif (headings + italics), Archivo (text)
   ========================================================== */

:root {
  --bg: #F3EEE7;
  --bg-2: #EAE3D9;
  --ink: #2B2826;
  --ink-2: #6B6560;
  --line: rgba(43, 40, 38, .16);
  --field: rgba(43, 40, 38, .22);

  --terra: #C8653C;
  --mustard: #D99E36;
  --teal: #2F7A72;
  --blush: #E4A996;
  --plum: #6A3C4F;
  --accent: #BF5B32; /* warm terracotta for italic accent words */

  --terra-t: #F0D8CA;
  --mustard-t: #F2E2BE;
  --teal-t: #D3E3DE;
  --blush-t: #F4DFD6;
  --plum-t: #E4D4D9;

  --display: "Instrument Serif", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--mustard-t); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); }
h1 em, h2 em, .italic { font-style: italic; color: var(--accent); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 36em; line-height: 1.75; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* signature: four dots */
.dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--terra); }
.dots i:nth-child(2) { background: var(--mustard); }
.dots i:nth-child(3) { background: var(--teal); }
.dots i:nth-child(4) { background: var(--blush); }

.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-width: 172px; padding: 1.05em 2em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font: 400 1.05rem/1.2 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--terra); border-color: var(--terra); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.center .btn-row { justify-content: center; }
.link { text-decoration: none; border-bottom: 1px solid var(--terra); padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--terra); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 238, 231, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-word { font-family: var(--display); font-size: 1.55rem; letter-spacing: .24em; line-height: 1; margin-right: -.24em; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: .98rem; position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 84px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 28px 30px; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav a { font-family: var(--display); font-size: 1.75rem; display: block; }
  .site-nav a::after { left: -14px; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: translateY(-50%) scale(1); }
}

/* ---------- Home hero: the arches ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); text-align: center; }
.lance { margin: 0; font: 400 1rem/1.4 var(--sans); }
.arches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.6vw, 20px); max-width: 900px; margin: 0 auto; }
.arch-cell { display: flex; flex-direction: column; align-items: center; }
.arch {
  width: 100%; aspect-ratio: 5 / 7; border-radius: 999px 999px 4px 4px;
  background: var(--t); position: relative; display: grid; place-items: center;
  transition: transform .5s var(--ease); animation: rise 1s var(--ease) both;
}
.arch::before { content: ""; position: absolute; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--c); top: 15%; left: 50%; transform: translateX(-50%); transition: transform .6s var(--ease); }
.arch .letter { font-family: var(--display); line-height: 1; font-size: clamp(2.6rem, 10vw, 8rem); color: var(--ink); margin-top: 20%; }
.arch-cell:hover .arch { transform: translateY(-6px); }
.arch-cell:hover .arch::before { transform: translateX(-50%) translateY(5px) scale(1.15); }
.arch-word { margin-top: 14px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.arch-cell:nth-child(2) .arch { animation-delay: .07s; }
.arch-cell:nth-child(3) .arch { animation-delay: .14s; }
.arch-cell:nth-child(4) .arch { animation-delay: .21s; }
.arch-cell:nth-child(5) .arch { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.acronym-line { display: none; }
.hero-name { font-family: var(--display); font-style: italic; font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 1.05; margin: clamp(36px, 5vw, 56px) 0 .35em; }
.hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 30em; margin: 0 auto; }
.where { margin-top: 26px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 640px) {
  .arch-word { display: none; }
  .acronym-line { display: block; margin-top: 16px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-wrap: balance; }
  .acronym-line span { display: inline-block; margin: 0 .35em; }
  .acronym-line b { color: var(--terra); font-weight: 500; }
}

/* ---------- Four services (home) ---------- */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.four a { text-decoration: none; border-top: 1px solid var(--ink); padding-top: 20px; transition: color .2s; }
.four a:hover { color: var(--terra); }
.four .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-bottom: 16px; }
.four h3 { margin-bottom: .3em; }
.four p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .four { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 480px) { .four { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote { text-align: center; }
.quote blockquote { margin: 18px auto 0; max-width: 16em; font-family: var(--display); font-style: italic; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; }
.quote blockquote span { color: var(--accent); }

/* ---------- Inner page header ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(36px, 5vw, 64px); }

/* ---------- About ---------- */
.bio-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.portrait .frame { aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; background: var(--teal-t); overflow: hidden; display: grid; place-items: center; position: relative; }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait .frame::before { content: ""; position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--mustard); top: 14%; left: 50%; transform: translateX(-50%); }
.portrait .mono { font-family: var(--display); font-size: clamp(3.2rem, 6vw, 5rem); color: var(--teal); letter-spacing: .08em; margin-top: 16%; }
.bio p { font-size: 1.15rem; }
.pull { margin-top: 40px; padding-left: 26px; border-left: 3px solid var(--mustard); font-family: var(--sans); font-style: normal; font-size: clamp(1.2rem, 1.7vw, 1.35rem); line-height: 1.7; color: var(--ink); }
.bio h2 { font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; margin-bottom: .5em; }
@media (max-width: 820px) { .bio-grid { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 90px); border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.svc .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); margin-top: 12px; }
.svc h3 { margin-bottom: .3em; }
.svc p { margin: 0; color: var(--ink-2); font-size: 1.03rem; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px clamp(24px, 4vw, 56px); }
.project figure { margin: 0; }
.project .img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--t); display: grid; place-items: center; }
.project .img > img { width: 100%; height: 100%; object-fit: cover; }
.project .img > svg { height: 60%; width: auto; transition: transform .6s var(--ease); }
.project:hover .img > svg { transform: scale(1.04); }
.project figcaption { padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.project h3 { margin: 0; }
.project .tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 680px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: flex; align-items: center; gap: 10px; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--c); margin-bottom: 10px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1.03rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact (single column form) ---------- */
.form { max-width: 700px; margin-top: clamp(40px, 6vw, 80px); }
.field { margin-bottom: 30px; }
.form label { display: block; font-size: 1rem; margin-bottom: 12px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1.15rem; color: var(--ink);
  padding: 1.05em 1.1em; border: 1px solid var(--field); border-radius: 0; background: var(--bg);
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.form input::placeholder, .form textarea::placeholder { color: #9A938C; }
.form select {
  cursor: pointer; padding-right: 3em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0h12L6 7z' fill='%232B2826'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.3em center;
}
.form textarea { min-height: 240px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terra); background: #F8F4EF; }
.form .hp { display: none; }
.form .btn { margin-top: 12px; }
.form-note { margin-top: 44px; color: #9A938C; font-size: 1.05rem; }
.form-note a { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding-block: 44px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: .95rem; color: var(--ink-2); }
.foot .logo-word { color: var(--ink); font-size: 1.3rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--terra); }
.foot-mid { display: flex; align-items: center; gap: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

.simple { min-height: 56vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.hero .btn-row { justify-content: center; }

/* ---------- Soft closing CTA ---------- */
.closing-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: .8em; }
.soft-link { display: inline-flex; align-items: center; gap: .5em; font-size: 1.05rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.soft-link .arr { transition: transform .25s var(--ease); }
.soft-link:hover { color: var(--accent); border-color: var(--accent); }
.soft-link:hover .arr { transform: translateX(4px); }

/* Bold acronym words under the arches */
.arch-word { font-weight: 600; color: var(--ink); }
.acronym-line { font-weight: 600; color: var(--ink); }

/* "Fine Art Advisory": spaced capitals in Archivo (option G) */
.hero-name { font-family: var(--sans); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .32em; margin-right: -.32em; font-size: clamp(1.3rem, 3.2vw, 1.9rem); line-height: 1.3; color: var(--ink); margin-bottom: .9em; }
@media (max-width: 420px) { .hero-name { letter-spacing: .22em; margin-right: -.22em; font-size: 1.2rem; } }

/* Bigger "Fine Art Advisory" */
.hero-name { font-size: clamp(2rem, 4.8vw, 3.3rem); letter-spacing: .24em; margin-right: -.24em; text-wrap: balance; }
.hero-sub { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
@media (max-width: 420px) { .hero-name { font-size: 1.6rem; letter-spacing: .15em; margin-right: -.16em; line-height: 1.35; } }
/* Regular weight for FINE ART ADVISORY */
.hero-name { font-weight: 400; }
.hero-sub { max-width: 27em; text-wrap: balance; }
