/* ============================================================
   createdbykujo, editorial / organic-tech typographic theme
   Palette pulled straight from the leaf-circuit logo:
   forest green ink, gold accent, warm cream paper.
   Type-led on purpose. A little unconventional by design.
   ============================================================ */

:root {
  --paper:     #f3ecda;   /* warm cream background        */
  --paper-2:   #ece2c9;   /* slightly deeper cream        */
  --card:      #f8f3e6;   /* raised card surface          */
  --ink:       #213a2a;   /* forest green, primary text  */
  --ink-2:     #2e5339;   /* lighter green                */
  --muted:     #6b7a64;   /* sage muted text              */
  --gold:      #b3822b;   /* logo gold                    */
  --gold-2:    #cda03f;   /* lighter gold                 */
  --line:      #c9bd9c;   /* hairline borders             */
  --shadow:    18px 18px 0 rgba(33, 58, 42, 0.08);
  --shadow-sm: 8px 8px 0 rgba(33, 58, 42, 0.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --grot:  "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono:  "Space Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--grot);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(33, 58, 42, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img { display: block; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }

/* faint full-bleed grid + a couple of drifting leaf-glow blobs */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .22; animation: float 22s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: var(--ink-2); top: -140px; left: -100px; }
.b2 { width: 520px; height: 520px; background: var(--gold);  bottom: -180px; right: -140px; animation-delay: -8s; }
.b3 { width: 300px; height: 300px; background: var(--gold-2); top: 45%; left: 60%; animation-delay: -14s; opacity: .14; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,40px) scale(.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(33,58,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,58,42,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
}

/* cursor glow, soft gold */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px;
  margin: -160px 0 0 -160px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(179,130,43,.16), transparent 60%);
  transition: opacity .3s; opacity: 0;
}

/* generic raised surface (replaces glass) */
.glass {
  background: var(--card);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(243, 236, 218, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: none;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 700; }
.brand img { width: auto; height: 32px; }
.brand span { font-size: .92rem; letter-spacing: .5px; }
.brand b { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 28px; align-items: center; font-family: var(--mono); font-size: .82rem; text-transform: lowercase; }
.nav-links a { color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 18px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper) !important; font-weight: 700;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }
.menu-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- layout ---------- */
main { width: min(1120px, 90%); margin: 0 auto; }
.section { padding: 120px 0 30px; }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -1px;
  margin-bottom: 14px; display: flex; align-items: baseline; gap: 16px;
}
.section-title .num { font-family: var(--mono); font-size: .9rem; color: var(--gold); font-weight: 700; }
.section-lead { color: var(--muted); margin-bottom: 44px; max-width: 52ch; font-size: 1.05rem; }
.card { padding: 30px; }

/* ============================================================
   HERO, the typographic centerpiece.
   "created / by / kujo" is set as a tall stacked wordmark,
   mixing serif + mono, with the leaf standing in as punctuation.
   ============================================================ */
.hero { padding: 70px 0 40px; }
.eyebrow {
  font-family: var(--mono); color: var(--gold); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; font-size: .78rem;
  margin-bottom: 30px;
}

/* tightly stacked wordmark, flush left */
.wordmark {
  margin-bottom: 8px;
}
.wm-type {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.04em;
}
.wm-created {
  font-size: clamp(2.4rem, 9vw, 6.2rem);
  color: var(--ink);
}
.wm-by {
  font-family: var(--mono);
  font-weight: 700;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: clamp(1.6rem, 6vw, 4.2rem);
  color: var(--gold);
  margin: 0 .04em;
}
.wm-kujo {
  font-size: clamp(2.4rem, 9vw, 6.2rem);
  color: var(--gold);
}

