/*
 * Shape Plate: components
 * Needs tokens.css first. Every class starts with "sh-" so it can sit next to any other CSS.
 */

/* Base */
.sh { margin: 0; background: var(--sh-paper); color: var(--sh-ink); font-family: var(--sh-sans); font-size: var(--sh-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh img { max-width: 100%; display: block; }
.sh a:not([class]), .sh-link, .sh-wordmark, .sh-tile, .sh-nav__links a, .sh-footer a { color: inherit; }
.sh-container { width: min(100% - 2 * var(--sh-gutter), var(--sh-container)); margin-inline: auto; }
.sh-narrow { width: min(100% - 2 * var(--sh-gutter), var(--sh-narrow)); margin-inline: auto; }

/* Sections */
.sh-section { padding-block: var(--sh-section); }
.sh-section--coal { background: var(--sh-coal); color: var(--sh-paper); }
.sh-section--coal .sh-lead, .sh-section--coal .sh-caption { color: rgba(255, 255, 255, .62); }
.sh-section--mist { background: var(--sh-mist); }
.sh-rule { height: 1px; margin: 0; border: 0; background: var(--sh-rule); }

/* Type: neutral grotesk at regular weight, big and tight. The serif is for the wordmark and quotes only */
.sh-hero-title, .sh-h2, .sh-h3 { margin: 0; font-family: var(--sh-sans); font-weight: 400; color: inherit; }
.sh-hero-title { font-size: var(--sh-text-hero); letter-spacing: var(--sh-tracking-hero); line-height: 1; }
.sh-h2 { font-size: var(--sh-text-h2); letter-spacing: var(--sh-tracking-h2); line-height: 1.04; }
.sh-h3 { font-size: var(--sh-text-h3); letter-spacing: -.01em; line-height: 1.2; }
.sh-lead { max-width: 620px; margin: 20px 0 0; color: var(--sh-stone); font-size: var(--sh-text-lead); line-height: 1.45; }
.sh-label { display: block; margin-bottom: 14px; font-size: var(--sh-text-small); font-weight: 500; }
.sh-caption { color: var(--sh-stone); font-size: var(--sh-text-small); line-height: 1.4; }
.sh-serif { font-family: var(--sh-serif); font-weight: 400; }

/* Diamonds: the small ornament. Use in pairs or alone, never more than three on screen */
.sh-diamonds { display: inline-flex; gap: 3px; vertical-align: middle; }
.sh-diamonds::before, .sh-diamonds::after { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.sh-diamond { display: inline-block; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); vertical-align: middle; }

/* Nav: serif wordmark left, plain text links right. Nothing else */
.sh-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.sh-wordmark { font-family: var(--sh-serif); font-size: 21px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.sh-nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.sh-nav__links a { text-decoration: none; white-space: nowrap; }
.sh-nav__links a:hover, .sh-nav__links a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Buttons: square, flat. Ink for the main action, outline for the rest */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--sh-ink); border-radius: var(--sh-radius); background: transparent; color: var(--sh-ink); font-family: var(--sh-sans); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--sh-ease), color .2s var(--sh-ease); }
.sh-btn--ink { background: var(--sh-ink); color: var(--sh-paper); }
.sh-btn--ink:hover { background: var(--sh-vermilion); border-color: var(--sh-vermilion); }
.sh-btn--line:hover { background: var(--sh-ink); color: var(--sh-paper); }
.sh-btn--paper { border-color: var(--sh-paper); background: var(--sh-paper); color: var(--sh-ink); }
.sh-btn--paper:hover { background: transparent; color: var(--sh-paper); }
.sh-btn--block { width: 100%; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.sh-link { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Plate: a full-bleed color field. Shapes sit in the middle, captions sit at the edges */
.sh-plate { position: relative; overflow: hidden; height: var(--sh-plate-h); background: var(--sh-plate-bg, var(--sh-vermilion)); color: var(--sh-plate-ink, var(--sh-ink)); --sh-shape: var(--sh-oxblood); }
.sh-plate--pool { --sh-plate-bg: var(--sh-pool); --sh-shape: var(--sh-navy); }
.sh-plate--butter { --sh-plate-bg: var(--sh-butter); --sh-shape: var(--sh-oxblood); }
.sh-plate--coal { --sh-plate-bg: var(--sh-coal); --sh-shape: var(--sh-vermilion); --sh-plate-ink: var(--sh-paper); }
.sh-plate__art { position: absolute; inset: 9% 12% 14%; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: clamp(6px, 1.2vw, 18px); }
.sh-plate__side { position: absolute; top: 50%; transform: translateY(-50%); font-size: 17px; }
.sh-plate__side--left { left: var(--sh-gutter); }
.sh-plate__side--right { right: var(--sh-gutter); }
.sh-plate__caption { position: absolute; left: var(--sh-gutter); bottom: var(--sh-gutter); max-width: 620px; font-size: 15px; line-height: 1.35; }
.sh-plate__dia { position: absolute; color: var(--sh-shape); }
.sh-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 12px; background: rgba(255, 255, 255, .72); color: var(--sh-ink); font-size: 14px; white-space: nowrap; }

/* Shapes: place inside .sh-plate__art with grid-column / grid-row. All take the plate's shape color */
.sh-shape { background: var(--sh-shape); min-width: 0; min-height: 0; }
.sh-shape--disc { border-radius: 50%; }
.sh-shape--arch { border-radius: 999px 999px 0 0; }
.sh-shape--bowl { border-radius: 0 0 999px 999px; }
.sh-shape--half-r { border-radius: 0 999px 999px 0; }
.sh-shape--half-l { border-radius: 999px 0 0 999px; }
.sh-shape--q1 { border-radius: 100% 0 0 0; }
.sh-shape--q2 { border-radius: 0 100% 0 0; }
.sh-shape--q3 { border-radius: 0 0 100% 0; }
.sh-shape--q4 { border-radius: 0 0 0 100%; }
.sh-shape--tri { clip-path: polygon(0 100%, 100% 100%, 0 0); }
.sh-shape--tri-r { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.sh-shape--wedge { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sh-shape--bar { justify-self: center; width: 16%; }
.sh-shape--hole { background: radial-gradient(circle at 50% 50%, var(--sh-plate-bg, var(--sh-vermilion)) 0 30%, var(--sh-shape) 30.5%); border-radius: 50%; }

/* Hero: big statement on white, a lead and actions */
.sh-hero { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.sh-hero__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; }

/* Project grid: square-cornered tiles, a mini plate on top and a caption under */
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--sh-gutter); }
.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-tile { display: block; text-decoration: none; }
.sh-tile .sh-plate { --sh-plate-h: auto; aspect-ratio: 4 / 3; }
.sh-tile__title { margin: 14px 0 2px; font-size: 18px; letter-spacing: -.01em; }
.sh-tile:hover .sh-tile__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Index list: a ruled list of rows, like a studio's archive */
.sh-index { margin: 0; padding: 0; list-style: none; border-top: var(--sh-border-ink); }
.sh-index li { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; padding: 18px 0; border-bottom: var(--sh-border); }
.sh-index li > :last-child { text-align: right; color: var(--sh-stone); }

/* Big numbers */
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sh-gutter); border-top: 1px solid currentColor; padding-top: 20px; }
.sh-stat__value { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.035em; line-height: 1; }

