/* ============ Tokens ============ */
:root {
  --paper: #f1efec;
  --paper-2: #e6e2dd;
  --ink: #34302d;
  --ink-soft: #6a625c;
  --line: rgba(52, 48, 45, 0.14);
  --card: rgba(255, 255, 255, 0.55);

  --creations: #a8704a;   /* logo bronze */
  --celebrations: #c9962b; /* marigold gold */
  --tech: #4a55c8;        /* indigo */
  --accent: var(--creations);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1816;
    --paper-2: #24211e;
    --ink: #f3ebe1;
    --ink-soft: #b3a598;
    --line: rgba(243, 235, 225, 0.14);
    --card: rgba(255, 255, 255, 0.04);
    --creations: #d19c74;
    --celebrations: #e3b54d;
    --tech: #8d96ff;
    color-scheme: dark;
  }
}

body[data-tab="creations"]    { --accent: var(--creations); }
body[data-tab="celebrations"] { --accent: var(--celebrations); }
body[data-tab="tech"]         { --accent: var(--tech); }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    radial-gradient(circle at 90% 85%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%);
  background-attachment: fixed;
  transition: background-color .6s var(--ease);
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .15; } }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ============ Header / Tabs ============ */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 1180px; width: 100%;
  margin: 0 auto;
  padding: 28px 24px 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: auto; height: 36px; display: block; }
