
/* ===== EDIT HERE: colours ===== */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F4F1ED;
  --ink: #161413;
  --soft: #7A736D;
  --line: #D8D2CB;
  --accent: #6E1F2A;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.75,.15,1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #141312; --bg-2: #1E1C1A; --ink: #F0ECE7; --soft: #A69F98; --line: #36322F; --accent: #E2A0AA; }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.15rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.sans { font-family: var(--sans); }
.small { font-family: var(--sans); font-size: .8rem; color: var(--soft); }

/* ===== Motion helpers ===== */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
.letters .l { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.letters.in .l { transform: none; }
.fade { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.fade.in { opacity: 1; transform: none; }
.rule-draw { height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.rule-draw.in { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .split .w > span, .letters .l, .fade, .rule-draw, .photo-wrap, .photo-wrap img, .tool { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* ===== Header ===== */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.bar { display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; }
.bar .name { font-family: var(--display); font-size: 1.35rem; text-decoration: none; letter-spacing: .02em; }
.bar nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-family: var(--sans); font-size: .88rem; }
.bar nav a { text-decoration: none; position: relative; padding-bottom: 3px; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.bar nav a:hover::after, .bar nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }


/* ===== Hero ===== */
.hero { position: relative; padding-top: clamp(1rem, 3vw, 2rem); min-height: calc(100svh - 70px); display: grid; grid-template-columns: 1fr minmax(260px, 38%) 1fr; grid-template-rows: auto 1fr auto; }
.hero .meta-l, .hero .meta-r { font-family: var(--sans); font-size: .82rem; color: var(--soft); line-height: 1.5; }
.hero .meta-l { grid-column: 1; grid-row: 1; }
.hero .meta-r { grid-column: 3; grid-row: 1; text-align: right; }
.photo-wrap { grid-column: 2; grid-row: 1 / 3; margin-top: clamp(1rem, 4vw, 2.5rem); position: relative; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease) .2s; }
.photo-wrap.in { clip-path: inset(0 0 0 0); }
.photo-wrap img { width: 100%; height: 100%; max-height: 74svh; object-fit: cover; object-position: center 28%; transform: scale(1.25); transition: transform 2.2s var(--ease) .2s; will-change: transform; }
.photo-wrap.in img { transform: scale(1); }
.bigname { grid-column: 1 / -1; grid-row: 2; align-self: end; position: relative; z-index: 2; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 15.5vw, 15rem); line-height: .82; letter-spacing: -.035em; text-align: center; color: var(--ink); white-space: nowrap; overflow: hidden; padding-bottom: .04em; }
.bigname.on-photo { color: #fff; z-index: 3; pointer-events: none; clip-path: inset(0 100% 0 0); }
.hero .tag { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: end; padding-block: 1.5rem 2rem; }
.hero .tag p { margin: 0; }
.hero .tag .lead { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.25; max-width: 22ch; }
.scroll-cue { font-family: var(--sans); font-size: .75rem; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-cue i { width: 1px; height: 42px; background: var(--ink); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero .tag .right { text-align: right; }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; padding-block: 1rem; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marq 32s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.8rem); padding-inline: 1.5rem; }
.marquee span:nth-child(even) { font-style: italic; color: var(--accent); }
.marquee .star { display: inline-block; font-family: var(--sans); font-style: normal; color: var(--ink); animation: spin 8s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Intro ===== */
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(4.5rem, 10vw, 8rem); }
.kicker { font-family: var(--sans); font-size: .82rem; color: var(--accent); font-weight: 600; margin: 0 0 1rem; }
.intro h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 2.5rem; }
.intro h2 em { font-style: italic; }
.cols { columns: 2 17rem; column-gap: 2.5rem; }
.cols p { margin: 0 0 1rem; break-inside: avoid-column; }
.dropcap::first-letter { font-family: var(--display); float: left; font-size: 4.4em; line-height: .8; padding: .06em .1em 0 0; color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--sans); font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); padding: .9rem 1.5rem; border-radius: 999px; margin-top: 1.5rem; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ===== Concept (dark band) ===== */
.concept { background: var(--ink); color: var(--bg); padding-block: clamp(5rem, 12vw, 9rem); }
.concept .kicker { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.statement { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: 1.08; letter-spacing: -.015em; margin: 0; max-width: 20ch; }
.statement .wd { opacity: .14; transition: opacity .6s ease; }
.statement .wd.lit { opacity: 1; }
.statement em { font-style: italic; }
.concept .note { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.concept .note p { margin: 0; max-width: 42ch; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.brand-links { display: flex; flex-direction: column; gap: .25rem; }
.brand-links a { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; text-decoration: none; display: inline-flex; align-items: baseline; gap: 1rem; width: fit-content; transition: transform .5s var(--ease), color .3s; }
.brand-links a small { font-family: var(--sans); font-size: .8rem; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.brand-links a:hover { transform: translateX(14px); font-style: italic; }

/* ===== Index (summary) ===== */
.index { padding-block: clamp(4.5rem, 10vw, 8rem); }
.index-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.index-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; margin: 0; letter-spacing: -.02em; }
.index-head h2 em { font-style: italic; }
.index-head p { margin: 0; color: var(--soft); max-width: 32ch; }
.irow { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1.5rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .5s var(--ease); }
.irow:hover { padding-left: .75rem; }
.irow h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; line-height: 1.1; }
.irow .sub { font-family: var(--sans); font-size: .85rem; color: var(--soft); }
.irow p { margin: 0; }

/* Tools */
.tools-sec { padding-block: 0 clamp(4.5rem, 10vw, 8rem); }
.tools-sec .index-head { margin-bottom: 2.5rem; }
.tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tool { aspect-ratio: 1; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem; opacity: 0; transform: translateY(40px) rotate(-4deg); transition: opacity .9s var(--ease), transform .9s var(--ease), background .4s, border-color .4s; transition-delay: calc(var(--i) * 110ms); }
.tool.in { opacity: 1; transform: none; }
.tool .ic { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; border-radius: 10px; transition: transform .6s var(--ease); }
.tool span.nm { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.tool span.nm small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--soft); margin-top: .3rem; }
.tool:hover { border-color: var(--ink); background: var(--bg-2); }
.tool:hover .ic { transform: rotate(-10deg) scale(1.15); }
.tool.in .ic { animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ic.ps, .ic.lr { background: #001E36; color: #31A8FF; }
.ic.ca { background: linear-gradient(135deg, #00C4CC, #7D2AE8); color: #fff; }
.ic.rw { background: #111; color: #fff; border: 1px solid #444; }
.ic.mc { background: #FFE01B; color: #241C15; }

/* CTA */
.cta { text-align: center; padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--ink); }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -.03em; margin: 0; }
.cta h2 em { font-style: italic; color: var(--accent); }

/* ===== Portfolio ===== */
.p-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: end; border-bottom: 1px solid var(--ink); }
.p-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 12vw, 10rem); line-height: .85; letter-spacing: -.035em; margin: 0; }
.p-head h1 em { font-style: italic; }
.p-head p { margin: 0; color: var(--soft); max-width: 32ch; }
.spread { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.spread.flip { grid-template-columns: 1fr 1.2fr; }
.spread.flip .stage { order: 2; }
.stage { aspect-ratio: 4 / 4.4; display: grid; place-items: center; position: relative; overflow: hidden; }
.stage > * { transition: transform 1.2s var(--ease); }
.spread:hover .stage > *:not(.cap) { transform: scale(1.05) rotate(-1deg); }
.stage .cap { position: absolute; left: 1rem; bottom: .8rem; font-family: var(--sans); font-size: .72rem; opacity: .7; }
.spread h2 { font-weight: 400; font-size: clamp(3.2rem, 8vw, 6rem); line-height: .9; margin: 0 0 1.25rem; }
.spread p { margin: 0 0 1rem; max-width: 44ch; }
.spread dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .85rem; }
.spread dt { color: var(--soft); }
.spread dd { margin: 0; }
.chips { display: flex; gap: .35rem; }
.chips i { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--line); }

.cure .stage { background: #141414; color: #EEE; }
.cure h2 { font-family: var(--display); letter-spacing: .1em; }
.jar { width: 190px; height: 230px; background: #E9E3DA; border-radius: 6px 6px 14px 14px; position: relative; display: grid; place-items: center; box-shadow: inset -18px 0 30px rgba(0,0,0,.14); }
.jar::before { content: ""; position: absolute; top: -24px; left: 10px; right: 10px; height: 24px; background: #2B2B2B; border-radius: 4px 4px 0 0; }
.jar .lbl { background: #F7F4EF; width: 76%; padding: 1.1rem .4rem; text-align: center; color: #141414; border: 1px solid #141414; font-family: var(--display); }
.jar .lbl b { display: block; font-size: 1.8rem; letter-spacing: .14em; font-weight: 500; }
.jar .lbl i { font-size: .75rem; }

.domenica .stage { background: #A8321E; color: #FBF5EC; }
.domenica h2 { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; color: #A8321E; }
@media (prefers-color-scheme: dark) { .domenica h2 { color: #E8806B; } }
.menu { background: #FBF5EC; color: #3B2316; width: min(260px, 78%); padding: 1.8rem 1.5rem; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; box-shadow: 0 18px 40px rgba(60,20,10,.35); rotate: -3deg; }
.menu .logo { font-style: italic; font-weight: 600; font-size: 2.1rem; color: #A8321E; line-height: 1; }
.menu .bottle { width: 20px; height: 42px; margin: 1.1rem auto .3rem; background: #4E5B2E; border-radius: 5px 5px 3px 3px; position: relative; }
.menu .bottle::before { content: ""; position: absolute; left: 6px; top: -12px; width: 8px; height: 12px; background: #4E5B2E; }
.menu .bottle::after { content: ""; position: absolute; left: 8px; top: -24px; width: 4px; height: 11px; background: #F2D27A; border-radius: 50%; animation: flicker 2.5s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scaleY(1); opacity: 1; } 40% { transform: scaleY(.85) skewX(4deg); opacity: .85; } 70% { transform: scaleY(1.08) skewX(-3deg); } }
.menu p { margin: .35rem 0; font-size: 1rem; }
.menu p span { display: block; font-style: italic; font-size: .8rem; opacity: .7; }

.reve .stage { background: linear-gradient(160deg, #EBD6D8, #F6E8DE); color: #4A3A3E; }
.reve h2 { font-family: "Italiana", Georgia, serif; letter-spacing: .04em; }
.bottles { display: flex; gap: 1.1rem; align-items: flex-end; }
.bp { width: 70px; border-radius: 10px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); position: relative; display: grid; place-items: end center; padding-bottom: .9rem; font-family: "Italiana", Georgia, serif; font-size: .72rem; color: #4A3A3E; text-align: center; line-height: 1.2; animation: bob 5s ease-in-out infinite; }
.bp::before { content: ""; position: absolute; top: -21px; left: 50%; transform: translateX(-50%); width: 27px; height: 21px; background: #D9BFB5; border-radius: 4px 4px 0 0; }
.bp.a { height: 145px; background: rgba(240,224,205,.75); animation-delay: .6s; } .bp.b { height: 180px; } .bp.c { height: 145px; background: rgba(240,205,212,.75); animation-delay: 1.2s; }

.client { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.client h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1; margin: 0 0 .75rem; }
.client .role { font-family: var(--sans); font-size: .85rem; color: var(--soft); margin: 0; }
.client ul { list-style: none; margin: 0; padding: 0; }
.client li { padding: .9rem 0; border-top: 1px solid var(--line); }
.client li:first-child { border-top: 0; padding-top: 0; }

/* ===== Contact ===== */
.contact { min-height: 70svh; display: grid; place-content: center; text-align: center; padding-block: 4rem; }
.contact h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 12vw, 10rem); line-height: .88; letter-spacing: -.035em; margin: 0 0 2rem; }
.contact h1 em { font-style: italic; color: var(--accent); }
.contact p { color: var(--soft); margin: 0 0 1.5rem; }
.email { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.4rem); text-decoration: none; position: relative; width: fit-content; margin-inline: auto; }
.email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform-origin: left; animation: draw 1.4s var(--ease) .8s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--ink); padding-block: 2rem 2.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-family: var(--sans); font-size: .85rem; }
footer p.fname { font-family: var(--display); font-size: 1.6rem; margin: 0 0 .5rem; color: var(--ink); }
footer p { margin: 0; color: var(--soft); line-height: 1.8; }
footer a { text-decoration: none; display: block; line-height: 1.9; }
footer a:hover { color: var(--accent); }

/* ===== Mobile ===== */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: auto; }
  .hero .meta-l { grid-column: 1; }
  .hero .meta-r { grid-column: 2; }
  .photo-wrap { grid-column: 1 / -1; grid-row: 2; margin: 1.5rem 12% 0; }
  .photo-wrap img { max-height: 62svh; }
  .bigname { grid-row: 2; font-size: 17vw; margin-bottom: -.05em; }
  .hero .tag { grid-template-columns: 1fr; text-align: left; }
  .hero .tag .right { text-align: left; }
  .scroll-cue { display: none; }
  .intro, .concept .note, .p-head, .spread, .spread.flip, .client { grid-template-columns: 1fr; }
  .spread.flip .stage { order: 0; }
  .irow { grid-template-columns: 1fr; gap: .35rem; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tools .tool:last-child { grid-column: 1 / -1; aspect-ratio: 2.1; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div:first-child { grid-column: 1 / -1; }
}

/* =====================================================
   PORTFOLIO INDEX + CASE STUDY PAGES
   ===================================================== */
.bar nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Portfolio list */
.work-list { border-top: 1px solid var(--ink); }
.work-item { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.work-item .cat { font-family: var(--sans); font-size: .82rem; color: var(--soft); }
.work-item .cat b { display: block; color: var(--accent); font-weight: 600; margin-bottom: .25rem; }
.work-item h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .92; letter-spacing: -.025em; margin: 0; transition: transform .7s var(--ease); }
.work-item p { margin: .9rem 0 0; color: var(--soft); max-width: 40ch; transition: color .4s; }
.work-item .thumb { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; transform: scale(.92); transition: transform .8s var(--ease); }
.work-item .go { font-family: var(--sans); font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; }
.work-item .go i { width: 28px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.work-item:hover h2 { transform: translateX(12px); font-style: italic; }
.work-item:hover .thumb { transform: scale(1); }
.work-item:hover .go i { width: 56px; }
.work-item:hover p { color: var(--ink); }
.t-fog { background: #3F5A35; color: #F4EFE3; font-family: var(--display); font-style: italic; font-size: clamp(2rem, 4vw, 3.4rem); }
.t-fog span { display: block; font-family: var(--sans); font-style: normal; font-size: .7rem; margin-top: .4rem; text-align: center; opacity: .8; }
.t-concept { background: #141414; display: grid; grid-template-rows: repeat(3, 1fr); place-items: stretch; }
.t-concept div { display: grid; place-items: center; font-size: 1.4rem; }
.t-concept .a { background: #141414; color: #F2EEE8; font-family: var(--display); letter-spacing: .2em; }
.t-concept .b { background: #A8321E; color: #FBF5EC; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; }
.t-concept .c { background: #EBD6D8; color: #4A3A3E; font-family: "Italiana", serif; }
.t-strong { background: #E9DDD3; color: #1C1A19; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; text-align: center; line-height: 1.6; }
.t-strong em { display: block; font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.8rem; }

/* Case study hero */
.cs-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); }
.cs-hero .back { font-family: var(--sans); font-size: .82rem; text-decoration: none; color: var(--soft); display: inline-flex; gap: .5rem; margin-bottom: 2.5rem; }
.cs-hero .back:hover { color: var(--ink); }
.cs-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: .86; letter-spacing: -.035em; margin: 0 0 2rem; }
.cs-hero h1 em { font-style: italic; color: var(--cs, var(--accent)); }
.cs-hero .deck { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.3; max-width: 30ch; margin: 0 0 3rem; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); font-family: var(--sans); font-size: .9rem; }
.meta dt { color: var(--soft); font-size: .78rem; margin-bottom: .3rem; }
.meta dd { margin: 0; }

/* Image slots: drop a file into /images with the matching name and it appears */
.shot { position: relative; overflow: hidden; background: var(--bg-2); margin: 0; }
.shot::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; font-family: var(--sans); font-size: .8rem; color: var(--soft); background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.4s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; font-family: var(--sans); font-size: .72rem; padding: .5rem .75rem; background: var(--bg); color: var(--ink); }
.r-16x9 { aspect-ratio: 16 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-1x1 { aspect-ratio: 1; } .r-3x4 { aspect-ratio: 3 / 4; } .r-tall { aspect-ratio: 9 / 16; }
.cover-shot { margin-bottom: clamp(3rem, 8vw, 6rem); clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); }
.cover-shot.in { clip-path: inset(0); }

/* Case study blocks */
.cs-block { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.cs-block .side { position: sticky; top: 90px; align-self: start; }
.cs-block .side h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin: 0; }
.cs-block .side h2 em { font-style: italic; }
.cs-block .body > p { margin: 0 0 1.1rem; max-width: 60ch; }
.cs-block .body > p.big { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; max-width: 32ch; }
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.g-asym { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-top: 2rem; align-items: end; }
.g-asym .stack { display: grid; gap: 1rem; }

.items { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.items li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.items li:last-child { border-bottom: 1px solid var(--line); }
.items h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.items h3 small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--soft); margin-top: .35rem; }
.items p { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--ink); }
.stat { padding: clamp(1.5rem, 4vw, 2.5rem) 1rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: var(--cs, var(--accent)); }
.stat span { font-family: var(--sans); font-size: .85rem; color: var(--soft); }

.cs-quote { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); background: var(--cs-band, var(--ink)); color: #fff; }
.cs-quote p { font-family: var(--display); font-style: italic; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.05; margin: 0 auto; max-width: 18ch; }
.cs-quote small { display: block; font-family: var(--sans); font-size: .8rem; opacity: .7; margin-top: 1.5rem; }

/* Instagram-style carousel (STRONG) */
.carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
.carousel .shot { flex: 0 0 min(78%, 340px); scroll-snap-align: start; }
.carousel::-webkit-scrollbar { height: 4px; } .carousel::-webkit-scrollbar-thumb { background: var(--line); }
.ig { border: 1px solid var(--line); max-width: 460px; margin-top: 2rem; background: var(--bg); }
.ig-top { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.ig-top i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #E9DDD3, #1C1A19); }
.ig-cap { padding: 1rem; font-family: var(--sans); font-size: .9rem; line-height: 1.55; border-top: 1px solid var(--line); }
.ig-cap b { font-weight: 600; }
.ig-cap .tags { color: #4A6FA5; display: block; margin-top: .6rem; }

/* Concept brand chapter nav */
.chapters { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; font-family: var(--sans); font-size: .85rem; }
.chapters a { text-decoration: none; border: 1px solid var(--line); padding: .55rem 1.1rem; border-radius: 999px; transition: border-color .3s, background .3s; }
.chapters a:hover { border-color: var(--ink); background: var(--bg-2); }

/* Next project */
.next { display: block; text-decoration: none; text-align: center; padding-block: clamp(4rem, 10vw, 7rem); border-top: 1px solid var(--ink); }
.next small { font-family: var(--sans); font-size: .82rem; color: var(--soft); }
.next b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 10vw, 8rem); line-height: .9; letter-spacing: -.03em; margin-top: .75rem; transition: transform .8s var(--ease), color .4s; }
.next:hover b { font-style: italic; color: var(--cs-next, var(--accent)); transform: scale(1.02); }

@media (max-width: 820px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item .thumb { order: -1; aspect-ratio: 16 / 10; transform: none; }
  .meta { grid-template-columns: 1fr 1fr; }
  .cs-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-block .side { position: static; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .g-asym { grid-template-columns: 1fr; }
  .items li { grid-template-columns: 1fr; gap: .5rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

/* ===== Minimal portfolio grid ===== */
.pf-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.pf-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; margin: 0 0 .75rem; }
.pf-head p { margin: 0; color: var(--soft); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.pf-card { text-decoration: none; display: block; }
.pf-img { aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; margin-bottom: 1.1rem; }
.pf-img img { transition: transform 1s var(--ease); }
.pf-card:hover .pf-img img, .pf-card:hover .pf-img span { transform: scale(1.04); }
.pf-fog { background: #FFFFFF; border: 1px solid var(--line); }
.pf-fog img { width: 78%; }
.pf-cure { background: #CFD2D5; }
.pf-cure img { width: 88%; }
.pf-strong { background: #ECE3DA; color: #1C1A19; }
.pf-strong span { font-family: var(--sans); font-weight: 600; letter-spacing: .18em; font-size: 1rem; transition: transform 1s var(--ease); }
.pf-strong em { font-family: var(--display); font-weight: 400; letter-spacing: 0; padding-inline: .3rem; }
.pf-card h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0 0 .3rem; }
.pf-card p { margin: 0; font-family: var(--sans); font-size: .82rem; color: var(--soft); }
.pf-card:hover h2 { font-style: italic; }

.logo-shot { background: #FFFFFF; border: 1px solid var(--line); }
.logo-shot img { object-fit: contain; padding: 12% 18%; }
.stage.cure-logo { background: #CFD2D5; }
.stage.cure-logo img { width: 82%; }

@media (max-width: 820px) {
  .pf-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pf-img { aspect-ratio: 4 / 3.4; }
}
.pf-grid { grid-template-columns: repeat(4, 1fr); }
.pf-domenica { background: #A8321E; color: #FBF5EC; }
.pf-domenica span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.3rem); transition: transform 1s var(--ease); }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }
.shot::before { white-space: pre-line; }
.pf-cure img, .stage.cure-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-img, .pf-img.pf-fog, .pf-img.pf-cure, .pf-img.pf-strong, .pf-img.pf-domenica { aspect-ratio: 1 / 1; }
.logo-shot.r-16x9 { aspect-ratio: 1 / 1; max-width: 640px; margin-inline: auto; }
.stage.cure-logo { aspect-ratio: 1 / 1; }
.pf-domenica { background: #2B1E16; }
.pf-domenica img { width: 100%; height: 100%; object-fit: cover; }

/* Five portfolio cards: 3 across */
.pf-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-photo { background: var(--ink); color: var(--bg); }
.pf-photo span { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); transition: transform 1s var(--ease); }

/* =====================================================
   EDITORIAL REFRESH: clean sans + italic serif, light paper, burgundy titles
   ===================================================== */
:root {
  color-scheme: light !important;
  --bg: #F2F1ED !important;
  --bg-2: #E8E6E1 !important;
  --ink: #141414 !important;
  --soft: #6F6B66 !important;
  --line: #CFCBC4 !important;
  --rule: #141414 !important;
  --accent: #6B1424 !important;
  --cs: #6B1424 !important;
  --cs-next: #6B1424 !important;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  --body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  --serif-it: "Instrument Serif", "Times New Roman", serif;
}
body { font-size: 1.02rem; line-height: 1.65; letter-spacing: -.005em; }

/* Headlines: tight, confident sans */
h1, h2, .bigname, .masthead, .next b, .cta h2, .contact h1, .statement { font-weight: 600 !important; letter-spacing: -.045em !important; }
.irow h3, .client h2, .pf-card h2, .tool span.nm, .brand-links a, .coverline b, .work-item h2 { font-weight: 500 !important; letter-spacing: -.025em !important; }

/* Every italic accent becomes a soft editorial serif in burgundy */
h1 em, h2 em, h3 em, .statement em, .cta h2 em, .contact h1 em, .cs-hero h1 em, .p-head h1 em, .intro h2 em, .index-head h2 em, .cs-block .side h2 em {
  font-family: var(--serif-it) !important; font-style: italic !important; font-weight: 400 !important; letter-spacing: -.01em !important; color: var(--accent) !important;
}
.hero .tag .lead, .cs-hero .deck, .cs-quote p, .pull, .sign, .feed-sub, .ph-empty, .pf-photo span, .t-strong em, .pf-strong em, .marquee span:nth-child(even) {
  font-family: var(--serif-it) !important; font-style: italic !important; font-weight: 400 !important; letter-spacing: 0 !important;
}
.next:hover b, .work-item:hover h2, .pf-card:hover h2, .brand-links a:hover { font-family: var(--serif-it) !important; font-style: italic !important; font-weight: 400 !important; letter-spacing: -.01em !important; }
.kicker { color: var(--accent) !important; font-weight: 500 !important; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem !important; }
.dropcap::first-letter { font-family: var(--serif-it); font-weight: 400; color: var(--accent); }

/* Dark bands stay dark on purpose */
.concept, .services { background: #141414 !important; color: #F2F1ED !important; }
.concept .statement em { color: #D9A3AE !important; }

/* Compact case-study header so the work shows sooner */
.cs-hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem) !important; }
.cs-hero .back { margin-bottom: 1.25rem !important; }
.cs-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important; line-height: .95 !important; margin: 0 0 .9rem !important; }
.cs-hero .deck { font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important; margin: 0 0 1.5rem !important; max-width: 62ch !important; }
.meta { padding-top: .9rem !important; font-size: .82rem !important; }

/* ===== Portfolio index: numbered list beside an intro ===== */
.pl { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem); min-height: calc(100svh - 160px); }
.pl-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.pl-intro h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin: 0 0 1.25rem; text-transform: uppercase; letter-spacing: -.03em !important; }
.pl-intro p { margin: 0; max-width: 40ch; font-size: .95rem; color: var(--soft); }
.pl-types { display: grid; grid-template-columns: auto 1fr; gap: .2rem 2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pl-types dt { color: var(--soft); }
.pl-types dd { margin: 0; }
.pl-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.pl-list a { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1.5px solid var(--ink); text-decoration: none; }
.pl-list li:last-child a { border-bottom: 1.5px solid var(--ink); }
.pl-num { font-size: .9rem; font-weight: 500; }
.pl-name { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; transition: transform .5s var(--ease); }
.pl-name small { display: block; font-size: .75rem; font-weight: 400; color: var(--soft); letter-spacing: 0; margin-top: .15rem; }
.pl-thumb { width: clamp(64px, 8vw, 92px); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: var(--bg-2); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pl-thumb.contain img { object-fit: contain; padding: 10%; background: #fff; }
.pl-thumb.word { background: #141414; color: #F2F1ED; font-family: var(--serif-it); font-style: italic; font-size: .95rem; }
.pl-thumb.strong { background: #E9DDD3; color: #1C1A19; font-size: .6rem; font-weight: 600; letter-spacing: .12em; }
.pl-list a:hover .pl-name { transform: translateX(8px); }
.pl-list a:hover .pl-name > span { font-family: var(--serif-it); font-style: italic; color: var(--accent); }
.pl-list a:hover .pl-thumb img { transform: scale(1.08); }
@media (max-width: 820px) { .pl { grid-template-columns: 1fr; min-height: 0; } .pl-intro { gap: 2rem; } }

/* ===== Contact form ===== */
.ct { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6rem); }
.ct h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; margin: 0 0 1.25rem; }
.ct-intro p { color: var(--soft); max-width: 36ch; margin: 0 0 2rem; }
.ct-mail { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.ct-mail a { font-size: 1.05rem; font-weight: 500; text-decoration: none; }
.ct-copy { appearance: none; border: 1px solid var(--ink); background: none; color: var(--ink); font: inherit; font-size: .78rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.ct-copy:hover, .ct-copy.done { background: var(--ink); color: var(--bg); }
.ct-form { display: grid; gap: 1.1rem; }
.ct-form label { display: grid; gap: .4rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); }
.ct-form input, .ct-form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: .55rem 0; border-radius: 0; text-transform: none; letter-spacing: 0; }
.ct-form textarea { min-height: 9rem; resize: vertical; border: 1.5px solid var(--ink); padding: .8rem; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--accent); }
.ct-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ct-send { justify-self: start; appearance: none; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; font-size: .9rem; padding: .9rem 1.8rem; border-radius: 999px; cursor: pointer; transition: background .3s; }
.ct-send:hover { background: var(--accent); }
.ct-send:disabled { opacity: .5; cursor: default; }
.ct-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.ct-status.ok { color: #2F6B3A; } .ct-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 820px) { .ct { grid-template-columns: 1fr; } .ct-form .row2 { grid-template-columns: 1fr; } }
/* one-line project facts */
.meta { display: flex !important; flex-wrap: wrap; gap: .4rem 2.5rem; }
.meta > div { display: flex; gap: .5rem; align-items: baseline; }
.meta dt { margin: 0 !important; }
.cs-hero .back { margin-bottom: .9rem !important; }
.cs-hero .kicker { margin-bottom: .5rem !important; }
.cs-hero .deck { margin-bottom: 1.1rem !important; }
.feed { padding-top: clamp(1rem, 2.5vw, 1.75rem) !important; }
.pl-thumb.strong { text-align: center; line-height: 1.3; }

.pl-thumb.white { background: #fff; }
.pl-thumb.white img { object-fit: contain; }
