/* Studio websites: the layout every template shares. A template's own stylesheet sets the variables
   below and anything that makes it look like itself. Mobile first; nothing scrolls sideways. */
:root {
  --bg: #ffffff; --fg: #161616; --muted: #6b6b6b; --line: #e6e6e6; --card: #f6f6f4;
  --font-display: Georgia, serif; --font-body: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 0px; --wrap: 1180px; --gutter: clamp(18px, 4vw, 40px); --section: clamp(56px, 9vw, 120px);
  --hero-h: min(88vh, 860px); --btn-bg: var(--fg); --btn-fg: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body.s-site { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
.s-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.s-narrow { max-width: calc(720px + var(--gutter) * 2); }

/* Header */
.s-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s-header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.s-brand { font-family: var(--font-display); font-size: 21px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-brand img { max-height: 44px; width: auto; }
.s-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.s-nav a { text-decoration: none; opacity: .78; } .s-nav a:hover, .s-nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) { .s-nav { display: none; } .s-header .s-btn-small { margin-left: auto; } }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg); font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer; letter-spacing: .01em; }
.s-btn:hover { filter: brightness(1.12); }
.s-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.s-btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero: full (photo behind the words), split (words beside it), card (photo in a soft card), type (big words, photo under) */
.s-hero { position: relative; }
.s-hero h1 { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.02em; }
.s-eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; opacity: .8; }
.s-lede { font-size: clamp(18px, 1.7vw, 22px); max-width: 38ch; margin-top: 20px; opacity: .9; }
.s-hero[data-hero="full"] { min-height: var(--hero-h); display: grid; align-items: end; color: #fff; }
.s-hero[data-hero="full"] .s-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero[data-hero="full"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.55)); }
.s-hero[data-hero="full"] .s-hero-copy { position: relative; z-index: 1; padding-block: 0 clamp(48px, 8vw, 96px); }
.s-hero[data-hero="full"] .s-btn-ghost { color: #fff; }
.s-hero[data-hero="split"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: var(--hero-h); }
.s-hero[data-hero="split"] .s-hero-img { width: 100%; height: 100%; object-fit: cover; order: 2; }
.s-hero[data-hero="split"] .s-hero-copy { align-self: center; padding-block: 64px; max-width: 640px; margin-inline: 0 0; }
@media (max-width: 860px) { .s-hero[data-hero="split"] { grid-template-columns: 1fr; } .s-hero[data-hero="split"] .s-hero-img { order: 0; height: 52vh; } }
.s-hero[data-hero="card"] { padding: var(--gutter); }
.s-hero[data-hero="card"] .s-hero-img { width: 100%; height: min(72vh, 680px); object-fit: cover; border-radius: calc(var(--radius) * 2); }
.s-hero[data-hero="card"] .s-hero-copy { text-align: center; padding-block: 48px 8px; }
.s-hero[data-hero="card"] .s-lede { margin-inline: auto; } .s-hero[data-hero="card"] .s-actions { justify-content: center; }
.s-hero[data-hero="type"] { display: flex; flex-direction: column; }
.s-hero[data-hero="type"] .s-hero-copy { order: -1; padding-block: clamp(72px, 12vw, 160px) 48px; }
.s-hero[data-hero="type"] .s-hero-img { width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin-inline: auto; height: min(70vh, 720px); object-fit: cover; }

/* Sections */
.s-section { padding-block: var(--section); }
.s-page-top .s-section:first-child, .s-page { padding-top: clamp(48px, 7vw, 96px); }
.s-h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 28px; }
.s-h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 32px; }
.s-more { margin-top: 32px; } .s-more a { text-underline-offset: 5px; }
.s-about-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.s-about-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .s-about-row { grid-template-columns: 1fr; } }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); }
.s-grid figure { margin: 0; } .s-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.s-card { padding: 28px; background: var(--card); border-radius: var(--radius); }
.s-card h3 { font-size: 26px; margin-bottom: 8px; } .s-price { font-weight: 600; color: var(--accent); }
.s-words { background: var(--card); }
.s-words .s-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.s-words blockquote { margin: 0; } .s-words blockquote p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.s-words cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.s-cta { text-align: center; } .s-cta .s-h2 { margin-inline: auto; max-width: 18ch; }
.s-contact-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); }
@media (max-width: 760px) { .s-contact-row { grid-template-columns: 1fr; } }
.s-form { display: grid; gap: 16px; } .s-form label { display: grid; gap: 6px; font-size: 14px; }
.s-form input, .s-form textarea { width: 100%; padding: 13px 14px; font: 16px var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.s-form input:focus, .s-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.s-form .s-btn { justify-self: start; } .s-trap { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.s-thanks { font-family: var(--font-display); font-size: 26px; align-self: center; } .s-error { color: #b42318; }
.s-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.s-post-card { text-decoration: none; display: grid; gap: 10px; } .s-post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.s-post-card h2 { font-size: 26px; } .s-post-date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.s-post h2 { font-size: 30px; margin: 1.4em 0 .5em; } .s-post-cover { margin: 8px 0 32px; border-radius: var(--radius); }

/* Footer */
.s-footer { border-top: 1px solid var(--line); padding-block: 56px; font-size: 15px; }
.s-footer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.s-footer p { margin: 0 0 6px; } .s-footer-name { font-family: var(--font-display); font-size: 22px; }
.s-fine { opacity: .6; font-size: 13px; }
@media (max-width: 760px) { .s-footer-row { grid-template-columns: 1fr; } }
