/* Haute Sculpture Academy — hsa.today
   TRENDit · single-page build
   ------------------------------------------------------------------ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Constantia';
  src: url('../fonts/constantia.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Drop constantia-bold.woff2 into /assets/fonts and uncomment to use the
   real Constantia Bold on headings. Until then headings render in Regular
   with optical tracking, which holds up better than a synthetic bold.
@font-face {
  font-family: 'Constantia';
  src: url('../fonts/constantia-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

@font-face {
  font-family: 'Cottorway';
  src: url('../fonts/cottorway-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cottorway';
  src: url('../fonts/cottorway-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cottorway';
  src: url('../fonts/cottorway-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ground:      #f2f0ec;
  --ground-warm: #e9e5df;
  --surface:     #ffffff;
  --line:        #dcd7d0;
  --line-soft:   #e6e2db;

  --ink:         #2e2e30;
  --body:        #4d4d4f;
  --muted:       #77746f;
  --gold:        #7a5f28;

  --dark:        #1b1b1c;
  --dark-2:      #232324;
  --dark-line:   #34343a;
  --dark-body:   #d9d5d0;
  --dark-muted:  #a09b94;
  --dark-gold:   #c6a360;

  --display: 'Constantia', 'Constantia', Georgia, 'Times New Roman', serif;
  --text: 'Cottorway', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wide: 1140px;
  --mid: 920px;
  --narrow: 680px;

  --gap-section: clamp(4.5rem, 9vw, 8.5rem);
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ground);
  color: var(--body);
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.75;
  letter-spacing: 0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--ground); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.95rem, 1.45rem + 2.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.008em;
}

p { max-width: 68ch; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.66;
  color: var(--body);
  max-width: 60ch;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.small { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap--mid { max-width: var(--mid); }
.wrap--narrow { max-width: var(--narrow); }

section { padding-block: var(--gap-section); }

.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 0.75rem 1.25rem;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: #17171a; border-color: #17171a; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }

.btn--light {
  background: var(--dark-gold);
  border-color: var(--dark-gold);
  color: #1b1b1c;
}
.btn--light:hover { background: #d5b475; border-color: #d5b475; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.link:hover { border-color: var(--ink); }
.link--gold { color: var(--dark-gold); border-color: rgba(198, 163, 96, 0.35); }
.link--gold:hover { border-color: var(--dark-gold); }

/* ---------- Masthead + hero ---------- */
.masthead {
  background: var(--ground-warm);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.masthead__logo {
  width: clamp(190px, 26vw, 268px);
  margin-inline: auto;
  color: var(--ink);
}
.masthead__logo svg { width: 100%; height: auto; }

.hero { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.5rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* one orchestrated entrance, nothing else moves on scroll */
.enter { opacity: 0; transform: translateY(14px); }
.js .enter { animation: enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.js .enter--1 { animation-delay: 0.05s; }
.js .enter--2 { animation-delay: 0.18s; }
.js .enter--3 { animation-delay: 0.3s; }
.js .enter--4 { animation-delay: 0.42s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Program split ---------- */
.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 840px) {
  .split { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.offer--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-body);
}
.offer--dark h3 { color: #f3f1ee; }
.offer--dark .tag { color: var(--dark-gold); }
.offer--dark .offer__meta { color: var(--dark-gold); border-color: var(--dark-line); }
.offer--dark p { color: var(--dark-body); }

.offer__meta {
  font-family: var(--display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--gold);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.offer p { font-size: 0.9375rem; line-height: 1.7; }
.offer .link { margin-top: auto; align-self: flex-start; }
.offer--dark .link { color: var(--dark-gold); border-color: rgba(198, 163, 96, 0.35); }
.offer--dark .link:hover { border-color: var(--dark-gold); }

/* ---------- Dark band (Visiting Program) ---------- */
.band-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-body);
}
.band-dark h2, .band-dark h3 { color: #f3f1ee; }
.band-dark .tag { color: var(--dark-gold); }
.band-dark .lead { color: var(--dark-body); }
.band-dark .small { color: var(--dark-muted); }

.arcs {
  position: absolute;
  top: -3rem;
  right: -2rem;
  width: min(420px, 48vw);
  height: auto;
  color: var(--dark-gold);
  opacity: 0.5;
  pointer-events: none;
}

.band-dark .wrap { position: relative; z-index: 1; }

.visiting__head { max-width: 46ch; }
.visiting__head .lead { margin-top: 1.25rem; }

/* cadence table: the actual shape of the week */
.cadence {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--dark-line);
}
.cadence__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (min-width: 720px) {
  .cadence__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: baseline;
  }
}
.cadence__what {
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: #f3f1ee;
}
.cadence__when { font-size: 0.9375rem; color: var(--dark-muted); }
.cadence__when strong { color: var(--dark-gold); font-weight: 500; }

.pair {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.pair h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.pair p { font-size: 0.9375rem; }

/* ---------- Testimonial ---------- */
.voice { background: var(--ground-warm); border-block: 1px solid var(--line); }

.voice__quote {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 1.95rem);
  line-height: 1.38;
  letter-spacing: -0.014em;
  color: var(--ink);
  max-width: 34ch;
}
.voice__quote + .voice__quote { margin-top: 1.75rem; }

.voice__by {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: baseline;
}
.voice__name { font-weight: 500; color: var(--ink); font-size: 0.9375rem; }

.voice__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }

/* ---------- Corporate ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: clamp(2.5rem, 5vw, 3.25rem);
  padding-block: 1.75rem;
  border-block: 1px solid var(--line);
}
.stats__n {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.stats__l { font-size: 0.8125rem; color: var(--muted); margin-top: 0.35rem; }

.includes { list-style: none; display: grid; gap: 0; }
@media (min-width: 760px) { .includes { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.includes li {
  font-size: 0.9375rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.media {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 880px) { .media { grid-template-columns: 340px 1fr; gap: 3rem; } }

.player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 9 / 16;
  max-width: 340px;
  width: 100%;
}
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.player__btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.75rem;
  border: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
  cursor: pointer;
}
.player__btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.player__btn[hidden] { display: none; }

/* ---------- Faculty ---------- */
.faculty { display: grid; gap: 1.25rem; }
@media (min-width: 840px) { .faculty { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.person h3 { margin-bottom: 0.25rem; }
.person__role { font-size: 0.8125rem; color: var(--gold); letter-spacing: 0.03em; margin-bottom: 1rem; }
.person p { font-size: 0.9375rem; }

.venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.venue img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 760px) { .venue { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Form ---------- */
.apply { background: var(--ground-warm); border-top: 1px solid var(--line); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
}

.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 620px) { .choice { grid-template-columns: 1fr 1fr; } }

.choice legend { display: block; padding: 0; }
.choice__opt { position: relative; }
.choice__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__opt span {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.choice__opt span small { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 0.2rem; }
.choice__opt input:checked + span {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.fields { display: grid; gap: 1.25rem; }
.row { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); letter-spacing: 0.015em; }
.field label i { font-style: normal; color: #9c5a4e; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  font-weight: 300;
  background: var(--ground);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377746f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #9c5a4e; }

.err { font-size: 0.75rem; color: #9c5a4e; display: none; }
.err.on { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.math { display: flex; align-items: center; gap: 0.75rem; }
.math__q {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}
.math input { max-width: 130px; }

.consent { font-size: 0.8125rem; color: var(--muted); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 0.5rem; }

.status { font-size: 0.875rem; line-height: 1.6; display: none; padding: 0.9rem 1.1rem; border-radius: 10px; }
.status.on { display: block; }
.status.ok { background: #eef2ec; color: #3c5537; }
.status.bad { background: #f6eceb; color: #8e4b3f; }

.spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.is-sending .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.foot {
  background: var(--dark);
  color: var(--dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.foot__logo { width: 150px; color: #f3f1ee; margin-bottom: 1.75rem; }
.foot__logo svg { width: 100%; height: auto; }
.foot a { color: var(--dark-body); text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.foot a:hover { border-color: var(--dark-gold); }
.foot__grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1fr auto; align-items: end; } }
.foot__note { font-size: 0.8125rem; line-height: 1.7; max-width: 46ch; }
.foot__legal { font-size: 0.75rem; color: #7d7974; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .js .enter { opacity: 1; transform: none; animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
