/* =========================================================
   Trace Studio website stylesheet
   Colors come from the v3.1 logo and Brand Identity v3.1 section 9.2. Fonts from 9.3.
   Do not add new brand colors here. Tints are brand colors mixed with white.
   Design rule from the approved prototype: minimal but warm, pill buttons,
   ONE decorative move only (the tilted Someday list card in the home hero).
   ========================================================= */

:root {
  /* Logo colors (locked 10-29-2026) */
  --sage: #8EA4A0;          /* Muted Sage: rules, check circles, focus rings. Never text (2.6:1 on white) */
  --charcoal: #5E5E5E;      /* Charcoal Gray: headings, body text, filled buttons (6.5:1 on white) */
  --studio-gray: #666666;   /* Studio Gray: secondary text and labels (5.7:1 on white) */

  /* Carried over from v3.0, roles confirmed at the website build */
  --light-sage: #9CB8B3;    /* Light Sage: tints only, never text or text backgrounds */
  --warm: #D5D3CA;          /* Warm Neutral: borders and frames. Paragraph text never sits directly on it (4.3:1) */
  --white: #FFFFFF;

  /* Tints (brand color mixed with white, not new colors) */
  --paper: color-mix(in srgb, var(--warm) 30%, var(--white));      /* page background, warm off-white */
  --sage-tint: color-mix(in srgb, var(--light-sage) 20%, var(--white));
  --field-border: color-mix(in srgb, var(--warm) 40%, var(--charcoal)); /* 3:1 border for form fields */

  /* Avenir LT Pro needs a paid webfont license, so Nunito Sans stands in (brand doc 9.3 allows substitutes).
     To switch later: license and load Avenir as a webfont, then it is already first in line below. */
  --font-body: "Avenir LT Pro", "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;

  --max: 1120px;
  --gutter: 24px;
  --radius: 6px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--charcoal); text-decoration-color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--charcoal); margin: 0 0 0.45em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; max-width: 34em; }