/* Quote */
.sh-quote { margin: 0; font-family: var(--sh-serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -.01em; }
.sh-quote cite { display: block; margin-top: 20px; font-family: var(--sh-sans); font-size: var(--sh-text-small); font-style: normal; color: var(--sh-stone); }

/* Badge: a plain square label */
.sh-badge { display: inline-block; padding: 4px 8px; border: var(--sh-border-ink); font-size: var(--sh-text-micro); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.sh-badge--fill { background: var(--sh-vermilion); border-color: var(--sh-vermilion); color: var(--sh-ink); }

/* Pricing: columns divided by hairlines, not boxed cards */
.sh-toggle { display: inline-flex; border: var(--sh-border-ink); }
.sh-toggle button { padding: 9px 16px; border: 0; background: transparent; color: var(--sh-ink); font: 500 14px var(--sh-sans); cursor: pointer; white-space: nowrap; }
.sh-toggle button[aria-pressed="true"] { background: var(--sh-ink); color: var(--sh-paper); }
.sh-prices { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--sh-border-ink); }
.sh-price { display: flex; flex-direction: column; padding: 28px var(--sh-gutter) 32px 0; }
.sh-price + .sh-price { padding-left: var(--sh-gutter); border-left: var(--sh-border); }
.sh-price--featured { position: relative; }
.sh-price--featured::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px; background: var(--sh-vermilion); }
.sh-price__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; }
.sh-price__amount { margin: 28px 0 4px; font-size: clamp(48px, 5vw, 68px); letter-spacing: -.04em; line-height: 1; }
.sh-price__amount small { font-size: 16px; letter-spacing: 0; color: var(--sh-stone); }
.sh-price__list { flex: 1; margin: 24px 0 28px; padding: 0; list-style: none; }
.sh-price__list li { padding: 9px 0; border-bottom: var(--sh-border); font-size: 15px; }
.sh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-table th, .sh-table td { padding: 14px 12px 14px 0; border-bottom: var(--sh-border); text-align: left; vertical-align: top; }
.sh-table thead th { border-bottom: var(--sh-border-ink); font-weight: 500; }
.sh-table td + td, .sh-table th + th { text-align: right; }
.sh-faq { border-top: var(--sh-border-ink); }
.sh-faq details { border-bottom: var(--sh-border); }
.sh-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; cursor: pointer; list-style: none; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.sh-faq details[open] summary::after { content: "\2212"; }
.sh-faq p { margin: 0 0 22px; max-width: 640px; color: var(--sh-stone); }

