/* Clove Hitch Studio portfolio. Loaded after the Drawing-sheet stack
   (base → site-soft → palette-refined → drafting), so tokens, the Material
   grid, colour roles and shape categories are shared with the concept site. */

.eyebrow-plain { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--muted); text-transform: uppercase; }
.tb-title h1 { text-wrap: balance; }

/* ---------- Hero: the work, on two devices, annotated ---------- */
.devices { position: relative; margin: 0; padding: 1.5rem var(--margin) 2rem; background: var(--surface); }
@media (min-width: 905px) { .devices { padding: 2.5rem 2.5rem 3rem; } }
.device-browser { width: 100%; border: 1px solid var(--ink); border-radius: var(--shape-medium); overflow: hidden; background: var(--bg); box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 905px) { .device-browser { width: 80%; } }
.browser-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--ink); background: var(--card); }
.browser-bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid var(--ink); }
.browser-bar p { margin: 0 0 0 0.75rem; font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { position: relative; }
.browser-view img { width: 100%; }
.device-phone { position: relative; width: 55%; max-width: 15rem; margin: -3rem 0 0 auto; border: 6px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 6px 6px 0 var(--bar); }
.device-phone img { width: 100%; }
@media (min-width: 905px) { .device-phone { position: absolute; margin: 0; right: 2.5rem; bottom: 2rem; width: 22%; } .callouts { margin-right: 26%; } }
.devices .marker { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; }
/* Callouts as a drawing key: letter markers on the screenshots, the key
   underneath, at every width (labels over the screenshots hid what they named). */
.devices .marker { display: grid; }
.callouts { display: grid; gap: 0.75rem var(--gutter); margin-top: 2.5rem; padding: 1rem 0 0; border-top: 1px solid var(--ink); }
@media (min-width: 600px) { .callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 905px) { .callouts { margin-top: 3rem; } }
.callouts .pin, .callouts .pin:nth-child(n) { position: static; transform: none; flex-direction: row; align-items: flex-start; }
.callouts .pin-label { background: none; color: var(--ink); padding: 0; max-width: none; font: 400 0.8125rem/1.4 var(--font-data); }
.callouts .pin-label b { display: block; color: var(--ink); font-weight: 500; }

/* ---------- The knot ---------- */
.knot-section { display: grid; gap: 2rem; align-items: center; padding-block: 4rem 3rem; }
@media (min-width: 905px) { .knot-section { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); } .knot-drawing { grid-column: span 4; } .knot-quote { grid-column: 6 / span 7; } }
.knot-drawing { margin: 0; max-width: 18rem; }
.knot-drawing svg { width: 100%; height: auto; }
.knot-drawing .tube { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.knot-drawing .tube-line { stroke: var(--rule); stroke-width: 1; fill: none; }
.knot-drawing .rope { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.knot-drawing .rope-back { stroke: var(--muted); stroke-width: 5; stroke-dasharray: 2 6; }
.knot-drawing .dim path { fill: none; stroke: var(--bar); stroke-width: 1.5; }
.knot-drawing .dim-t { font: 500 11px var(--font-data); fill: var(--ink); }
.knot-quote { margin: 0; }
.knot-quote p { margin: 0; font: 700 clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem)/1.15 var(--font-head); letter-spacing: -0.012em; text-wrap: balance; }

/* ---------- Work ---------- */
.work { padding-bottom: 3rem; }
.case-n { margin: 0 0 0.35rem; font-size: 0.8125rem; color: var(--muted); }
.case-h { margin: 0 0 0.75rem; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 800; letter-spacing: -0.012em; font-variation-settings: "opsz" 96, "wdth" 80; }
.case-h a { color: var(--ink); text-decoration: none; }
.case-h a:hover { text-decoration: underline; }
.case-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.case-note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.case-next-h { margin: 0 0 0.5rem; font: 700 1.375rem/1.2 var(--font-head); }

/* ---------- Included: a sheet of drawing cells ---------- */
.included { background: var(--surface); padding-block: 3rem; }
.inc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.inc-head .section-h { margin: 0; padding: 0; border: 0; }
.inc-head p { margin: 0; color: var(--muted); }
.inc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.inc-grid li { grid-column: span 4; position: relative; padding: 1.25rem 1.25rem 1.5rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); }
.inc-grid li::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 6px; height: 6px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.inc-n { font-size: 0.8125rem; color: var(--muted); }
.inc-grid h3 { margin: 0.5rem 0 0.4rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.inc-grid p { margin: 0; }

/* ---------- Ownership ---------- */
.ownership { display: grid; gap: 1.5rem var(--gutter); padding-block: 4rem; }
@media (min-width: 905px) { .ownership { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; } .own-text { grid-column: span 5; } .ownership .board { grid-column: span 7; } }
.own-text .section-h { margin-bottom: 0.75rem; }
.own-text p { color: var(--muted); max-width: 40ch; }

/* ---------- Packages ---------- */
.packages { background: var(--surface); padding-block: 3rem; }
.pk-grid { list-style: none; margin: 0 0 var(--gutter); padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gutter); }
.pk { grid-column: span 4; display: flex; flex-direction: column; padding: 1.5rem; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--shape-medium); }
.pk-key { border-color: var(--ink); box-shadow: 6px 6px 0 var(--accent); }
.pk-n { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.pk h3 { margin: 0.25rem 0 0.75rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.012em; font-variation-settings: "opsz" 96, "wdth" 80; }
.pk-list { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.pk-list li { padding-block: 0.15rem; }
.pk-price { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--rule); font-size: 0.875rem; color: var(--muted); }
.care { padding: 1.5rem; background: var(--board); color: var(--on-board); border-radius: var(--shape-medium); }
.care h3 { margin: 0 0 0.5rem; font-size: 1.375rem; }
.care .pk-price { color: var(--on-board-muted); border-top-color: var(--line-on-dark); }
@media (min-width: 905px) { .care { display: grid; grid-template-columns: 1fr 2fr auto; gap: 2rem; align-items: center; } .care h3, .care p { margin: 0; } .care .pk-price { border: 0; padding: 0; } }

/* ---------- Process: a programme without dates ---------- */
.process { padding-block: 4rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0 var(--gutter); counter-reset: step; }
.steps li { grid-column: 1 / -1; position: relative; padding: 1.25rem 0 1.25rem 0; border-top: 1px solid var(--rule); }
.steps li::before { content: ""; display: block; height: 0.75rem; margin-bottom: 0.75rem; border-radius: 999px; background: var(--bar); width: 40%; }
.steps li:last-child::before { background: var(--bar-key); }
.step-n { font-size: 0.8125rem; color: var(--muted); }
.steps h3 { margin: 0.25rem 0 0.35rem; font-size: 1.375rem; font-weight: 600; }
.steps p { margin: 0; }
@media (min-width: 905px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { grid-column: auto; border-top: 0; }
  .steps li::before { width: calc(100% + var(--gutter)); border-radius: 0; }
  .steps li:first-child::before { border-radius: 999px 0 0 999px; }
  .steps li:last-child::before { width: 100%; border-radius: 0 999px 999px 0; }
}

/* Footer note sits on the dark board */
.site-footer .footer-cols li { color: var(--on-board); }

/* The shared form styles cover text/email/tel; the studio form also has a URL field */
.enquire input[type="url"] { display: block; width: 100%; min-height: 44px; font: inherit; font-family: var(--font-body); color: #0b0c0c; background: #fff; border: 2px solid #0b0c0c; border-radius: var(--radius); padding: 0.5rem 0.625rem; }
.enquire input[type="url"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px #0b0c0c; }

/* FINDING-002: the proposition leads the sheet, the work follows it */
.title-block + .ruler { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* FINDING-005: the case-study image link uses the same ring as other cards */

/* FINDING-008: standalone links (not inline in a sentence) get a 44px target */
.case-link, .case-next a { display: inline-flex; align-items: center; min-height: 44px; }

/* The studio logo: outlined artwork from brand/logo, sized by height so it sits on the header row */
.wordmark.logo { padding-block: 0.9rem; }
.wordmark.logo img { display: block; width: auto; height: 1.75rem; }
@media (max-width: 599px) { .wordmark.logo img { height: 1.5rem; } }
.footer-mark.logo img { display: block; width: auto; height: clamp(6rem, 4rem + 8vw, 10rem); }

/* Full-width layout (founder, 2026-11-11: "use the full page"). Replaces the fixed
   840/1040px Material bodies with fluid content between fixed margins, which is
   Material's other grid mode. Only the portfolio: the concept site keeps its bodies. */
@media (min-width: 905px) { :root { --margin: 48px; } }
@media (min-width: 1440px) { :root { --margin: 72px; --gutter: 32px; } }
.wrap { max-width: none; padding-inline: var(--margin); }
/* The layout is full width, but a line of text is not: keep prose to a readable measure */
main p, main li { max-width: 36em; }

/* ---------- Layout pass ---------- */
/* Contact: the intro and the email box on the left, held in view while the form scrolls past
   on the right, instead of a short box beside the form with a dead zone under it. */
.contact-intro .lede { margin-bottom: 1.5rem; font-size: inherit; }
@media (min-width: 905px) {
  .enquire-grid > .contact-intro { grid-column: 1 / span 5; align-self: start; position: sticky; top: 1.5rem; }
  .enquire-grid > .form-col { grid-column: 6 / span 7; max-width: none; padding-top: 0.5rem; }
}
/* Work: room above its rule, so the rule does not sit on the edge of the peach band */
.work { padding-top: 3rem; }
/* Knot statement: a larger drawing and the quote one column earlier, closing a 265px gap */
.knot-drawing { max-width: 22rem; }
@media (min-width: 905px) { .knot-quote { grid-column: 6 / span 7; } }

/* ---------- Design review ---------- */
/* FINDING-001: the board screenshot's top 40px is a sliver of the page above it (half a line
   of text, the foot of a button). Crop it off; markers are re-placed in the HTML to match. */
.browser-view { aspect-ratio: 1440 / 860; overflow: hidden; }
.browser-view img { margin-top: calc(-40 / 1440 * 100%); }
/* FINDING-002: at full width the hero button sat 600-1,070px from the sentence it follows.
   Keep it beside the sentence instead of pinned to the far edge. */
.title-block .tb-cta { justify-content: flex-start; column-gap: 2.5rem; }
/* FINDING-003: the hero's supporting sentence was 15px, under the 16px floor for reading copy */
.title-block .tb-cta p { font-size: 1.0625rem; }
/* FINDING-004 (kept for the pk-key card): the yellow link-focus fill is 1.03:1 against apricot, so on the apricot surfaces
   (added in the colour pass) a focused link only gained a thicker underline. Use the dark
   pattern there instead: espresso fill, cream text (8.8:1), black bar beneath. */
:root .case-next a:focus-visible, :root .pk-key a:focus-visible { background: var(--ink); color: var(--bg); box-shadow: 0 4px 0 #0b0c0c; }
/* FINDING-005: footer links were 22px tall, half the page's 44px target rule */
.footer-cols li:has(> a) { padding-block: 0; }   /* plain-text rows keep their spacing */
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Work: the concept site and its projects in the gallery (gallery.css) ---------- */
.case { display: grid; gap: 1rem var(--gutter); margin-bottom: 2rem; }
@media (min-width: 905px) { .case { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; } .case-body { grid-column: span 7; } .case-chips { grid-column: 9 / span 4; justify-content: flex-end; } }
.case-body p { margin: 0; }
.case-link { margin-top: 0.75rem; }
.case-body .case-link-note { margin: 1rem 0 0; font-weight: 600; }
.case-chips { margin: 0; }
.gal-label { margin: 0 0 1.25rem; font-size: 0.8125rem; color: var(--muted); }
/* the invitation closes the strip: apricot, the whole card links to the contact form */
.gal-card-invite { justify-content: flex-end; min-height: 100%; border-style: solid; }
.gal-card-invite .gal-body { justify-content: flex-end; flex: 0; padding: 1.5rem; }
.gal-card-invite .case-next-h { margin: 0 0 0.25rem; font-size: 1.625rem; line-height: 1.15; }
.gal-card-invite a { font-weight: 600; }
.gal-card-invite a::after { content: ""; position: absolute; inset: 0; }
.work-gallery .case-note { margin-top: 1rem; }



/* Placeholders the founder fills in: visibly marked, never mistaken for real figures */
.tbc { padding: 0 0.3em; border: 1px dashed currentColor; border-radius: 3px; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pk-typical { max-width: 36em; margin: 1.25rem 0 0; }

/* Who you'd be working with */
.about { display: grid; gap: 1.5rem var(--gutter); padding-block: 4rem; }
@media (min-width: 905px) { .about { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; } .about-photo { grid-column: span 4; } .about-text { grid-column: 6 / span 7; } }
.about-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 22rem; background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--bg) 10px 20px); border: 1px solid var(--ink); border-radius: var(--shape-medium); }
.about-photo span { padding: 0.3rem 0.6rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; font-size: 0.8125rem; color: var(--muted); }
.about-name { margin: 0 0 1rem; font-weight: 600; }
.about-text > p { max-width: 36em; }
.about-contact { margin: 1.5rem 0 0; font-size: 0.9375rem; }
.about-contact div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); padding-block: 0.4rem; border-top: 1px dashed var(--rule); }
.about-contact dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8125rem; }
.about-contact dd { margin: 0; }

