/* Hand-written styles shared by every page. Tailwind utilities live in assets/tailwind.css (generated, loaded first). */

/* ---- Custom styles ---- */
  /* Buttons: one primary button, solid. Navy on light backgrounds, cyan on the dark ones (same as the hero's). */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
    border-radius: 6px; font: 600 15px/1.2 Inter, 'Noto Sans KR', sans-serif; white-space: nowrap; text-decoration: none; transition: background-color .2s; }
  .btn:disabled { opacity: .6; cursor: default; }
  .btn-primary { background: #081e30; color: #fff; }
  .btn-primary:hover { background: #17384d; }
  .btn-primary:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
  .btn-primary-dark { background: #7be4ee; color: #082332; }
  .btn-primary-dark:hover { background: #a0f0f5; }
  .btn-primary-dark:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* Header: hidden on phones (the open menu carries it), slimmer than 48px so the bar keeps its height. */
  #navDemo { display: none; min-height: 40px; padding: 9px 20px; font-size: 14px; }
  @media (min-width: 768px) { #navDemo { display: inline-flex; } }

  /* Glass Nav */
  .glass-nav {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 198, 214, 0.2);
  }
  .glass-nav.nav--scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  }

  /* Dot Grid */
  .dot-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
  }

  /* Glass Card */
  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
  }

  /* Radial Glow */
  .radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Ghost Border */
  .ghost-border {
    border: 1px solid rgba(193, 198, 214, 0.3);
  }

  /* Material Symbols */
  .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  /* Skip Link */
  .skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: #1A73E8;
    color: white;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    transition: top 0.2s;
  }
  .skip-link:focus {
    top: 0;
  }

  /* Scroll To Top */
  #scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A73E8 0%, #006a61 100%);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
  }
  #scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Lightbox */
  #lightbox {
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }
  #lightbox.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }
  #lightbox img {
    transition: transform 0.3s;
  }

  /* Lightbox Nav Buttons */
  #lightbox button {
    transition: background 0.2s;
  }

  /* Scroll Reveal */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Keyboard users: a fade-in block that receives focus shows at once (Tab can land on it while it is still
     below the trigger line), and so does the scroll-to-top button while it is resting out of sight. */
  .reveal:focus-within, .reveal-follow:focus-within { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-delay-1 { transition-delay: 0.1s; --reveal-delay: .1s; }
  .reveal-delay-2 { transition-delay: 0.2s; --reveal-delay: .2s; }
  .reveal-delay-3 { transition-delay: 0.3s; --reveal-delay: .3s; }
  .reveal-delay-4 { transition-delay: 0.4s; --reveal-delay: .4s; }
  .reveal-delay-5 { transition-delay: 0.5s; --reveal-delay: .5s; }
  /* Sits at the very bottom of a one-screen section, so it would never get far enough up the screen to start on
     its own: it fades in right after the element before it. */
  .reveal-follow { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1) .35s, transform .7s cubic-bezier(0.16, 1, 0.3, 1) .35s; }
  .reveal.visible + .reveal-follow { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal-follow { opacity: 1; transform: none; } }

  /* Mobile Nav — matches Tailwind md breakpoint (768px) */
  @media (max-width: 767px) {
    #navLinks.nav-open {
      display: flex !important;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
      border-bottom: 1px solid rgba(193, 198, 214, 0.2);
      padding: 16px;
      gap: 0;
      z-index: 40;
    }
    #navLinks.nav-open a {
      padding: 16px 24px;
      font-size: 18px;
      border-bottom: 1px solid rgba(193, 198, 214, 0.1);
    }
    #navLinks.nav-open a:last-child {
      border-bottom: none;
    }
  }

  /* ===== Mobile-first responsive overrides ===== */

  /* Ultra-small devices (320-479px) */
  @media (max-width: 479px) {
    nav.flex { padding-left: 0.75rem; padding-right: 0.75rem; }
    .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }

    /* Chat messages — wider on tiny screens */
    #chatMessages .flex.justify-end > div { max-width: 92% !important; }
    #chatMessages .flex.justify-start > div { max-width: 96% !important; }

    /* Chat demo's action labels (plain labels since 2026-11-27, same look as before) */
    #chatMessages [data-i18n^="chat_btn"] {
      padding: 8px 12px;
      font-size: 12px;
    }
  }

  @media (max-width: 639px) {
    /* Reduce horizontal padding globally */
    .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }

    /* Hero */
    .hero-headline { font-size: 2rem !important; line-height: 1.15 !important; }

    /* Reduce section padding */
    section.py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    section.py-32 { padding-top: 4rem; padding-bottom: 4rem; }

    /* Lightbox nav buttons — larger tap targets */
    #lightbox button {
      min-width: 48px;
      min-height: 48px;
    }

    /* Hero slideshow indicator dots — larger touch area */
    .hero-dot {
      width: 10px !important;
      height: 10px !important;
      padding: 8px;
      box-sizing: content-box;
    }

    /* Contact form inputs — more padding on mobile */
    #contactForm input,
    #contactForm textarea {
      padding: 10px 14px;
      font-size: 16px; /* prevent iOS zoom */
    }
  }

  @media (max-width: 767px) {
    /* Nav padding */
    nav.flex { padding-left: 1rem; padding-right: 1rem; }

    /* Feature sections — reduce gap */
    .grid.gap-16 { gap: 2rem; }

    /* Workflow glass cards — reduce padding */
    .glass-card { padding: 1.25rem; }

    /* Integrations grid — reduce gap */
    #intGrid { gap: 0.5rem; }

    /* Lightbox nav buttons — away from edge */
    #lightbox button[aria-label="Previous"] { left: 8px !important; }
    #lightbox button[aria-label="Next"] { right: 8px !important; }
  }

  /* Safe area inset for notched phones */
  @supports (padding: env(safe-area-inset-bottom)) {
    footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    #scrollTopBtn { bottom: calc(2rem + env(safe-area-inset-bottom)); }
  }

  /* Hamburger Animation */
  .hamburger-open #bar1 {
    transform: translateY(8px) rotate(45deg);   /* bars are 8px apart (6px gap + 2px bar): the outer two meet in the middle */
  }
  .hamburger-open #bar2 {
    opacity: 0;
  }
  .hamburger-open #bar3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
  }

  /* Body font */
  body {
    font-family: 'Manrope', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
    color: #151b2b;
  }

  /* Chat message styling */
  .chat-msg code {
    background: rgba(26, 115, 232, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
  }

  /* Connector line for workflow */
  .workflow-connector {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #1A73E8, #006a61, #E8710A, #732de4);
    opacity: 0.3;
    z-index: 0;
  }

  /* Language Switcher */
  .lang-btn {
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #5f6675; /* 5.8:1 on white */
    transition: color 0.2s, background-color 0.2s;
  }
  .lang-btn:hover {
    color: #151b2b;
  }
  .lang-btn.active {
    background: rgba(26, 115, 232, 0.1);
    color: #1765cc; /* 4.9:1 on the tint */
  }

  /* Nav active link indicator */
  #navLinks a.nav-active {
    color: #1a73e8;
    position: relative;
  }
  #navLinks a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1A73E8, #006a61);
    border-radius: 1px;
  }
  @media (max-width: 767px) {
    #navLinks.nav-open a.nav-active {
      background: rgba(26, 115, 232, 0.05);
    }
    #navLinks.nav-open a.nav-active::after { display: none; }
  }

  /* Chat sequential reveal */
  #chatMessages > div {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  #chatMessages > div.chat-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 8px 16px;
  }
  .typing-indicator span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #1a73e8;
    opacity: 0.4;
    animation: typingBounce 1.2s infinite;
  }
  .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
  .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
  }

  /* Hero Slideshow */
  .hero-dot-active { background: #1a73e8 !important; transform: scale(1.3); }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .typing-indicator span { animation: none; }
    #chatMessages > div { opacity: 1; transform: none; }
  }
  /* AI Tabs */
  .ai-tab {
    color: #414754;
    background: transparent;
  }
  .ai-tab:hover {
    color: #151b2b;
    background: rgba(26, 115, 232, 0.06);
  }
  .ai-tab-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1A73E8 0%, #006a61 100%) !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  }

