/* ============================================================
   Websites page (websites.php only). Loaded after styles.css.
   ============================================================ */
:root { --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Hero ---------- */
.web-hero {
  position: relative; overflow: hidden; padding: 140px 32px 110px;
  background: radial-gradient(90% 80% at 85% 20%, #3a1024 0%, #160a10 45%, var(--ink) 100%);
}
.web-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.web-hero .label-overline-red { color: var(--on-dark-muted); margin-bottom: 18px; }
.web-hero h1 { color: #fff; font-size: clamp(48px, 6.4vw, 84px); line-height: 1; margin-bottom: 24px; }
.web-hero-accent { color: var(--accent-soft); }
.web-hero-sub { color: rgba(255,255,255,.88); font-size: 19px; line-height: 1.75; max-width: 540px; margin-bottom: 36px; }

/* Code window that "types" itself in */
.code-window { background: #120d14; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(224,117,143,.08); overflow: hidden; transform: rotate(1.5deg); }
.code-window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.code-window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.code-window-bar span:nth-child(2) { background: #febc2e; }
.code-window-bar span:nth-child(3) { background: #28c840; }
.code-window-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 14px; color: rgba(255,255,255,.75); }
.code-body { margin: 0; padding: 26px 28px 30px; font-family: var(--mono); font-size: clamp(14px, 1.35vw, 17px); line-height: 1.9; color: #f3e8ee; white-space: pre; overflow-x: auto; }
.code-body .cl { display: inline-block; vertical-align: top; clip-path: inset(0 100% 0 0); animation: typeLine .55s steps(24, end) forwards; }
.code-body .cl:nth-child(1) { animation-delay: .3s; }
.code-body .cl:nth-child(2) { animation-delay: .9s; }
.code-body .cl:nth-child(3) { animation-delay: 1.5s; }
.code-body .cl:nth-child(4) { animation-delay: 2.1s; }
.code-body .cl:nth-child(5) { animation-delay: 2.7s; }
.code-body .cl:nth-child(6) { animation-delay: 3.3s; }
.code-body .cl:nth-child(7) { animation-delay: 3.9s; }
.code-body .cl:nth-child(8) { animation-delay: 4.4s; }
.code-body .cl:nth-child(9) { animation-delay: 4.6s; }
@keyframes typeLine { to { clip-path: inset(0 0 0 0); } }
.c-com { color: #a99aa3; }
.c-var { color: var(--accent-soft); }
.c-str { color: #b8e986; }
.c-kw  { color: #8ec5ff; }
.c-fn  { color: #ffd479; }
.code-cursor { display: inline-block; width: .55em; height: 1.15em; margin-left: 4px; vertical-align: text-bottom; background: var(--accent-soft); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Portfolio: browser frames that scroll the full page ---------- */
.site-card { margin: 0; }
.site-frame {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left;
  background: #1d1b1f; border: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(17,17,17,.22);
  transition: transform .3s ease, box-shadow .3s ease;
}
.site-frame:hover, .site-frame:focus-visible, .site-frame.is-scrolling { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(110,26,55,.32); }
.site-frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141215; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-frame-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.site-frame-bar em { flex: 1; margin-left: 10px; padding: 4px 14px; border-radius: 999px; background: #2a272c; font-style: normal; font-size: 14px; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-frame-view { display: block; height: clamp(300px, 34vw, 440px); overflow: hidden; }
.site-frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 1.4s ease-in-out; }
.site-frame:hover .site-frame-view img,
.site-frame:focus-visible .site-frame-view img,
.site-frame.is-scrolling .site-frame-view img { object-position: bottom; transition-duration: 9s; }
.site-card figcaption { padding: 22px 4px 0; }
.site-tag { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.site-card h3 { font-size: 26px; margin-bottom: 6px; }
.site-card p { font-size: 17px; font-style: italic; color: var(--gray-600); margin: 0; }

/* ---------- Portfolio version B: big dark browser with tabs ---------- */
.work-b {
  padding-left: 24px; padding-right: 24px;
  background: radial-gradient(110% 70% at 50% 0%, #8e2452 0%, var(--accent) 38%, var(--accent-dk) 100%);
}
.work-b h2 { color: #fff; }
.work-b .label-overline-red { color: var(--accent-soft); }
.work-b .lead-text { color: var(--on-dark-muted); }
.work-b-inner { max-width: 1280px; }

.browser-dark { background: #1d1b1f; border: 1px solid rgba(255,255,255,.04); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 120px rgba(40,6,20,.55); }
.browser-dark-top { display: flex; align-items: flex-end; gap: 18px; padding: 12px 16px 0; background: #141215; }
.browser-dark-dots { display: flex; gap: 8px; padding-bottom: 16px; flex-shrink: 0; }
.browser-dark-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }

.browser-tabs { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.browser-tabs::-webkit-scrollbar { display: none; }
/* tabs */
.browser-tab {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; white-space: nowrap;
  background: transparent; border: 0; border-radius: 10px 10px 0 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75); transition: background .15s, color .15s;
}
.browser-tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.browser-tab i { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.browser-tab:hover i { color: rgba(255,255,255,.7); }
.browser-tab.active { background: #1d1b1f; color: #fff; font-weight: 600; }
.browser-tab.active::before { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-soft); }
.browser-tab.active i { color: var(--accent-soft); }

.browser-dark-bar { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.browser-dark-url { display: flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: 999px; background: #2a272c; font-size: 15px; color: rgba(255,255,255,.8); }
.browser-dark-view { height: min(72vh, 720px); overflow-y: auto; overscroll-behavior: contain; background: #fff; scrollbar-color: #5a5560 #1d1b1f; }
.browser-dark-view:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
.browser-dark-view img { display: block; width: 100%; height: auto; }

.browser-dark-caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 22px 26px 26px; border-top: 1px solid rgba(255,255,255,.08); }
.browser-dark-caption h3 { color: #fff; font-size: 26px; margin: 0; }
.browser-dark-caption .site-tag { color: var(--accent-soft); }
.browser-dark-caption p { margin: 0; font-size: 17px; font-style: italic; color: var(--on-dark-muted); }

@media (max-width: 767px) {
  .work-b { padding-left: 12px; padding-right: 12px; }
  .browser-dark-dots { display: none; }
  .browser-dark-view { height: 64vh; }
}

/* Portfolio footnote: live link or concept note (both versions) */
.portfolio-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent); }
.portfolio-link:hover { color: var(--accent-dk); }
.portfolio-link i { font-size: 13px; }
.portfolio-concept { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-style: italic; color: var(--gray-500); }
.work-b .portfolio-link { color: var(--accent-soft); }
.work-b .portfolio-link:hover { color: #fff; }
.work-b .portfolio-concept { color: var(--on-dark-muted); }
.browser-dark-caption-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
@media (max-width: 767px) { .browser-dark-caption-end { align-items: flex-start; text-align: left; } }

/* ---------- Not WordPress ---------- */
.not-wp { background: var(--ink); }
.not-wp h2 { color: #fff; margin: 10px 0 20px; }
.not-wp .label-overline-red { color: var(--accent-soft); }
.not-wp .label-overline-red i { margin-right: 6px; }
.not-wp-skull { color: var(--accent-soft); font-size: .7em; vertical-align: .08em; margin-left: 6px; display: inline-block; transform: rotate(-12deg); }
.plugin-board-warn i { margin-right: 4px; }
.not-wp-lead { font-size: 18px; color: rgba(255,255,255,.86); line-height: 1.8; margin-bottom: 28px; }
.not-wp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.not-wp-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: #fff; line-height: 1.5; }
.not-wp-list i { width: 22px; flex-shrink: 0; padding-top: 3px; text-align: center; color: var(--accent-soft); font-size: 18px; }

.plugin-board { position: relative; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.plugin-board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--gray-200); }
.plugin-board-title { font-size: 16px; font-weight: 700; color: var(--near-black); }
.plugin-board-title i { color: var(--gray-500); margin-right: 4px; }
.plugin-board-warn { font-size: 15px; font-weight: 600; color: #991b1b; }
.plugin-pile { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; padding: 24px 22px; min-height: 340px; }
.plugin-chip {
  font-size: 15px; font-weight: 600; color: var(--gray-700);
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 999px; padding: 9px 16px;
  transform: rotate(var(--rot, 0deg));
}
.plugin-chip.is-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.plugin-chip i { margin-right: 4px; }
.plugin-chip:nth-child(3n)   { --rot: -2deg; }
.plugin-chip:nth-child(4n+1) { --rot: 1.5deg; }
.plugin-chip:nth-child(5n+2) { --rot: -1deg; }
.plugin-board-foot { display: flex; gap: 12px; flex-wrap: wrap; padding: 18px 22px 22px; border-top: 1px solid var(--gray-200); }

.plugin-result { position: absolute; left: 0; right: 0; top: 62px; bottom: 89px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .4s ease .9s, transform .5s cubic-bezier(.34,1.56,.64,1) .9s; }
.plugin-result-face { display: block; font-size: 64px; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.plugin-result-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--near-black); margin: 0 0 6px; }
.plugin-result-sub { font-size: 16px; color: var(--gray-600); margin: 0 0 14px; }
.plugin-result-list { list-style: none; padding: 0; margin: 0 auto; display: inline-grid; gap: 8px; text-align: left; }
.plugin-result-list li { font-size: 16px; color: var(--gray-700); line-height: 1.4; display: flex; gap: 10px; }
.plugin-result-list i { color: var(--accent); margin-top: 3px; font-size: 15px; }
.plugin-result strong { color: var(--near-black); }

.plugin-board.is-deleted .plugin-chip { animation: chipFall .9s cubic-bezier(.55,0,.75,.2) forwards; }
.plugin-board.is-deleted .plugin-result { opacity: 1; transform: none; }
.plugin-board.is-deleted .plugin-board-warn { visibility: hidden; }
.plugin-chip:nth-child(2n)  { --fall: 380px; --spin: 28deg; }
.plugin-chip:nth-child(2n+1){ --fall: 420px; --spin: -34deg; }
.plugin-chip:nth-child(3n)  { --spin: 52deg; }
.plugin-board.is-deleted .plugin-chip:nth-child(1)  { animation-delay: .00s; }
.plugin-board.is-deleted .plugin-chip:nth-child(2)  { animation-delay: .05s; }
.plugin-board.is-deleted .plugin-chip:nth-child(3)  { animation-delay: .02s; }
.plugin-board.is-deleted .plugin-chip:nth-child(4)  { animation-delay: .09s; }
.plugin-board.is-deleted .plugin-chip:nth-child(5)  { animation-delay: .04s; }
.plugin-board.is-deleted .plugin-chip:nth-child(6)  { animation-delay: .12s; }
.plugin-board.is-deleted .plugin-chip:nth-child(7)  { animation-delay: .07s; }
.plugin-board.is-deleted .plugin-chip:nth-child(8)  { animation-delay: .15s; }
.plugin-board.is-deleted .plugin-chip:nth-child(9)  { animation-delay: .10s; }
.plugin-board.is-deleted .plugin-chip:nth-child(10) { animation-delay: .18s; }
.plugin-board.is-deleted .plugin-chip:nth-child(11) { animation-delay: .13s; }
.plugin-board.is-deleted .plugin-chip:nth-child(12) { animation-delay: .21s; }
.plugin-board.is-deleted .plugin-chip:nth-child(13) { animation-delay: .16s; }
.plugin-board.is-deleted .plugin-chip:nth-child(14) { animation-delay: .24s; }
@keyframes chipFall {
  20%  { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(var(--fall, 400px)) rotate(var(--spin, 30deg)); opacity: 0; }
}

/* ---------- Process timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 1040px; margin: 0 auto; padding: 0; --tl-progress: 0; }
.timeline::before, .timeline::after { content: ''; position: absolute; top: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; }
.timeline::before { bottom: 0; background: var(--gray-200); }
.timeline::after { height: calc(var(--tl-progress) * 100%); background: linear-gradient(to bottom, var(--accent-soft), var(--accent)); }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 0; }
.tl-step + .tl-step { margin-top: -24px; } /* zig-zag: each card tucks up beside the previous one */
.tl-dot { grid-column: 2; justify-self: center; position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gray-300); transition: border-color .3s, transform .3s, box-shadow .3s; }
.tl-step.is-active .tl-dot { border-color: var(--accent); transform: scale(1.2); box-shadow: 0 0 0 8px rgba(150,37,71,.12); }
.tl-card { grid-row: 1; padding: 24px 28px; border-radius: 18px; background: var(--gray-50); border: 0; opacity: .18; transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.tl-step:nth-child(odd) .tl-card  { grid-column: 1; transform: translateX(-40px) rotate(-1deg); }
.tl-step:nth-child(even) .tl-card { grid-column: 3; transform: translateX(40px) rotate(1deg); }
.tl-step.is-active .tl-card { opacity: 1; transform: none; }
.tl-num { display: inline; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-right: 6px; }
.tl-num::after { content: '\00B7'; margin-left: 6px; }
.tl-kicker { display: inline; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tl-card h3 { font-size: 23px; margin: 6px 0 6px; }
.tl-card p { font-size: 16px; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* ---------- Hosting ---------- */
.hosting { background: radial-gradient(80% 90% at 10% 10%, #3a1024 0%, var(--ink) 60%); }
.hosting h2 { color: #fff; margin: 10px 0 20px; }
.hosting .label-overline-red { color: var(--accent-soft); }
.hosting-lead { font-size: 18px; color: rgba(255,255,255,.86); line-height: 1.8; margin-bottom: 26px; }
.hosting-price { font-size: 18px; color: var(--on-dark-muted); }
.hosting-note { font-size: 16px; color: var(--on-dark-muted); margin: 10px 0 0; max-width: 460px; }
.hosting-price span { font-size: 54px; font-weight: 800; letter-spacing: -.04em; color: #fff; margin-right: 4px; }
.status-board { background: #121014; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; font-family: var(--mono); }
.status-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; color: #fff; }
.status-live { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; }
.status-live i { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.status-board ul { list-style: none; padding: 8px 24px 14px; }
.status-board li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 15px; color: rgba(255,255,255,.88); }
.status-board li:last-child { border-bottom: 0; }
.status-ok { color: #4ade80; font-weight: 600; }
.status-ok::before { content: '\25CF'; margin-right: 8px; font-size: 12px; vertical-align: 2px; }

/* ---------- Responsive & motion ---------- */
@media (max-width: 991px) {
  .web-hero { padding: 110px 20px 72px; }
  .code-window { transform: none; }
  .timeline::before, .timeline::after { left: 11px; }
  .tl-step { grid-template-columns: 22px 1fr; gap: 0 18px; padding: 14px 0; }
  .tl-step + .tl-step { margin-top: 0; }
  .tl-dot { grid-column: 1; }
  .tl-step:nth-child(odd) .tl-card, .tl-step:nth-child(even) .tl-card { grid-column: 2; transform: translateY(24px); }
}
@media (max-width: 575px) {
  .tl-card { padding: 24px 22px; }
  .plugin-pile { min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .code-body .cl { clip-path: none; animation: none; }
  .tl-card { opacity: 1; transform: none !important; }
  .site-frame:hover .site-frame-view img { transition-duration: 0s; }
}

/* "More on the way" note under the launch cards */
.work-more { text-align: center; margin: 56px auto 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.work-more span { color: var(--accent); font-weight: 800; }
