/* Work Thread: stitch line layout */
:root {
  --violet: #5e17e8;
  --violet-deep: #3a0d99;
  --violet-ink: #22114d;
  --orange: #ff8a4c;
  --orange-deep: #e86a28;
  --cream: #fff8f1;
  --paper: #fdf3ea;
  --ink: #241b33;
  --muted: #5d5470;
  --line: rgba(94, 23, 232, .16);
  --on-dark: rgba(247, 244, 255, .94);
  --on-dark-soft: rgba(247, 244, 255, .8);
  --radius: 22px;
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "IBM Plex Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; color: var(--violet-ink); letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(58, 13, 153, .5); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.32rem; color: var(--violet-ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand.small img { width: 32px; height: 32px; border-radius: 9px; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.02rem; padding: 8px 14px; border-radius: 999px; color: var(--violet-ink); transition: background .2s, color .2s; }
.primary-nav .nav-cta { background: var(--violet); color: #fff; margin-left: 6px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--violet); border-radius: 14px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px -12px rgba(94, 23, 232, .8); }
.btn-ghost { border-color: var(--violet); color: var(--violet); border-style: dashed; }
.btn-orange { background: var(--orange); color: #2a1305; }
.btn-line { border-color: rgba(247, 244, 255, .7); color: var(--on-dark); border-style: dashed; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 76, .22), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; color: var(--violet); font-size: 1rem; background: #fff; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1.5px dashed rgba(94, 23, 232, .4); }
.knot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 76, .22); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--violet); background: linear-gradient(transparent 68%, rgba(255, 138, 76, .45) 68%); padding: 0 4px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-art { position: relative; aspect-ratio: 440 / 460; max-width: 470px; justify-self: center; width: 100%; }
.stitch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stitch-ghost { fill: none; stroke: rgba(94, 23, 232, .12); stroke-width: 10; stroke-linecap: round; }
.stitch-run { fill: none; stroke: url(#thr); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 14 10; animation: sew 2.4s linear infinite; }
@keyframes sew { to { stroke-dashoffset: -48; } }
.tag, .role { position: absolute; font-family: var(--head); font-weight: 700; box-shadow: 0 14px 30px -18px rgba(34, 17, 77, .6); }
.tag { background: #fff; color: var(--violet-ink); padding: 8px 16px; border-radius: 999px; border: 2px dashed var(--orange); font-size: 1rem; animation: bob 5s ease-in-out infinite; }
.t1 { left: 4%; top: 6%; }
.t2 { left: 0; top: 36%; animation-delay: -1.6s; }
.t3 { left: 40%; top: 22%; animation-delay: -3.2s; }
.role { background: var(--violet); color: #fff; padding: 12px 18px; border-radius: 18px; display: flex; flex-direction: column; line-height: 1.15; animation: bob 6s ease-in-out infinite; }
.role b { font-size: 1.1rem; }
.role i { font-family: var(--body); font-weight: 400; font-size: .86rem; color: var(--on-dark-soft); }
.r1 { right: 0; top: 56%; animation-delay: -2s; }
.r2 { right: 4%; bottom: 0; background: var(--orange); color: #2a1305; }
.r2 i { color: rgba(42, 19, 5, .78); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Seam: the stitch line running down the page */
.seam { position: relative; width: min(1060px, 100% - 40px); margin: 30px auto 0; padding: 30px 0 70px; }
.seam::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px;
  background: repeating-linear-gradient(to bottom, var(--violet) 0 14px, transparent 14px 24px);
  background-size: 4px 24px;
  animation: seamrun 1.6s linear infinite;
  opacity: .55;
}
@keyframes seamrun { to { background-position: 0 24px; } }
.stop { position: relative; width: calc(50% - 50px); margin: 0 0 56px; }
.stop-right { margin-left: auto; }
.pin {
  position: absolute; top: 4px; right: -78px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: #fff; font-size: 1.1rem;
  background: var(--violet); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--violet);
}
.stop-right .pin { right: auto; left: -78px; background: var(--orange); color: #2a1305; box-shadow: 0 0 0 2px var(--orange); }
.stop-body { background: #fff; border-radius: var(--radius); padding: 30px 32px; border: 1.5px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.kicker { font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; color: var(--orange-deep); margin-bottom: 8px; }
.kicker.light { color: var(--orange); }
.center { text-align: center; }
.stop h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }
.stop p:not(.kicker) { color: var(--muted); }

/* Loom: skills to futures */
.loom { position: relative; background: var(--paper); border-radius: 30px; padding: 46px 40px; margin: 10px 0 40px; border: 1.5px dashed rgba(94, 23, 232, .3); }
.loom h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 18em; margin: 0 auto; }
.loom-grid { display: grid; grid-template-columns: 1fr 200px 1fr; align-items: stretch; margin-top: 34px; }
.col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.col li { font-family: var(--head); font-weight: 700; font-size: 1.15rem; padding: 14px 20px; border-radius: 16px; transition: transform .22s, box-shadow .22s; }
.skills li { background: #fff; color: var(--violet-ink); border: 2px dashed var(--orange); text-align: right; }
.futures li { background: var(--violet); color: #fff; }
.loom-lines { width: 100%; height: 100%; }
.loom-lines path { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-dasharray: 8 7; opacity: .55; animation: sew 2s linear infinite; vector-effect: non-scaling-stroke; }
.loom-lines path:nth-child(2) { stroke: var(--orange-deep); }
.loom-lines path:nth-child(4) { stroke: var(--orange-deep); animation-duration: 2.6s; }

/* Cards */
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px 26px; border: 1.5px solid var(--line); position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card::after { content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 1.5px dashed rgba(255, 138, 76, .45); pointer-events: none; }
.card-ic { width: 52px; height: 52px; border-radius: 15px; background: rgba(94, 23, 232, .1); display: grid; place-items: center; margin-bottom: 16px; }
.card-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 1rem; }

/* Quote band */
.quote-band { background: var(--violet); color: var(--on-dark); padding: 84px 0; text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; left: -10%; right: -10%; top: 28px; height: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 16px, transparent 16px 26px); animation: hrun 2s linear infinite; background-size: 26px 3px; }
@keyframes hrun { to { background-position: 26px 0; } }
.qstitch { width: 120px; height: 20px; margin: 0 auto 22px; }
.qstitch path { stroke: rgba(247, 244, 255, .6); stroke-width: 4; stroke-dasharray: 10 8; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; }
.quote-band blockquote p { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.15; color: #fff; }
.q-sign { margin-top: 20px; font-style: italic; color: var(--on-dark-soft); }

/* FAQ */
.faq { padding: 90px 0; }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: 50px; align-items: start; }
.faq-intro h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.faq-intro p:not(.kicker) { color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 18px; border: 1.5px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 1.14rem; color: var(--violet-ink); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q span { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--orange); position: relative; transition: transform .25s, background .25s; }
.faq-q span::before, .faq-q span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--violet); transform: translate(-50%, -50%); }
.faq-q span::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-item.open .faq-q span { background: var(--orange); border-style: solid; }
.faq-item.open .faq-q span::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > p { overflow: hidden; padding: 0 22px; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 20px; }
.faq-item.open { border-color: rgba(94, 23, 232, .45); }

/* Contact */
.contact { padding: 0 0 90px; }
.contact-card { background: linear-gradient(135deg, var(--violet-ink), var(--violet-deep)); color: var(--on-dark); border-radius: 30px; padding: 54px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(255, 138, 76, .45); border-radius: 22px; pointer-events: none; }
.contact-card h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 10px; }
.contact-card p:not(.kicker) { color: var(--on-dark-soft); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* Footer */
.site-footer { border-top: 1.5px dashed rgba(94, 23, 232, .3); padding: 28px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .95rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Hover life */
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover { background: rgba(94, 23, 232, .1); color: var(--violet); }
  .primary-nav .nav-cta:hover { background: var(--violet-deep); color: #fff; }
  .btn:hover { transform: translateY(-3px); }
  .btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(94, 23, 232, .9); }
  .btn-ghost:hover { background: var(--violet); color: #fff; border-style: solid; }
  .btn-orange:hover { background: #ffa06c; }
  .btn-line:hover { background: rgba(247, 244, 255, .12); border-style: solid; }
  .stop-body:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(58, 13, 153, .55); border-color: rgba(94, 23, 232, .45); }
  .card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 24px 40px -26px rgba(58, 13, 153, .6); border-color: var(--violet); }
  .skills li:hover { transform: translateX(-6px); box-shadow: 0 10px 22px -14px rgba(232, 106, 40, .8); }
  .futures li:hover { transform: translateX(6px); box-shadow: 0 10px 22px -14px rgba(94, 23, 232, .9); }
  .faq-item:hover { transform: translateX(4px); border-color: rgba(94, 23, 232, .45); box-shadow: 0 12px 26px -20px rgba(58, 13, 153, .6); }
  .brand:hover img { transform: rotate(-6deg); }
  .brand img { transition: transform .25s; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; }
  .seam::before { left: 22px; }
  .stop, .stop-right { width: auto; margin-left: 58px; }
  .pin, .stop-right .pin { left: -58px; right: auto; width: 46px; height: 46px; font-size: .95rem; }
  .loom, .cards { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 26px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 12px 20px 20px; border-bottom: 1.5px dashed rgba(94, 23, 232, .3);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav .nav-cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .seam { width: calc(100% - 32px); }
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stop-body { padding: 24px 22px; }
  .loom { padding: 34px 18px; }
  .loom-grid { grid-template-columns: 1fr 56px 1fr; }
  .col li { font-size: .95rem; padding: 12px 12px; }
  .skills li { text-align: left; }
  .tag { font-size: .9rem; padding: 6px 12px; }
  .role { padding: 10px 14px; }
  .role b { font-size: 1rem; }
  .contact-card { padding: 38px 24px; }
  .contact-actions .btn { width: 100%; font-size: 1rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .needle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