/* ---- Home AI section: text left, one app window right ---- */
.ai-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .ai-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ai-win { display: flex; flex-direction: column; height: 440px; overflow: hidden; border-radius: 16px; background: #fff;
  border: 1px solid rgba(193, 198, 214, .45); box-shadow: 0 12px 32px rgba(21, 27, 43, .07); }
.ai-win-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 18px; background: #fff; border-bottom: 1px solid #e3e8ef; }
.ai-win-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.ai-win-title { font: 700 14px/1.2 Inter, 'Noto Sans KR', sans-serif; color: #151b2b; white-space: nowrap; }
/* Segmented switch: the white thumb slides to the chosen button (site.js sets its left/width). */
.ai-seg { position: relative; display: flex; margin-left: auto; padding: 3px; border-radius: 999px; background: #eef2f7; }
.ai-seg button { position: relative; z-index: 1; padding: 5px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 700 12px/1.2 Inter, 'Noto Sans KR', sans-serif; color: #475569; white-space: nowrap; transition: color .3s ease; }
.ai-seg button:hover { color: #151b2b; }
.ai-seg button.ai-tab-active { color: #1765cc !important; background: none !important; box-shadow: none; }
.ai-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgba(21, 27, 43, .12); }
.ai-seg.ready .ai-seg-thumb { transition: left .35s cubic-bezier(.4, 0, .2, 1), width .35s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .ai-seg.ready .ai-seg-thumb { transition: none; } }
.ai-win-body { position: relative; flex: 1; overflow: hidden; background: #eef2f7; }
.ai-pane { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px 24px; }
.ai-pane.hidden { display: none; }
/* Chat and Agent: scrolling panes, like a messenger. New content appears at the bottom and site.js follows it, so the
   first lines slide up out of view (the scrollbar brings them back). The top edge fades while something is above it. */
:is(.ai-pane-chat, .ai-pane-agent) { display: block; overflow-y: auto; scrollbar-gutter: stable; padding-right: 14px; }
/* While the conversation plays (site.js sets .ai-playing) the pane only scrolls itself: a mouse wheel over it scrolls
   the page. Once it has finished, the reader can scroll the pane, and at its ends the wheel carries on to the page. */
:is(.ai-pane-chat, .ai-pane-agent).ai-playing { overflow-y: hidden; }   /* room for the scrollbar kept from the start, so text never re-wraps when it appears */
:is(.ai-pane-chat, .ai-pane-agent).hidden { display: none; }
/* A slim scrollbar that stays visible (Chrome/Safari draw these even with overlay scrollbars); Firefox gets the thin one. */
:is(.ai-pane-chat, .ai-pane-agent)::-webkit-scrollbar { width: 10px; }
:is(.ai-pane-chat, .ai-pane-agent)::-webkit-scrollbar-track { background: transparent; }
:is(.ai-pane-chat, .ai-pane-agent)::-webkit-scrollbar-thumb { background: #c3cbd8; border-radius: 5px; border: 3px solid #eef2f7; }
:is(.ai-pane-chat, .ai-pane-agent)::-webkit-scrollbar-thumb:hover { background: #9aa6b8; }
@supports not selector(::-webkit-scrollbar) { :is(.ai-pane-chat, .ai-pane-agent) { scrollbar-width: thin; scrollbar-color: #c3cbd8 transparent; } }
.ai-scrolled { -webkit-mask-image: linear-gradient(transparent 0, #000 28px); mask-image: linear-gradient(transparent 0, #000 28px); }
@media (prefers-reduced-motion: no-preference) {
  .ai-pane-chat #chatMessages > div:not(.chat-visible) { display: none; }   /* not shown yet: takes no room */
  .ai-pane-chat #chatMessages > div.chat-visible { animation: aiChatIn .4s ease both; }
}
@keyframes aiChatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Agent: one request, then an answer whose steps run one after another (site.js). Each step has a running line
   (turning arrows + "…" whose dots darken in turn) and a done line (check) with its results under it. */
.ag-q { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.ag-q:not(.on) { display: none; }
@media (prefers-reduced-motion: no-preference) { .ag-q.on { animation: aiChatIn .4s ease both; } }
.ag-a { width: 88%; display: flex; flex-direction: column; gap: 10px; }
.ag-line { display: flex; align-items: center; gap: 10px; }
.ag-line .material-symbols-outlined { font-size: 18px; flex: none; }
.ag-run-line { color: #414754; }
.ag-step:not(.run) .ag-run-line, .ag-step:not(.done) .ag-done-line, .ag-step:not(.done) .ag-sub { display: none; }
.ag-a:not(:has(.ag-step.run, .ag-step.done)) { display: none; }
.ag-step:not(.run):not(.done) { display: none; }
.ag-turn { animation: agTurn 1.2s linear infinite; }
@keyframes agTurn { to { transform: rotate(360deg); } }
.ag-dots span { color: #c3cbd8; font-weight: 700; animation: agDot 1.2s infinite; }
.ag-dots span:nth-child(2) { animation-delay: .2s; }
.ag-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes agDot { 0%, 60%, 100% { color: #c3cbd8; } 25% { color: #151b2b; } }
.ag-sub { margin: 6px 0 0 28px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.5; font-weight: 700; color: #414754; }
.ag-sub.bar { border-left: 2px solid #d5dce6; padding-left: 10px; }
.ag-sub.dash > span::before { content: '\2013\00a0'; font-weight: 400; color: #94a3b8; }
@media (prefers-reduced-motion: no-preference) {
  .ag-step.run, .ag-step.done .ag-done-line { animation: aiChatIn .3s ease both; }
  .ag-step.done .ag-sub > span { opacity: 0; animation: agIn .3s ease forwards; }
  .ag-step.done .ag-sub > span:nth-child(2) { animation-delay: .14s; }
  .ag-step.done .ag-sub > span:nth-child(3) { animation-delay: .28s; }
}
@keyframes agIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.ai-pane-shot { padding: 0 20px; justify-content: center; }
.ai-pane-shot img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(21, 27, 43, .12); }   /* full width less a small margin each side, own proportions, centred */
.ai-win-body .bg-surface-container-high\/60 { background: #fff; box-shadow: 0 1px 2px rgba(21, 27, 43, .05); }
@media (max-width: 639px) { .ai-seg button { padding: 5px 9px; } .ai-win-title { display: none; } }

/* ---- Separate pages (product / gallery / pricing) ---- */
:root { --page-nav-h: 73px; }
@media (max-width: 767px) { :root { --page-nav-h: 105px; } }
.page-top { padding-top: var(--page-nav-h); }
/* in-page jumps land below the fixed header (not on the home page, where the hero's snap must stay exact) */
body:not([data-page="home"]) section[id] { scroll-margin-top: var(--page-nav-h); }
.page-subnav { border-bottom: 1px solid rgba(193,198,214,.25); background: #fff; }
.page-subnav > div { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; max-width: 80rem; margin: 0 auto; scrollbar-width: none; }
.page-subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font: 600 14px 'Inter', 'Noto Sans KR', sans-serif; color: #414754; white-space: nowrap; transition: background-color .15s, color .15s; }
.page-subnav a:hover { background: rgba(26,115,232,.08); color: #1a73e8; }
@media (min-width: 768px) { .page-subnav > div { justify-content: center; padding-inline: 32px; } }

.video-slot { max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 12px; border: 1px dashed rgba(193,198,214,.6); background: #fff; color: #414754; text-align: center; padding: 24px; }
.video-slot svg { width: 52px; height: 52px; color: #1a73e8; }

.plan-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 16px; background: #fff; border: 1px solid rgba(193,198,214,.35); }
.plan-featured { border-color: rgba(26,115,232,.55); box-shadow: 0 18px 40px -24px rgba(26,115,232,.45); }
.plan-name { font: 800 22px 'Inter', 'Noto Sans KR', sans-serif; color: #151b2b; letter-spacing: -.02em; }
.plan-price { font: 700 18px 'Inter', 'Noto Sans KR', sans-serif; color: #1a73e8; }
.plan-features { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(193,198,214,.3); color: #414754; font-size: 14px; flex: 1; }
.plan-features li::before { content: '—'; margin-right: 8px; color: rgba(65,71,84,.45); }
.plan-cta { display: flex; width: 100%; }

.page-intro { max-width: 80rem; margin: 0 auto; padding: 56px 16px 32px; text-align: center; }
@media (min-width: 768px) { .page-intro { padding: 72px 32px 40px; } }
.docs-slot { aspect-ratio: auto; min-height: 220px; }

/* Contact page */
body[data-page="contact"] .footer-contact { display: none; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.contact-card { background: #fff; border: 1px solid rgba(193,198,214,.35); border-radius: 16px; padding: 28px 24px; }
@media (min-width: 768px) { .contact-card { padding: 36px 32px; } }
.contact-card h2 { font: 800 18px 'Inter', 'Noto Sans KR', sans-serif; color: #151b2b; margin-bottom: 18px; }
.contact-form { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.contact-form .two { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #414754; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(193,198,214,.7);
  background: #fff; font: 400 15px 'Manrope', 'Noto Sans KR', sans-serif; color: #151b2b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: rgba(26,115,232,.6); box-shadow: 0 0 0 3px rgba(26,115,232,.12); }
.contact-form textarea { resize: vertical; min-height: 140px; }
/* Focus on every form field: a solid 2px ring (WCAG 2.4.7/2.4.11). Beats Tailwind's focus:outline-none and the
   faint 12% halo above (specificity 0,2,2). Dark CTA band: the cyan of its button instead of blue. */
body :is(input, textarea, select):not(.hp-field):focus-visible { outline: 2px solid #1765cc; outline-offset: 1px; }
body #cta :is(input, textarea, select):focus-visible { outline-color: #7be4ee; }

.contact-side { display: grid; gap: 24px; }
.info-list { display: grid; gap: 14px; margin: 0; }
.info-list div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; font-size: 14px; }
.info-list dt { color: #6b7280; }
.info-list dd { margin: 0; color: #151b2b; overflow-wrap: anywhere; }
.info-list .tbd { color: #6b7280; }
@media (max-width: 639px) { .info-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Header drop-down cards (desktop with a mouse) ----
   Hovering a tab (or tabbing into it) fades a card in just below the header. The invisible padding above the card
   bridges the gap, so the pointer can travel from the tab into the card without it closing; leaving it closes the
   card after a short pause. Touch screens and the mobile menu have no cards: a tap opens the page. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-menu { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  .nav-menu {
    display: block; position: absolute; top: 100%; left: -18px; padding-top: 30px; z-index: 10;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    transition-delay: .12s, .12s, .3s;
  }
  .nav-item.has-menu:hover > .nav-menu,
  .nav-item.has-menu:focus-within > .nav-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s;
  }
  .nav-item.has-menu.nav-menu-closed > .nav-menu { opacity: 0; visibility: hidden; transform: translateY(8px); transition: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-item.has-menu:hover > .nav-menu { transform: none !important; } }
/* The card follows its longest line, but never narrower than min-width so short menus keep some room on the right. */
.nav-menu-card {
  display: flex; flex-direction: column; width: max-content; min-width: 145px; padding: 6px;
  background: #fff; border: 1px solid rgba(193, 198, 214, .45); border-radius: 8px;
  box-shadow: 0 20px 44px -18px rgba(15, 30, 60, .35), 0 2px 6px rgba(15, 30, 60, .06);
}
/* (2 ids + 2 classes: beats the dark-header link colours from engineering.css) */
#nav #navLinks .nav-menu a.nav-menu-link {
  display: block; padding: 8px 12px; border-radius: 5px; white-space: nowrap;
  font: 600 14.5px/1.35 'Inter', 'Noto Sans KR', sans-serif; letter-spacing: -.01em; color: #151b2b; text-decoration: none;
  transition: background-color .15s, color .15s;
}
#nav #navLinks .nav-menu a.nav-menu-link:hover,
#nav #navLinks .nav-menu a.nav-menu-link:focus-visible { background: rgba(26, 115, 232, .08); color: #1a73e8; outline: none; }
/* Keyboard focus also gets a 2px line inside the item, so it reads differently from a mouse hover. */
#nav #navLinks .nav-menu a.nav-menu-link:focus-visible { outline: 2px solid #1765cc; outline-offset: -2px; }
/* Sub-items (핵심 모듈 → Logic, Integrator, …): indented under a thin line. When the card opens the line draws
   downward and the items unroll one after another like a blind (each revealed from its top edge). */
.nav-menu-sub { position: relative; margin: 0 0 4px 16px; padding-left: 6px; }
.nav-menu-sub::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; border-radius: 1px;
  background: #cfd7e3; transform-origin: top;
}
#nav #navLinks .nav-menu a.nav-menu-sublink { padding: 6px 12px; font-size: 13.5px; font-weight: 500; color: #3d4659; }
@media (min-width: 768px) and (hover: hover) {
  .nav-menu-sub::before { transform: scaleY(0); transition: transform 0s .3s; }
  #nav #navLinks .nav-menu a.nav-menu-sublink {
    overflow: hidden; max-height: 0; padding-top: 0; padding-bottom: 0;
    clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-4px);
    transition: background-color .15s, color .15s, max-height 0s .3s, padding 0s .3s, clip-path 0s .3s, opacity 0s .3s, transform 0s .3s;
  }
  .nav-item.has-menu:hover .nav-menu-sub::before,
  .nav-item.has-menu:focus-within .nav-menu-sub::before {
    transform: none; transition: transform calc(.12s + var(--n) * .06s) cubic-bezier(.3, .7, .3, 1) .08s;
  }
  #nav #navLinks .nav-item.has-menu:hover a.nav-menu-sublink,
  #nav #navLinks .nav-item.has-menu:focus-within a.nav-menu-sublink {
    max-height: 40px; padding-top: 6px; padding-bottom: 6px;
    clip-path: inset(0 0 0 0); opacity: 1; transform: none;
    transition-property: background-color, color, max-height, padding, clip-path, opacity, transform;
    transition-duration: .15s, .15s, .22s, .22s, .26s, .2s, .26s;
    transition-timing-function: ease, ease, cubic-bezier(.3, .7, .3, 1), cubic-bezier(.3, .7, .3, 1), cubic-bezier(.3, .7, .3, 1), ease, cubic-bezier(.3, .7, .3, 1);
    transition-delay: 0s, 0s, calc(.08s + var(--i) * .06s), calc(.08s + var(--i) * .06s), calc(.1s + var(--i) * .06s),
                      calc(.1s + var(--i) * .06s), calc(.1s + var(--i) * .06s);
  }
  .nav-item.has-menu.nav-menu-closed .nav-menu-sub::before { transform: scaleY(0); transition: none; }
  #nav #navLinks .nav-item.has-menu.nav-menu-closed a.nav-menu-sublink {
    max-height: 0; padding-top: 0; padding-bottom: 0; clip-path: inset(0 0 100% 0); opacity: 0; transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu-sub::before { transform: none !important; }
  #nav #navLinks .nav-menu a.nav-menu-sublink { clip-path: none !important; opacity: 1 !important; transform: none !important; }
}
/* mobile menu: the tab links stay full-width rows inside their wrappers */
@media (max-width: 767px) { #navLinks.nav-open .nav-item > a { display: block; width: 100%; } }

/* Chevron on tabs that have a card: points down, turns to point up while the card is open (desktop with a mouse). */
.nav-chevron { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  .nav-chevron {
    display: block; width: 10px; height: 10px; margin-left: 5px; flex: none;
    fill: none; stroke: #475569; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s ease, stroke .15s;
  }
  #nav.engineering-nav-dark .nav-chevron { stroke: #d5e5ef; }
  .nav-item.has-menu:hover > .nav-chevron,
  .nav-item.has-menu:focus-within > .nav-chevron { transform: rotate(180deg); stroke: #2563eb; }
  #nav.engineering-nav-dark .nav-item.has-menu:hover > .nav-chevron,
  #nav.engineering-nav-dark .nav-item.has-menu:focus-within > .nav-chevron { stroke: var(--eng-signal, #7be4ee); }
  .nav-item.has-menu.nav-menu-closed > .nav-chevron { transform: none; }
  /* the tab stays highlighted while the pointer is in its card */
  #nav #navLinks .nav-item.has-menu:hover > a:first-child { color: #2563eb; }
  #nav.engineering-nav-dark #navLinks .nav-item.has-menu:hover > a:first-child { color: var(--eng-signal, #7be4ee); }
}
@media (prefers-reduced-motion: reduce) { .nav-chevron { transition: none !important; } }

/* ---- About page (2026-11-27): the whole page is the hero's blue-gray (#0f1a24, same as the dark header). The Brand
   Story animation (assets/story.js) runs the width of the page, its edges fading into that colour; the photo is a
   copy whose night sky was darkened toward it (assets/img/brand-story-night.webp; brand-story.webp is the original).
   On wide screens (1200px+) the text sits on a translucent card on the right, over the rigging, and the animation
   ends with the four logos in the space to its left, centred on the card (story.js reads the card's position).
   Narrower screens: the card goes under the animation (phone layout still to be designed). */
body[data-page="about"] { background: #0f1a24; }
.about-night { color: #eef4fa; }
/* The art and the card share one grid cell, so the section is as tall as the taller of the two (short windows). */
.about-stage { position: relative; display: grid; }
/* At most one window tall under the header, so the whole picture is seen at once (narrower than the page on wide,
   short windows; its sides fade into the page colour anyway). */
.about-stage-art { position: relative; width: 100%; max-width: min(1672px, calc((100vh - var(--page-nav-h)) * 1.92)); margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 85%, transparent);
  mask-composite: intersect; }
/* Once the photo has faded out (story.js), the logos may reach into the faded edges: the fade is dropped. */
.about-stage-art.story-clear { -webkit-mask-image: none; mask-image: none; }
@supports (height: 100svh) { .about-stage-art { max-width: min(1672px, calc((100svh - var(--page-nav-h)) * 1.92)); } }
/* Wide screens: <main> is zoomed by --hero-s (engineering.css), which scales this width too, so divide it back. */
@media (min-width: 1101px) { .about-stage-art { max-width: calc(min(1672px, (100svh - var(--page-nav-h)) * 1.92) / var(--hero-s, 1)); } }
/* Wide screens with the card beside: the animation fills the window down to its bottom edge (like the home hero),
   at any window shape; story.js crops the photo's sides when the box is narrower than 1.8 : 1. */
@media (min-width: 1200px) {
  .about-stage-art { height: calc((100vh - var(--page-nav-h)) / var(--hero-s, 1)); }
  @supports (height: 100svh) { .about-stage-art { height: calc((100svh - var(--page-nav-h)) / var(--hero-s, 1)); } }
  .about-stage-art .story-card { aspect-ratio: auto; height: 100%; }
}
.about-stage-over { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .about-stage-over { padding: 0 24px; } }
@media (min-width: 768px) { .about-stage-over { padding: 0 32px; } }
/* Plain translucent card (86%): the picture shows faintly through it (a light blur, no sheen or shine). */
.about-story-card { position: relative; max-width: 640px; padding: 28px 24px; border-radius: 16px;
  background: rgba(15, 26, 36, .86); border: 1px solid rgba(150, 189, 212, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 768px) { .about-story-card { padding: 36px 32px; } }
@media (min-width: 1200px) {
  .about-stage > * { grid-area: 1 / 1; }
  .about-stage-over { display: flex; align-items: center; justify-content: flex-end; padding-top: 32px; padding-bottom: 32px; pointer-events: none; }
  .about-story-card { width: 470px; pointer-events: auto; }
}
.about-story-card .lg-kicker { color: #7be4ee; }
.about-story-card .lg-name, .about-story-card .lg-tagline { color: #fff; }
/* A step smaller than the shared header template (13 / 44 / 22 / 16), in proportion, so the card sits lighter over the
   picture (2026-11-27). Phones keep the template sizes for now. */
@media (min-width: 768px) {
  .about-story-card .lg-kicker { font-size: 12px; }
  .about-story-card .lg-name { font-size: 39px; }
  .about-story-card .lg-tagline { font-size: 19.5px; }
  .about-story-card .story-body { font-size: 14px; }
}
.story-body { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; color: #a4bdcd; }   /* body text on the dark workflow section */
.story-body p { margin: 0; text-wrap: pretty; }
.story-br { display: none; }   /* the card is too narrow for one sentence per line */
.story-card { position: relative; aspect-ratio: 1.8; }
.story-card svg { display: block; width: 100%; height: 100%; }
.story-card svg text { text-rendering: geometricPrecision; }
/* Vega label over the photo (story.js), set like the card: "Vega" like the tagline (Inter bold, white), the rest like
   the body text (Manrope, #b6c6d8), tagline : body = 1.375 as in the card. story.js sets its place and font-size in
   photo units (the left/top here are only the 1.8 : 1 values, before the script runs). */
.story-label { position: absolute; left: 34.1%; top: 10.5%; display: flex; flex-direction: column; gap: .3em; pointer-events: none;
  line-height: 1; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.story-label-1 b { font: 700 1.9em Inter, 'Noto Sans KR', sans-serif; letter-spacing: -.02em; color: #fff; }
.story-label-1 span { margin-left: .5em; font: 400 1.38em Manrope, 'Noto Sans KR', sans-serif; color: #b6c6d8; }
.story-label-2 { font: 400 1.38em Manrope, 'Noto Sans KR', sans-serif; color: #b6c6d8; }
html[lang="ja"] .story-label span, html[lang="zh"] .story-label span { font-family: Manrope, sans-serif; }   /* glyphs follow the zoom smoothly instead of snapping to pixels */

/* ---- Product page: User Interface (shared screen layout) and the Logic, Integrator and Harness modules ----
   Built from the 2026-11 product deck. In the interface tour, hovering an area of the screenshot or an item in the
   list lights that area up and dims the rest (initLogicTour in site.js). */

/* Module header: small "MODULE 0N" line, the module name, a tagline (User Interface uses the same) */
.lg-head { max-width: 640px; }
/* User Interface intro: wide enough that its first sentence stays on one line on desktop */
#interface .lg-head { max-width: 900px; }
/* #1765cc: at least 5:1 on every light section background (WCAG AA asks 4.5:1 for text this size). */
.lg-kicker { margin: 0 0 12px; font: 700 13px/1 'Space Grotesk', sans-serif; letter-spacing: .2em; color: #1765cc; }
.lg-name { margin: 0; font: 900 30px/1.05 Inter, sans-serif; letter-spacing: -.04em; color: #151b2b; }
@media (min-width: 768px) { .lg-name { font-size: 44px; } }   /* a step under the hero product name (56px), 2026-11-18 */
.lg-tagline { margin: 12px 0 0; font: 700 19px/1.35 Inter, 'Noto Sans KR', sans-serif; letter-spacing: -.02em; color: #151b2b; }
@media (min-width: 768px) { .lg-tagline { font-size: 22px; } }
.lg-lead { margin-top: 14px; }
/* Module screen cards (Logic, Integrator, Harness; the last two also on the home page): 12px corners instead of .rounded-2xl's 16px */
:is(#logic, #integrator, #harness) .rounded-2xl { border-radius: 12px; }

/* Interface tour */
.lg-tour {
  position: relative; margin: 40px 0 0; overflow: hidden; border-radius: 14px; background: #eef1f6;
  border: 1px solid rgba(193, 198, 214, .45); box-shadow: 0 24px 48px -28px rgba(21, 27, 43, .35);
}
.lg-tour img { display: block; width: 100%; height: auto; }
.lg-area { position: absolute; border-radius: 6px; cursor: pointer; transition: box-shadow .25s ease; }
.lg-tour[data-active="1"] .lg-area[data-area="1"], .lg-tour[data-active="2"] .lg-area[data-area="2"],
.lg-tour[data-active="3"] .lg-area[data-area="3"], .lg-tour[data-active="4"] .lg-area[data-area="4"],
.lg-tour[data-active="5"] .lg-area[data-area="5"], .lg-tour[data-active="6"] .lg-area[data-area="6"] {
  z-index: 1; box-shadow: 0 0 0 2px #1a73e8, 0 0 0 9999px rgba(15, 23, 42, .5);
}
.lg-legend { display: grid; gap: 4px 20px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .lg-legend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lg-legend { grid-template-columns: repeat(3, 1fr); } }
.lg-legend button {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px;
  background: none; text-align: left; cursor: pointer; transition: background-color .2s;
}
.lg-legend button:hover, .lg-legend button.on { background: rgba(26, 115, 232, .07); }
.lg-legend button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.lg-dot {
  flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: #e2e7fd; color: #1765cc; font: 700 12px/1 'Space Grotesk', sans-serif;
  transition: background-color .2s, color .2s;
}
.lg-legend button.on .lg-dot { background: #1765cc; color: #fff; }
.lg-legend b { display: block; font: 700 15px/1.4 Inter, 'Noto Sans KR', sans-serif; color: #151b2b; }
.lg-legend b + span { display: block; margin-top: 2px; font: 400 13.5px/1.55 Manrope, 'Noto Sans KR', sans-serif; color: #414754; }

@media (prefers-reduced-motion: reduce) { .lg-area, .lg-legend button, .lg-dot { transition: none; } }

/* Spam trap: a field people never see; bots that fill every input fill it, and Formspree drops those sends. */
input.hp-field, .contact-form input.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Phone menu: demo request as the last row, the primary button (navy on the light menu, cyan on the home page's dark one). */
.nav-demo-mobile { display: none; }
@media (max-width: 767px) {
  #navLinks.nav-open a.nav-demo-mobile { display: block; margin: 20px 24px 0; padding: 14px 24px; min-height: 48px; border: 0; border-radius: 8px;
    background: #081e30; color: #fff; font: 700 17px/20px Inter, 'Noto Sans KR', sans-serif; text-align: center; text-decoration: none; }
  #nav.engineering-nav-dark #navLinks.nav-open a.nav-demo-mobile { background: #7be4ee; color: #081e30; }
}

/* ---- About page: company details card (same card as the contact page), kept to a readable width, dark like the page ---- */
/* Company details (2026-11-27): IDENTITY / "Company Profile" and the four items as tiles in a row (label small, value large).
   Same column as the header's logo and the footer. Values are placeholders until the company data arrives. */
.about-night #company { padding-top: 72px; }
.about-company .lg-kicker { color: #7be4ee; }
.about-company-title { margin: 0 0 32px; font: 900 39px/1.05 Inter, sans-serif; letter-spacing: -.04em; color: #fff; }
.about-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.about-tiles > div { padding: 22px 24px 24px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(150, 189, 212, .16); }
.about-tiles dt { margin-bottom: 14px; font-size: 13px; color: #a4bdcd; }
.about-tiles dd { margin: 0; font: 700 19.5px/1.3 Inter, 'Noto Sans KR', sans-serif; color: #8ea3b8; overflow-wrap: anywhere; }
.about-tiles dd.has-value { color: #eef4fa; }   /* a real value, brighter than the 준비 중 placeholders */
@media (max-width: 1023px) { .about-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .about-company-title { font-size: 30px; } .about-tiles { grid-template-columns: minmax(0, 1fr); } .about-tiles dt { margin-bottom: 14px; } }

/* ---- Home "Explore the Workspace" (#gallery, assets/gallery.js), right under the hero: white section, real screens in a
   sideways row that wraps. The current screen lines up with the heading on the left and is sized to the window height
   (the section fits one screen); a glass caption block sits at its right over the blurred next screen.
   (Navy "Product Gallery" until 2026-11-17, when it took the place of the "At a Glance" animation.) ---- */
.ga-sec { background: #fff; padding: 96px 0 var(--ga-pb); overflow: hidden;   /* top: more room under the hero (2026-11-18) */
  /* bottom (2026-11-23): the space under the screens matches the space above the kicker; the section grows by
     the extra (pb - 40px) so the contents stay put */
  --ga-pb: 124px;
  /* fills the screen under the header; extra height is shared above and below */
  --nav-h: 73px; box-sizing: border-box; min-height: calc((100svh - var(--nav-h)) / var(--page-s, var(--hero-s, 1)) + var(--ga-pb) - 40px);
  display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) { .ga-sec { --nav-h: 105px; } }
.ga-sec > .max-w-7xl { width: 100%; }   /* a centred box in a flex column would shrink to its content */
.ga-sec .lg-head { max-width: 900px; }
.ga-sec .lg-lead { margin: 10px 0 0; }   /* same as Core Modules (the module header template) */
.ga-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ga-arrows { display: flex; align-items: center; gap: 8px; flex: none; }
.ga-arrows button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #b9c2cc; color: #151b2b; transition: background .2s; }
.ga-arrows button:hover { background: #eef1f4; }
.ga-arrows svg { width: 20px; height: 20px; }
.ga-count { min-width: 60px; margin-right: 8px; color: #5b6e7f; font: 600 16px Inter, sans-serif; letter-spacing: .04em; text-align: right; }
.ga-arrows button:focus-visible, .ga-track:focus-visible, .ga-info a:focus-visible, .ga-info button:focus-visible { outline: 2px solid #1765cc; outline-offset: 3px; }
/* lead -> screen gap: the same as tagline -> lead as the eye sees it (10px + the tagline's half-leading, the screen
   frame has none), 2026-11-18 */
.ga-stage { position: relative; margin-top: 6px;
  /* same left edge as the heading: the page container's side padding (.max-w-7xl: 32 / 24 / 16px by width) */
  --ga-pad: 32px; --ga-left: max(var(--ga-pad), calc((100% - 1280px) / 2 + 32px));
  --ga-info: 340px; --ga-gap: 28px; --ga-shift: 100px;          /* caption block width, gap, and its nudge to the right */
  --ga-h: calc((100svh - 72px) / var(--page-s, var(--hero-s, 1)) - 308px);    /* what the window leaves under the header and heading (with the lead line) */
  /* the width cap counts the nudge too, so the caption block never ends right of the arrows (2026-11-23: in tall
     windows, e.g. Safari with its thin toolbar, the screen grew to the width cap and pushed the block to the edge) */
  --ga-w: min(calc(100% - 2 * var(--ga-left) - var(--ga-info) - var(--ga-gap) - var(--ga-shift)), calc(var(--ga-h) * 2)); }
/* room below for the screen shadow and the blur, which a scrolling row would otherwise cut off in a straight line */
.ga-track { display: flex; gap: 0;   /* screens sit edge to edge; the side ones shrink about their centre (below) */
   padding: 8px 0 48px var(--ga-left); margin-bottom: -44px; scroll-padding-left: var(--ga-left);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ga-track::-webkit-scrollbar { display: none; }
/* Wide screens: the page below the hero is zoomed (engineering.css, min-width 1101px), and in a zoomed page the snap
   resolves scroll-padding-left to a different length than the padding, so the current screen stopped off the
   heading's line. There the snap is off and gallery.js lines the screen up itself. */
@media (min-width: 1101px) { .ga-track { scroll-snap-type: none; } }
.ga-track::after { content: ''; flex: 0 0 calc(100% - var(--ga-left) - var(--ga-w)); }
/* side screens: stronger blur, fainter and smaller, so only the current one reads */
.ga-slide { flex: 0 0 var(--ga-w); margin: 0; scroll-snap-align: start; scroll-snap-stop: always;   /* one swipe = one screen, however hard (2026-11-26) */ cursor: pointer; filter: blur(10px); opacity: .3; transform: scale(.85);
  transition: filter .45s, opacity .45s, transform .45s; }
.ga-slide.is-on { filter: none; opacity: 1; transform: none; cursor: default; }
/* Side screens (2026-11-18, from a sketch): the screens sit edge to edge and each side screen shrinks about its own
   centre, so its diagonals, carried on, run through the current screen's near corners. The scale alone sets both its
   size and the gap; at .85 the next screen's left edge still shows before the caption block. */
.ga-instant .ga-slide { transition: none; }
.ga-frame { border-radius: 10px; overflow: hidden; background: #f3f5f7; border: 1px solid #d5dbe2; box-shadow: 0 30px 60px -24px rgba(8,30,48,.35); }
.ga-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #eef1f4; border-bottom: 1px solid #d5dbe2; }
.ga-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3cbd4; }
.ga-bar span { margin-left: 10px; color: #5b6e7f; font: 500 12px Inter, sans-serif; }
.ga-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; object-position: top left; }
/* Screen not shot yet: a plain outline of the program window (title band, ribbon, side panels, canvas) so it still
   reads as a screen when it is a blurred neighbour; a flat grey frame vanishes on the white background. */
.ga-empty { aspect-ratio: 2; background:
  linear-gradient(#4b6a9b, #4b6a9b) 0 0 / 100% 7% no-repeat,
  linear-gradient(#e4e8ee, #e4e8ee) 0 7% / 100% 11% no-repeat,
  linear-gradient(#e9edf2, #e9edf2) 0 100% / 15% 82% no-repeat,
  linear-gradient(#e9edf2, #e9edf2) 100% 100% / 16% 82% no-repeat,
  linear-gradient(#dde3ea, #dde3ea) 50% 100% / 69% 16% no-repeat,
  #fbfcfd; }
.ga-slide figcaption { display: none; }                         /* shown through the caption block */
.ga-info { position: absolute; z-index: 2; width: var(--ga-info);
  right: var(--ga-left);   /* right edge on the arrows' right edge, at every window size (2026-11-23) */
  top: 50%; transform: translateY(-50%); padding: 30px 30px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(21, 27, 43, .1);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(8,30,48,.3), inset 0 1px 0 rgba(255,255,255,.6); }
/* the caption slides out while the row moves; the dots and pause button under it stay put */
.ga-body { transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.ga-moving .ga-body { opacity: 0; transform: translateX(24px); transition: opacity .15s, transform .15s; }
.ga-num { margin: 0 0 6px; color: #1765cc; font: 700 14px Inter, sans-serif; letter-spacing: .08em; }
.ga-info b { display: block; margin-bottom: 12px; color: #151b2b; font: 800 28px/1.2 Inter, 'Noto Sans KR', sans-serif; letter-spacing: -.02em; }
.ga-body > span { display: block; margin-bottom: 18px; color: #3d4a5c; font-size: 15.5px; line-height: 1.7; }
.ga-info a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #1557b0; font-weight: 600; }
.ga-info a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.ga-info a svg { width: 14px; height: 14px; }
/* Autoplay controls at the bottom of the caption block (2026-11-18): one dot per screen, the current one a bar that
   fills over the interval (gallery.js moves on when it is full), and a pause/play button. Hover or focus holds it. */
.ga-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(21, 27, 43, .08); }
.ga-dots { position: relative; display: flex; align-items: center; margin-left: -8px; }
.ga-ghost { position: absolute; left: 0; top: 18px; width: 36px; height: 8px; border-radius: 4px; background: #d5dbe2; opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.45,0,.2,1); }
.ga-sliding .ga-ghost { opacity: 1; }
.ga-sliding .on span { visibility: hidden; }
.ga-sliding .on i { animation-play-state: paused !important; }
.ga-dots button { height: 44px; min-width: 24px; padding: 0 8px; display: grid; place-items: center; box-sizing: border-box; }
.ga-dots span { display: block; width: 8px; height: 8px; border-radius: 4px; background: #7d8b99; overflow: hidden; transition: width .3s; }
.ga-dots .on span { width: 36px; background: #d5dbe2; }
.ga-dots button:not(.on) i { display: none; }
.ga-dots i { display: block; width: 100%; height: 100%; border-radius: 4px; background: #081e30; }
.ga-auto .ga-dots .on i { animation: ga-fill var(--ga-time, 6s) linear both; }
.ga-auto.ga-held .ga-dots .on i { animation-play-state: paused; }
@keyframes ga-fill { from { width: 0; } to { width: 100%; } }
.ga-pause { width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center; border-radius: 50%; color: #151b2b; transition: background .2s; }
.ga-pause:hover { background: #eef1f4; }
.ga-pause svg { width: 18px; height: 18px; }
.ga-pause .ga-play-icon, .ga-stopped .ga-pause .ga-pause-icon { display: none; }
.ga-stopped .ga-pause .ga-play-icon { display: block; }
/* Narrower than a laptop: the block moves under the screen; on phones the screen keeps its full program ratio */
/* narrow laptops: the block keeps inside the window */
/* narrow laptops (not zoomed): the screen is short, so a centred card rose into the arrows; it starts at the screen's top instead */
@media (min-width: 1024px) and (max-width: 1100px) { .ga-info { top: 8px; transform: none; } }
@media (max-width: 1023px) {
  .ga-stage { --ga-w: min(84%, calc(var(--ga-h) * 2)); }
  .ga-info { position: static; width: auto; margin: 18px var(--ga-left) 0; transform: none; }
  .ga-moving .ga-body { transform: none; }
}
@media (max-width: 767px) { .ga-stage { --ga-pad: 24px; } }
@media (max-width: 639px) { .ga-stage { --ga-pad: 16px; } }
@media (max-width: 767px) {
  .ga-sec { --ga-pb: 56px; padding: 56px 0 var(--ga-pb); }   /* card border -> section end = section top -> kicker ink (57.5px), 2026-11-26 */
  .ga-arrows { display: none; }   /* nothing left in it on phones (no arrows, no counter) */
  .ga-head { flex-wrap: wrap; }
  .ga-head > header { flex: 1 1 100%; }   /* the counter goes under the tagline, so the title keeps one line */
  .ga-count { text-align: left; }
  /* Phones (2026-11-26): the screen keeps its old size (84% of the row less the 16px edge) and only moves to the
     middle, with the previous and next ones showing at both sides; the caption card under it stays at the 16px
     edges. Written in cqw (the stage's own width): a % here would count from the row's left padding, which now
     depends on the width, and vw would count a desktop scrollbar too. */
  .ga-stage { --ga-w: calc((100vw - 16px) * .84); --ga-left: calc((100vw - var(--ga-w)) / 2); }
  @supports (width: 1cqw) {
    .ga-stage { container-type: inline-size; --ga-w: calc((100cqw - 16px) * .84); --ga-left: calc((100cqw - var(--ga-w)) / 2); }
  }
  .ga-info { margin: 18px var(--ga-pad) 0; }
  /* snap to the screen's centre, not to a start edge set by scroll-padding (that landed left first, then gallery.js
     glided it to the middle and the caption came late) */
  .ga-track { scroll-padding-left: 0; }
  .ga-slide { scroll-snap-align: center; }
  .ga-frame img, .ga-empty { aspect-ratio: 1.857; }
  .ga-slide { filter: blur(4px); opacity: .4; transform: scale(.9); }
  .ga-info { padding: 22px 22px 16px; }
  .ga-info b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ga-slide, .ga-body, .ga-moving .ga-body, .ga-dots span { transition: none; } .ga-pause { display: none; } }

/* ---- Home hero (#hero, assets/hero.js), 2026-11-17: product name, category and one line on the left; a photo of an
   engineer at a monitor that shows the real Logic screen on the right. About 65% of the screen tall so the next
   section shows below it. --hero-ink is the photo's own dark office colour, so the photo melts into the background.
   Wide windows: hero.js sizes and places the photo in the text's scaled units; its left side fades out behind the
   text (the person stays a silhouette) and its right side fades out before the bright pillar at the photo's edge. ---- */
:root { --hero-ink: #0f1a24; }
.hero { position: relative; overflow: hidden; box-sizing: border-box; background: var(--hero-ink); color: #fff;
  --nav-h: 73px; padding-top: var(--nav-h);
  height: calc(var(--nav-h) + clamp(480px, (100svh - var(--nav-h)) * .65, 760px)); }
.hero-photo { position: absolute; left: 0; right: 0; top: var(--nav-h); bottom: 0; overflow: hidden; }
.hero-bg { position: absolute; max-width: none; opacity: 0; transition: opacity .35s ease;   /* shown once hero.js has placed it */

  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0,0,0,.18) 30%, #000 44%, #000 82%, rgba(0,0,0,.72) 86.5%, rgba(0,0,0,.35) 90.5%, rgba(0,0,0,.1) 93%, transparent 94.3%);
          mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0,0,0,.18) 30%, #000 44%, #000 82%, rgba(0,0,0,.72) 86.5%, rgba(0,0,0,.35) 90.5%, rgba(0,0,0,.1) 93%, transparent 94.3%); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(15,26,36,.92) 0%, rgba(15,26,36,.85) 22%, rgba(15,26,36,.55) 36%, rgba(15,26,36,.12) 48%, rgba(15,26,36,0) 56%),
  linear-gradient(0deg, rgba(15,26,36,.45), rgba(15,26,36,0) 25%); }
.hero-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1101px) { .hero-copy { zoom: var(--hero-s, 1); } }   /* same scale as the header on wide screens */
.hero h1 { margin: 0; font: 800 48px/1.05 Inter, 'Noto Sans KR', sans-serif; letter-spacing: -.035em; color: #fff; }
.hero-cat { margin: 14px 0 0; white-space: nowrap; font: 600 22px/1.35 Inter, sans-serif; letter-spacing: -.01em; color: #dce7ef; }
.hero-sub { margin: 16px 0 28px; max-width: 420px; color: #a9bccb; font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 700 14px Inter, 'Noto Sans KR', sans-serif; }
.hero-btn svg { width: 16px; height: 16px; }
.hero-btn-primary { background: #7be4ee; color: #081e30; }
.hero-btn-primary:hover { background: #a3eef4; }
.hero-btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.hero-btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-btn:focus-visible { outline: 2px solid #7be4ee; outline-offset: 3px; }
html[lang="zh"] .hero-sub, html[lang="ja"] .hero-sub { font-family: inherit; }
/* Phones: the photo fills a box on top, the text follows under it */
@media (max-width: 767px) {
  .hero { --nav-h: 105px; height: auto; padding-bottom: 48px; }
  .hero-photo { position: relative; top: 0; height: 300px; }
  .hero-bg { opacity: 1; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
    -webkit-mask-image: none; mask-image: none; }
  .hero-shade { background: linear-gradient(0deg, var(--hero-ink) 0%, rgba(15,26,36,0) 45%); }
  .hero-copy { margin-top: -40px; }
  .hero h1 { font-size: 32px; }
  .hero-cat { font-size: 19px; white-space: normal; }   /* same steps as the section tagline (22 / 19px) */
}

.hero-bg.is-placed { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bg { transition: none; } }

/* ---- Key feature screens open large (site.js initShotZoom, 2026-11-27) ---- */
.shot-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-zoom img { display: block; width: 100%; height: auto; }
.shot-zoom:focus-visible { outline: 2px solid #1765cc; outline-offset: 3px; }
#lightbox.lb-single [data-lightbox="-1"], #lightbox.lb-single [data-lightbox="1"] { display: none; }
/* portrait phones: a wide screen shown at the overlay's width would be no larger than on the page, so it takes the
   height instead and the overlay pans sideways; the close button stays put */
@media (max-width: 767px) and (orientation: portrait) {
  #lightbox.lb-single { justify-content: flex-start; overflow-x: auto; overscroll-behavior: contain; }
  #lightbox.lb-single #lightboxImg { flex: none; width: auto; max-width: none; height: min(70vh, 600px); max-height: none; }
  #lightbox.lb-single [data-lightbox="close"] { position: fixed; }
}

/* phones: the AI chat is already there, no fade-in per message (site.js initChatAnimation, 2026-11-27) */
#chatMessages.chat-static > div { animation: none !important; transition: none; opacity: 1; transform: none; }

/* Key features 01-03 on phones: checklist a step smaller (15 -> 14px), under the 15px lead (2026-11-27) */
@media (max-width: 767px) {
  :is(#integrator, #harness, #ai) ul li { font-size: 14px; }
  :is(#integrator, #harness, #ai) ul li .material-symbols-outlined { font-size: 18.5px !important; margin-top: 1px; }   /* the tick scales with the text (20 x 14/15) */
  :is(#integrator, #harness, #ai) .lg-lead { margin-bottom: 14px !important; }   /* lead -> list = tagline -> lead (23.5px as the eye sees it; was 33.5) */
  #integrator .grid, #harness .grid, #ai .ai-row { row-gap: 28px; }   /* list -> screen window 32px as the eye sees it (was 36; 23.5 felt cramped) */
}

/* AI Assistant on phones (2026-11-27): the lead drops "(Model Context Protocol)" (it took half the first line), and
   the chat window's green dot becomes the three grey dots of the screen windows above (its title is hidden here) */
@media (max-width: 767px) { .ai-mcp { display: none; } }
@media (max-width: 639px) {
  .ai-win-dot { width: 9px; height: 9px; background: #c3cbd4; box-shadow: 15px 0 0 #c3cbd4, 30px 0 0 #c3cbd4; margin-right: 30px; }
}

/* ---- Tablets (768-1023px, 2026-11-27): the menu folds behind the toggle as on phones (the five tabs and their
   dropdowns overflowed in en / zh / ja). The header stays one row: logo, then language, demo button and toggle on the
   right. The open panel is the phone's. ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  #nav nav { justify-content: flex-start; }
  #langSwitcherDesktop { margin-left: auto; margin-right: 12px !important; }
  #navToggle { display: flex !important; order: 3; margin-left: 8px; }
  #navDemo { order: 2; }
  #navLinks:not(.nav-open) { display: none !important; }
  #navLinks.nav-open {
    display: flex !important; position: fixed; top: var(--tab-nav-h, 73px); left: 0; right: 0; bottom: auto;
    height: calc(100vh - var(--tab-nav-h, 73px)); height: calc(100dvh - var(--tab-nav-h, 73px));
    flex-direction: column; gap: 0; padding: 16px; overflow-y: auto; z-index: 40;
    background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(193, 198, 214, .2);
  }
  #nav.engineering-nav-dark #navLinks.nav-open { background: #0c263a; }
  #navLinks.nav-open a { padding: 16px 24px; font-size: 18px; border-bottom: 1px solid rgba(193, 198, 214, .1); }
  #navLinks.nav-open a:last-child { border-bottom: none; }
  #navLinks.nav-open .nav-item > a { display: block; width: 100%; }
  #navLinks.nav-open a.nav-active { background: rgba(26, 115, 232, .05); }
  #navLinks.nav-open a.nav-active::after { display: none; }
}

/* the open menu on light pages: solid white. Its 98% white let the page show through on phones and tablets (inside the
   blurred header the panel's own blur does not apply), 2026-11-27 */
@media (max-width: 1023px) { #nav:not(.engineering-nav-dark) #navLinks.nav-open { background: #fff; } }

/* the open menu's dividers go under each item, not under each link: an item without a sub-menu ("회사 소개") has its link
   as last child, which the old "no line under the last link" rule left without a divider (2026-11-27) */
@media (max-width: 1023px) {
  #navLinks.nav-open .nav-item > a { border-bottom: 0 !important; }
  #navLinks.nav-open .nav-item { border-bottom: 1px solid rgba(193, 198, 214, .1); }
  #navLinks.nav-open .nav-item:has(+ .nav-demo-mobile), #navLinks.nav-open .nav-item:last-of-type { border-bottom: 0; }
}

/* ---- Consent box under every form (2026-11-27): "I agree to the collection and use of my personal information" with
   what is collected and that it passes through a server abroad (Formspree). Light by default; the footer's form is
   small, the last CTA (navy) has its own colours in engineering.css. ---- */
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: #1a73e8; cursor: pointer; }
.consent input:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; box-shadow: none; }
.consent b { display: block; font: 600 13px/1.4 'Manrope', 'Noto Sans KR', sans-serif; color: #151b2b; }
.consent small { display: block; margin-top: 3px; font: 400 12px/1.55 'Manrope', 'Noto Sans KR', sans-serif; color: #5b6572; }
.contact-form label.consent { display: flex; gap: 10px; font-weight: inherit; }   /* beats the form's grid labels */
.contact-form .consent input { width: 18px; padding: 0; border-radius: 4px; }
.footer-contact .consent b { font-size: 12.5px; }
.footer-contact .consent small { font-size: 12px; }
