/* ===== 1sickPuppy — static recreation ===== */
:root {
  --blue: #03a1ff;
  --dark: #161616;
  --dark-2: #1c1a17;
  --card: #2c2c2e;
  --white: #ffffff;
  --muted: #bdbdbd;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --gutter: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--white); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

.container { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

/* ---------- Placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.08) 12px 24px),
    #3a3a3c;
  border: 1px dashed rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font: 600 11px/1.3 var(--ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 4px;
  max-width: 90%;
}
.ph-video::before {
  content: "▶";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -110%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 20px; padding-left: 4px;
}
.ph-light { background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 12px, rgba(255,255,255,.2) 12px 24px); border-color: rgba(255,255,255,.7); }
.ph-light::after { color: #fff; background: rgba(0,0,0,.15); }

.bg-ph { position: absolute; inset: 0; border: 0; z-index: 0; opacity: .55; }

/* Images / videos inside placeholders */
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph > .contain { object-fit: contain; }
.ph:has(> img)::after, .ph:has(> img)::before, .ph:has(> video)::after, .ph:has(> video)::before { display: none; }
/* once a real file (not a .svg placeholder) is in, drop the placeholder look */
.ph:has(> img:not([src$=".svg"])), .ph:has(> video) { background: none; border: 0; }
button[type="submit"]:disabled { opacity: .6; cursor: default; }
.bg-ph::after { position: absolute; top: 16px; right: 16px; }
.bg-ph.ph-video::before { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 105px; }
.ph-logo { width: 262px; height: 46px; }
.main-nav { display: flex; gap: 63px; }
.main-nav a { font-family: var(--slab); font-size: 15px; text-transform: uppercase; letter-spacing: .01em; transition: color .2s; }
.main-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); }
.hero-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 52px; padding-bottom: 66px; gap: 40px; }
.ph-kaomoji { width: 150px; height: 68px; margin-bottom: 12px; }
.hero h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(44px, 6.6vw, 90px); line-height: 1.02; letter-spacing: -.005em; }
.hero-intro { max-width: 400px; font-size: 19px; line-height: 1.68; margin-top: 70px; }
.hero-intro strong { font-weight: 700; }

/* ---------- Section titles ---------- */
.section-title { font-family: var(--slab); font-weight: 400; font-size: 34px; color: var(--blue); line-height: 1.2; }
.section-title.white { color: #fff; }
.section-title.small { font-size: 32px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; justify-content: center; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 388px; max-width: 100%; height: 60px; border-radius: 8px; font: 700 17px var(--sans); text-transform: uppercase; letter-spacing: .01em; transition: .2s; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--blue); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }

/* ---------- Projects ---------- */
.projects { position: relative; padding: 105px 0 90px; overflow: hidden; }
.projects .bg-ph { opacity: .15; }
.projects .section-title { margin-bottom: 52px; padding-left: 5px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 38px; margin-bottom: 70px; }
.projects-full { position: relative; z-index: 1; padding: 0 max(var(--gutter), 3.15vw); }
.projects-full .project-grid { gap: max(24px, 2.25vw); }
.project-card .ph-square { aspect-ratio: 1 / 1; border-radius: 14px; transition: transform .35s; }
.project-card:hover .ph-square { transform: scale(1.02); }
.project-card span { display: block; font-family: var(--slab); font-size: 17px; color: var(--muted); margin-top: 18px; }

/* ---------- Idea ---------- */
.idea { position: relative; background: var(--dark-2); min-height: 683px; overflow: hidden; }
.idea-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 105px; padding-bottom: 150px; }
.idea-text { max-width: 520px; }
.idea-text h3 { font-family: var(--slab); font-weight: 400; font-size: 23px; color: var(--blue); line-height: 1.3; margin-bottom: 38px; }
.idea-text p { font-weight: 300; font-size: 16px; line-height: 1.45; margin-bottom: 22px; }