/* Article */
.sh-article__head { padding-block: clamp(48px, 7vw, 96px) 40px; }
.sh-article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--sh-stone); font-size: var(--sh-text-small); }
.sh-prose { font-size: 19px; line-height: 1.65; }
.sh-prose p { margin: 0 0 1.2em; }
.sh-prose h2 { margin: 2em 0 .6em; font-size: 30px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.sh-prose .sh-quote { margin: 1.6em 0; padding-left: 24px; border-left: 6px solid var(--sh-vermilion); }
.sh-prose figure { margin: 2em 0; }
.sh-prose figcaption { margin-top: 10px; color: var(--sh-stone); font-size: var(--sh-text-small); }
.sh-prose ul { padding-left: 1.1em; }
.sh-prose li { margin-bottom: .4em; }

/* Forms: underlined fields, square everything */
.sh-form { display: grid; gap: 22px; }
.sh-field { display: grid; gap: 6px; }
.sh-field label { font-size: var(--sh-text-small); font-weight: 500; }
.sh-input, .sh-select { width: 100%; padding: 12px 0; border: 0; border-bottom: var(--sh-border-ink); border-radius: 0; background: transparent; color: var(--sh-ink); font: 400 18px var(--sh-sans); appearance: none; }
.sh-input::placeholder { color: var(--sh-faint); }
.sh-input:focus, .sh-select:focus { outline: none; border-bottom: 2px solid var(--sh-vermilion); padding-bottom: 11px; }
.sh-hint { color: var(--sh-stone); font-size: var(--sh-text-micro); }
.sh-choice { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--sh-border-ink); }
.sh-choice label { position: relative; display: block; padding: 14px; font-size: 15px; cursor: pointer; }
.sh-choice label + label { border-left: var(--sh-border-ink); }
.sh-choice input { position: absolute; opacity: 0; }
.sh-choice label:has(input:checked) { background: var(--sh-ink); color: var(--sh-paper); }
.sh-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--sh-text-small); }
.sh-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--sh-ink); }

/* Footer: coal band, serif wordmark, ruled columns */
.sh-footer { padding-block: 64px 32px; background: var(--sh-coal); color: var(--sh-paper); }
.sh-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.sh-footer h4 { margin: 0 0 14px; font-size: var(--sh-text-small); font-weight: 500; color: rgba(255, 255, 255, .55); }
.sh-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.sh-footer a { text-decoration: none; }
.sh-footer a:hover { text-decoration: underline; }
.sh-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--sh-coal-2); color: rgba(255, 255, 255, .5); font-size: var(--sh-text-micro); }

/* Phones */
@media (max-width: 860px) {
  .sh-hero__row, .sh-grid, .sh-grid--2, .sh-prices { grid-template-columns: 1fr; }
  .sh-price, .sh-price + .sh-price { padding-inline: 0; border-left: 0; border-bottom: var(--sh-border); }
  .sh-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .sh-footer__cols { grid-template-columns: 1fr 1fr; }
  .sh-index li { grid-template-columns: 1fr; gap: 4px; }
  .sh-index li > :last-child { text-align: left; }
  .sh-plate__art { inset: 14% 6% 22%; }
  .sh-plate__dia { display: none; }
  .sh-plate__side { top: 18px; transform: none; font-size: 14px; }
  .sh-nav__links { gap: 16px; font-size: 14px; }
  .sh-nav__links .sh-hide-sm { display: none; }
}
@media (max-width: 520px) {
  .sh-choice { grid-template-columns: 1fr; }
  .sh-choice label + label { border-left: 0; border-top: var(--sh-border-ink); }
  .sh-footer__cols { grid-template-columns: 1fr; }
}
