/* Simple view — plain scrolling portfolio in the editor's dark palette. */
:root {
  color-scheme: dark;
  --bg: #121212; --panel: #1b1b1b; --panel-2: #222; --line: #2c2c2c;
  --text: #d9d9d9; --text-hi: #f5f5f5; --text-2: #a6a6a6; --text-3: #737373;
  --accent: #2d8ceb; --accent-2: #4b9cf5; --brand: #ff8a3d; --brand-2: #ffb36b; --ok: #3fb950;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.s-locked { overflow: hidden; }
a { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* header */
.s-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 20px;
  background: rgba(18,18,18,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #0a0a0a; }
.s-logo { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; flex: none; text-decoration: none;
  background: linear-gradient(145deg, #2a1608, #120a04); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 800; font-size: 13px; }
.s-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s-id b { color: var(--text-hi); white-space: nowrap; }
.s-id span { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.s-otw { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 11px; font-size: 12px !important; font-weight: 600;
  background: rgba(63,185,80,.14); border: 1px solid rgba(63,185,80,.45); color: #7ee08c !important; }
.s-otw i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.s-nav { display: flex; gap: 2px; margin-left: auto; }
.s-nav a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.s-nav a:hover { color: var(--text-hi); background: #222; }
.s-actions { display: flex; gap: 8px; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; white-space: nowrap;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.s-btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.s-btn.ghost { background: transparent; border-color: #4a4a4a; color: var(--text-hi); }
.s-btn.ghost:hover { background: #262626; border-color: #666; }
.s-btn.editor { background: linear-gradient(145deg, #2a1608, #1a0e05); border-color: var(--brand); color: var(--brand-2); }
.s-btn.editor:hover { background: var(--brand); color: #1a0d03; }
.s-btn.big { height: 42px; padding: 0 20px; border-radius: 21px; font-size: 15px; }

/* hero */
.s-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 40px 20px 24px; }
.s-reel { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.s-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-unmute { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(10,10,10,.7); color: #fff; font-weight: 600; font-size: 13px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.s-unmute:hover { background: var(--accent); border-color: var(--accent); }
.s-kicker { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 8px 0 10px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--text-hi); font-weight: 800; }
.s-lead { color: var(--text-2); font-size: 18px; margin: 0 0 22px; }
.s-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* sections */
.s-sec { max-width: 1280px; margin: 0 auto; padding: 48px 20px 8px; }
.s-sec h2 { font-size: 28px; color: var(--text-hi); margin: 0 0 18px; letter-spacing: -.01em; }
.s-sub { margin: -10px 0 18px; color: var(--text-2); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.s-archive { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.s-archive summary { cursor: pointer; color: var(--text-2); font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.s-archive summary span { color: var(--text-3); font-weight: 400; }
.s-archive .s-thumb { filter: saturate(.75); }
.s-grid.photos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.s-card { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.s-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b0b0b; margin-bottom: 6px;
  box-shadow: 0 0 0 1px #262626; transition: transform .2s, box-shadow .2s; }
.s-thumb img, .s-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-card:hover .s-thumb { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 12px 30px rgba(0,0,0,.5); }
.s-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #eee; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.s-ct { color: var(--text-hi); font-weight: 700; font-size: 16px; line-height: 1.25; }
.s-cm { color: var(--text-3); font-size: 14px; }

.s-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.s-article { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.s-article:hover { border-color: #444; }
.s-article img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; }
.s-article small { display: block; color: var(--brand-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.s-article b { color: var(--text-hi); font-size: 15.5px; line-height: 1.3; }

.s-about { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.s-about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.s-about p { font: 400 17px/1.7 var(--serif); margin: 0 0 12px; max-width: 70ch; }
.s-about p:first-child { font: 700 22px/1.3 var(--sans); color: var(--text-hi); }
.s-tools { color: var(--text-3) !important; font: 400 14px/1.5 var(--sans) !important; }
.s-contact p { color: var(--text-2); max-width: 60ch; }
.s-contact-row { display: flex; gap: 10px; flex-wrap: wrap; }
.s-foot { text-align: center; color: var(--text-3); padding: 60px 20px 40px; font-size: 14px; }

/* modal */
.s-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: grid; place-items: start center; padding: 32px 20px; overflow-y: auto; }
.s-modal-box { position: relative; width: min(1100px, 100%, (100vh - 280px) * 16 / 9); min-width: min(560px, 100%); background: var(--panel); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.s-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; line-height: 1; }
.s-close:hover { background: var(--accent); }
.s-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.s-player iframe, .s-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.s-gnav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1; }
.s-gnav:hover { background: var(--accent); }
.s-gnav.prev { left: 12px; } .s-gnav.next { right: 12px; }
.s-m-body { padding: 18px 22px 22px; max-height: 40vh; overflow-y: auto; }
.s-m-body h3 { margin: 4px 0 2px; font-size: 24px; color: var(--text-hi); }
.s-m-body h4 { margin: 16px 0 6px; color: var(--text-hi); }
.s-cap { margin: 0; color: var(--text-2); }
.s-results { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.s-results li { font-weight: 700; color: var(--text-hi); padding-left: 18px; position: relative; }
.s-results li::before { content: '↗'; position: absolute; left: 0; color: #3fb950; }
.s-quote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid #ff8a3d; background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }
.s-quote blockquote { margin: 0 0 6px; font-style: italic; line-height: 1.5; }
.s-quote figcaption { font-size: 13px; opacity: .75; }
.s-credits { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.s-credits li { padding: 3px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.s-software li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 5px; border-radius: 18px; background: #232a33; border-color: #34404f; font-size: 14px; font-weight: 600; }
.s-software img, .s-software i { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; flex: none; }
.s-software i { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: hsl(var(--hue) 45% 32%); }
.s-deep { font: 400 16px/1.7 var(--serif); margin-top: 14px; }
.s-deep img { max-width: 100%; border-radius: 4px; }

@media (max-width: 980px) {
  .s-nav { display: none; }
  .s-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .s-about { grid-template-columns: 1fr; }
  .s-about img { max-width: 220px; }
}
@media (max-width: 600px) {
  .s-bar { padding: 0 12px; gap: 8px; }
  .s-id span:not(.s-otw) { display: none; }
  .s-otw { font-size: 0 !important; padding: 4px; gap: 0; }
  .s-actions .ghost { display: none; }
  .s-btn { height: 30px; padding: 0 11px; font-size: 13px; }
  .s-sec { padding-top: 36px; }
  .s-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .s-ct { font-size: 14px; }
  .s-cm { font-size: 12px; }
  .s-articles { grid-template-columns: 1fr; }
  .s-article img { width: 96px; }
  .s-modal { padding: 0; place-items: start center; }
  .s-modal-box { border-radius: 0; }
  .s-m-body { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .s-card:hover .s-thumb { transform: none; } }

/* comfortable tap target on phones */
@media (pointer: coarse) { .s-logo { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; } }

.s-notice { margin: -6px 0 20px; padding: 10px 14px; border-radius: 8px; background: rgba(227,179,65,.1); border: 1px solid rgba(227,179,65,.35); line-height: 1.5; }
.s-notice b { color: #f0c860; }
