/* Ember & Sol — studio website */
:root {
  --paper: #F4F3F0;
  --ink: #111;
  --white: #fff;
  --muted: #444;
  --muted-2: #555;
  --soft: #9a9893;
  --tile: #E4E2DD;
  --line-dark: #2a2a2a;
  --max: 1360px;
  --gutter: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Jost, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lbl {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.h2 {
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -.025em;
  line-height: 1;
}

.soft { color: var(--soft); }

/* Pill buttons */
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .3s, color .3s;
}
.pill:hover { background: transparent; color: var(--ink); }
.pill--light { background: var(--paper); color: var(--ink); border-color: var(--paper); padding: 16px 26px; }
.pill--light:hover { background: transparent; color: var(--paper); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 243, 240, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
}
.header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.nav a:not(.pill) { padding: 14px 0; }
.nav a:not(.pill):hover { opacity: .55; }

/* Wordmark (stacked EMBER & SOL) */
.mark { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.mark__top { font-size: 14px; letter-spacing: .34em; padding-left: .34em; }
.mark__bot { font-size: 14px; letter-spacing: .9em; padding-left: .9em; }
.mark__amp { display: flex; align-items: center; gap: 5px; width: 100%; font-size: 8px; }
.mark__amp::before, .mark__amp::after { content: ""; flex: 1; height: 1px; background: currentColor; }

.mark--lg { gap: 8px; }
.mark--lg .mark__top { font-size: 40px; letter-spacing: .3em; padding-left: .3em; line-height: 1; }
.mark--lg .mark__bot { font-size: 40px; letter-spacing: .86em; padding-left: .86em; line-height: 1; }
.mark--lg .mark__amp { font-size: 12px; gap: 10px; }

/* Hero */
.hero {
  padding-top: 88px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: stretch;
}
.hero__text {
  flex: 999 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: .94;
  letter-spacing: -.035em;
}
.hero__lede { max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--muted); }

.hero__card {
  flex: 1 1 340px;
  min-height: 520px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__card-top { display: flex; justify-content: space-between; color: #666; }
.emblem { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.emblem__row { display: flex; align-items: center; gap: 20px; }
.hero__card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  min-height: 44px;
}

/* Discipline tabs */
.tabs-band { background: var(--ink); color: var(--paper); }
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-left: 1px solid var(--line-dark);
}
.chip {
  font: inherit;
  font-weight: 300;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line-dark);
  padding: 26px 22px;
  min-height: 96px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  color: var(--paper);
  transition: background .3s, color .3s;
}
.chip:hover { background: #262626; }
.chip[aria-selected="true"], .chip[aria-selected="true"]:hover { background: var(--paper); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
.chip__txt { display: flex; flex-direction: column; gap: 6px; }
.chip__num { opacity: .6; }
.chip__title { font-size: 22px; letter-spacing: -.01em; }

.tabpanel {
  border-top: 1px solid var(--line-dark);
  padding: 32px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: center;
  justify-content: space-between;
}
.tabpanel p { flex: 1 1 480px; font-size: 19px; line-height: 1.6; color: #bbb; }

/* Section heads */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}

/* Disciplines list */
.disciplines { padding-top: 128px; padding-bottom: 96px; }
.disciplines .section-head { margin-bottom: 56px; }
.disciplines .section-head p { max-width: 380px; font-size: 16px; line-height: 1.6; color: var(--muted-2); }
.list { border-top: 1px solid var(--ink); }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: 34px 20px;
  border-bottom: 1px solid var(--ink);
  transition: background .35s, color .35s;
}
.row:hover { background: var(--ink); color: var(--paper); }
.row__num { width: 48px; }
.row__title { flex: 1 1 340px; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.05; }
.row__body { flex: 1 1 300px; font-size: 16px; line-height: 1.6; color: var(--muted-2); transition: color .35s; }
.row:hover .row__body { color: #aaa; }
.row__arw { transition: transform .35s; }
.row:hover .row__arw { transform: translateX(8px) rotate(-45deg); }

/* Work grid */
.work { padding-top: 32px; padding-bottom: 128px; }
.work .section-head { margin-bottom: 48px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
}
.tile { display: flex; flex-direction: column; gap: 14px; transition: transform .5s; }
.tile:hover { transform: translateY(-6px); }
.tile--wide { grid-column: span 2; }
.tile__img {
  height: 380px;
  border-radius: 4px;
  background: var(--tile);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.tile__img--tall { height: 560px; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__tag { position: relative; background: var(--paper); border-radius: 999px; padding: 8px 14px; }
.tile__ph { color: #77746e; }
.tile__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 0 4px; }
.tile__name { font-size: 20px; letter-spacing: -.01em; }
.tile__year { color: #666; }

/* Process */
.process { background: var(--white); border-top: 1px solid rgba(17,17,17,.1); border-bottom: 1px solid rgba(17,17,17,.1); }
.process .wrap { padding-top: 128px; padding-bottom: 128px; }
.process .h2 { margin-bottom: 72px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { display: flex; flex-direction: column; gap: 22px; padding-right: 32px; padding-bottom: 32px; }
.step__head { display: flex; align-items: center; }
.step__head::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.step__num {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--ink); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.step h3 { font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
.step p { font-size: 16px; line-height: 1.65; color: var(--muted-2); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact__inner { padding-top: 128px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 72px; }
.contact__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 32px; }
.contact__intro h2 { font-weight: 300; font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -.035em; line-height: .95; }
.contact__intro > p { max-width: 420px; font-size: 18px; line-height: 1.6; color: #aaa; }
.contact__links { display: flex; flex-direction: column; gap: 12px; font-size: 18px; margin-top: auto; }
.contact__links a:hover { opacity: .6; }
.contact__links span { color: #888; }

.form { flex: 1.3 1 440px; display: flex; flex-direction: column; gap: 36px; }
.form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.form label { display: block; margin-bottom: 10px; color: #999; }
.form input, .form textarea, .form select {
  width: 100%;
  font: 300 18px Jost, sans-serif;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #555;
  padding: 12px 0;
  outline: none;
  border-radius: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--paper); }
.form option { color: var(--ink); }
.form__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__actions .pill { font: 400 11px Jost, sans-serif; letter-spacing: .24em; text-transform: uppercase; padding: 18px 34px; min-height: 52px; cursor: pointer; }
.form__thanks { font-size: 15px; color: #aaa; }

.footer { border-top: 1px solid #333; padding: 48px 0 28px; display: flex; flex-direction: column; gap: 32px; }
.footer__word { font-size: clamp(44px, 10.5vw, 156px); letter-spacing: .14em; line-height: 1; white-space: nowrap; }
.footer__word span { color: #555; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: #888; }

/* Small screens */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .nav { gap: 20px; }
  .tile--wide { grid-column: auto; }
  .grid { grid-template-columns: 1fr; }
  .hero__card { min-height: 440px; }
  .mark--lg .mark__top, .mark--lg .mark__bot { font-size: 30px; }
  .emblem__row { gap: 12px; }
  .footer__word { letter-spacing: .06em; }
}

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