/* ---------- Services ---------- */
.services { background: var(--blue); padding: 70px 0 130px; }
.services-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 72px; }
.services-left { padding-top: 15px; }
.services-left .ph-kaomoji { width: 206px; height: 93px; margin-top: 16px; }
.services .section-title { font-size: 31px; }
.acc-item { border-bottom: 2px solid rgba(255,255,255,.3); }
.acc-head { width: 100%; background: none; border: 0; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; font: 300 33px var(--sans); padding: 22px 0 26px; }
.acc-icon { position: relative; width: 12px; height: 12px; flex-shrink: 0; margin-right: 6px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: #fff; transition: transform .3s; }
.acc-icon::before { left: 0; top: 5px; width: 12px; height: 2.5px; }
.acc-icon::after { left: 5px; top: 0; width: 2.5px; height: 12px; }
.acc-head[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-body p { font-size: 16px; line-height: 1.6; padding-bottom: 18px; }
.acc-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.acc-body ul { padding-bottom: 26px; columns: 2; column-gap: 24px; }
.acc-body li { font-size: 15px; line-height: 1.8; padding-left: 14px; position: relative; break-inside: avoid; }
.acc-body li::before { content: "•"; position: absolute; left: 0; }

/* ---------- News ---------- */
.news { padding: 105px 0 108px; border-bottom: 1px solid #333; }
.news .section-title { margin-bottom: 26px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 31px; margin-bottom: 42px; }
.post .ph-tall { aspect-ratio: 295 / 524; margin-bottom: 36px; }
.post-meta { font: 12px var(--ui); margin-bottom: 18px; }
.post-meta span { margin: 0 6px; }
.post h3 { font: 300 19px/1.4 var(--ui); margin-bottom: 12px; transition: color .2s; }
.post:hover h3 { color: var(--blue); }
.post p { font: 13.5px/1.55 var(--ui); color: #ddd; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Partners ---------- */
.partners { position: relative; padding: 70px 0 70px; overflow: hidden; min-height: 568px; }
.partners .bg-ph { opacity: .1; }
.partners .section-title { margin-bottom: 52px; }
.slider { position: relative; z-index: 1; overflow: hidden; }
.slider-track { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; padding-left: var(--gutter); }
.slider:hover .slider-track { animation-play-state: paused; }
.partner { width: 400px; height: 354px; flex-shrink: 0; }
.partner .ph { width: 100%; height: 100%; background: var(--card); border: 1px dashed rgba(255,255,255,.2); border-radius: 10px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 6px solid var(--blue); padding: 40px 0 30px; }
.magic { font-family: var(--slab); font-weight: 400; font-size: clamp(54px, 11.2vw, 152px); line-height: 1.1; text-align: center; letter-spacing: -.01em; margin-bottom: 70px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 0 48px; }
.footer-grid .section-title { margin-bottom: 26px; }
.form label, .news-form label { display: block; font: 300 14px var(--sans); color: #ddd; margin-bottom: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea { display: block; width: 100%; margin-top: 8px; background: transparent; border: 1px solid #9a9a9a; border-radius: 8px; color: #fff; font: 15px var(--sans); padding: 9px 12px; height: 40px; outline: none; transition: border-color .2s; }
textarea { height: 90px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); }
.btn-submit { background: var(--blue); border: 0; border-radius: 8px; color: #111; font: 15px var(--sans); height: 40px; width: 253px; cursor: pointer; transition: .2s; }
.btn-submit:hover { background: #fff; }
.news-form .inline { display: flex; gap: 24px; align-items: flex-end; }
.news-form .btn-submit { width: 116px; flex-shrink: 0; color: #fff; height: 42px; }
.news-form .btn-submit:hover { color: var(--blue); }
.form-msg { color: var(--blue); font-size: 14px; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 50px; padding-right: 70px; }
.social li { font: 14.5px var(--sans); line-height: 1.6; }
.social a:hover { color: var(--blue); }
.ph-footlogo { width: 147px; height: 105px; }
.copy { font: 14px var(--sans); margin-top: 80px; padding-left: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav { gap: 30px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-intro { margin-top: 0; max-width: 560px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { height: 76px; }
  .ph-logo { width: 180px; height: 32px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--dark); flex-direction: column; align-items: center; justify-content: center; gap: 36px; transform: translateX(100%); transition: transform .35s; }
  .main-nav a { font-size: 22px; }
  .main-nav.open { transform: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-intro { font-size: 16px; }
  .projects, .news { padding: 60px 0; }
  .project-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .idea-inner, .services-inner, .footer-grid { grid-template-columns: 1fr; }
  .idea-inner { padding-top: 60px; padding-bottom: 60px; }
  .footer-grid { padding: 0; gap: 50px; }
  .acc-head { font-size: 24px; }
  .acc-body ul { columns: 1; }
  .news-grid { grid-template-columns: 1fr; }
  .partner { width: 260px; height: 230px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .btn-submit { width: 100%; }
  .news-form .inline { gap: 10px; }
  .footer-bottom { padding-right: 0; }
  .copy { padding-left: 0; margin-top: 50px; }
}

/* =====================================================================
   Multi-page additions: projects grid, project pages, blog, posts
   ===================================================================== */
.main-nav a.active { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.blue { color: var(--blue); }
.page-title { font-family: var(--slab); font-weight: 400; font-size: clamp(42px, 5.4vw, 74px); line-height: 1.12; }
.eyebrow { font-family: var(--slab); color: var(--blue); font-size: 22px; text-transform: uppercase; margin-bottom: 16px; }

/* Projects page */
.page-hero { padding: 70px 0 60px; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.page-intro { max-width: 470px; font-size: 21px; line-height: 1.55; }
.pf { position: relative; padding: 40px 0 110px; overflow: hidden; }
.pf .section-title { margin-bottom: 36px; }
.pf .bg-ph { opacity: .15; }
.pf-full { position: relative; z-index: 1; padding: 0 max(var(--gutter), 2.25vw); }
.pf-grid { --g: max(16px, 1.4vw); --u: calc((100% - var(--g)) / 3); display: grid; grid-template-columns: var(--u) calc(var(--u) - var(--g)) var(--u); gap: var(--g); }
.pf-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 559 / 790; }
.pf-tile.wide { grid-column: span 2; aspect-ratio: auto; }
.pf-tile .ph { position: absolute; inset: 0; border-radius: 10px; }
.pf-tile .ph > img { transition: transform .5s ease; }
.pf-tile:hover .ph > img { transform: scale(1.04); }
.pf-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; font-family: var(--slab); font-size: 19px;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transform: translateY(8px); transition: .3s; z-index: 2; }
.pf-tile:hover .pf-caption, .pf-tile:focus-visible .pf-caption { opacity: 1; transform: none; }

/* Project page */
.proj { padding: 60px 0 100px; }
.proj-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 56px; }
.proj-meta h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.12; margin-bottom: 36px; }
.proj-meta h2 { font: 400 21px var(--slab); color: var(--blue); margin-top: 14px; }
.proj-meta p { font: 400 21px var(--slab); }
.proj-desc p { font: 300 15.5px/1.75 var(--ui); margin-bottom: 18px; }
.proj-cover { aspect-ratio: 1440 / 735; border-radius: 10px; }
.proj-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.proj-gallery .ph { aspect-ratio: 4 / 3; border-radius: 10px; }
.proj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 70px; padding-top: 30px; border-top: 1px solid #333; }
.proj-nav a { font-family: var(--slab); font-size: 18px; transition: color .2s; }
.proj-nav a:hover { color: var(--blue); }
.proj-nav span { display: block; font: 13px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.proj-next { text-align: right; }
.proj-all { border: 2px solid #fff; border-radius: 8px; padding: 10px 22px; font-size: 15px !important; text-transform: uppercase; }

/* Blog index + cards */
.blog-index { padding: 70px 0 110px; }
.blog-index .page-title { padding-bottom: 28px; border-bottom: 1px solid #444; margin-bottom: 36px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 24px; }
.blog-card { display: block; }
.blog-thumb { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.blog-card .post-meta { margin-bottom: 8px; color: var(--muted); }
.blog-card h2 { font: 300 18px/1.4 var(--ui); transition: color .2s; }
.blog-card:hover h2 { color: var(--blue); }

/* Post page */
.post-page { padding: 70px 0 40px; }
.post-wrap { max-width: 740px; margin: 0 auto; padding: 0 var(--gutter); }
.post-wrap > .post-meta { color: var(--muted); }
.post-wrap h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.15; margin-bottom: 28px; }
.post-cover { margin: 0 0 34px; }
.post-cover img { width: 100%; height: auto; border-radius: 4px; }
.post-wrap p { font: 300 16px/1.75 var(--ui); margin-bottom: 20px; color: #e8e8e8; }
.post-wrap p strong { font-weight: 600; color: #fff; }
.post-wrap h3 { font: 400 26px/1.3 var(--slab); margin: 36px 0 14px; }
.post-wrap h4 { font: 400 21px/1.3 var(--slab); color: var(--blue); margin: 30px 0 10px; }
.post-wrap ul { margin: 0 0 22px 22px; list-style: disc; }
.post-wrap li { font: 300 16px/1.7 var(--ui); margin-bottom: 6px; }
.share { display: flex; gap: 22px; padding: 22px 0; margin-top: 30px; border-top: 1px solid #333; font: 14px var(--ui); }
.share a:hover { color: var(--blue); }
.more-posts { padding-top: 70px; padding-bottom: 60px; }
.more-posts .section-title { margin-bottom: 32px; }
.more-posts .btn-row { margin-top: 50px; }

.post-wrap a:not(.btn) { color: var(--blue); }
.share a { color: inherit !important; }

.contact-spacer { height: 40px; }

@media (max-width: 1000px) {
  .page-hero-inner, .proj-head { grid-template-columns: 1fr; display: grid; gap: 30px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pf-grid { grid-template-columns: 1fr; gap: 14px; }
  .pf-tile, .pf-tile.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .pf-caption { opacity: 1; transform: none; font-size: 16px; padding: 30px 16px 12px; }
  .proj-gallery { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .proj-nav { grid-template-columns: 1fr 1fr; }
  .proj-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .page-intro { font-size: 17px; }
}

/* Content layer (artifact database) */
.cms-status { font: 300 16px/1.6 var(--ui); color: var(--muted); padding: 80px 0; text-align: center; }
.cms-missing { padding: 60px 0 40px; text-align: center; }
.cms-missing h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 28px; }
.cms-draft { display: inline-block; font: 400 13px var(--ui); letter-spacing: .04em; text-transform: uppercase; color: #111; background: #ffd23f; padding: 6px 12px; border-radius: 4px; margin-bottom: 24px; }
.cms-adminbar { background: #0b0b0c; border-bottom: 1px solid #2c2c2e; display: flex; justify-content: flex-end; align-items: center; padding: 6px var(--gutter); }
.cms-admin-btn { font: 500 13px/1 var(--ui); color: #04121c; background: var(--blue); padding: 7px 14px; border-radius: 5px; text-decoration: none; }
.cms-admin-btn:hover { filter: brightness(1.1); }
.cms-admin-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) { .cms-adminbar { padding: 6px 16px; } }