/* What your site has to show: one row per kind of firm */
.whofor { padding-block: 4rem; background: var(--surface); }
.whofor-lede { margin: 0 0 1.5rem; max-width: 36em; color: var(--muted); }
.whofor-list { margin: 0; border-top: 1px solid var(--ink); }
.whofor-list div { display: grid; gap: 0.25rem var(--gutter); padding-block: 1rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 905px) { .whofor-list div { grid-template-columns: repeat(12, minmax(0, 1fr)); } .whofor-list dt { grid-column: span 5; } .whofor-list dd { grid-column: 6 / span 7; } }
.whofor-list dt { font: 700 1.125rem/1.3 var(--font-head); }
.whofor-list dd { margin: 0; max-width: 36em; }

/* ---------- Opening: two actions, the main one first ---------- */
.tb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.tb-secondary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }

/* ---------- Selected work: the website itself, with the decisions behind it ---------- */
.case-shots { display: grid; gap: 1.5rem var(--gutter); margin-bottom: 2.5rem; }
@media (min-width: 905px) {
  .case-shots { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .shot { grid-column: span 8; }
  .shot-wide { grid-column: 1 / -1; }
  .shot-phone { grid-column: span 4; }
}
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); border-radius: var(--shape-medium); box-shadow: 6px 6px 0 var(--ink); }
.shot-phone img { max-width: 20rem; border-radius: 22px; }
.shot figcaption { margin-top: 0.9rem; max-width: 36em; font-size: 0.9375rem; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.0625rem; margin-bottom: 0.15rem; }

