/*
Theme Name: Denkyoren
Theme URI: https://denkyoren.co.jp/
Author: Denkyoren
Description: Custom responsive theme based on the Denkyoren homepage-light Figma design.
Version: 1.9.3
Text Domain: denkyoren
*/

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --blue: #0066cc;
  --ink: #0b0f14;
  --muted: #6e6e73;
  --surface: #f5f5f7;
  --page-max: 1400px;
  --page-gutter: 24px;
  --page: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Noto Sans JP", sans-serif; }
html.menu-open, body.menu-open { overflow: hidden; overscroll-behavior: none; touch-action: none; }
body.admin-bar .site-header, body.admin-bar .news-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { overflow-wrap: break-word; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: var(--page); margin-inline: auto; }
.display { margin: 0; font-family: "Bebas Neue", sans-serif; font-weight: 400; }

.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: #fff; background: #071019 url("assets/images/hero-ai-meeting-v1.png") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(11,15,20,.72); pointer-events: none; }
.hero-scenes { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.hero-scenes picture { position: absolute; inset: -3%; display: block; width: 106%; height: 106%; opacity: 0; animation: hero-scene 24s ease-in-out infinite; will-change: opacity, transform; }
.hero-scenes picture:nth-child(1) { animation-delay: 0s; }
.hero-scenes picture:nth-child(2) { animation-delay: 6s; }
.hero-scenes picture:nth-child(3) { animation-delay: 12s; }
.hero-scenes picture:nth-child(4) { animation-delay: 18s; }
.hero-scenes picture img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-content { position: relative; z-index: 2; }
.ticker { z-index: 2; }
@keyframes hero-scene {
  0% { opacity: 0; transform: scale(1.02) translate3d(-.5%, 0, 0); }
  3% { opacity: 1; }
  27% { opacity: 1; }
  30% { opacity: 0; transform: scale(1.09) translate3d(.8%, -.5%, 0); }
  100% { opacity: 0; transform: scale(1.09) translate3d(.8%, -.5%, 0); }
}
.site-header {
  position: fixed; z-index: 1000; top: 0; right: 0; left: 0;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 80px; margin: 0;
  padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  background: transparent; border-bottom: 1px solid transparent;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.header-scrolled { background: rgba(255,255,255,.96); border-bottom-color: #e5e5e7; box-shadow: 0 2px 12px rgba(11,15,20,.04); backdrop-filter: blur(12px); }
.site-header.header-hidden { transform: translateY(-100%); }
.site-header.menu-active, .news-header.menu-active { transform: none; background: transparent; border-bottom-color: transparent; box-shadow: none; }
.site-header.header-scrolled .brand img { filter: invert(1); }
.site-header.header-scrolled .site-nav { color: #1d1d1f; }
.site-header.header-scrolled .menu-toggle { color: #1d1d1f; border-color: #86868b; }
.brand img { width: 193px; height: 30px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 40px; font-family: "Bebas Neue", sans-serif; font-size: 20px; font-weight: 400; letter-spacing: .06em; }
.site-nav a { position: relative; padding: 12px 0; transition: opacity .25s ease, transform .25s ease; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .32s cubic-bezier(.22,1,.36,1); }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; transform: translateY(-2px); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.menu-toggle { position: relative; z-index: 1002; display: none; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: transparent; border: 0; cursor: pointer; }
.menu-toggle-lines { position: relative; display: block; width: 28px; height: 20px; }
.menu-toggle-lines i { position: absolute; right: 0; left: 0; display: block; height: 2px; margin: 0; background: currentColor; transition: top .28s ease, transform .28s ease, opacity .2s ease; }
.menu-toggle-lines i:nth-child(1) { top: 1px; }
.menu-toggle-lines i:nth-child(2) { top: 9px; }
.menu-toggle-lines i:nth-child(3) { top: 17px; }
.menu-toggle.is-active .menu-toggle-lines i:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.is-active .menu-toggle-lines i:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle-lines i:nth-child(3) { top: 9px; transform: rotate(-45deg); }
.site-header.menu-active .brand img, .news-header.menu-active .brand img { filter: none; }
.site-header.menu-active .menu-toggle, .news-header.menu-active .menu-toggle { color: #fff; }
.hero-content { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px 140px; text-align: center; }
.hero-eyebrow { margin: 0 0 32px; font-size: clamp(18px, 1.65vw, 24px); font-weight: 500; }
.hero h1 { max-width: 1220px; margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.38; }
.hero-title-line { display: block; }
.hero-title-mobile-break { display: none; }
.ticker { position: absolute; right: 0; bottom: 74px; left: 0; display: flex; align-items: center; gap: 24px; width: var(--page); margin: auto; padding: 18px 30px; background: rgba(11,11,15,.62); border: 1px solid #2e2e38; backdrop-filter: blur(8px); }
.ticker-label { padding: 7px 17px; background: var(--blue); font: 700 18px/1.2 monospace; }
.ticker-text { flex: 1; overflow: hidden; font-size: clamp(13px, 1.2vw, 16px); text-overflow: ellipsis; white-space: nowrap; }
.ticker-button { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 9px; overflow: hidden; padding: 8px 14px 8px 16px; border: 1px solid #fff; font-size: 12px; transition: color .3s ease, transform .3s ease, box-shadow .3s ease; }
.ticker-button::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; transform: translateX(-102%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.ticker-button::after { content: "→"; display: inline-block; font-size: 14px; line-height: 1; transition: transform .3s ease; }
.ticker-button:hover, .ticker-button:focus-visible { color: #0b0f14; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.ticker-button:hover::before, .ticker-button:focus-visible::before { transform: translateX(0); }
.ticker-button:hover::after, .ticker-button:focus-visible::after { transform: translateX(4px); }
.ticker-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.agent { padding: 160px 0; }
.agent-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 70px; align-items: center; }
.kicker { margin: 0; color: #0071e3; font: 40px/2 "Bebas Neue", sans-serif; text-transform: uppercase; }
.agent-title { font-size: clamp(120px, 12.5vw, 180px); line-height: .85; color: #1d1d1f; }
.agent-copy h2 { margin: 28px 0 16px; font-size: 24px; line-height: 1.45; }
.agent-copy p:last-child { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.agent-visual { position: relative; height: 480px; overflow: hidden; background: #070d14; }
.agent-visual > img { width: 100%; height: 100%; object-fit: cover; }
.engine-badge { position: absolute; z-index: 3; bottom: 5%; left: 5%; padding: 10px 16px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; }
.engine-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #40e586; box-shadow: 0 0 0 4px rgba(64,229,134,.15); }


.section-head { text-align: center; }
.section-head p { margin: 0; color: var(--blue); font-size: 15px; font-weight: 600; }
.section-head h2 { margin: 0; font: 100px/1.3 "Bebas Neue", sans-serif; }
.products { padding-bottom: 20px; }
.product-hero-image { display: block; width: 100%; height: auto; margin-top: 64px; }
.services { padding: 20px 0 50px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #111; }

.cases { padding-bottom: 80px; overflow: hidden; }
.case-viewport { overflow-x: auto; cursor: grab; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; user-select: none; -webkit-overflow-scrolling: touch; }
.case-viewport::-webkit-scrollbar { display: none; }
.case-viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.case-viewport.is-loop-jump { scroll-behavior: auto; scroll-snap-type: none; }
.case-track { display: flex; gap: 30px; width: max-content; padding-inline: max(24px, calc((100vw - min(62vw, 900px)) / 2)); }
.case-card { position: relative; flex: 0 0 min(62vw, 900px); aspect-ratio: 3 / 2; overflow: hidden; scroll-snap-align: center; opacity: .42; transform: scale(.92); transition: opacity .35s ease, transform .35s ease; }
.case-card.is-active { opacity: 1; transform: scale(1); }
.case-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.case-link { display: block; width: 100%; height: 100%; cursor: pointer; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #ccd0d5; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.dots button.active { background: var(--blue); transform: scale(1.25); }

.site-footer { position: relative; min-height: 500px; overflow: hidden; border-top: 1px solid #f0f2f5; }
.watermark { position: absolute; top: 50px; left: 50%; width: 360px; height: 360px; transform: translateX(-50%); opacity: .6; transition: opacity .3s ease; }
.watermark img { width: 100%; height: 100%; }
.watermark:hover, .watermark:focus-visible { opacity: .85; }
.watermark:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.footer-brand { position: relative; display: flex; justify-content: center; padding-top: 210px; }
.footer-brand img { width: 190px; height: 32px; }
.footer-bottom { position: absolute; right: 0; bottom: 48px; left: 0; display: flex; justify-content: space-between; color: #8a929a; font-size: 12px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { position: relative; display: inline-block; transition: color .25s ease, transform .25s ease; }
.footer-links a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .32s cubic-bezier(.22,1,.36,1); }
.footer-links a:hover, .footer-links a:focus-visible { color: #1d1d1f; transform: translateY(-2px); }
.footer-links a:hover::after, .footer-links a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.footer-links a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.footer-links a + a::before { content: "|"; position: absolute; top: 50%; left: -14px; color: #999; transform: translate(-50%, -50%); }

.content-page { width: var(--page); min-height: 55vh; margin: 100px auto; }

/* News archive */
.news-page { display: flex; min-height: 100vh; flex-direction: column; padding-top: 80px; background: #f1f1f1; }
.news-page > main { display: flex; flex: 1 0 auto; flex-direction: column; }
.news-page > .company-footer { flex-shrink: 0; margin-top: auto; }
.news-header {
  position: fixed; z-index: 1000; top: 0; right: 0; left: 0;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 80px; padding: 0 max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  background: rgba(255,255,255,.96); border-bottom: 1px solid #e5e5ea;
  backdrop-filter: blur(12px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-header.header-hidden { transform: translateY(-100%); }
.news-header.header-scrolled { box-shadow: 0 2px 12px rgba(11,15,20,.04); }
.news-header .brand img { filter: invert(1); }
.news-nav { display: flex; align-items: center; gap: 40px; color: #86868b; font-family: "Bebas Neue", sans-serif; font-size: 20px; font-weight: 400; letter-spacing: .06em; }
.news-nav a { position: relative; padding: 12px 0; }
.news-nav a[aria-current="page"] { color: #1d1d1f; font-weight: 400; }
.news-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 4px; left: 0; width: 16px; height: 2px; background: #1d1d1f; }
.news-menu-toggle { color: #1d1d1f; }
.news-container { width: var(--page); margin-inline: auto; }
.news-hero { padding-top: 80px; padding-bottom: 40px; }
.news-hero .section-head { text-align: left; }
.news-hero .section-head h1 { margin: 0; font: 100px/1.3 "Bebas Neue", sans-serif; }
.news-hero .section-head p { margin: 0; color: var(--blue); font-size: 15px; font-weight: 600; }
.news-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.news-filter { padding: 8px 16px; color: #86868b; background: #fff; border: 1px solid #e5e5ea; font-size: 13px; }
.news-filter.is-active { color: #fff; background: #1d1d1f; border-color: #1d1d1f; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 32px; padding-bottom: 80px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e5e5ea; transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); border-color: #1d1d1f; }
.news-card:first-child { border-color: #1d1d1f; }
.news-thumb { height: 228px; overflow: hidden; background: #ddd; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-thumb-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f5f5f7, #e5e5ea); }
.news-card:hover .news-thumb img { transform: scale(1.025); }
.news-card-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-tag { padding: 4px 10px; color: #06c; background: #ebf3ff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.news-tag.service { color: #1db954; background: #eaf9f1; }
.news-tag.event { color: #e67e22; background: #fdf1e6; }
.news-date { color: #86868b; font-size: 12px; font-weight: 500; white-space: nowrap; }
.news-card h2 { display: -webkit-box; margin: 0; overflow: hidden; color: #1d1d1f; font-size: 16px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: #86868b; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-pagination { display: flex; justify-content: center; padding-bottom: 120px; }
.news-pagination .nav-links { display: flex; align-items: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid #e5e5ea; }
.news-pagination .page-numbers { display: grid; place-items: center; width: 36px; height: 36px; color: #86868b; font-size: 14px; font-weight: 500; }
.news-pagination .current { color: #fff; background: #1d1d1f; font-weight: 700; }
.news-pagination .next { color: #1d1d1f; background: #f5f5f7; }
.news-empty { grid-column: 1 / -1; margin: 40px 0 80px; padding: 60px 24px; color: #86868b; background: #fff; border: 1px solid #e5e5ea; text-align: center; }
.news-page .site-footer { background: #fff; }

/* Single news article */
.article-page { padding-top: 80px; background: #fff; }
.article-page .news-header { padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); }
.article-main { padding-bottom: 100px; }
.article-featured { width: 100%; height: min(46vw, 680px); min-height: 360px; overflow: hidden; background: #eef0f3; }
.article-featured img { width: 100%; height: 100%; object-fit: cover; }
.article-shell { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.article-heading { padding-top: 48px; padding-bottom: 40px; border-bottom: 1px solid #e5e5e7; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.article-category { padding: 6px 12px; color: #1d1d1f; background: #f5f5f7; font-size: 12px; font-weight: 600; }
.article-date { color: #86868b; font-size: 14px; }
.article-heading h1 { margin: 0; color: #1d1d1f; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.3; font-weight: 800; }
.article-content { padding: 40px 0 72px; color: #1d1d1f; font-size: 17px; line-height: 1.8; }
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }
.article-content p { margin: 0 0 28px; }
.article-content h2 { margin: 56px 0 20px; font-size: 28px; line-height: 1.45; }
.article-content h3 { margin: 42px 0 16px; font-size: 22px; line-height: 1.5; }
.article-content ul, .article-content ol { margin: 0 0 28px; padding-left: 1.5em; }
.article-content blockquote { margin: 40px 0; padding: 8px 0 8px 24px; border-left: 3px solid #1d1d1f; font-size: 20px; }
.article-content img { width: auto; height: auto; margin-block: 36px; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px 0; }
.article-nav-button { display: inline-flex; align-items: center; gap: 10px; width: max-content; padding: 10px 14px; color: #212126; background: #fff; border: 1px solid #212126; font: 700 12px/1 Inter, sans-serif; letter-spacing: .08em; transition: color .2s, background .2s; }
.article-nav-button:hover { color: #fff; background: #212126; }
.article-nav-button img { width: 16px; height: 16px; }
.article-nav-button:hover img { filter: invert(1); }
.article-nav-next { justify-self: end; }
.article-back { justify-self: center; padding: 12px 18px; font-size: 13px; letter-spacing: .1em; }
.article-nav-placeholder { min-width: 1px; }

/* Company overview */
.company-page { min-height: 100vh; padding-top: 80px; background: #fff; }
.company-page .news-header { padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); }
.company-page .news-nav a[aria-current="page"] { color: #1d1d1f; font-weight: 400; }
.company-title { width: var(--page); margin-inline: auto; padding: 60px 0 64px; }
.company-title p { margin: 0 0 5px; color: var(--blue); font-size: 15px; font-weight: 600; }
.company-title h1 { margin: 0; font: 40px/1.3 "Bebas Neue", sans-serif; color: var(--ink); }
.company-content { width: var(--page); margin-inline: auto; padding-bottom: 120px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 32px 16px; border-bottom: 1px solid #e5e5e7; text-align: left; vertical-align: top; }
.company-table th { width: 320px; color: #86868b; font-size: 15px; font-weight: 500; }
.company-table td { color: #1d1d1f; font-size: 16px; font-weight: 500; line-height: 1.6; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-image { position: relative; height: 480px; margin-top: 50px; overflow: hidden; background: #0b0b0f; }
.company-image::after { content: ""; position: absolute; inset: 0; background: rgba(11,11,15,.4); pointer-events: none; }
.company-image img { width: 100%; height: 100%; object-fit: cover; }
.company-image-label { position: absolute; z-index: 1; top: 24px; left: 24px; padding: 6px 12px; color: #8f9099; background: rgba(0,0,0,.7); border: 1px solid #1c1c24; font: 10px/1.4 monospace; }
.company-footer { display: flex; align-items: center; justify-content: space-between; min-height: 96px; padding: 40px max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); color: #8f9099; background: #111116; border-top: 1px solid #1c1c24; font-size: 12px; }
.company-footer-links { display: flex; align-items: center; gap: 28px; }
.company-footer-links a { position: relative; display: inline-block; transition: color .25s ease, transform .25s ease; }
.company-footer-links a::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .32s cubic-bezier(.22,1,.36,1); }
.company-footer-links a:hover, .company-footer-links a:focus-visible { color: #fff; transform: translateY(-2px); }
.company-footer-links a:hover::after, .company-footer-links a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.company-footer-links a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.company-footer-links a + a::before { content: "|"; position: absolute; top: 50%; left: -14px; color: #474750; transform: translate(-50%, -50%); }

/* Contact Form 7 and thank-you */
.contact-page, .thank-you-page { min-height: 100vh; padding-top: 80px; background: #fff; }
.thank-you-page { display: flex; flex-direction: column; }
.thank-you-page.is-pending-verification { visibility: hidden; }
.thank-you-page > .company-footer { flex-shrink: 0; margin-top: auto; }
.contact-page .news-header, .thank-you-page .news-header { padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); }
.contact-heading { padding: 88px 24px 56px; text-align: center; }
.contact-heading .section-head p { font-size: 15px; }
.contact-heading .section-head h1 { margin: 0; font: 100px/1.3 "Bebas Neue", sans-serif; }
.contact-intro { max-width: 640px; margin: 26px auto 0; color: #86868b; font-size: 15px; line-height: 1.6; }
.contact-form-section { width: min(700px, calc(100% - 40px)); margin-inline: auto; padding-bottom: 120px; }
.contact-form-section .wpcf7-form { display: flex; flex-direction: column; gap: 0; }
.cf7-field { display: flex; flex-direction: column; gap: 8px; }
.cf7-label { display: flex; align-items: center; gap: 6px; color: #1d1d1f; font-size: 14px; font-weight: 600; }
.cf7-required { padding: 2px 6px; color: #ff453a; background: rgba(255,69,58,.07); font-size: 10px; font-weight: 700; }
.contact-form-section .wpcf7-form-control-wrap { display: block; }
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section select,
.contact-form-section textarea {
  display: block; width: 100%; min-height: 48px; padding: 13px 16px; color: #1d1d1f; background: #fff; border: 1px solid #d2d2d7; border-radius: 0; outline: 0; font: 15px/1.5 Inter, sans-serif;
}
.contact-form-section textarea { height: 180px; resize: vertical; }
.contact-form-section input:focus, .contact-form-section select:focus, .contact-form-section textarea:focus { border-color: #1d1d1f; box-shadow: 0 0 0 1px #1d1d1f; }
.contact-form-section ::placeholder { color: #86868b; opacity: 1; }
.cf7-privacy { margin-top: -4px; }
.cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-privacy label { display: flex; align-items: center; gap: 12px; color: #212126; font-size: 14px; }
.cf7-privacy input { width: 20px; height: 20px; margin: 0; accent-color: #1d1d1f; }
.cf7-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.cf7-submit-row { position: relative; display: flex; justify-content: center; margin-top: 31px; }
.contact-form-section input[type="submit"] { width: 280px; height: 56px; color: #fff; background: #1d1d1f; border: 1px solid #1d1d1f; border-radius: 0; cursor: pointer; font: 600 16px Inter, sans-serif; transition: opacity .2s; }
.contact-form-section input[type="submit"]:hover { opacity: .82; }
.contact-form-section .wpcf7-spinner { display: none !important; }
.contact-form-section .wpcf7-form-control-wrap { position: relative; display: block; width: 100%; }
.contact-form-section .wpcf7-not-valid { border-color: #ff453a !important; }
.contact-form-section .wpcf7-not-valid-tip {
  position: static !important;
  display: block !important;
  width: 100%;
  margin: 7px 0 0 !important;
  padding: 0;
  color: #ff453a;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.contact-form-section .wpcf7-response-output { margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.6; }
.contact-page.is-redirecting .contact-form-section { visibility: hidden; }
.contact-page.is-redirecting .wpcf7-response-output { display: none !important; }
.contact-form-section .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-section .wpcf7-form.unaccepted .wpcf7-response-output { display: none; }
.contact-form-missing { padding: 24px; color: #7a4c00; background: #fff7e8; border: 1px solid #f0c36d; line-height: 1.6; }
.thank-you-body { display: flex; min-height: 0; flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 100px 24px 160px; text-align: center; }
.thank-you-title p { margin: 0 0 16px; color: var(--blue); font-size: 15px; font-weight: 600; }
.thank-you-title h1 { margin: 0; color: #1d1d1f; font: 100px/1.3 "Bebas Neue", sans-serif; }
.thank-you-message { display: flex; max-width: 800px; flex-direction: column; align-items: center; gap: 24px; }
.thank-you-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,102,204,.05); }
.thank-you-check img { width: 24px; height: 24px; }
.thank-you-message h2 { margin: 0; color: #1d1d1f; font-size: 32px; line-height: 1.4; }
.thank-you-message p { max-width: 640px; margin: 0; color: #86868b; font-size: 15px; line-height: 1.8; }
.thank-you-home { display: flex; align-items: center; justify-content: center; gap: 10px; width: 280px; height: 56px; color: #fff; background: #1d1d1f; font-size: 16px; font-weight: 600; }
.thank-you-home img { width: 14px; height: 14px; }

/* Shared button hover: same sliding fill and lift as the first-view detail link. */
.article-nav-button,
.news-filter,
.news-pagination a.page-numbers,
.thank-you-home {
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.article-nav-button::before,
.news-filter::before,
.news-pagination a.page-numbers::before,
.thank-you-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #1d1d1f;
  transform: translateX(-102%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.article-nav-button:hover,
.article-nav-button:focus-visible,
.news-filter:not(.is-active):hover,
.news-filter:not(.is-active):focus-visible,
.news-pagination a.page-numbers:hover,
.news-pagination a.page-numbers:focus-visible {
  color: #fff;
  background: transparent;
  border-color: #1d1d1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.article-nav-button:hover::before,
.article-nav-button:focus-visible::before,
.news-filter:not(.is-active):hover::before,
.news-filter:not(.is-active):focus-visible::before,
.news-pagination a.page-numbers:hover::before,
.news-pagination a.page-numbers:focus-visible::before,
.thank-you-home:hover::before,
.thank-you-home:focus-visible::before {
  transform: translateX(0);
}
.article-nav-button:hover img,
.article-nav-button:focus-visible img { filter: invert(1); transform: translateX(3px); }
.article-nav-prev:hover img,
.article-nav-prev:focus-visible img { transform: translateX(-3px); }
.article-nav-button img,
.thank-you-home img { transition: filter .3s ease, transform .3s ease; }
.thank-you-home { border: 1px solid #1d1d1f; }
.thank-you-home::before { background: #fff; }
.thank-you-home:hover,
.thank-you-home:focus-visible {
  color: #1d1d1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.thank-you-home:hover img,
.thank-you-home:focus-visible img { filter: invert(1); transform: translateX(4px); }
.article-nav-button:focus-visible,
.news-filter:focus-visible,
.news-pagination a.page-numbers:focus-visible,
.thank-you-home:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.contact-form-section input[type="submit"] {
  background-image: linear-gradient(90deg, #fff 0 50%, #1d1d1f 50% 100%);
  background-position: 100% 0;
  background-size: 205% 100%;
  transition: color .3s ease, background-position .35s cubic-bezier(.22,1,.36,1), transform .3s ease, box-shadow .3s ease;
}
.contact-form-section input[type="submit"]:hover,
.contact-form-section input[type="submit"]:focus-visible {
  color: #1d1d1f;
  opacity: 1;
  background-position: 0 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.contact-form-section input[type="submit"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Privacy policy */
.privacy-page { min-height: 100vh; padding-top: 80px; background: #fff; }
.privacy-page .news-header { padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); }
.privacy-hero { padding: 96px var(--page-gutter) 64px; text-align: center; }
.privacy-hero p { margin: 0; color: var(--blue); font-size: 15px; font-weight: 600; }
.privacy-hero h1 { margin: 0; color: var(--ink); font: 100px/1.3 "Bebas Neue", sans-serif; text-transform: uppercase; }
.privacy-content { width: min(800px, calc(100% - (var(--page-gutter) * 2))); margin-inline: auto; padding-bottom: 128px; }
.privacy-intro { margin: 0 0 48px; color: #515154; font-size: 15px; line-height: 1.8; }
.privacy-sections { display: flex; flex-direction: column; gap: 40px; }
.privacy-section h2 { margin: 0 0 16px; color: #1d1d1f; font-size: 18px; line-height: 1.4; }
.privacy-section p { margin: 0 0 12px; color: #515154; font-size: 15px; line-height: 1.7; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ol { margin: 12px 0 0; padding-left: 1.5em; color: #515154; font-size: 15px; line-height: 1.7; }
.privacy-meta { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e5e7; color: #515154; text-align: right; }
.privacy-meta p { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.privacy-meta strong { color: #1d1d1f; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero-scenes picture { animation-timing-function: ease-in-out; }
}

@media (hover: hover) and (pointer: fine) {
  .menu-toggle,
  .case-link,
  .dots button,
  .contact-form-section input[type="submit"] { cursor: pointer; }
  .case-viewport { cursor: grab; }
  .case-viewport.is-dragging { cursor: grabbing; }
}

@media (hover: none), (pointer: coarse) {
  .menu-toggle,
  .case-link,
  .dots button,
  .contact-form-section input[type="submit"],
  .case-viewport,
  .case-viewport.is-dragging { cursor: auto; }
  .news-filter {
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }
  .news-filter::before { display: none; }
  .article-nav-button {
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }
  .article-nav-button::before { display: none; }
  .article-nav-button:active {
    color: #212126;
    background: #fff;
    border-color: #212126;
    transform: none;
    box-shadow: none;
  }
  .article-nav-button:active img {
    filter: none;
    transform: none;
  }
  .news-filter:not(.is-active):active {
    color: #86868b;
    background: #fff;
    border-color: #e5e5ea;
    transform: none;
    box-shadow: none;
  }

  .site-nav a:hover,
  .news-nav a:hover,
  .footer-links a:hover,
  .company-footer-links a:hover,
  .news-card:hover,
  .article-nav-button:hover,
  .news-filter:not(.is-active):hover,
  .news-pagination a.page-numbers:hover,
  .thank-you-home:hover,
  .contact-form-section input[type="submit"]:hover {
    transform: none;
    box-shadow: none;
  }
  .site-nav a:hover::after,
  .news-nav a:hover::after,
  .footer-links a:hover::after,
  .company-footer-links a:hover::after,
  .article-nav-button:hover::before,
  .news-filter:not(.is-active):hover::before,
  .news-pagination a.page-numbers:hover::before,
  .thank-you-home:hover::before { transform: scaleX(0); }
  .ticker-button:hover { color: #fff; transform: none; box-shadow: none; }
  .ticker-button:hover::before { transform: translateX(-102%); }
  .ticker-button:hover::after,
  .article-nav-button:hover img,
  .article-nav-prev:hover img,
  .thank-you-home:hover img { transform: none; }
  .watermark:hover { opacity: .6; }
  .footer-links a:hover { color: #86868b; }
  .company-footer-links a:hover { color: #8f9099; }
  .news-card:hover { border-color: #e5e5ea; }
  .news-card:first-child:hover { border-color: #1d1d1f; }
  .news-card:hover .news-thumb img { transform: none; }
  .article-nav-button:hover { color: #212126; background: #fff; border-color: #212126; }
  .article-nav-button:hover img { filter: none; }
  .news-filter:not(.is-active):hover { color: #86868b; background: #fff; border-color: #e5e5ea; }
  .news-pagination a.page-numbers:hover { color: #86868b; background: transparent; border-color: transparent; }
  .thank-you-home:hover { color: #fff; background: #1d1d1f; }
  .thank-you-home:hover img { filter: none; }
  .contact-form-section input[type="submit"]:hover {
    color: #fff;
    opacity: 1;
    background-position: 100% 0;
  }
}

@media (max-width: 900px) {
  :root { --page-max: 720px; }
  .case-viewport { cursor: auto; scroll-behavior: auto; }
  .site-header .brand, .news-header .brand { position: relative; z-index: 1002; }
  .site-nav, .news-nav {
    position: fixed; z-index: 1001; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(22px, 5vh, 42px); width: 100%; min-width: 0; height: 100vh; height: 100dvh;
    padding: 100px var(--page-gutter) 60px;
    color: #fff; background: rgba(7,16,25,.98); border: 0; box-shadow: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: scale(1.025);
    transition: opacity .28s ease, visibility .28s ease, transform .4s cubic-bezier(.22,1,.36,1);
  }
  .site-nav.is-open, .news-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: scale(1); }
  .site-nav a, .site-nav a:visited,
  .news-nav a, .news-nav a:visited,
  .site-nav a[aria-current="page"],
  .news-nav a[aria-current="page"],
  .company-page .news-nav a[aria-current="page"] {
    padding: 6px 12px; color: #fff !important;
    font-size: clamp(27px, 5vw, 42px); font-weight: 400; line-height: 1.25;
    opacity: 1; text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .site-nav a:hover, .site-nav a:active, .site-nav a:focus,
  .news-nav a:hover, .news-nav a:active, .news-nav a:focus {
    color: #fff !important;
    outline: 0;
  }
  .site-nav a:focus:not(:hover):not([aria-current="page"])::after,
  .news-nav a:focus:not(:hover):not([aria-current="page"])::after {
    transform: scaleX(0);
  }
  .site-nav a::after, .news-nav a::after { bottom: -3px; height: 2px; background: #fff; }
  .news-nav a[aria-current="page"] { color: #fff; }
  .news-nav a[aria-current="page"]::after { right: 12px; bottom: -3px; left: 12px; width: auto; background: #fff; }
  .site-header.header-scrolled .site-nav, .news-header .news-nav { color: #fff; background: rgba(7,16,25,.98); }
  .menu-toggle, .news-menu-toggle { display: grid; }
  .agent { padding: 100px 0; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-copy { max-width: 600px; }
  .section-head h2 { font-size: 76px; }
  .service-card { min-height: 0; }
  .case-card { flex-basis: min(68vw, 650px); }
  .case-track { padding-inline: max(24px, calc((100vw - min(68vw, 650px)) / 2)); }
  .news-container { width: var(--page); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-featured { min-height: 320px; }
  .company-table th { width: 240px; }
  .company-footer { padding-inline: 32px; }
  .thank-you-body { min-height: 0; }
}

@media (max-width: 640px) {
  :root { --page-gutter: 20px; }
  body.admin-bar .site-header, body.admin-bar .news-header { top: 46px; }
  body.admin-bar .hero { height: calc(100vh - 46px); height: calc(100svh - 46px); }
  .hero { height: 100vh; height: 100svh; background-image: url("assets/images/hero-ai-meeting-sp-v1.png"); }
  .hero-content { height: 100%; padding: 70px 20px 120px; }
  .hero-eyebrow { margin-bottom: 22px; font-size: clamp(15px, 4.5vw, 17px); line-height: 1.6; }
  .hero h1 { max-width: 100%; font-size: clamp(34px, 9.5vw, 48px); line-height: 1.35; }
  .ticker { bottom: 35px; gap: 10px; padding: 14px; }
  .ticker-label { padding: 6px 11px; font-size: 15px; }
  .ticker-text { min-width: 0; font-size: clamp(12px, 3.5vw, 14px); }
  .ticker-button { display: inline-flex; flex: 0 0 auto; gap: 5px; padding: 7px 9px 7px 10px; font-size: 10px; }
  .ticker-button::after { font-size: 12px; }
  .agent { padding: 80px 0; }
  .agent-grid { gap: 48px; }
  .agent-visual { height: 340px; }
  .kicker { font-size: 32px; }
  .agent-copy h2 { font-size: 21px; }
  .agent-copy p:last-child { font-size: 15px; }
  .section-head h2 { font-size: clamp(52px, 18vw, 62px); }
  .product-hero-image { margin-top: 34px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .case-card { flex-basis: calc(100vw - 88px); }
  .case-track { gap: 14px; padding-inline: 44px; }
  .case-action { bottom: 28px; left: 28px; }
  .footer-bottom { position: relative; bottom: auto; flex-direction: column; align-items: center; gap: 20px; margin-top: 200px; padding-bottom: 35px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .site-header, .news-header { height: 70px; padding-inline: var(--page-gutter); }
  .news-page, .article-page, .company-page, .contact-page, .thank-you-page, .privacy-page { padding-top: 70px; }
  .site-header .brand img, .news-header .brand img { width: 155px; height: 24px; }
  .news-container { width: var(--page); }
  .news-hero { padding-top: 55px; }
  .news-hero .section-head h1 { font-size: clamp(54px, 19vw, 68px); }
  .news-filters { gap: 8px; }
  .news-filter { padding: 7px 11px; font-size: 11px; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-thumb { height: 210px; }
  .article-featured { height: 52vw; min-height: 220px; }
  .article-shell { width: var(--page); max-width: 960px; }
  .article-heading { padding-top: 36px; padding-bottom: 30px; }
  .article-heading h1 { font-size: clamp(25px, 7.5vw, 28px); }
  .article-content { padding-top: 30px; font-size: 16px; }
  .article-content h2 { margin-top: 44px; font-size: 24px; }
  .article-content h3 { margin-top: 34px; font-size: 20px; }
  .article-navigation { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
  .article-back { grid-column: 2; grid-row: 1; }
  .article-nav-prev { grid-column: 1; grid-row: 1; }
  .article-nav-next { grid-column: 3; grid-row: 1; }
  .article-nav-button { max-width: 100%; font-size: 11px; line-height: 1.35; white-space: normal; }
  .company-title { width: var(--page); padding: 48px 0; }
  .company-content { width: var(--page); padding-bottom: 70px; }
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table tr { padding: 24px 0; border-bottom: 1px solid #e5e5e7; }
  .company-table th, .company-table td { padding: 0; border: 0; }
  .company-table th { margin-bottom: 9px; font-size: 13px; }
  .company-table td { font-size: 15px; }
  .company-image { height: 300px; margin-top: 40px; }
  .company-footer { flex-direction: column; gap: 22px; padding: 32px 20px; text-align: center; }
  .company-footer-links { flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
  .contact-heading { padding: 60px 20px 46px; }
  .contact-heading .section-head h1, .thank-you-title h1 { font-size: clamp(54px, 18vw, 70px); }
  .contact-form-section { padding-bottom: 80px; }
  .cf7-submit-row { margin-top: 18px; }
  .thank-you-body { min-height: 0; gap: 40px; padding: 80px 20px 100px; }
  .thank-you-message h2 { font-size: 25px; }
  .privacy-hero { padding-top: 64px; padding-bottom: 48px; }
  .privacy-hero h1 { font-size: clamp(48px, 16vw, 68px); }
  .privacy-content { padding-bottom: 80px; }
  .privacy-intro, .privacy-section p, .privacy-section ol { font-size: 14px; }
}

@media (max-width: 420px) {
  :root { --page-gutter: 16px; }
  .site-header, .news-header { padding-inline: 16px; }
  .site-header .brand img, .news-header .brand img { width: 150px; height: 24px; }
  .hero-content { padding: 64px 16px 112px; }
  .hero-eyebrow { max-width: 330px; margin-bottom: 20px; font-size: 14px; line-height: 1.65; }
  .hero h1 { width: 100%; font-size: clamp(28px, 8.55vw, 32px); line-height: 1.42; }
  .hero-title-mobile-break { display: inline; }
  .ticker { width: calc(100% - 32px); }
  .agent-title { font-size: 104px; }
  .agent-visual { height: 290px; }
  .engine-badge { bottom: 5%; left: 5%; }
  .news-grid { gap: 20px; }
  .news-card-content { padding: 20px; }
  .article-shell { width: calc(100% - 32px); }
  .article-navigation { gap: 8px; }
  .article-nav-button { padding: 9px 10px; }
  .contact-form-section { width: calc(100% - 32px); }
  .company-footer-links, .footer-links { column-gap: 24px; }
}

@media (max-height: 620px) and (max-width: 900px) {
  .site-nav, .news-nav { gap: 16px; padding-top: 76px; padding-bottom: 24px; }
  .site-nav a, .news-nav a { font-size: 24px; }
  .hero-content { padding-top: 64px; padding-bottom: 96px; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 13px; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .ticker { bottom: 14px; padding-block: 10px; }
}