.hero-sub {
  color: var(--ink-2); margin: 38px 0 34px; max-width: 50ch;
  font-size: 1.15rem; font-family: var(--grot);
}
.hero-sub strong { color: var(--ink); border-bottom: 2px solid var(--gold); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.stat-row { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; display: block; color: var(--ink); }
.stat .pct { font-size: .72em; color: var(--ink); font-family: var(--serif); margin-left: -0.02em; }
.stat > span { color: var(--muted); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; font-weight: 700;
  font-family: var(--mono); font-size: .85rem; text-transform: lowercase;
  cursor: pointer; border: 1.5px solid var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 rgba(33,58,42,.12); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translate(-2px,-2px); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.btn.full { width: 100%; text-align: center; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.about-bio { font-size: 1.08rem; }
.about-bio p + p { margin-top: 18px; }
.about-bio strong { color: var(--gold); }
.about-bio em { font-style: italic; color: var(--ink-2); }
.about-stack h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; color: var(--gold); }
.about-stack h3:nth-of-type(2){ margin-top: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--mono); font-size: .78rem; padding: 6px 13px;
  background: var(--paper-2); border: 1.5px solid var(--ink);
}

/* ---------- services / pricing ---------- */
.pricing-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; margin: 10px 0 4px; color: var(--gold); -webkit-text-stroke: 1px var(--ink); }
.price span { font-size: 1rem; -webkit-text-stroke: 0; color: var(--ink); }
.care { color: var(--muted); font-size: .76rem; margin: 0 0 8px; }
.price-card .muted { min-height: 46px; }
.feature-list { list-style: none; margin: 18px 0 24px; flex: 1; }
.feature-list li { padding: 9px 0 9px 24px; position: relative; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.feature-list li::before { content: "↳"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.price-card.featured { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.price-card.featured h3, .price-card.featured .price span { color: var(--paper); }
.price-card.featured .price { color: var(--gold-2); -webkit-text-stroke: 1px var(--gold-2); }
.price-card.featured .muted, .price-card.featured .care { color: #c7d2bd; }
.price-card.featured .feature-list li { border-color: rgba(255,255,255,.15); }
.price-card.featured .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.badge {
  position: absolute; top: -14px; right: 20px; background: var(--gold);
  color: var(--ink); font-family: var(--mono); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border: 1.5px solid var(--ink);
}
.pricing-note { margin: 28px auto 0; max-width: 64ch; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- work / template word-cards ---------- */
.work-grid { display: grid; gap: 22px; grid-template-columns: repeat(2,1fr); }
.tpl-grid { grid-template-columns: repeat(3,1fr); }

.word-card {
  display: block; overflow: hidden; border-radius: 14px;
  border: 1.5px solid var(--ink); background: var(--paper);
  transition: transform .15s, box-shadow .15s;
}
.word-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }

/* the preview = just the word, typeset in that style */
.wt { height: 188px; display: grid; place-items: center; padding: 18px; text-align: center; overflow: hidden; }
.wt span { display: inline-block; max-width: 100%; }

.word-meta { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px solid var(--ink); }
.word-meta p { color: var(--muted); font-size: .82rem; font-family: var(--mono); }
.work-arrow { font-family: var(--mono); color: var(--gold); font-weight: 700; transition: transform .2s; }
.word-card:hover .work-arrow { transform: translate(3px,-3px); }

/* work styles */
.wt-neo { background: #ffe44d; }
.wt-neo span {
  font-family: var(--grot); font-weight: 700; text-transform: uppercase;
  font-size: 1.7rem; letter-spacing: -.02em; color: #111;
  background: #fff; border: 3px solid #111; padding: 10px 16px;
  box-shadow: 6px 6px 0 #111;
}
.wt-glass { background: linear-gradient(135deg,#6d5bd0,#b06ab3 55%,#3b82f6); position: relative; }
.wt-glass span {
  font-family: var(--grot); font-weight: 500; font-size: 1.5rem; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px; padding: 14px 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wt-term { background: #0a1410; }
.wt-term span {
  font-family: var(--mono); font-weight: 700; font-size: 1.7rem; color: #36ff8a;
  text-shadow: 0 0 8px rgba(54,255,138,.6); letter-spacing: -.02em;
}
.wt-term span::after { content: "_"; animation: cb-blink 1s steps(1) infinite; }
@keyframes cb-blink { 50% { opacity: 0; } }
.wt-asym { background: #f3ecda; position: relative; }
.wt-asym span {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.1rem;
  color: var(--ink); line-height: .9; transform: rotate(-5deg);
  border-bottom: 4px solid #ff4d2e; padding-bottom: 4px;
}

/* template styles */
.wt-cafe { background: #f3e3cf; }
.wt-cafe span { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: #6f4a24; }
.wt-gym { background: #11140f; }
.wt-gym span {
  font-family: var(--grot); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: 2rem; color: #d6ff3b;
}
.wt-bar { background: #17110d; }
.wt-bar span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.1rem; color: #e6c277; }
.wt-photo { background: #ededed; }
.wt-photo span {
  font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: #1a1a1a;
  letter-spacing: .22em; text-transform: uppercase; padding-left: .22em;
}
.wt-rest { background: #1f3324; }
.wt-rest span { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; color: #f3f1e7; }
.wt-port { background: #fff; }
.wt-port span {
  font-family: var(--grot); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em;
  color: #16161d; border-bottom: 5px solid #5b4bff;
}

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-info h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 12px; }
.contact-mail {
  display: inline-block; margin: 20px 0; font-family: var(--mono); font-size: 1.05rem;
  color: var(--ink); border-bottom: 2px solid var(--gold); font-weight: 700;
}
.contact-mail:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .82rem; font-weight: 700;
  padding: 9px 16px; border: 1.5px solid var(--ink); background: var(--paper);
  transition: background .2s, color .2s, transform .15s;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { background: var(--ink); color: var(--paper); transform: translate(-2px,-2px); }
.social-link:hover svg { fill: var(--paper); }

.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; color: var(--ink-2); }
input, select, textarea {
  font-family: var(--grot); font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink);
  padding: 12px 14px; transition: box-shadow .2s, background .2s; resize: vertical;
}
input:focus, select:focus, textarea:focus { outline: none; background: #fff; box-shadow: 5px 5px 0 var(--gold); }
.field.invalid input, .field.invalid textarea { border-color: #b5402b; box-shadow: 5px 5px 0 rgba(181,64,43,.4); }
select.just-set { background: #fff; box-shadow: 5px 5px 0 var(--gold); border-color: var(--gold); }
.err { color: #b5402b; font-family: var(--mono); font-size: .76rem; min-height: 14px; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-family: var(--mono); font-size: .88rem; min-height: 20px; }
.form-status.ok { color: var(--ink-2); } .form-status.bad { color: #b5402b; }

/* ---------- footer ---------- */
.footer {
  width: min(1120px,90%); margin: 90px auto 50px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: .8rem;
  border-top: 1.5px solid var(--ink); padding-top: 30px;
}
.footer img { width: auto; height: 30px; }
.to-top { margin-left: auto; color: var(--gold); font-weight: 700; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- tilt ---------- */
.tilt { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tpl-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .pricing-grid, .work-grid, .tpl-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .nav-links {
    position: absolute; top: 64px; right: 0; flex-direction: column; width: 240px;
    padding: 24px; gap: 20px; background: var(--paper); border: 1.5px solid var(--ink);
    transform: translateX(120%); transition: transform .3s;
  }
  .nav-links.open { transform: none; }
  .menu-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
