/* Infinity Signs & Embroidery — shared styles for tnembroidery.com inner pages.
   Matches the homepage design (black & white, logo red accent, Fraunces + Manrope). */
:root {
  --paper: #ffffff;
  --sand: #f3f3f3;
  --line: #e2e2e2;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #6b6b6b;
  --night: #111111;
  --thread: #b3262b;
  --thread-soft: #e3585c;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--thread); outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 92rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; letter-spacing: -.02em; margin: 0; }
h3 { letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--thread); }
.eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 2.4rem; border-top: 1px dashed currentColor; }
.eyebrow b { font-weight: 600; color: var(--thread); letter-spacing: .14em; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 2.4rem; border-top: 1px solid currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.2rem 2.6rem; border-radius: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--thread); border-color: var(--thread); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.page-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2.2rem; }
.page-nav a { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: .4rem 0; white-space: nowrap; background: linear-gradient(var(--thread), var(--thread)) left bottom / 0 1px no-repeat; transition: background-size .3s; }
.page-nav a:hover, .page-nav a[aria-current="page"] { background-size: 100% 1px; }
.head-call { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); padding: .6rem 1rem; border-radius: 999px; transition: border-color .25s; }
.head-call:hover { border-color: var(--thread); }

/* Page hero */
.page-hero { padding: clamp(3rem, 1.5rem + 5vw, 7rem) 0 0; text-align: center; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.4rem; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--thread); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.8rem, 1.3rem + 5.6vw, 6.6rem); font-weight: 300; line-height: .98; letter-spacing: -.035em; }
.lede { margin: 2rem auto 0; max-width: 36rem; font-size: 1.12rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.6rem; }
.hero-plate { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(.75rem, .4rem + 1vw, 1.5rem); align-items: center; margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-plate figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.hero-plate figure:nth-child(2) { aspect-ratio: 4 / 5.4; }
.hero-plate img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-plate figure::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.65); pointer-events: none; }
@keyframes settle { to { transform: none; } }

/* Sections */
.section { padding: clamp(5rem, 3rem + 7vw, 10rem) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); }
.split-head { position: sticky; top: 7rem; align-self: start; }
.intro { margin: 1.6rem 0 0; color: var(--ink-2); max-width: 30rem; }
.intro a, .more-link a { text-decoration-color: var(--ink); text-underline-offset: .2em; }
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.service-list li { counter-increment: svc; display: grid; grid-template-columns: 3.4rem 1fr; gap: .2rem 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); transition: padding-left .3s; }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list li::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--thread); line-height: 1.6; }
.service-list li:hover { padding-left: .6rem; }
.service-list h3 { font-size: 2rem; font-weight: 300; line-height: 1.15; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a::after { content: " \2197"; font-family: var(--sans); font-size: .9rem; color: var(--thread); vertical-align: .35em; }
.service-list h3 a:hover { color: var(--thread); }
.service-list p { margin: 0; color: var(--muted); }
.more-link { margin: 2.4rem 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.more-link a:hover { color: var(--thread); }

/* Work grid */
.work { border-block: 1px solid var(--line); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.work-head p { max-width: 28rem; margin: 0; color: var(--muted); }
.work-head p a { color: var(--ink); text-underline-offset: .2em; }
.work-grid { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.5rem; }
.work-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.work-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-grid a::after { content: attr(data-cap); position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: #fff; background: linear-gradient(transparent, rgba(17,17,17,.72)); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.work-grid a:hover img, .work-grid a:focus-visible img { transform: scale(1.045); }
.work-grid a:hover::after, .work-grid a:focus-visible::after { opacity: 1; transform: none; }

/* Steps on black */
.steps-band { background: var(--night); color: #f2f2f2; }
.steps-band .eyebrow { color: #9a9a9a; }
.steps-band h2 em { color: var(--thread-soft); }
.steps-list { list-style: none; counter-reset: st; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.steps-list li { counter-increment: st; padding: 0 2.5rem 0 0; }
.steps-list li + li { border-left: 1px solid rgba(255,255,255,.14); padding-left: 2.5rem; }
.steps-list li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 3.4rem; line-height: 1; color: var(--thread-soft); margin-bottom: 1.4rem; }
.steps-list h3 { font-size: 1.7rem; font-weight: 300; margin-bottom: .5rem; }
.steps-list p { margin: 0; color: #b5b5b5; }

/* CTA */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); position: relative; }
.card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); pointer-events: none; }
.card > * { position: relative; }
.card > p { margin: 1rem 0 0; color: var(--muted); max-width: 32rem; }
.card .actions { justify-content: flex-start; }
.details { margin: 0; }
.details div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: .35rem 0 0; font-family: var(--serif); font-weight: 300; font-size: 1.75rem; line-height: 1.25; overflow-wrap: anywhere; }
.details dd a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat; }
.details dd a:hover { color: var(--thread); }

/* Footer */
footer { background: var(--night); color: #9a9a9a; padding: 4rem 0 3rem; font-size: .88rem; }
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem 3rem; align-items: center; }
footer img { height: 52px; width: auto; }
footer p { margin: 0; }
footer .name { font-family: var(--serif); font-size: 1.35rem; color: #f2f2f2; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: #f2f2f2; text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--thread-soft); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-plate img { animation: none; transform: none; }
}

@media (max-width: 64rem) {
  .site-head .wrap { grid-template-columns: 1fr auto; row-gap: .4rem; padding-bottom: .5rem; }
  .page-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; scrollbar-width: none; }
  .page-nav ul { justify-content: flex-start; gap: 1.4rem; }
  .split, .cta .wrap { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-list li, .steps-list li + li { padding: 0; border-left: 0; }
  .steps-list li + li { border-top: 1px solid rgba(255,255,255,.14); padding-top: 2.5rem; }
}
@media (max-width: 52rem) {
  .brand span { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .eyebrow.center::before, .eyebrow.center::after { display: none; }
  .hero-plate { grid-template-columns: 1fr 1fr; }
  .hero-plate figure:nth-child(2) { display: none; }
  .hero-plate figure::after { inset: 8px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .work-grid a::after { display: none; }
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; text-align: center; }
  .service-list h3 { font-size: 1.55rem; }
  .service-list li { grid-template-columns: 2.6rem 1fr; }
}