/* Landing page below the hero. The hero keeps its own styles in hero/scene.css. */
:root {
  --paper: #F4EEEA; --paper-2: #EDE3DE; --card: #FFFCFA; --line: #DCC3CF;
  --ink: #68204C; --ink-deep: #340323; --ink-soft: #7D3460; --night: #22021A;
  --gold: #E3A82E; --gold-soft: #F1D08A; --bordeaux: #70131F;
  --display: "Archivo", "Overpass", sans-serif;
  --sans: "Overpass", ui-sans-serif, system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
  --wrap: 1160px; --gut: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { background: var(--paper); }
body { font: 17px/1.5 var(--sans); color: var(--ink-deep); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hero { height: 100vh; height: 100svh; min-height: 560px; }
.grain-fixed { position: fixed; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.band { position: relative; padding: clamp(64px, 8vw, 104px) 0; }
.band.alt { background: var(--paper-2); }

/* top bar: hidden over the hero, slides in after it */
.top { position: fixed; z-index: 60; inset: 0 0 auto; background: rgba(244, 238, 234, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.top.on { transform: none; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.top .brand { display: flex; align-items: center; gap: 10px; font: 700 13px var(--mono); letter-spacing: .16em; text-decoration: none; }
.top .brand svg { width: 52px; height: auto; margin: -8px -6px -8px -10px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { font: 700 13px var(--mono); letter-spacing: .04em; text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink-deep); }
.top .cta { padding: 9px 14px; font: 700 13px var(--mono); text-decoration: none; color: var(--paper); background: var(--ink-deep); box-shadow: 3px 3px 0 var(--gold); }

/* section heads */
.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head .kick { margin-bottom: 14px; }
.kick { font: 700 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kick b { color: var(--gold); margin-right: 8px; }
.head h2 { font: 900 clamp(34px, 4.6vw, 60px)/.98 var(--display); font-stretch: 112%; letter-spacing: -.035em; color: var(--ink); text-shadow: 4px 4px 0 var(--gold); max-width: 16em; }
.head p:not(.kick) { margin-top: 18px; max-width: 40em; font-size: 19px; font-weight: 600; color: var(--ink-deep); }

.btn { display: inline-flex; gap: 10px; align-items: center; padding: 13px 20px; font: 700 14px var(--mono); letter-spacing: .03em; color: var(--ink-deep);
  background: var(--card); text-decoration: none; border: 1.6px solid var(--ink-deep); box-shadow: 4px 4px 0 var(--gold); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gold); }
.btn.dark { background: var(--ink-deep); color: var(--paper); }
.link { font: 700 14px var(--mono); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); }
.link:hover { color: var(--ink-deep); }

/* about */
.about > * { max-width: 900px; }
.about h2 { margin-top: 14px; font: 900 clamp(38px, 5vw, 64px)/.95 var(--display); font-stretch: 112%; letter-spacing: -.04em; color: var(--ink); text-shadow: 5px 5px 0 var(--gold); }
.about .lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; font-weight: 600; max-width: 38em; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; }
.roles li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border: 1.4px solid var(--ink-deep); font: 700 13px var(--mono); }
.roles li i { width: 9px; height: 9px; background: var(--c); }

/* work: Feedwrk wide on the left, the two others stacked on the right */
.projects { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 28px; }
.proj { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 2px solid var(--ink-deep); box-shadow: 7px 7px 0 var(--c, var(--ink)); }
.fw-card { grid-row: span 2; }
.proj .ph { display: flex; align-items: center; gap: 14px; }
.proj .ph img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1.4px solid var(--ink-deep); background: var(--paper); }
.proj .ph img.wide { width: auto; height: 30px; border: 0; border-radius: 0; background: none; }
.proj .ph .tag { margin-left: auto; }
.proj h3 { font: 900 22px/1.05 var(--display); font-stretch: 110%; letter-spacing: -.025em; color: var(--ink); }
.tag { display: inline-block; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tag.live { color: #2F6F6A; }
.tag.live::before { content: "● "; }
.proj p { font-size: 15.5px; line-height: 1.5; }
.proj .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proj .shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border: 1.4px solid var(--ink-deep); border-radius: 8px; }
.proj .go { margin-top: auto; align-self: flex-start; }

/* Feedwrk's own "how it works" figure, in Feedwrk's landing colours (light theme tokens) */
.fw-panel { flex: 1; display: grid; place-items: center; min-height: 0; margin: 4px 0 0; padding: clamp(16px, 2.6vw, 32px); background: #e9f0f5; border-radius: 10px; }
.fw-fig { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; font: 400 13px/1 "Inter", ui-sans-serif, system-ui, sans-serif; color: rgba(24, 24, 27, .72); }
.fw-fig text { fill: currentColor; font: inherit; }
.fw-fig .t-strong { fill: #18181b; font-weight: 500; }
.fw-fig .t-mute { fill: rgba(24, 24, 27, .64); font-size: 12px; }
.fw-fig .ln { fill: none; stroke: rgba(24, 24, 27, .4); stroke-width: 1px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fw-fig .ln-key { fill: none; stroke: #0071c6; stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fw-fig .grid { stroke: #e4e4e7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fw-fig .node { fill: #fff; stroke: #d0d0d5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fw-fig .node-key { fill: #fff; stroke: #0071c6; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* tools: the AI Resources board */
.board { background: var(--card); border: 2px solid var(--ink-deep); box-shadow: 10px 10px 0 var(--gold); padding: 26px 22px 22px; }
.map { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: st; }
.map li { position: relative; padding: 16px 10px 14px; border-top: 6px solid var(--accent); display: flex; flex-direction: column; gap: 8px; counter-increment: st; }
.map li + li { border-left: 1px dashed var(--line); }
.st-n { font: 800 15px/1.15 var(--display); color: var(--ink-deep); min-height: 2.4em; }
.st-n::before { content: counter(st); display: block; font: 700 11px var(--mono); color: var(--accent); margin-bottom: 4px; }
.map .chip { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px; background: var(--card); border: 1.4px solid var(--ink-deep);
  box-shadow: 3px 3px 0 var(--accent); font-weight: 700; font-size: 13px; line-height: 1.2; text-decoration: none; white-space: normal; /* the hero's .chip sets nowrap */ transition: transform .15s, box-shadow .15s; }
.map .chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--accent); }
.map .chip img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex: none; }
.map .chip.start { background: var(--gold-soft); box-shadow: 3px 3px 0 var(--ink-deep); }
.map .chip em { position: absolute; top: -10px; right: -6px; padding: 2px 6px; font: 700 9.5px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-deep); background: var(--gold); }
/* tools: what I find most useful */
.mu { margin-top: 40px; }
.mu-h { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mu-cards { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mu-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--card); border: 2px solid var(--ink-deep); box-shadow: 6px 6px 0 var(--gold); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink-deep); transition: transform .15s, box-shadow .15s; }
.mu-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.mu-card img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.mu-card b { display: block; font: 900 20px/1.15 var(--display); color: var(--ink); margin-bottom: 4px; }
.board-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 32px; }
.agent { padding: 22px 24px; background: var(--ink-deep); color: var(--gold-soft); box-shadow: 8px 8px 0 var(--gold); }
.agent b { display: block; font: 800 21px/1.2 var(--display); color: var(--paper); margin-bottom: 4px; }
.agent .cmd { position: relative; margin-top: 14px; padding: 14px 92px 14px 16px; background: var(--night); border: 1px solid #5a2142; }
.agent { min-width: 0; }
.agent code { font: 700 14px/1.6 var(--mono); color: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; font: 700 12px var(--mono); color: var(--ink-deep); background: var(--gold); border: 0; cursor: pointer; }

/* content */
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.post[hidden] { display: none; }
.post { display: flex; flex-direction: column; background: var(--card); border: 1.6px solid var(--ink-deep); box-shadow: 6px 6px 0 var(--c, var(--gold)); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--c, var(--gold)); }
.post .pic { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 1.6px solid var(--ink-deep); background: var(--paper-2); }
.post .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post:hover .pic img { transform: scale(1.03); }
.post .body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.post .row { display: flex; align-items: center; gap: 10px; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.post .row svg { width: 16px; height: 16px; flex: none; }
.post .row .kind { color: var(--c, var(--ink)); }
.post h3 { font: 800 16px/1.3 var(--display); color: var(--ink-deep); }
.post .go { margin-top: auto; font: 700 13px var(--mono); color: var(--ink); }
.post.talk { --c: var(--bordeaux); }
.tcover { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; background: var(--paper); }
.tc-k { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tc-t { position: relative; z-index: 1; font: 900 clamp(26px, 2.4vw, 34px)/.95 var(--display); font-stretch: 112%; letter-spacing: -.035em; color: var(--ink); text-shadow: 4px 4px 0 var(--gold); }
.tc-bars { position: absolute; inset: auto 0 0; height: 55%; display: flex; align-items: flex-end; gap: 4px; padding: 0 0 0 4px; }
.tc-bars i { flex: 1; background: linear-gradient(#E3A82E, #D9603B 30%, #9E1B32 60%, #500818); }
.tc-bars i:nth-child(1) { height: 10%; } .tc-bars i:nth-child(2) { height: 14%; } .tc-bars i:nth-child(3) { height: 19%; }
.tc-bars i:nth-child(4) { height: 25%; } .tc-bars i:nth-child(5) { height: 33%; } .tc-bars i:nth-child(6) { height: 44%; }
.tc-bars i:nth-child(7) { height: 58%; } .tc-bars i:nth-child(8) { height: 76%; } .tc-bars i:nth-child(9) { height: 100%; }
.post .links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.post p { font-size: 15px; line-height: 1.45; }
.more { margin-top: 40px; display: flex; justify-content: center; }

/* contact */
.contact { background: var(--ink-deep); color: var(--paper); }
.contact .head h2 { color: var(--paper); text-shadow: 4px 4px 0 var(--bordeaux); }
.contact .kick { color: var(--gold-soft); }
.contact .head p { color: #E9D7DF; }
.form { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); }
.needs { display: grid; gap: 14px; align-content: start; }
.need { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 18px 20px; background: #43062F; border: 1.6px solid #6A2550; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.need:hover { border-color: var(--gold-soft); }
.need input { position: absolute; opacity: 0; pointer-events: none; }
.need .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink-deep); border: 1.4px solid #6A2550; color: var(--gold); }
.need .ic svg { width: 22px; height: 22px; }
.need b { display: block; font: 800 18px/1.25 var(--display); color: var(--paper); }
.need span { display: block; margin-top: 4px; font-size: 14.5px; color: #D9C2CD; }
.need:has(input:checked) { background: #5A0F3C; border-color: var(--gold); box-shadow: 5px 5px 0 var(--gold); transform: translate(-2px, -2px); }
.need:has(input:checked) .ic { background: var(--gold); color: var(--ink-deep); border-color: var(--gold); }
.need:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.fields { display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--paper); color: var(--ink-deep); box-shadow: 10px 10px 0 var(--gold); }
.fields label { display: grid; gap: 6px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.fields input, .fields textarea { width: 100%; padding: 12px 14px; font: 600 16px var(--sans); color: var(--ink-deep); background: var(--card); border: 1.6px solid var(--ink-deep); border-radius: 0; }
.fields textarea { min-height: 120px; resize: vertical; }
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.fields .btn { justify-content: center; margin-top: 4px; }
.fields .note { font-size: 13.5px; color: var(--ink-soft); }
.fields .note a { font-weight: 700; }

.foot { background: var(--night); color: #CDB5C2; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; font: 600 13px var(--mono); }
.foot a { color: var(--gold-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .sp { margin-left: auto; }


/* Buddaban's logo is drawn for a dark ground */
.bb-logo { padding: 20px 22px; background: #1D2419; border: 1.4px solid var(--ink-deep); }
.bb-logo img { height: 44px; width: auto; }

/* reveal on scroll; the script adds .rv to targets and .in once they show */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1080px) {
  .map { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .map li:nth-child(5) { border-left: 0; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: 1fr 1fr; }
  .fw-card { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 860px) {
  .form, .board-foot, .projects { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .top .cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map li:nth-child(odd) { border-left: 0; }
  .map li:nth-child(5) { border-left: 0; }
  .posts { grid-template-columns: 1fr; }
  .board { padding: 18px 14px; }
  .agent .cmd { padding: 44px 14px 14px; }
}

/* about: text and photo side by side */
.wrap.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about > .about-text { max-width: 820px; }
.about .portrait { margin: 0; max-width: 340px; }
.about .portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 1.6px solid var(--ink-deep); border-radius: 14px; box-shadow: 8px 8px 0 var(--gold); }
@media (max-width: 860px) { .wrap.about { grid-template-columns: 1fr; } .about .portrait { max-width: 260px; } }
/* feedwrk: the diagram from "How Feedwrk works" */
.fw-panel { padding: 0; background: #0d0d0f; overflow: hidden; }
.fw-panel img { display: block; width: 100%; height: auto; }