.muted { color: var(--studio-gray); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--warm); position: relative; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; padding: 4px 0; }
.brand img { height: 124px; width: auto; }
.nav-toggle {
  display: none; font: inherit; font-size: 1rem; font-weight: 700; color: var(--charcoal);
  background: var(--white); border: 1.5px solid var(--charcoal); border-radius: var(--pill); padding: 10px 20px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.site-nav a { text-decoration: none; font-size: 1rem; padding: 10px 0; }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  padding: 14px 26px; border-radius: var(--pill);
  background: var(--charcoal); color: var(--white); border: 1.5px solid var(--charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--white); color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.site-nav .btn { padding: 12px 20px; color: var(--white); }
.site-nav .btn:hover { color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-sage { background: var(--sage-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* ---------- Home hero ---------- */
.hero .container { max-width: 1180px; padding-top: 56px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1, .hero-copy p { margin: 0; }
.hero-copy .lead { font-size: 1.25rem; max-width: 26em; }
.hero-visual { display: grid; padding-left: 48px; }
.hero-visual > img { grid-area: 1 / 1; width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); }

/* The one decorative move: the tilted Someday list card */
.someday {
  grid-area: 1 / 1; align-self: end; justify-self: start;
  margin: 0 0 -48px -48px; width: 330px; max-width: 90%;
  background: var(--white); border: 1px solid var(--warm); border-radius: 8px;
  padding: 26px 26px 22px; transform: rotate(-1.5deg);
  box-shadow: 0 12px 28px rgba(94, 94, 94, 0.16);
}
.someday-title { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; margin: 0 0 14px; }
.someday ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; line-height: 1.4; }
.someday li { display: flex; gap: 12px; align-items: flex-start; }
.someday svg { flex-shrink: 0; margin-top: 0; }
.someday .done span:first-of-type { text-decoration: line-through; text-decoration-color: var(--sage); text-decoration-thickness: 1.5px; color: var(--studio-gray); }
.someday a { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding: 64px 0 48px; }
.page-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-intro .lead { margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--warm); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.card-body p:last-child { margin-bottom: 0; }
.card-body .text-link { margin-top: auto; padding-top: 6px; align-self: flex-start; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { margin: 0; position: relative; }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.tile figcaption { margin-top: 10px; font-weight: 700; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); background: var(--white); border: 1px solid var(--warm); border-radius: var(--pill); padding: 3px 10px;
}
.tile .badge, .work-card .badge { position: absolute; top: 12px; left: 12px; }
.work-card { position: relative; }
.section-foot { margin-top: 28px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > img, .split > div > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.split.reverse > :first-child { order: 2; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 0.3em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.ticks.cols { columns: 2; column-gap: 28px; }
.ticks.cols li { break-inside: avoid; }
.label { font-weight: 700; margin: 1.2em 0 0.5em; }

/* ---------- Services ---------- */
.service { padding: 80px 0; }
.service:nth-of-type(even) { background: var(--white); }
.service .split { align-items: start; }
.approach { border-left: 3px solid var(--sage); padding: 4px 0 4px 18px; margin: 1.2em 0 1.4em; }
.approach p:last-child { margin-bottom: 0; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example { background: var(--white); border: 1px solid var(--warm); border-radius: 8px; padding: 24px; }
.example h3 { font-size: 1.35rem; }
.example p { margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--sage-tint); border: 1px solid var(--sage);
  font-weight: 700; margin-bottom: 12px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--studio-gray); font-size: 1rem; }

/* ---------- Our Work ---------- */
.example-note { background: var(--white); border: 1px solid var(--warm); border-radius: 8px; padding: 18px 22px; margin-bottom: 8px; }
.example-note p { margin: 0; }
.work-group { padding-top: 48px; }
.work-group h2 { font-size: 2rem; }
.work-card dl { margin: 0; }
.work-card dt { font-weight: 700; margin-top: 10px; }
.work-card dd { margin: 0; }
.credits { font-size: 0.92rem; color: var(--studio-gray); }
.credits ul { padding-left: 1.1em; columns: 2; column-gap: 32px; }

/* ---------- About ---------- */
.prose { max-width: 680px; }
.meanings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.meanings h3, .values h3 { font-size: 1.35rem; margin-bottom: 0.2em; }
.meanings p, .values p { margin: 0; color: var(--studio-gray); font-size: 1rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.values div { border-top: 1px solid var(--warm); padding-top: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; background: var(--white); border: 1px solid var(--warm); border-radius: 8px; padding: 32px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, legend { font-weight: 700; font-size: 0.98rem; }
.hint { font-size: 0.9rem; color: var(--studio-gray); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--white);
  border: 1px solid var(--field-border); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sage); outline-offset: 1px; }
textarea { min-height: 160px; resize: vertical; }
input[type="file"] { font: inherit; font-size: 0.95rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--warm); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--charcoal); background: var(--paper); }
.choice input { margin-top: 5px; accent-color: var(--charcoal); }
.files { display: grid; gap: 8px; }
.hidden-field { position: absolute; left: -9999px; }
.prefill { border: 1px solid var(--sage); background: var(--sage-tint); border-radius: var(--radius); padding: 14px 16px; }
.prefill p { margin: 0; }
.form-note { margin: 10px 0 0; font-size: 0.92rem; color: var(--studio-gray); }

.start-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.start-layout > div > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 32px; }
.start-layout .steps { grid-template-columns: 1fr; gap: 18px; }
.start-layout .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.start-layout .steps li::before { margin: 0; grid-row: span 2; }
.start-layout .steps h3 { margin: 6px 0 0.1em; }

/* ---------- Estimate calculator ---------- */
.estimator { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.result { background: var(--white); border: 1px solid var(--warm); border-radius: 8px; padding: 30px; }
.result-amount { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5vw, 3.25rem); line-height: 1.05; margin: 10px 0 6px; }
.result-sub { color: var(--studio-gray); }
.result .fine { font-size: 0.92rem; border-top: 1px solid var(--warm); padding-top: 14px; margin: 18px 0 0; }
.qty { display: flex; align-items: center; max-width: 180px; }
.qty button { font: inherit; font-size: 1.25rem; width: 48px; height: 48px; border: 1px solid var(--field-border); background: var(--white); color: var(--charcoal); cursor: pointer; }
.qty button:first-child { border-radius: var(--pill) 0 0 var(--pill); }
.qty button:last-child { border-radius: 0 var(--pill) var(--pill) 0; }
.qty input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; height: 48px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--charcoal); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.notes div { border-top: 3px solid var(--sage); padding-top: 14px; }
.notes h3 { font-size: 1.3rem; margin-bottom: 0.25em; }
.notes p { margin: 0; color: var(--studio-gray); font-size: 1rem; }