/* ---------- The service: one core offer, its parts underneath ---------- */
.pk-lede { max-width: 36em; margin: 0 0 1.5rem; color: var(--muted); }
.pk-core { display: grid; gap: 1rem var(--gutter); margin-bottom: 1rem; }
@media (min-width: 905px) { .pk-core { grid-template-columns: repeat(12, minmax(0, 1fr)); } .pk-core-head { grid-column: span 4; } .pk-parts { grid-column: 5 / span 8; } }
.pk-core-head .pk-price { border-top: 0; padding-top: 0; margin-top: 0.75rem; }
.pk-parts { margin: 0; }
.pk-parts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 0.7rem; border-top: 1px dashed var(--rule); }
.pk-parts dt { font-weight: 700; }
.pk-parts dd { margin: 0; max-width: 36em; }
.pk-smaller { max-width: 36em; margin: 0 0 1.5rem; }

/* ---------- What I need from you ---------- */
.needs { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.needs h3 { margin: 0 0 0.75rem; font-size: 1.375rem; }
.needs ul { margin: 0; padding-left: 1.2rem; }
.needs li { padding-block: 0.2rem; }

/* Selected work: each job is its own block */
.case-block + .case-block { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }

/* ---------- typeset ---------- */
/* text measures are in em: Geist's ch is wide, so 62 to 72ch came out at 80 to 93 characters a line; 36em is about 70 */
/* running text never leaves one or two words alone on its last line */
main :is(p, li, dd, figcaption) { text-wrap: pretty; }
/* Geist is loaded at 400 and 600 only: 700 was synthesised (smeared faux bold) */
.pk-parts dt, .pk-typical strong { font-weight: 600; }
/* smaller headings need more leading than the 1.05 display setting when they wrap; balanced lines */
main :is(h2, h3) { text-wrap: balance; }
main h3 { line-height: 1.15; }
