/* ============================================================
   cobitoworks — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #fff;
  color: #16161a;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #16161a; color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
textarea { font-family: inherit; }

/* ---------- CSS Variables ---------- */
:root {
  --clr-primary:       #259BF5;
  --clr-primary-dark:  #1a8ae0;
  --clr-primary-light: #8FC9F7;
  --clr-bg:            #ffffff;
  --clr-bg-alt:        #f3f3f1;
  --clr-text:          #16161a;
  --clr-text-muted:    #70707a;
  --clr-text-light:    #6a6a70;
  --clr-border:        rgba(0,0,0,0.1);

  --font-sans:    'Zen Kaku Gothic New', sans-serif;
  --font-display: 'Archivo', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --max-w:        1280px;
  --px:           clamp(20px, 5vw, 48px);
  --section-py:   clamp(80px, 10vw, 140px);
  --header-h:     74px;
  --radius-pill:  999px;
}

/* ---------- Animations ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scroll-bar {
  0%, 100% { transform: translateY(0);   opacity: .4; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section     { padding: var(--section-py) 0; }
.section--alt { background: var(--clr-bg-alt); border-top: 1px solid var(--clr-border); }

/* ---------- Section common ---------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--clr-text-light);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.section-title--xl {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.035em;
}
.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Spacing utilities */
.u-mb-md { margin-bottom: 32px; }
.u-mb-lg { margin-bottom: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,0.95); }

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.header-logo-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.header-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--clr-primary);
}
.header-logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--clr-primary-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #54545c;
}
.site-nav a { transition: color .2s; }
.site-nav a:hover { color: var(--clr-text); }

.nav-btn-contact {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius-pill);
  color: var(--clr-text);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-btn-contact:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.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); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.12em;
}
.nav-drawer__inner a { transition: color .2s; }
.nav-drawer__inner a:hover { color: var(--clr-primary); }
.nav-drawer__inner .nav-btn-contact {
  font-size: 14px;
  margin-top: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(50% + 245px) center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at left top,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%);
}
.hero__content {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 40px);
  left: 0;
  padding: 0 var(--px);
  max-width: min(720px, 90vw);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: #54545c;
  margin-bottom: 16px;
}
.hero__copy {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.6;
  font-weight: 500;
}

.hero__btns {
  position: absolute;
  z-index: 2;
  bottom: clamp(80px, 12vw, 110px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  min-width: 180px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--clr-text);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.hero__btn:hover {
  border-color: var(--clr-text);
  background: rgba(255,255,255,0.9);
}
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #54545c;
}
.hero__scroll-bar {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(#54545c, transparent);
  animation: scroll-bar 2s ease-in-out infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.02em;
  color: #cfcfca;
}
.marquee__track span { padding: 0 28px; }

/* ---------- Works Slider ---------- */
.works__desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--clr-text-muted);
  text-align: right;
}
.works-slider {
  display: flex;
  align-items: stretch;
}
.works-slider__arrow {
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.14);
  background: #f5f5f3;
  font-size: 20px;
  line-height: 1;
  color: var(--clr-text);
  transition: background .2s, color .2s, border-color .2s;
}
.works-slider__arrow:hover:not(:disabled) {
  background: var(--clr-text);
  color: #fff;
  border-color: var(--clr-text);
}
.works-slider__arrow:disabled { opacity: 0.3; cursor: default; }
.works-slider__viewport { flex: 1; overflow: hidden; }
.works-slider__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform .5s cubic-bezier(.5,.05,.2,1);
}
.works-slider__item {
  flex: 0 0 calc(100% / var(--per, 5));
  padding: 0 9px;
}
.works-card {
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  background: #f3f3f1;
  transition: border-color .3s;
}
.works-card:hover { border-color: rgba(0,0,0,0.3); }
.works-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Showreel ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.showreel__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px 0 9px;
  border: none;
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--clr-text);
  transition: border-color .2s;
}
.yt-link:hover { border-color: var(--clr-text); }
.yt-link img { width: 17px; height: 17px; border-radius: 4px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.text-muted { color: #9a9aa0; }
.about__sub {
  font-size: 16px;
  line-height: 2.1;
  color: var(--clr-text-muted);
  align-self: end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin-top: 72px;
  padding-top: 40px;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--clr-text-light);
  margin-top: 12px;
}

/* ---------- Process ---------- */
.process-list { border-top: 1px solid var(--clr-border); }
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--clr-border);
  align-items: baseline;
}
.process-item__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: #c4c4c0;
}
.process-item__title { font-size: 21px; font-weight: 700; }
.process-item__desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--clr-text-muted);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  border: 1px solid rgba(0,0,0,0.12);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: border-color .3s;
}
.plan-card:hover { border-color: rgba(0,0,0,0.3); }
.plan-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--clr-text-muted);
  margin-bottom: 24px;
}
.plan-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.plan-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.02em;
}
.plan-card__from { font-size: 14px; color: var(--clr-text-light); }
.plan-card__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--clr-text-muted);
  margin-bottom: 28px;
}
.plan-card__features {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-card__features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #33333a;
}
.plan-card__features li::before { content: '—'; color: var(--clr-text-light); flex-shrink: 0; }
.plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 28px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background .2s, color .2s;
}
.plan-card__cta:hover { background: var(--clr-text); color: #fff; }
.pricing-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--clr-text-light);
  line-height: 1.8;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.news-card { border: 1px solid var(--clr-border); transition: border-color .3s; }
