/* Company page. Builds on services.css and projects.css (cards, steps, stats, browser frames, quality grid). */

/* Hero */
.co-hero {
  overflow: hidden;
  background-color: var(--surface-alt);
  background-image: linear-gradient(90deg, rgba(91, 157, 184, .055) 1px, transparent 1px), linear-gradient(0deg, rgba(91, 157, 184, .045) 1px, transparent 1px), radial-gradient(circle at 72% 45%, rgba(50, 112, 139, .28), transparent 42%);
  background-size: 96px 96px, 96px 96px, auto;
}
.co-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 80px); padding-block: clamp(64px, 7vw, 110px); }
.co-hero-copy { border-top: 2px solid var(--blue); padding-top: 24px; }
.co-hero-copy .eyebrow { color: var(--blue); }
.co-hero-copy h1 { max-width: 640px; margin: 20px 0 22px; color: var(--ink); font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
.co-hero-copy h1 span { display: block; }
.co-hero-copy h1 span:nth-child(2) { color: var(--blue); }
.co-hero-copy h1 span:nth-child(3) { color: color-mix(in srgb, var(--blue) 65%, var(--muted)); }
.co-hero-copy .page-lead { max-width: 580px; margin: 0; color: var(--hero-copy); }
.co-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.co-hero-actions .button { gap: 22px; }

.co-hero-visual { position: relative; min-height: clamp(400px, 38vw, 520px); margin: 0; }
.co-shot { position: absolute; width: 74%; box-shadow: 0 30px 70px rgba(4, 14, 22, .35); }
.co-shot-1 { top: 0; right: 0; animation: pf-float-c 9s ease-in-out infinite; }
.co-shot-2 { top: 34%; right: 12%; width: 64%; transform: rotate(2deg); animation: pf-float-b 10s ease-in-out infinite; }
.co-id { position: absolute; left: 0; bottom: 34px; z-index: 2; width: clamp(210px, 18vw, 250px); padding: 20px; border: 1px solid #4a6f80; border-radius: 14px; background: rgba(14, 29, 38, .92); box-shadow: 0 24px 60px rgba(3, 12, 18, .45); color: #c3d8e1; backdrop-filter: blur(8px); animation: pf-float-a 8s ease-in-out infinite; }
.co-id-logo { width: 130px; height: auto; }
.co-id-name { margin: 14px 0 14px; color: #eef6f9; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.co-id-place { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: #9db8c5; font-size: .76rem; }
.co-id-place .k-icon { width: 15px; height: 15px; }
.co-id ul { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid #2f4b59; list-style: none; }
.co-id li { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; }
.co-id li i { width: 8px; height: 8px; border-radius: 50%; background: #8fdcf5; animation: hero-beacon 2.4s ease-in-out infinite; }
.co-id li:nth-child(2) i { background: #6fc0dd; animation-delay: .8s; }
.co-id li:nth-child(3) i { background: #8fd3c0; animation-delay: 1.6s; }
.co-hero-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.co-hero-visual figcaption span:first-child { color: var(--blue); }

/* Intro with Venn diagram */
.co-intro { background: var(--surface); }
.co-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6vw, 90px); }
.co-intro h2 { margin: 16px 0 18px; }
.co-venn { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.co-venn svg { display: block; width: 100%; height: auto; }
.co-venn circle { transform-box: fill-box; transform-origin: center; }
.venn-a, .venn-b, .venn-c { fill: color-mix(in srgb, var(--blue) 12%, transparent); stroke: var(--blue); stroke-width: 1.3; animation: co-breathe 6s ease-in-out infinite; }
.venn-b { animation-delay: 2s; fill: color-mix(in srgb, #6fc0dd 10%, transparent); }
.venn-c { animation-delay: 4s; fill: color-mix(in srgb, #8fd3c0 10%, transparent); stroke: color-mix(in srgb, var(--blue) 70%, #8fd3c0); }
.venn-core { fill: var(--blue); }
.venn-pulse { fill: none; stroke: var(--blue); animation: co-pulse 2.6s ease-out infinite; }
.venn-label { position: absolute; display: flex; flex-direction: column; align-items: center; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-align: center; }
.venn-label b { max-width: 130px; margin-top: 4px; color: var(--ink); font-size: .86rem; letter-spacing: 0; line-height: 1.25; }
.venn-label { transform: translate(-50%, -50%); }
.venn-label-a { top: 22%; left: 50%; }
.venn-label-b { top: 74%; left: 24%; }
.venn-label-c { top: 74%; left: 76%; }
@keyframes co-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
@keyframes co-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* Directions: bento layout, one large card and two horizontal ones */
.co-directions { background: var(--surface-alt); }
.co-bento { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px; margin-top: 36px; }
.co-bento .svc-mode-label { margin: 0 0 8px; }
.co-bento-main { grid-row: 1 / span 2; }
.co-bento-main .svc-visual { flex: 1; aspect-ratio: auto; min-height: 320px; }
.co-bento-main .svc-art { position: absolute; inset: 0; }
.co-bento-main h3 { font-size: 1.5rem; }
.co-bento-side { flex-direction: row; }
.co-bento-side .svc-visual { flex: 0 0 46%; aspect-ratio: auto; border-right: 1px solid #2c4654; border-bottom: 0; }
.co-bento-side .svc-art { position: absolute; inset: 0; }
.co-bento-side .svc-card-body { padding: 24px; }

/* Work */
.co-work { background: var(--surface); }
.co-work .section-heading { margin-bottom: 30px; }

/* Principles */
.co-principles { background: var(--surface-alt); }
.co-principles h2 { margin: 16px 0 18px; }
.co-principles .svc-quality dt { align-items: flex-start; line-height: 1.3; }
.co-principles .svc-quality dt .k-icon { flex: 0 0 22px; }

/* Collaboration: numbered cards joined by arrows */
.co-collab { background: var(--surface); }
.co-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: none; }
.co-journey li { position: relative; overflow: visible; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .25s; }
.co-journey li:hover { border-color: var(--blue); }
.co-journey li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -34px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--blue); border-radius: 50%; background: var(--surface); color: var(--blue); font-size: .85rem; transform: translateY(-50%); }
.co-journey-num { position: absolute; top: 10px; right: 18px; color: transparent; font-size: clamp(3.6rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .25s; }
.co-journey li:hover .co-journey-num { -webkit-text-stroke-color: var(--blue); }
.co-journey-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.co-journey h3 { margin: 40px 0 10px; font-size: 1.3rem; }
.co-journey p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Company register */
.co-facts { background: var(--surface-alt); }
.co-facts-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(36px, 6vw, 90px); }
.co-facts h2 { margin: 16px 0 0; }
.co-register { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.co-register-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background-color: #132632; background-image: linear-gradient(90deg, rgba(126, 180, 202, .06) 1px, transparent 1px), linear-gradient(0deg, rgba(126, 180, 202, .06) 1px, transparent 1px); background-size: 24px 24px; }
.co-register-head img { width: 110px; height: auto; }
.co-register-head span { color: #9bc9dc; font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.co-register dl { margin: 0; }
.co-register dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); }
.co-register dl > div:first-child { border-top: 0; }
.co-register dt { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.co-register dt .k-icon { flex: 0 0 20px; width: 20px; height: 20px; color: var(--blue); }
.co-register dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .88rem; font-weight: 650; }
.co-register dd a { border-bottom: 1px solid var(--blue); color: var(--ink); }
.co-register dd a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .co-hero-grid, .co-intro-grid, .co-facts-grid { grid-template-columns: 1fr; }
  .co-hero-visual { max-width: 680px; width: 100%; }
  .co-bento { grid-template-columns: 1fr; }
  .co-bento-main { grid-row: auto; }
  .co-journey { grid-template-columns: 1fr; gap: 34px; }
  .co-journey li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -32px; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 680px) {
  .co-hero-grid { padding-block: 44px 52px; }
  .co-hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .co-hero-actions .button { width: 100%; justify-content: space-between; }
  .co-hero-visual { min-height: 0; padding-bottom: 30px; }
  .co-shot { position: relative; width: 100%; }
  .co-shot-2 { display: none; }
  .co-id { position: relative; bottom: auto; width: auto; margin: -60px 14px 0; animation-name: pf-float-c; }
  .co-hero-visual figcaption { position: static; justify-content: flex-start; margin-top: 16px; }
  .co-hero-visual figcaption span:first-child { display: none; }
  .venn-label b { max-width: 96px; font-size: .74rem; }
  .co-bento-side { flex-direction: column; }
  .co-bento-side .svc-visual { flex: none; aspect-ratio: 320 / 190; border-right: 0; border-bottom: 1px solid #2c4654; }
  .co-bento-main .svc-visual { min-height: 0; aspect-ratio: 320 / 190; }
  .co-register dl > div { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-shot, .co-id { animation: none !important; }
  .co-id li i { animation: hero-beacon 2.4s ease-in-out infinite !important; }
}