@media (prefers-color-scheme: dark) { .brand-mark { filter: brightness(1.9) saturate(.9); } }
.brand-name {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-llc {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; margin-left: 8px; vertical-align: super;
  color: var(--ink-soft);
}

.tabs {
  position: relative;
  display: flex; gap: 4px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tab {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 .95rem/1 var(--sans);
  color: var(--ink-soft);
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tab-icon { font-size: .9em; }
.tab-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  width: 0; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .5s var(--ease), width .5s var(--ease), background-color .5s var(--ease);
}
@media (prefers-color-scheme: dark) { .tab[aria-selected="true"] { color: #1b1714; } }

/* ============ Panels ============ */
main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.panel { animation: panelIn .7s var(--ease) both; }
.panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 40px;
  min-height: 520px;
}
.eyebrow {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); max-width: 34ch; margin: 0 0 36px; }

.soon {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center; column-gap: 14px; row-gap: 4px;
  padding: 16px 26px 16px 20px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.soon-dot {
  grid-row: span 2;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.soon-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.soon-sub { font-size: .9rem; color: var(--ink-soft); }

/* ============ Teasers ============ */
.teasers {
  list-style: none; margin: 0 0 80px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.teaser {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.teaser::after {
  content: "Soon";
  position: absolute; top: 18px; right: 18px;
  font: 600 .65rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.teaser:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--accent) 80%, transparent);
}
.teaser-num { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.teaser h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 14px 0 8px; }
.teaser p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: .96rem; }
.teaser h3 { padding-right: 52px; } /* keep clear of the "Soon" badge */
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .85rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ============ Instagram follow card ============ */
.follow {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  margin: 0 0 48px;
  padding: 28px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: calc(var(--radius) + 6px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.follow-qr {
  width: 200px; aspect-ratio: 1;
  padding: 6px;
  background: #f4f2ee;
  border-radius: 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, #b8845e 40%, transparent), 0 18px 34px -22px rgba(0,0,0,.45);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.follow:hover .follow-qr { transform: rotate(0) scale(1.03); }
.follow-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.follow-copy .eyebrow { margin-bottom: 12px; }
.follow h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.follow-copy > p:not(.eyebrow) { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; }
.ig-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 600 .95rem var(--sans); text-decoration: none;
  transition: background-color .3s var(--ease), transform .2s;
}
.ig-btn:hover { background: var(--accent); }
.ig-btn:active { transform: scale(.97); }
.ig-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ig-icon { width: 20px; height: 20px; }

/* ============ Art: Creations ============ */
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.art-creations svg { width: 100%; height: 100%; overflow: visible; }
.easel line { stroke: var(--ink-soft); stroke-width: 6; stroke-linecap: round; opacity: .55; }
.canvas { fill: #fffaf3; stroke: var(--line); stroke-width: 2; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }
@media (prefers-color-scheme: dark) { .canvas { fill: #2c2621; } }
.stroke { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.s1 { stroke: var(--creations); animation: draw 2.4s .3s var(--ease) forwards; }
.s2 { stroke: #5c8a6a; stroke-width: 7; animation: draw 2.4s 1s var(--ease) forwards; }
.s3 { stroke: var(--celebrations); stroke-width: 8; animation: draw 1.8s 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.palette path { fill: #d9b98c; stroke: rgba(0,0,0,.08); }
.dot { transform-box: fill-box; transform-origin: center; animation: bob 3s ease-in-out infinite; }
.d1 { fill: var(--creations); } .d2 { fill: #5c8a6a; animation-delay: .3s; }
.d3 { fill: var(--tech); animation-delay: .6s; } .d4 { fill: var(--celebrations); animation-delay: .9s; }
@keyframes bob { 50% { transform: scale(1.18); } }
.yarn circle { fill: #d98ca0; }
.yarn path { fill: none; stroke: #b86a80; stroke-width: 3; stroke-linecap: round; }
.yarn .thread { stroke-dasharray: 6 6; animation: thread 1.5s linear infinite; }
@keyframes thread { to { stroke-dashoffset: -24; } }
.yarn { transform-box: fill-box; transform-origin: center; animation: roll 6s ease-in-out infinite; }
@keyframes roll { 50% { transform: rotate(-8deg) translateX(-6px); } }

/* ============ Art: Celebrations ============ */
.bunting { position: relative; height: 90px; margin: 0 -24px -40px; }
.bunting svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bunting-string { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; opacity: .5; }
.flags { position: absolute; inset: 0; }
.flag {
  position: absolute; width: 26px; height: 34px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: sway 3s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.art-celebrations { min-height: 380px; }
.balloon {
  position: absolute;
  width: 110px; height: 132px;
  border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65), transparent 22%), var(--c);
  box-shadow: inset -12px -16px 24px rgba(0,0,0,.12);
  animation: float 6s ease-in-out infinite;
}
.balloon::before { /* knot */
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 14px; height: 10px; transform: translateX(-50%);
  background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.balloon span { /* string */
  position: absolute; left: 50%; top: 100%;
  width: 2px; height: 150px; margin-left: -1px;
  background: linear-gradient(var(--ink-soft), transparent);
  opacity: .5;
}
.b1 { --c: #e46a6a; left: 8%;  top: 12%; }
.b2 { --c: var(--celebrations); left: 36%; top: 0;   width: 128px; height: 152px; animation-delay: -1.5s; }
.b3 { --c: #7fb6a4; left: 64%; top: 16%; animation-delay: -3s; }
.b4 { --c: #b99be0; left: 22%; top: 42%; width: 92px; height: 110px; animation-delay: -2s; }
.b5 { --c: #f2a7bf; left: 54%; top: 46%; width: 96px; height: 116px; animation-delay: -4s; }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-22px) rotate(3deg); }
}
.confetti-btn {
  display: block; margin-top: 22px;
  appearance: none; cursor: pointer;
  font: 500 .92rem var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px;
  transition: border-color .3s, transform .2s;
}
.confetti-btn:hover { border-color: var(--accent); }
.confetti-btn:active { transform: scale(.96); }
.confetti-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ============ Art: Tech ============ */
.art-tech { display: grid; place-items: center; aspect-ratio: auto; }
.art-tech::before {
  content: ""; position: absolute; inset: -10%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.terminal {
  position: relative; width: 100%;
  background: #15161f; color: #d7dbff;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(40, 45, 120, .55), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s var(--ease);
}
.terminal:hover { transform: none; }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; background: #1e2030;
  font: 500 .75rem var(--mono); color: #8a8fb8;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; padding-right: 40px; }
.term-body {
  margin: 0; padding: 20px 20px 26px; min-height: 280px;
  font: 400 .88rem/1.7 var(--mono);
  white-space: pre-wrap; word-break: break-word;
}
.term-body .p { color: #8d96ff; }
.term-body .ok { color: #6fdc8c; }
.term-body .dim { color: #6b7099; }
.term-body .hl { color: #ffcf6e; }
.caret { color: #8d96ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Footer ============ */
.site-footer {
  position: relative; z-index: 1;
  max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 28px 24px 36px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft);
}
.site-footer { align-items: center; }
.site-footer p { margin: 0; }
.footer-tagline { font-family: var(--serif); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-links a:hover { color: var(--accent); border-color: currentColor; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 24px; min-height: 0; }
  .hero-art { max-width: 380px; }
  .art-celebrations { min-height: 320px; }
  .teasers { grid-template-columns: repeat(2, 1fr); }
  .follow { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .follow-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .site-header { padding: 20px 16px 4px; justify-content: center; }
  main { padding: 0 16px; }
  .site-footer { padding: 24px 16px 28px; }
  .follow { padding: 24px 18px; }
  .teasers { grid-template-columns: 1fr; }
  .follow-qr { width: 180px; }
  .bunting { margin: 0 -16px -30px; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { padding: 11px 12px; font-size: .88rem; flex: 1; justify-content: center; }
  .tab-icon { display: none; }
  .balloon { transform: scale(.8); }
  .term-body { font-size: .78rem; min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .stroke { stroke-dashoffset: 0; }
}