.news-card:hover { border-color: rgba(0,0,0,0.3); }
.news-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.news-card:hover .news-card__thumb img { transform: scale(1.04); }
.news-card__body { padding: 20px 24px 24px; }
.news-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-card__date { font-family: var(--font-mono); font-size: 11px; color: var(--clr-text-light); }
.news-card__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.news-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}
.news-card__title a { transition: color .2s; }
.news-card__title a:hover { color: var(--clr-primary); }
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.news-more:hover { border-color: var(--clr-text); color: var(--clr-primary); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-info__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.contact-info__desc {
  font-size: 16px;
  line-height: 2;
  color: var(--clr-text-muted);
  margin-bottom: 40px;
}
.contact-info__email { display: none; } .contact-info__email--hidden { } .btn-submit, input.wpcf7-submit { border: none !important; outline: none !important; box-shadow: none !important; } .btn-submit:focus, input.wpcf7-submit:focus { outline: none !important; box-shadow: none !important; } .x {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #33333a;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-info__email:hover { border-color: #33333a; }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--clr-text-light);
}
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding: 10px 0;
  color: var(--clr-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  appearance: none;
}
.form-control:focus { border-color: var(--clr-text); }
.form-control::placeholder { color: #5a5a60; }
textarea.form-control { resize: vertical; min-height: 100px; }
.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 36px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform .2s, background .2s;
}
.btn-submit:hover { transform: translateY(-2px); background: var(--clr-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--clr-border);
  padding: clamp(32px, 4vw, 48px) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--clr-primary);
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clr-text-light);
  flex-wrap: wrap;
}
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--clr-text); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #5a5a60;
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .site-nav { gap: 20px; font-size: 11px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about__sub { align-self: auto; }
  .process-item { grid-template-columns: 80px 1fr; }
  .process-item__desc { grid-column: 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .works-slider__item { --per: 3; }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Nav */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  /* Header logo */
  .header-logo-sub { display: none; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero__eyebrow { white-space: normal; letter-spacing: 0.2em; font-size: 11px; }
  .hero__copy { white-space: normal; }
  .hero__btns { gap: 10px; bottom: 110px; }
  .hero__btn { height: 44px; padding: 0 18px; font-size: 11px; border: none !important; outline: none !important; width: 200px; justify-content: center; }

  /* Works */
  .works-slider__item { --per: 1; }
  .section-header--split { flex-direction: column; align-items: flex-start; }
  .works__desc { text-align: left; }

  /* Process */
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .process-item__num { font-size: 24px; }
  .process-item__title { font-size: 17px; }
  .process-item__desc { grid-column: auto; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats { gap: 16px; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__btns { flex-direction: column; align-items: center; bottom: 110px; }
  .hero__btn { width: 220px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .plan-card__price { font-size: 32px; }
}


/* === smartphone hero fix === */
@media (max-width: 600px) {
  .hero__content {
    max-width: calc(100vw - 48px) !important;
    overflow: hidden !important;
  }
  .hero__copy {
    font-size: clamp(15px, 4.2vw, 19px) !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
  .hero__copy span,
  .hero__copy * {
    white-space: normal !important;
    display: inline !important;
  }
}