/* Raspberry South — no frameworks, no web fonts, no JavaScript. */
:root {
  --paper: #f6f2ec;
  --paper-2: #ece6dd;
  --ink: #17141b;
  --ink-2: #221e27;
  --muted: #6c6570;
  --line: #d9d1c6;
  --rasp: #d7263d;
  --rasp-dark: #a8172b;
  --leaf: #2f8f4e;
  --radius: 14px;
  --wrap: 1180px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--rasp-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rasp); }
.mark { width: 34px; height: 40px; flex: none; }
.wm { display: flex; flex-direction: column; color: var(--ink); line-height: 1; }
.wm b { font-size: 1.22rem; letter-spacing: -0.03em; font-weight: 800; }
.wm small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
header nav { display: flex; align-items: center; gap: 4px; }
header nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 99px; }
header nav a:hover, header nav a[aria-current] { background: var(--paper-2); }
header nav a.btn { color: #fff; margin-left: 6px; }
header nav a.btn:hover { background: var(--rasp-dark); }
.nt, .burger { display: none; }

/* buttons */
.btn { display: inline-block; background: var(--rasp); color: #fff; text-decoration: none; font-weight: 650; padding: 13px 22px;
  border-radius: 99px; border: 2px solid var(--rasp); transition: background .15s, color .15s; margin: 4px 6px 4px 0; }
.btn:hover { background: var(--rasp-dark); border-color: var(--rasp-dark); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.sm { padding: 8px 16px; margin: 0; }
.btn.big { font-size: clamp(1rem, 2.4vw, 1.35rem); padding: 16px 28px; }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.tint { background: var(--paper-2); }
.dark { background: var(--ink); color: #eee8e1; }
.dark a:not(.btn) { color: #ff8a98; }
.dark .btn.ghost:hover { background: #fff; color: var(--ink); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--rasp); margin-bottom: 1em; }
.kicker a { color: inherit; text-decoration: none; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.dark .lede { color: #b9b1ba; }
.big { font-size: clamp(1.8rem, 4vw, 3.2rem); max-width: 22ch; margin-bottom: 1.2em; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > figure { position: sticky; top: 100px; }
.prose { max-width: 62ch; }
figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
figure.tall img { aspect-ratio: 4 / 5; }

/* home hero */
.home-hero { padding-top: clamp(40px, 6vw, 80px); }
.home-hero .split { align-items: center; }
.home-hero .lede { margin-bottom: 1.6em; }
.round img { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 14px var(--paper), 0 0 0 15px var(--line); }
.home-hero h1 span { color: var(--rasp); }

/* page hero */
.hero { position: relative; background: var(--ink); color: #fff; padding: clamp(80px, 12vw, 160px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,20,27,.94) 0%, rgba(23,20,27,.78) 45%, rgba(23,20,27,.35) 100%); }
.hero h1 { max-width: 18ch; }
.hero .lede { color: #d8d0d3; max-width: 60ch; }
.hero .kicker { color: #ff7d8d; }
.doc-hero { padding-bottom: 0; }
.doc-hero h1 { max-width: 20ch; }

/* marquee */
section.dark:has(.marquee) { padding: 22px 0; }
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none; animation: scroll 90s linear infinite; }
.marquee li { white-space: nowrap; font-weight: 650; font-size: 1.05rem; padding: 0 22px; position: relative; }
.marquee li::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--rasp); }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; } .marquee { overflow-x: auto; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px;
  color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(23,20,27,.35); }
.svc img { border-radius: 9px; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.svc h3, .svc p, .svc .more, .svc .num { padding: 0 8px; }
.svc p { color: var(--muted); font-size: .97rem; flex: 1; }
.num { font-variant-numeric: tabular-nums; color: var(--rasp); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.more { font-weight: 650; color: var(--rasp-dark); }

/* cards */
.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 6px; position: relative; }
.card::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--rasp); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .96rem; }
.tint .card { background: var(--paper); }

/* trusted, lists */
.trusted ul, .tags { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.trusted li { border: 1px solid #3b3540; border-radius: 99px; padding: 8px 16px; font-weight: 600; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: .92rem; }
.cols { columns: 2; column-gap: 28px; padding: 0; list-style: none; }
.cols li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cols.small { columns: 3 200px; font-size: .94rem; }
.showlist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }
.showlist li::after { content: "•"; color: var(--rasp); margin: 0 .55em; }
.showlist li:last-child::after { content: none; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: .5em; }
.steps li::marker { color: var(--rasp); font-weight: 700; }

/* team */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.member { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.member img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.member:hover img { filter: none; }
.member .n { font-weight: 700; font-size: 1.08rem; }
.member .r { color: var(--muted); font-size: .9rem; }
.profile .split { grid-template-columns: .8fr 1.2fr; }
.portrait img { aspect-ratio: 4 / 5; }
.role { font-size: 1.2rem; color: var(--rasp-dark); font-weight: 600; margin-top: -.3em; }
.next { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; border-top: 1px solid var(--line); padding-top: 24px; }
.next .kicker { font-size: .78rem; letter-spacing: .16em; }

/* quotes */
.quotes { columns: 2 340px; column-gap: 22px; }
blockquote { break-inside: avoid; margin: 0 0 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
blockquote p { font-size: 1.08rem; }
blockquote footer { display: flex; flex-direction: column; font-size: .92rem; }
blockquote footer span { color: var(--muted); }

/* galleries */
section.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 0; }
section.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery img { aspect-ratio: 3 / 4; }
.stack-imgs { display: grid; gap: 14px; }

/* docs */
.doc { max-width: 820px; }
.doc h3 { font-size: 1.6rem; margin-top: 1.8em; padding-top: .8em; border-top: 1px solid var(--line); }
.doc h2 { margin-top: 1.4em; }
.doc .step { display: flex; gap: 14px; }
.doc .step b { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; }
.doc .shot { margin: 1.2em 0 1.6em; }
.doc .shot img { border: 1px solid var(--line); width: auto; }
.checks { list-style: none; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 18px; }
.checks li { padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--paper-2); }
.checks li:last-child { border: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--muted); }
.checks li.on::before { background: var(--rasp); border-color: var(--rasp); }
.checks li.on::after { content: ""; position: absolute; left: 5px; top: 12px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* cta / contact */
.cta { background: var(--rasp); color: #fff; }
.cta h2 { max-width: 20ch; }
.cta p { max-width: 60ch; color: #ffe3e6; font-size: 1.08rem; }
.cta .btn { background: #fff; color: var(--rasp-dark); border-color: #fff; }
.cta .btn.ghost { background: transparent; color: #fff; }
.cta .btn.ghost:hover { background: #fff; color: var(--rasp-dark); }
.contact { min-height: 60vh; }
.addr address { font-style: normal; margin-bottom: 1.4em; }

/* footer */
footer.site { background: var(--ink); color: #bdb5bd; padding: 64px 0 28px; font-size: .95rem; }
footer.site a { color: #fff; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fh { color: #fff; font-weight: 700; margin-bottom: .6em; }
.legal { border-top: 1px solid #36303a; margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* responsive */
@media (max-width: 980px) {
  .services, .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  section.gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .nt:checked + .burger span { background: transparent; }
  .nt:checked + .burger span::before { transform: translateY(7px) rotate(45deg); }
  .nt:checked + .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .nt:checked ~ nav { display: flex; }
  header nav a { padding: 12px; font-size: 1.05rem; }
  header nav a.btn { margin: 8px 0 0; text-align: center; }
  .split, .profile .split, .fgrid { grid-template-columns: 1fr; }
  .split > figure { position: static; }
  .round { max-width: 380px; }
  .portrait { max-width: 340px; }
  .hero::after { background: rgba(23,20,27,.8); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header.site { padding: 10px 16px; }
  .services, .cards.two, .cards.three, .cards.four, section.gallery, section.gallery.three { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .team { grid-template-columns: 1fr 1fr; gap: 14px; }
  .wm small { letter-spacing: .22em; }
}

/* homepage hero: crossfade between desk shots, 6s each. All photos share one grid cell. */
.home-hero .split > .rotator { position: static; }
.home-hero .rotator { display: grid; width: 100%; max-width: 480px; justify-self: center; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 14px var(--paper), 0 0 0 15px var(--line); }
.home-hero .rotator img { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; box-shadow: none;
  opacity: 0; animation: fade 24s infinite; animation-delay: calc(var(--start, 0s) + var(--i) * 6s); }
.rotator img:nth-child(1) { --i: 0; } .rotator img:nth-child(2) { --i: 1; } .rotator img:nth-child(3) { --i: 2; } .rotator img:nth-child(4) { --i: 3; }
@keyframes fade { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rotator img { animation: none; } .rotator img:first-child { opacity: 1; } }
/* tablets: keep text and circle side by side rather than stacking */
@media (min-width: 641px) and (max-width: 860px) {
  .home-hero .split { grid-template-columns: 1.4fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .home-hero { padding-bottom: 48px; }
  .home-hero .split { gap: 36px; }
  /* phones: wide rounded photo instead of a small circle */
  .home-hero .rotator { max-width: none; border-radius: var(--radius); box-shadow: none; }
  .home-hero .rotator img { aspect-ratio: 16 / 11; }
}