/* ---------- Footer (no logo: the logo appears only in the header) ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--warm); padding: 56px 0 28px; font-size: 0.97rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.footer-brand .muted { margin: 0; }
.footer-contact { text-align: right; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-nav { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--warm); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--sage); }
.footer-tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; margin: 0 0 10px; }
.footer-head { font-weight: 700; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--sage); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--studio-gray); font-size: 0.9rem; }

/* ---------- Ordering info ---------- */
.service-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.service-jump a { font-size: 0.95rem; text-decoration: none; background: var(--white); border: 1px solid var(--warm); border-radius: var(--pill); padding: 8px 16px; }
.service-jump a:hover { border-color: var(--charcoal); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--warm); border-radius: 8px; padding: 24px; }
.section-white .info-card { background: var(--paper); }
.info-card h3 { font-size: 1.4rem; margin-bottom: 0.35em; }
.info-card p:last-child, .info-card .ticks:last-child { margin-bottom: 0; }
.info-card-warn { border-top: 3px solid var(--charcoal); }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.policy { padding-left: 1.3em; margin: 0; }
.policy li { margin-bottom: 0.9em; padding-left: 4px; }
.policy li::marker { font-weight: 700; color: var(--charcoal); }
@media (max-width: 860px) { .materials { grid-template-columns: 1fr; } }

/* ---------- Start a Project: sections that change with the project type ---------- */
.type-section { display: grid; gap: 20px; padding: 22px; border-radius: 8px; background: var(--paper); border: 1px solid var(--warm); }
.type-section[hidden] { display: none; }
.type-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
textarea.short { min-height: 110px; }
.type-section .choice { background: var(--white); }
.type-section .choice:has(input:checked) { background: var(--white); border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }

/* ---------- Engraving estimate builder ---------- */
#detail, #artwork { grid-template-columns: repeat(3, 1fr); }
#detail .choice, #artwork .choice { flex-direction: column; gap: 6px; }
@media (max-width: 560px) { #detail, #artwork { grid-template-columns: 1fr; } #detail .choice, #artwork .choice { flex-direction: row; } }
.builder { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.builder .form > input + input, .builder .field input + input { margin-top: 8px; }
#preview-controls { display: grid; gap: 22px; }
#preview-controls[hidden] { display: none; }
.preview-wrap { background: var(--paper); border: 1px solid var(--warm); border-radius: 8px; padding: 16px; }
.preview { display: block; width: 100%; max-width: 380px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
.preview[hidden] { display: none; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.preview-bar .preview-note { margin: 0; }
.preview-bar[hidden] { display: none; }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.preview-wrap { background: radial-gradient(circle at 50% 40%, var(--white), var(--paper)); }
.preview svg { display: block; }
.preview-empty { text-align: center; min-height: 120px; display: grid; place-items: center; margin: 0; padding: 12px; color: var(--studio-gray); }
.preview-empty[hidden] { display: none; }
.preview-note { margin: 10px 0 0; text-align: center; font-size: 0.88rem; color: var(--studio-gray); }
.fonts { grid-template-columns: repeat(4, 1fr); }
.fonts .choice { justify-content: center; padding: 10px 6px; }
.choice small { display: block; color: var(--studio-gray); font-size: 0.84rem; line-height: 1.35; margin-top: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--sage); cursor: pointer; justify-self: start; }
.line-preview { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--warm); padding-top: 14px; }
.line-preview strong { font-family: var(--font-display); font-size: 1.6rem; }
.estimate { position: sticky; top: 20px; }
.estimate-title { font-size: 1.9rem; margin: 10px 0 6px; }
.lines { list-style: none; padding: 0; margin: 0 0 18px; }
.lines li { border-top: 1px solid var(--warm); padding: 12px 0; display: grid; gap: 4px; }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-top span { white-space: nowrap; font-weight: 700; }
.line-sub { font-size: 0.9rem; color: var(--studio-gray); }
.totals { margin: 6px 0 18px; border-top: 1px solid var(--warm); padding-top: 10px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt { color: var(--studio-gray); }
.totals dd { margin: 0; text-align: right; }
.totals .total { border-top: 1px solid var(--warm); margin-top: 8px; padding-top: 10px; }
.totals .total dt, .totals .total dd { color: var(--charcoal); font-weight: 700; font-size: 1.1rem; }
.prefill p { white-space: pre-line; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } .estimate { position: static; } }
@media (max-width: 560px) { .choices.fonts, .fonts { grid-template-columns: 1fr 1fr; } }

/* ---------- Starting prices (Services) ---------- */
.price-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-list { list-style: none; padding: 0; margin: 0 0 16px; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--warm); font-size: 0.98rem; }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { white-space: nowrap; }
.price-list strong::before { content: "from "; font-weight: 400; color: var(--studio-gray); font-size: 0.85rem; }
@media (max-width: 960px) { .price-guide { grid-template-columns: 1fr; } }

/* ---------- Signature: laser hero ---------- */
.hero-photo { grid-area: 1 / 1; display: block; width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(40, 42, 44, 0.22); }

/* ---------- Signature: trace line ---------- */
.trace-line { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; overflow: visible; }
.trace-line path { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
main .container, .site-footer .container { position: relative; z-index: 2; }

/* ---------- Signature: dark workshop band (slate photo under a charcoal wash) ---------- */
.workshop {
  position: relative; color: var(--white); padding: 96px 0;
  background: linear-gradient(rgba(58, 60, 62, 0.86), rgba(58, 60, 62, 0.86)), url("../img/photos/slate-texture.webp") center / cover, #3a3c3e;
}
.workshop h2 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 12em; }
.workshop-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--light-sage); margin-bottom: 14px; }
.workshop-lead { font-size: 1.15rem; max-width: 30em; color: #F1F1EE; margin-bottom: 26px; }
.workshop-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.workshop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.workshop-stats div { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 14px; }
.workshop-stats dt { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--white); margin-bottom: 8px; }
.workshop-stats dd { margin: 0; color: #E4E4E0; font-size: 0.97rem; }
.btn-light { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
@media (max-width: 860px) { .workshop-grid { grid-template-columns: 1fr; gap: 36px; } .hero-photo { height: 380px; } }
@media (max-width: 560px) { .workshop { padding: 64px 0; } .workshop-stats { grid-template-columns: 1fr 1fr; gap: 22px; } .workshop-stats dt { font-size: 2.1rem; } }

/* Placeholder marker: fill these in before launch. Search the site for PLACEHOLDER. */
.placeholder { background: #FFF6CC; outline: 1px dashed #B39B2E; padding: 0 4px; }

/* Grid children may shrink below their content's natural width (fixes sideways scrolling at 320px) */
.hero .container > *, .hero-visual > *, .builder > *, .estimator > *, .start-layout > *, .form > *, .files > *, .field, .choice { min-width: 0; }
input, select, textarea { max-width: 100%; }
input[type="file"] { width: 100%; }

/* Reference file list on Start a Project */
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 0.92rem; overflow-wrap: anywhere; }
.field-error { color: #8A3B12; }

/* "Example" tag on illustrative photos outside the tiles */
.ex { position: relative; }
.ex .badge { position: absolute; top: 12px; left: 12px; }
.ex > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .ex > img, .start-layout .ex > img { border-radius: 8px; }
.start-layout .ex { margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .estimator, .start-layout { grid-template-columns: 1fr; }
  .examples, .notes, .meanings { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .brand img { height: 78px; }
  .js .nav-toggle { display: inline-block; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--warm); display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--warm); }
  .site-nav li:last-child { margin-top: 16px; }
  .site-nav .btn { display: block; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 80px; }
  .hero-visual { padding-left: 0; }
  .hero-visual > img { height: 380px; }
  .someday { margin: 0 0 -40px 12px; width: min(300px, calc(100% - 12px)); }
  .split, .grid-3, .grid-2, .tiles, .steps, .values { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .section, .service { padding: 64px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-contact { text-align: left; }
  .footer-nav ul { gap: 10px 22px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; }
  .hero-copy .btn-row .btn, .cta-row .btn { flex: 1 1 100%; }
  .hero-copy .btn-row { flex-direction: column; }
  .examples, .notes, .meanings, .choices, .field-row { grid-template-columns: 1fr; }
  .ticks.cols, .credits ul { columns: 1; }
  .form, .result { padding: 22px; }
  .someday { padding: 20px 20px 18px; }
}

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

/* 11-25-2026 design pass */
html { font-variant-numeric: lining-nums; } /* Cormorant's default old-style 1 reads like an I */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps.steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.steps-4 { grid-template-columns: 1fr; } }
.start-layout .steps.steps-4 { grid-template-columns: 1fr; }
.jump-link { display: inline-block; margin-top: 14px; }
@media (min-width: 961px) { .jump-link { display: none; } }
.estimate:focus { outline: none; }
