/*
Theme Name: Final Krayons Story — Independent
Theme URI: https://new.krayonstory.com
Author: Krayon Story
Author URI: https://krayonstory.com
Description: A fully independent portfolio theme for Krayon Story. It uses original WordPress templates and local assets only.
Version: 6.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: krayon-story-independent
*/

:root {
  --orange: #f15a29;
  --orange-light: #ff8c68;
  --orange-pale: #fff0ea;
  --ink: #141414;
  --grey: #696969;
  --line: #d9d6d2;
  --paper: #f3f1ed;
  --white: #fff;
  --shell: min(92vw, 1480px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { position: relative; padding: clamp(86px, 10vw, 170px) 0; overflow: hidden; }
.section-white { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.65); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 999; padding: 12px 18px; background: var(--white); color: var(--ink); transition: top .2s; }
.skip-link:focus { top: 20px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 88px; background: transparent; color: var(--white); transition: height .25s, background-color .25s, box-shadow .25s; }
.site-header.is-scrolled { height: 72px; background: rgba(20,20,20,.96); box-shadow: 0 1px 0 rgba(255,255,255,.13); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.site-logo { display: block; width: 143px; flex: 0 0 auto; }
.site-logo img { width: 100%; height: auto; }
.site-menu { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); font-size: 12px; font-weight: 700; }
.site-menu a { position: relative; padding: 12px 0; }
.site-menu a::after { content: ''; position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.site-menu a:hover::after, .site-menu a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px 8px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 7px 0; background: currentColor; transition: transform .2s; }

.hero-section { position: relative; min-height: 100svh; padding: 160px 0 76px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: #151515; color: var(--white); }
.hero-section::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.hero-aura { position: absolute; z-index: -3; width: min(90vw, 1100px); aspect-ratio: 1; left: 50%; top: 46%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(241,90,41,.9) 0, rgba(241,90,41,.3) 31%, rgba(20,20,20,0) 69%); filter: blur(30px); }
.hero-ghost { position: absolute; z-index: -2; top: 50%; left: 50%; transform: translate(-50%,-55%); color: rgba(255,255,255,.045); font-size: clamp(130px, 25vw, 460px); font-weight: 900; line-height: .75; letter-spacing: -.09em; white-space: nowrap; }
.hero-gallery { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-card { --shift: 0px; position: absolute; width: clamp(160px, 22vw, 340px); margin: 0; padding: 9px; background: rgba(255,255,255,.93); box-shadow: 0 28px 70px rgba(0,0,0,.35); transform: translateY(calc(var(--shift) * -1)); transition: transform .1s linear; }
.hero-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-card-a { left: 7vw; top: 25%; rotate: -7deg; }
.hero-card-b { left: 42%; top: 13%; rotate: 4deg; }
.hero-card-c { right: 5vw; top: 34%; rotate: 8deg; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { max-width: 1100px; margin: 20px 0 32px; font-size: clamp(62px, 10.5vw, 174px); font-weight: 700; letter-spacing: -.075em; line-height: .82; }
.hero-foot { display: grid; grid-template-columns: minmax(260px, 520px) auto; justify-content: space-between; align-items: end; gap: 50px; }
.hero-foot > p { max-width: 550px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(15px, 1.3vw, 19px); }
.pill { width: 168px; height: 58px; padding: 0 8px 0 20px; display: flex; align-items: center; justify-content: space-between; border-radius: 100px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; }
.pill b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 18px; transition: transform .25s; }
.pill:hover b { transform: rotate(45deg); }

.client-strip { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); }
.client-strip > div { width: max-content; padding: 25px 0; display: flex; animation: ticker 28s linear infinite; }
.client-strip span { display: flex; align-items: center; gap: 42px; margin-right: 42px; color: #777; font-size: 13px; font-weight: 700; white-space: nowrap; }
.client-strip span::after { content: '✦'; color: var(--orange); font-size: 11px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.split-head { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(360px, 2.1fr); gap: clamp(40px, 8vw, 150px); align-items: start; }
.split-head h2, .section-title h2 { margin: 0; font-size: clamp(44px, 6vw, 92px); font-weight: 600; letter-spacing: -.06em; line-height: .96; }
.intro-section .split-head h2 { max-width: 980px; font-size: clamp(38px, 4.5vw, 72px); }
.stat-grid { margin-top: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.stat-grid article { padding: 38px 24px 0 0; border-right: 1px solid var(--line); }
.stat-grid article + article { padding-left: 36px; }
.stat-grid article:last-child { border-right: 0; }
.stat-grid strong { display: block; font-size: clamp(58px, 8vw, 128px); font-weight: 500; letter-spacing: -.07em; line-height: 1; }
.stat-grid p { margin: 12px 0 0; color: var(--grey); font-size: 13px; }

.section-title { margin-bottom: clamp(50px, 8vw, 120px); }
.section-title .eyebrow { margin-bottom: 24px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(50px, 7vw, 120px) clamp(22px, 3vw, 48px); }
.project-card { display: block; }
.project-card:nth-child(even) { margin-top: clamp(70px, 10vw, 160px); }
.project-media { position: relative; overflow: hidden; background: #e8e5e0; }
.project-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 55%, rgba(0,0,0,.14)); opacity: 0; transition: opacity .4s; }
.project-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.project-media > span { position: absolute; z-index: 2; top: 18px; right: 18px; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-size: 10px; font-weight: 700; }
.project-card:hover .project-media img { transform: scale(1.035); }
.project-card:hover .project-media::after { opacity: 1; }
.project-info { padding-top: 20px; display: flex; align-items: start; justify-content: space-between; gap: 30px; border-top: 1px solid var(--ink); }
.project-info h2, .project-info h3 { margin: 0; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.project-info p { max-width: 470px; margin: 12px 0 0; color: var(--grey); font-size: 13px; }
.project-info > b { font-size: 26px; line-height: 1; transition: transform .25s; }
.project-card:hover .project-info > b { transform: rotate(45deg); }
.line-cta { margin-top: 100px; border-top: 1px solid var(--ink); }
.line-cta a { padding: 24px 0; display: flex; justify-content: space-between; font-size: clamp(24px, 3vw, 44px); font-weight: 600; letter-spacing: -.04em; }
.line-cta span { color: var(--orange); }

.split-head-dark { padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.18); }
.service-list article { min-height: 140px; padding: 30px 0; display: grid; grid-template-columns: 1fr 2fr 1.2fr; gap: 40px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.service-list span { color: var(--orange-light); font-size: 11px; font-weight: 700; }
.service-list h2, .service-list h3 { margin: 0; font-size: clamp(34px, 4.3vw, 68px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.service-list p { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; }

.process-intro { display: grid; grid-template-columns: 1fr 2.1fr; gap: clamp(40px, 8vw, 150px); align-items: start; margin-bottom: clamp(75px, 10vw, 150px); }
.process-intro h2 { margin: 0; font-size: clamp(54px, 7vw, 110px); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.process-intro div > p { max-width: 470px; margin: 26px 0 0; color: var(--grey); }
.process-bars article { overflow: hidden; }
.process-bars article:nth-child(1) { background: #fff3ee; }
.process-bars article:nth-child(2) { background: #ffd6c8; }
.process-bars article:nth-child(3) { background: #ff9f7f; }
.process-bars article:nth-child(4) { background: var(--orange); color: var(--white); }
.process-bars article .shell { min-height: 118px; display: grid; grid-template-columns: 1.1fr .35fr 1.25fr; gap: 30px; align-items: center; }
.process-bars h3 { margin: 0; font-size: clamp(32px, 4.4vw, 68px); font-weight: 600; letter-spacing: -.06em; }
.process-bars span { font-size: clamp(42px, 5vw, 78px); font-weight: 300; letter-spacing: -.06em; }
.process-bars p { max-width: 470px; margin: 0; font-size: 12px; }

.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(50px, 9vw, 170px); align-items: start; }
.faq-layout h2 { margin: 20px 0 16px; font-size: clamp(48px, 6vw, 90px); font-weight: 600; letter-spacing: -.07em; line-height: .95; }
.faq-layout > div:first-child > p:not(.eyebrow) { max-width: 330px; color: var(--grey); }
.faq-layout > div:first-child > a { display: inline-block; margin-top: 18px; color: var(--orange); font-size: 13px; font-weight: 700; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 83px; display: grid; grid-template-columns: 1fr 46px 20px; gap: 24px; align-items: center; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary b { color: #bbb; font-size: 15px; }
.faq-list summary i { position: relative; width: 16px; height: 16px; }
.faq-list summary i::before, .faq-list summary i::after { content: ''; position: absolute; top: 7px; width: 16px; height: 1px; background: var(--ink); transition: transform .2s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details > p { max-width: 650px; margin: -4px 70px 26px 0; color: var(--grey); font-size: 14px; }

.route-hero { min-height: 80svh; padding: 175px 0 90px; display: flex; align-items: flex-end; background: var(--ink); color: var(--white); }
.route-hero h1 { margin: 22px 0 0; font-size: clamp(68px, 12vw, 190px); font-weight: 600; letter-spacing: -.08em; line-height: .82; }
.route-intro { max-width: 510px; margin: 44px 0 0 auto; color: rgba(255,255,255,.65); font-size: clamp(16px, 1.5vw, 21px); }
.work-hero { background: var(--orange); }
.project-grid-page { padding-bottom: 40px; }
.case-hero { min-height: 73svh; padding-bottom: 65px; background: var(--project-accent); }
.back-link { display: inline-block; margin-bottom: clamp(65px, 10vw, 145px); font-size: 12px; font-weight: 700; }
.case-heading { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: end; }
.case-heading h1 { font-size: clamp(78px, 13vw, 210px); }
.case-heading > p { max-width: 430px; margin: 0 0 12px; font-size: clamp(16px, 1.6vw, 23px); }
.case-cover { width: 100%; margin: 0; background: #ddd; }
.case-cover img { width: 100%; max-height: 95svh; object-fit: cover; }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(28px, 5vw, 90px); }
.story-grid article { padding-top: 22px; border-top: 1px solid var(--ink); }
.story-grid span { color: var(--project-accent); font-size: 11px; font-weight: 700; }
.story-grid h2 { margin: 42px 0 20px; font-size: clamp(28px, 3.3vw, 52px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.story-grid p { margin: 0; color: var(--grey); }
.case-gallery { padding-top: clamp(25px, 4vw, 65px); padding-bottom: clamp(90px, 12vw, 190px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px, 3vw, 48px); }
.case-gallery figure { margin: 0; }
.case-gallery .gallery-wide { grid-column: 1 / -1; }
.case-gallery img { width: 100%; height: 100%; max-height: 86svh; object-fit: cover; background: #e8e8e8; }
.case-gallery figcaption { margin-top: 9px; color: var(--grey); font-size: 10px; letter-spacing: .03em; }
.next-project { background: var(--next-accent); color: var(--white); }
.next-project a { min-height: 310px; padding-block: 55px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: end; }
.next-project span { grid-column: 1/-1; align-self: start; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.next-project strong { font-size: clamp(56px, 9vw, 145px); font-weight: 600; letter-spacing: -.07em; line-height: .8; }
.next-project b { font-size: 48px; transition: transform .25s; }
.next-project a:hover b { transform: rotate(45deg); }

.offer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer-grid article { min-height: 650px; padding: clamp(38px, 5vw, 78px); display: flex; flex-direction: column; background: var(--white); }
.offer-grid .offer-dark { background: var(--ink); color: var(--white); }
.offer-grid h2 { margin: 60px 0 24px; font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.offer-grid article > p:not(.eyebrow) { max-width: 450px; color: var(--grey); }
.offer-grid .offer-dark > p:not(.eyebrow) { color: rgba(255,255,255,.65); }
.offer-grid ul { margin: 48px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer-grid .offer-dark ul { border-color: rgba(255,255,255,.18); }
.offer-grid li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.offer-grid .offer-dark li { border-color: rgba(255,255,255,.18); }
.offer-grid a { margin-top: auto; color: var(--orange); font-size: 13px; font-weight: 700; }
.compact-bars { margin: 0 calc((100vw - min(92vw, 1480px)) / -2); }
.service-page .split-head { margin-bottom: 80px; }
.light-services article { color: var(--ink); border-color: var(--line); }
.light-services p { color: var(--grey); }
.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.insight-grid article { min-height: 520px; padding: 34px; display: flex; flex-direction: column; background: var(--white); }
.insight-grid article > span { margin-bottom: 100px; color: var(--orange); font-size: 12px; font-weight: 700; }
.insight-grid h2 { margin: 18px 0; font-size: clamp(30px, 3.4vw, 51px); font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.insight-grid article > p:not(.eyebrow) { color: var(--grey); }
.insight-grid a { margin-top: auto; font-size: 12px; font-weight: 700; }
.simple-hero { min-height: 58svh; }
.simple-hero h1 { font-size: clamp(60px, 9vw, 135px); }
.legal-copy { max-width: 850px; }
.legal-copy h2 { margin: 0 0 36px; font-size: clamp(42px, 6vw, 82px); letter-spacing: -.06em; line-height: 1; }
.legal-copy p { color: var(--grey); font-size: 18px; line-height: 1.7; }
.legal-copy a { color: var(--orange); text-decoration: underline; }

.site-footer { overflow: hidden; background: var(--ink); color: var(--white); }
.footer-inner { min-height: 78svh; padding: clamp(90px, 10vw, 150px) 0 35px; display: flex; flex-direction: column; }
.site-footer h2 { margin: 30px 0 34px; font-size: clamp(70px, 12vw, 180px); font-weight: 600; letter-spacing: -.08em; line-height: .78; }
.footer-copy { max-width: 540px; margin: 0 0 65px auto; color: rgba(255,255,255,.65); font-size: 16px; }
.footer-email { padding: 24px 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); color: var(--white); font-size: clamp(28px, 4vw, 62px); font-weight: 600; letter-spacing: -.04em; }
.footer-email span { color: var(--orange); }
.footer-bottom { margin-top: auto; padding-top: 70px; display: flex; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.5); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

[data-reveal] { opacity: 0; transform: translateY(35px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 840px) {
  :root { --shell: calc(100vw - 36px); }
  .site-header, .site-header.is-scrolled { height: 68px; }
  .site-logo { width: 124px; }
  .menu-toggle { display: block; }
  .site-menu { position: fixed; inset: 0; z-index: -1; padding: 110px 20px 50px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .site-menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: clamp(34px, 10vw, 54px); font-weight: 500; letter-spacing: -.05em; }
  .menu-open .site-menu { opacity: 1; visibility: visible; }
  .menu-open .menu-toggle > span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .hero-section { min-height: 850px; padding-bottom: 34px; }
  .hero-card { width: 155px; padding: 5px; }
  .hero-card-a { left: -15px; top: 24%; }
  .hero-card-b { left: 39%; top: 19%; }
  .hero-card-c { right: -30px; top: 37%; }
  .hero-content h1 { margin-top: 14px; font-size: clamp(58px, 19vw, 95px); }
  .hero-foot { grid-template-columns: 1fr; gap: 25px; }
  .hero-foot .pill { width: 100%; }
  .split-head, .process-intro, .faq-layout, .case-heading { grid-template-columns: 1fr; gap: 38px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article, .stat-grid article + article { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-grid { grid-template-columns: 1fr; gap: 62px; }
  .project-card:nth-child(even) { margin-top: 0; }
  .project-info p { max-width: 330px; }
  .service-list article { grid-template-columns: 42px 1fr; gap: 15px; }
  .service-list article p { grid-column: 2; }
  .process-bars article .shell { min-height: 148px; grid-template-columns: 1fr auto; gap: 12px; }
  .process-bars p { grid-column: 1/-1; padding-bottom: 18px; }
  .faq-list summary { min-height: 94px; grid-template-columns: 1fr 30px 17px; gap: 12px; }
  .faq-list details > p { margin-right: 32px; }
  .route-hero { min-height: 72svh; padding-top: 135px; }
  .route-hero h1 { font-size: clamp(64px, 20vw, 110px); }
  .route-intro { margin-left: 0; }
  .case-heading > p { margin-bottom: 0; }
  .case-cover img { min-height: 58svh; }
  .story-grid, .case-gallery, .offer-grid, .insight-grid { grid-template-columns: 1fr; }
  .story-grid { gap: 65px; }
  .case-gallery .gallery-wide { grid-column: auto; }
  .offer-grid article { min-height: 580px; }
  .insight-grid article { min-height: 430px; }
  .next-project a { min-height: 240px; }
  .footer-copy { margin-left: 0; }
  .footer-email { font-size: clamp(21px, 6.4vw, 34px); }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-card { transform: none; }
}
