/* adlc.tech — portfolio styles */
:root {
  --bg: #F7F4EF;
  --surface: #EFEAE2;
  --ink: #1A1F36;
  --muted: #555B70;
  --navy: #1B2A6B;
  --accent: #D4551F;      /* buttons, marks */
  --accent-ink: #B4461A;  /* accent used as text: AA on --bg */
  --line: #DAD3C7;
  --radius: 18px;
  --maxw: 1080px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,244,239,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--serif); color: var(--accent-ink); text-decoration: none; font-size: 20px; line-height: 1.05; }
.logo em { display: block; padding-left: 14px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn-sm { color: #fff; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 600; }
.arrow { transition: transform .15s; }
a:hover .arrow { transform: translate(2px,-2px); }

/* Hero */
.hero { padding: 40px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.kicker { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--navy); font-size: clamp(40px, 7vw, 76px); line-height: 1.08; margin: 0 auto 20px; max-width: 16ch; text-wrap: balance; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 38ch; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 40px 0 0; }
.proof div { background: var(--bg); padding: 22px 18px; text-align: center; }
.proof b { display: block; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); line-height: 1.1; }
.proof span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2, .page-title { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--navy); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 52ch; }

/* Case cards */
.cases { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.case-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26,31,54,.12); }
.case-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.case-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #ddd5c9; }
.case-card.featured .thumb { aspect-ratio: auto; min-height: 100%; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .thumb img { transform: scale(1.03); }
.case-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: #F6DED2; padding: 4px 10px; border-radius: 999px; }
.case-card h3 { font-size: 24px; margin: 0; line-height: 1.2; }
.case-card p { margin: 0; color: var(--muted); font-size: 16px; }
.metric-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.metric-row div b { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); line-height: 1.1; }
.metric-row div span { font-size: 13px; color: var(--muted); }
.read { font-weight: 600; font-size: 15px; color: var(--ink); }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } .case-card.featured { grid-template-columns: 1fr; } .case-card.featured .thumb { aspect-ratio: 16/9; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about h2 { text-align: left; }
.about p { margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { list-style: none; background: #DCE2F5; color: var(--navy); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chips { padding: 0; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 12px; } }

/* Brands */
.brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.brands img { height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.brands img:hover { filter: none; opacity: 1; }
.brands-label { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; }

/* Contact */
.contact { background: var(--navy); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.contact h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 10px; }
.contact p { color: #C9D0EA; margin: 0 0 26px; }
.contact .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact .btn-ghost { border-color: #fff; color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--navy); }

.site-footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Case study page */
.cs-hero { padding: 48px 0 24px; }
.back { display: inline-block; font-size: 15px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: var(--ink); }
.cs-hero .page-title { margin-bottom: 14px; }
.cs-hero .summary { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0; }
.cs-cover { border-radius: var(--radius); overflow: hidden; margin: 30px 0 10px; background: #ddd5c9; }
.cs-cover img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0 8px; }
.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.results div { background: var(--surface); border-radius: 14px; padding: 18px; }
.results b { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1.1; }
.results span { font-size: 14px; color: var(--muted); }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--navy); font-size: 30px; margin: 46px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.gallery img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; background: #ddd5c9; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 26px; text-decoration: none; margin-top: 56px; }
.next-case span { color: var(--muted); font-size: 14px; }
.next-case b { display: block; font-size: 22px; }



/* ============ Motion & micro-interactions ============ */
:root { --ease-spring: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.22, 1, .36, 1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero stage: floating cards spring in from off-axis, like the Framer original */
.hero-stage { position: relative; max-width: 760px; margin: 0 auto; padding: 70px 0 40px; }
.float { position: absolute; width: 118px; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(26,31,54,.18); z-index: 0;
  transform: rotate(var(--fr)); animation: float-in 1.35s var(--ease-spring) var(--d) both; }
.float img { width: 100%; height: 100%; object-fit: cover; }
.float.f1 { top: 0; left: 2%; height: 128px; }
.float.f2 { top: 6px; right: 3%; width: 110px; height: 116px; }
.float.f3 { bottom: 70px; left: 6%; width: 92px; height: 74px; }
.float.f4 { bottom: 66px; right: 7%; width: 92px; height: 80px; }
.float:hover { animation: none; transform: rotate(0deg) scale(1.08); transition: transform .45s var(--ease-spring); z-index: 3; }
@keyframes float-in {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(25deg) scale(.5); }
  to   { opacity: 1; transform: translate(0, 0) rotate(var(--fr)) scale(1); }
}
.hero-title, .hero .lede, .hero .ctas, .arc { position: relative; z-index: 1; }
.arc { display: block; width: 230px; margin: 0 auto -6px; overflow: visible; animation: fade-in .6s ease-out both; }
.arc text { font-family: var(--sans); font-size: 7.2px; fill: var(--ink); letter-spacing: .02em; }
.hero-title .w { display: inline-block; animation: word-up .9s var(--ease-spring) both; animation-delay: calc(.25s + var(--i) * 70ms); }
@keyframes word-up { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.appear { animation: fade-up .9s var(--ease-spring) var(--d, 0s) both; }
.appear-pop { animation: pop-in 1.3s var(--ease-spring) var(--d, 0s) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero-stage { padding-top: 96px; padding-bottom: 96px; }
  .float.f1 { width: 78px; height: 86px; left: 0; }
  .float.f2 { width: 74px; height: 80px; right: 0; }
  .float.f3 { width: 70px; height: 56px; bottom: 6px; left: 2%; }
  .float.f4 { width: 70px; height: 60px; bottom: 4px; right: 2%; }
}

/* Magnetic primary button + arrow nudge */
.magnetic { transition: transform .25s var(--ease-out), background .15s; will-change: transform; }

/* Scroll reveals */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-spring); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Section illustrations */
.sec-icon { display: block; width: 84px; height: 84px; margin: 0 auto 10px; }
.sec-icon.in { animation: bob 4.5s ease-in-out .9s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
.contact .sec-icon { filter: brightness(0) invert(1); opacity: .9; }

/* Marquees: gallery + logos */
.peek { padding-bottom: 24px; }
.marquee { display: flex; overflow: hidden; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; gap: 16px; padding: 0; margin: 0; list-style: none; flex-shrink: 0; min-width: 100%; justify-content: space-around; animation: marquee var(--speed, 28s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(calc(-100% - 16px)); } to { transform: translateX(0); } }
.peek .track li { width: 230px; height: 300px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: #ddd5c9; transition: transform .4s var(--ease-spring); }
.peek .track li:nth-child(odd) { transform: rotate(-1.5deg); }
.peek .track li:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.peek .track li:hover { transform: rotate(0) scale(1.04); }
.peek .track img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .peek .track li { width: 160px; height: 210px; } }
.brands-sec { padding: 40px 0 64px; }
.logos .track { align-items: center; gap: 64px; }
.logos .track li { flex-shrink: 0; }
.logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s, transform .25s var(--ease-spring); }
.logos img:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* Case cards: hover badge + image zoom */
.case-card .thumb { position: relative; }
.case-card .badge { position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 99px; background: #2A3132; color: #fff;
  display: grid; place-items: center; font-size: 22px; opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .3s, transform .45s var(--ease-spring); }
.case-card:hover .badge, .case-card:focus-visible .badge { opacity: 1; transform: none; }
.case-card[data-reveal].in:hover { transform: translateY(-4px); }

/* "What I bring": tilted pills that drop in and straighten on hover */
.pills { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pills li { background: #C9D6F5; color: var(--navy); font-weight: 500; padding: 12px 24px; border-radius: 999px; font-size: 17px; transform: rotate(var(--r)); transition: transform .5s var(--ease-spring), background .2s; cursor: default; }
.pills li:nth-child(3n+2) { background: #F6DED2; color: var(--accent-ink); }
.pills li:hover { transform: rotate(0) scale(1.06); }
.pills li[data-reveal] { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -2)); transition: opacity .5s ease-out var(--d), transform 1s var(--ease-spring) var(--d); }
.pills li[data-reveal].in { opacity: 1; transform: rotate(var(--r)); }
.pills li[data-reveal].in:hover { transform: rotate(0) scale(1.06); transition-delay: 0ms; }

.for-banner { display: inline-block; margin: 0 auto 14px; padding: 6px 14px; border-radius: 999px; background: #F6DED2; color: var(--accent-ink); font-size: 14px; font-weight: 600; position: relative; z-index: 1; }

/* Respect reduced motion: no movement, everything visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], .pills li[data-reveal] { opacity: 1 !important; transform: none !important; }
  .pills li { transform: rotate(var(--r)) !important; }
  .float { transform: rotate(var(--fr)) !important; }
  .marquee { overflow-x: auto; }
  .marquee .track[aria-hidden] { display: none; }
}
