/* ==========================================================================
   墨と朱 · Ink and vermilion: the Tenshi design layer
   Loaded after styles.css on every page. It refines rather than replaces:
   washi paper, sumi ink and a single vermilion accent; generous ma (negative
   space); hairlines instead of heavy boxes; Mincho accents, vertical writing,
   kanji section numbers, hanko seals, seigaiha waves and quiet motion.
   Remove the <link> to design.css (and the design.js script) to undo it all.
   ========================================================================== */
:root {
  --washi: #faf8f4;
  --washi-2: #f3efe8;
  --sumi: #131315;
  --shu: #c8102e;
  --kin: #b48a4e;
  --pale: #f3efe8;
  --line: #e6dfd4;
  --radius: 6px;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "MS PMincho", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M6 24a18 18 0 0 1 36 0M12 24a12 12 0 0 1 24 0M18 24a6 6 0 0 1 12 0'/%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M-18 12a18 18 0 0 1 36 0M-12 12a12 12 0 0 1 24 0M-6 12a6 6 0 0 1 12 0M24 12a24 24 0 0 1 48 0M30 12a18 18 0 0 1 36 0M36 12a12 12 0 0 1 24 0M42 12a6 6 0 0 1 12 0'/%3E%3C/g%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C14 4 30 3.2 48 3.6c22 .5 44 1.2 68 .4 1.6 0 2.4 1.4 1.4 2.4-1.2 1.2-6 1.6-12 2-24 1.4-48 2.2-72 2.4-12 .1-23 0-30-.6-2-.2-2.6-1.6-.4-2.7z'/%3E%3C/svg%3E");
}

/* ---------- Paper, ink and type ---------- */
body { background: var(--washi); color: var(--text); }
body::before { /* the faint fibres of washi paper */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: var(--grain);
}
::selection { background: var(--shu); color: #fff; }
h1, h2, h3 { color: var(--sumi); letter-spacing: -.01em; }
html:lang(ja) :is(h1, h2, h3, p, li), html:lang(zh) :is(h1, h2, h3) { font-feature-settings: "palt"; letter-spacing: .03em; }
html { scrollbar-color: var(--shu) var(--washi-2); }

/* The brush stroke under section titles, in place of the flat bar */
.section-title { padding-bottom: 18px; }
.section-title::after {
  width: 84px; height: 9px; bottom: 0; background: var(--shu);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat;
}
.section-title.light::after { background: #ff6b80; }

/* Kanji section numbers: 一 二 三 …, set by design.js on each section title */
.section-title[data-kan]::before {
  content: attr(data-kan); display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font: 600 1rem/1 var(--mincho); letter-spacing: .3em; color: var(--shu);
}
.section-title.center[data-kan]::before { justify-content: center; }
.section-title[data-kan]:not(.center)::before { width: max-content; }
.section-title.light[data-kan]::before { color: #ffb3bf; }
.section-title[data-kan]::before { background: linear-gradient(90deg, currentColor, currentColor) no-repeat right 0 center / 0 1px; }
.section-title[data-kan]:not(.center)::before { padding-inline-end: 64px; background-size: 48px 1px; }
html[dir="rtl"] .section-title[data-kan]:not(.center)::before { background-position: left 0 center; }

/* ---------- Ma: calmer sections, hairlines, crisper corners ---------- */
.page-section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.page-section.tinted, .svc-offer-section, .svc-process, .svc-detail-section, .prj-more { background: var(--washi-2); border-color: var(--line); }
:is(.service-card, .offer-card, .benefit-card, .svc-tech, .tech-card, .value-card, .ab-step, .ab-std-card, .ab-focus, .ab-mv-card,
    .svc-detail, .prj-card, .prj-ed, .svc-step, .contact-pitch, .pitch-next li, .svc-for, .chat-card, .name-card, .faq details,
    .contact-form, .svc-detail-pic img, .page-photo img, .svc-figure img, .tech-group-pic, .service-pic) { border-radius: var(--radius); }
:is(.offer-card, .value-card, .ab-step, .ab-std-card, .ab-mv-card, .svc-detail, .svc-tech, .svc-step) {
  background: #fffdf9; border-color: var(--line); box-shadow: 0 1px 0 rgba(19, 19, 21, .03), 0 18px 40px -28px rgba(70, 40, 20, .25);
}
:is(.offer-card, .value-card, .ab-step, .ab-std-card, .svc-tech):hover { border-color: var(--shu); box-shadow: 0 24px 48px -26px rgba(126, 10, 27, .35); }
.offer-num, .ab-step-num, .svc-step-num { font-family: var(--mincho); font-weight: 600; letter-spacing: .02em; }

/* ---------- Buttons: ink sweeps across vermilion ---------- */
.btn { border-radius: 2px; letter-spacing: .08em; }
.btn-primary {
  background: linear-gradient(var(--sumi), var(--sumi)) no-repeat left / 0% 100%, var(--shu);
  transition: background-size .45s var(--ease), transform .2s, box-shadow .2s;
}
.btn-primary:hover { background-color: var(--shu); background-size: 100% 100%; }
html[dir="rtl"] .btn-primary { background-position: right; }
.btn-more { border-radius: 2px; letter-spacing: .16em; }

/* ---------- Header: rice paper glass that settles as you scroll ---------- */
.site-header {
  background: rgba(250, 248, 244, .8); border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 var(--shu); transition: box-shadow .35s, background-color .35s;
}
.site-header.is-scrolled { background: rgba(250, 248, 244, .92); box-shadow: inset 0 -2px 0 var(--shu), 0 10px 30px -18px rgba(19, 19, 21, .35); }
.main-nav a[aria-current="page"] { color: var(--shu); }
.scroll-line { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--shu), #ff5c74 70%, var(--kin)); }
html[dir="rtl"] .scroll-line { transform-origin: 100% 50%; }

/* ---------- Homepage hero: cinematic, calm, vertical writing ---------- */
.hero { min-height: clamp(680px, 82vh, 900px); }
.hero-stripes { display: none; }
.hero-wash { background: radial-gradient(ellipse 55% 60% at 50% 46%, rgba(250, 248, 244, .55), transparent 72%), linear-gradient(180deg, rgba(250, 248, 244, .5) 0%, rgba(250, 248, 244, .12) 40%, rgba(19, 19, 21, .28) 100%); }
.hero-card { border: 1px solid rgba(255, 255, 255, .7); border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(19, 19, 21, .45); }
.hero-card h1 { letter-spacing: -.02em; }
/* Ensō: a brush circle drawn around the logo */
.enso { position: absolute; inset: -46%; z-index: -1; pointer-events: none; }
.enso path { fill: none; stroke: var(--shu); stroke-width: 7; stroke-linecap: round; opacity: .55; stroke-dasharray: 560; stroke-dashoffset: 560; animation: enso-draw 2.6s var(--ease) .4s forwards; }
@keyframes enso-draw { to { stroke-dashoffset: 30; } }

/* ---------- Page banners: seigaiha waves and a hanko seal ---------- */
.svc-hero::before { content: ""; position: absolute; inset: 0; background: var(--seigaiha); opacity: .09; pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent 30%, #000); mask: linear-gradient(90deg, transparent 30%, #000); }
html[dir="rtl"] .svc-hero::before { -webkit-mask: linear-gradient(270deg, transparent 30%, #000); mask: linear-gradient(270deg, transparent 30%, #000); }
.svc-hero h1 { letter-spacing: -.025em; }
.page-seal {
  display: inline-grid; place-items: center; vertical-align: middle; margin-inline-start: 18px; width: 46px; height: 46px; border-radius: 6px;
  background: #fff; color: var(--shu); font: 700 .78rem/1.05 var(--mincho); text-align: center; letter-spacing: .04em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, .35), 0 10px 22px rgba(60, 0, 10, .35); transform: rotate(-4deg) translateY(-6px);
  animation: seal-in .7s var(--ease) .3s both;
}
@keyframes seal-in { from { opacity: 0; transform: rotate(-24deg) scale(1.8) translateY(-6px); } }

/* ---------- Footer: sumi ink, seigaiha waves and a quiet 天使 ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--sumi); border-top: 2px solid var(--shu); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--seigaiha); opacity: .05; pointer-events: none; }
.site-footer::after {
  content: "天使"; position: absolute; inset-inline-end: 2%; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; pointer-events: none;
  font: 700 clamp(4rem, 9vw, 7rem)/1 var(--mincho); color: #fff; opacity: .04; letter-spacing: .1em;
}
.footer-inner { position: relative; z-index: 1; }

/* ---------- Quiet reveals as you scroll (design.js adds .rv-on only when motion is welcome) ---------- */
html.rv-on .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rv-d, 0s); }
html.rv-on .rv.rv-in { opacity: 1; transform: none; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .page-seal { width: 38px; height: 38px; font-size: .66rem; margin-inline-start: 10px; }
  .site-footer::after { display: none; }
}

/* ---------- Reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  .enso path { animation: none; stroke-dashoffset: 30; }
  .page-seal { animation: none; }
  .btn-primary { transition: none; }
}

.logo-dazzle .enso { z-index: 0; }

/* The hanko seal sits on the title line; the footer watermark is pinned to the physical right */
.svc-hero h1 { display: inline-block; vertical-align: middle; }
.site-footer::after { inset-inline-end: auto; right: 2%; }
html[dir="rtl"] .site-footer::after { right: auto; left: 2%; }

/* ---------- Japanese Robotics Patent Explorer (technology.html#patents) ---------- */
.pat-section { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse 60% 50% at 85% 0%, rgba(200, 16, 46, .35), transparent 70%), linear-gradient(160deg, #1a0a0e, var(--sumi) 60%); }
.pat-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(rgba(255, 92, 116, .07) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255, 92, 116, .07) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask: radial-gradient(ellipse at 70% 20%, #000, transparent 75%); mask: radial-gradient(ellipse at 70% 20%, #000, transparent 75%); }
.pat-section::after { content: "特許"; position: absolute; top: 40px; right: 3%; writing-mode: vertical-rl; font: 700 clamp(4rem, 9vw, 7.5rem)/1 var(--mincho); color: #fff; opacity: .05; pointer-events: none; }
html[dir="rtl"] .pat-section::after { right: auto; left: 3%; }
.pat-section .page-inner { position: relative; z-index: 1; }
.pat-intro { max-width: 76ch; color: rgba(255, 255, 255, .85); font-size: 1.08rem; line-height: 1.75; margin-bottom: 30px; }
.pat-search { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 92, 116, .35); box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 60px -30px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pat-label { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #ff8fa0; margin-bottom: 10px; }
html[dir="rtl"] .pat-label, html:lang(ja) .pat-label, html:lang(zh) .pat-label, html:lang(ko) .pat-label { letter-spacing: .03em; }
.pat-row { display: flex; gap: 10px; }
.pat-row input[type="search"] { flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 4, 6, .6); color: #fff; font: inherit; }
.pat-row input[type="search"]::placeholder { color: rgba(255, 255, 255, .45); }
.pat-row input[type="search"]:focus { outline: none; border-color: #ff4d67; box-shadow: 0 0 0 3px rgba(255, 77, 103, .3); }
.pat-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; color: rgba(255, 255, 255, .8); cursor: pointer; }
.pat-check input { accent-color: var(--shu); width: 18px; height: 18px; }
.pat-sub { color: #fff; font-size: 1.3rem; font-weight: 900; margin: 44px 0 18px; display: flex; align-items: center; gap: 12px; }
.pat-sub::before { content: ""; width: 26px; height: 2px; background: var(--shu); }
.pat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pat-card { position: relative; display: grid; gap: 8px; height: 100%; padding: 20px 18px 18px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s, box-shadow .3s; }
.pat-card:hover, .pat-card:focus-visible { transform: translateY(-4px); border-color: #ff4d67; background-color: rgba(200, 16, 46, .14); box-shadow: 0 18px 40px -20px rgba(255, 45, 79, .5); }
.pat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #ff6b80; background: rgba(200, 16, 46, .15); border: 1px solid rgba(255, 92, 116, .35); }
.pat-ico svg { width: 26px; height: 26px; }
.pat-num { position: absolute; top: 16px; right: 16px; font: 600 .8rem/1 var(--mincho); color: rgba(255, 255, 255, .35); letter-spacing: .1em; }
html[dir="rtl"] .pat-num { right: auto; left: 16px; }
.pat-card b { font-size: 1.02rem; font-weight: 900; line-height: 1.3; }
.pat-desc { font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.pat-go { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 900; letter-spacing: .08em; color: #ff8fa0; }
.pat-co-intro { color: rgba(255, 255, 255, .75); margin: -6px 0 16px; }
.pat-co { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pat-co a { display: inline-block; padding: 9px 16px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; transition: border-color .2s, background-color .2s; }
.pat-co a:hover, .pat-co a:focus-visible { border-color: #ff4d67; background: rgba(200, 16, 46, .2); }
.pat-sources ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .8); }
.pat-sources a { color: #ff8fa0; }
.pat-note { font-size: .86rem; color: rgba(255, 255, 255, .55); max-width: 80ch; }
@media (max-width: 1000px) { .pat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pat-grid { grid-template-columns: minmax(0, 1fr); }
  .pat-row { flex-direction: column; }
  .pat-section::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pat-card { transition: none; } .pat-card:hover { transform: none; } }

/* ==========================================================================
   Refined layer (Nov 2026): a clean, airy product-page feel.
   White and soft-gray full-width sections, gray type instead of black, large tight headlines,
   pill buttons, big rounded flat panels and a frosted header. Tenshi red stays the one accent.
   It overrides the layers above; delete this block to go back to the earlier look.
   ========================================================================== */
:root {
  --mist: #f5f5f7;            /* the soft gray band between white sections */
  --hair: #e3e5e9;            /* hairlines */
  --washi: #fff; --washi-2: var(--mist); --pale: var(--mist); --line: var(--hair);
  --radius: 22px;
  --pill: 980px;
}

/* ---------- Page, type and color ---------- */
body { background: #fff; color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { display: none; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { letter-spacing: -.032em; }
h2 { letter-spacing: -.026em; }
h3 { letter-spacing: -.012em; }
p, li { text-wrap: pretty; }
:is(h1, h2) { text-wrap: balance; }
html:lang(ja) :is(h1, h2, h3), html:lang(zh) :is(h1, h2, h3), html:lang(ko) :is(h1, h2, h3) { letter-spacing: 0; }

/* Section titles: big and quiet, no underline bars, brush strokes or kanji numbers */
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.08; padding-bottom: 0; margin-bottom: 20px; }
.section-title::after, .section-title[data-kan]::before, .feature h2::after, .feature--light h2::after, .contact-intro h2::after { display: none !important; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 700; color: var(--red); margin-bottom: 8px; }
html[dir="rtl"] .eyebrow, html:lang(ja) .eyebrow { letter-spacing: 0; }

/* ---------- Header: thin frosted glass ---------- */
.site-header, .site-header.is-scrolled {
  background: rgba(255, 255, 255, .78) !important; border-bottom: 1px solid rgba(0, 0, 0, .07) !important; box-shadow: none !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.scroll-line { display: none; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--text); background: transparent !important; }
.main-nav a::after { display: none; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.lang-current { box-shadow: none !important; border-color: var(--hair) !important; background: rgba(255, 255, 255, .6) !important; }

/* ---------- Buttons: pills ---------- */
.btn, .btn-more, .prj-btn {
  border-radius: var(--pill) !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600 !important;
}
.btn { padding: 13px 26px; font-size: 1rem; }
.btn-primary, :is(.svc-hero, .svc-cta, section.band, section.services, .red-section, .ab-web, .ab-global, .svc-benefits, .prj-fair, .team-section, .tech-section, .pat-section) .btn-primary, .svc-cta .btn-light {
  background: var(--red) !important; border-color: var(--red) !important; box-shadow: none !important; transition: background-color .2s;
}
.btn-primary:hover, .svc-cta .btn-light:hover { background: var(--red-deep) !important; transform: none !important; }
.btn-more, :is(section.services, .red-section) .btn-more {
  background: transparent !important; border: 0 !important; color: var(--red) !important; padding: 6px 0 !important; box-shadow: none !important; justify-content: flex-start;
}
.btn-more:hover { text-decoration: underline; text-underline-offset: 4px; transform: none !important; }

/* ---------- Homepage hero: a big, calm headline over a soft photo ---------- */
.hero { min-height: clamp(620px, 88vh, 940px); }
.hero-wash { background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .72) 48%, rgba(255, 255, 255, .25) 100%) !important; }
.hero-card { background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.hero-card h1 { font-size: clamp(2.9rem, 7vw, 5.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; color: var(--ink); }
.hero-lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 36ch; margin-inline: auto; }
.hero-logo { width: clamp(64px, 7vw, 88px); height: auto; }
.enso { display: none; }

/* ---------- Sections: white and soft gray, lots of air ---------- */
.page-section, .feature, .services, .contact, .svc-body, .svc-offer-section, .svc-process, .svc-benefits, .svc-tech-section, .svc-cta {
  padding-top: clamp(80px, 10vw, 140px) !important; padding-bottom: clamp(80px, 10vw, 140px) !important;
}
.feature--gray, .page-section.tinted, .svc-offer-section, .svc-process, .svc-detail-section, .prj-more { background: var(--mist) !important; }
:is(.svc-hero, .svc-cta, section.band, .ab-global, .prj-fair, .pat-section, .svc-benefits) { background: var(--mist) !important; }
section.band { border-block: 0 !important; background: #fff !important; }
.feature, .feature--light { border: 0 !important; }
.feature::before, .feature::after { display: none !important; }
.feature h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.05; }
.feature-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink) !important; }
.feature-figure { border: 0 !important; box-shadow: none !important; border-radius: var(--radius) !important; overflow: hidden; }
.feature-figure img { border-radius: var(--radius); }
.feature-list li::before { width: 6px; height: 6px; border-radius: 50%; }

/* ---------- Page banners: quiet, big title, no seal ---------- */
.svc-hero { border-bottom: 0 !important; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.svc-hero::before { display: none; }
.svc-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem) !important; font-weight: 800; line-height: 1.04; letter-spacing: -.035em !important; }
.svc-hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important; line-height: 1.5; max-width: 40ch; }
.page-seal { display: none; }
.svc-hero .page-art { opacity: .35; }

/* ---------- Panels and cards: big rounded corners, flat, no hairlines or shadows ---------- */
:is(.service-card, .offer-card, .benefit-card, .svc-tech, .tech-card, .value-card, .ab-step, .ab-std-card, .ab-focus, .ab-mv-card,
    .svc-detail, .prj-ed, .svc-step, .contact-pitch, .svc-for, .team-card, .news-item, .blog-card, .contact-form),
:is(section.services, .red-section, .ab-web, .svc-benefits, .team-section, .tech-section, .pat-section, .ab-global)
  :is(.service-card, .team-card, .tech-card, .benefit-card, .prj-ed, .ab-focus) {
  border: 0 !important; box-shadow: none !important; border-radius: var(--radius) !important; background: var(--mist) !important;
}
/* on soft-gray sections the panels turn white so they still stand apart */
:is(.feature--gray, .page-section.tinted, .svc-offer-section, .svc-process, .svc-detail-section, .prj-more, .svc-benefits, .ab-global, .contact)
  :is(.service-card, .offer-card, .benefit-card, .svc-tech, .tech-card, .value-card, .ab-step, .ab-std-card, .ab-focus, .ab-mv-card, .svc-detail, .prj-ed, .svc-step, .contact-pitch, .svc-for, .team-card, .news-item, .blog-card, .contact-form) {
  background: #fff !important;
}
:is(.service-card, .offer-card, .benefit-card, .svc-tech, .tech-card, .value-card, .ab-step, .ab-std-card, .svc-step, .news-item, .blog-card):hover {
  box-shadow: none !important; transform: none !important; border-color: transparent !important;
}
.service-card { padding: 28px 26px !important; }
.service-card h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.service-pic, .svc-figure img, .page-photo img, .svc-detail-pic img, .tech-group-pic { border-radius: 14px !important; box-shadow: none !important; }
:is(.prj-card, .name-card, .chat-card) { border: 0 !important; border-top: 0 !important; box-shadow: none !important; border-radius: var(--radius) !important; background: var(--mist) !important; }

/* ---------- Homepage consultation: light, with the form on a white panel ---------- */
.contact, .contact:not(.page-section) { background: var(--mist) !important; border-top: 0 !important; color: var(--text); }
.contact:not(.page-section)::before { display: none !important; }
.contact:not(.page-section) .eyebrow { color: var(--red) !important; }
.contact:not(.page-section) .contact-intro h2 { color: var(--ink) !important; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; }
.contact:not(.page-section) :is(.contact-intro p, .contact-direct) { color: var(--text) !important; }
.contact:not(.page-section) .contact-email { color: var(--red) !important; }
.contact:not(.page-section) .contact-form { background: #fff !important; color: var(--text) !important; padding: clamp(24px, 3vw, 36px) !important; }
.contact:not(.page-section) .contact-form :is(label, span, .req-note, small) { color: var(--text) !important; }
.contact:not(.page-section) .contact-form :is(input, select, textarea) {
  background: var(--mist) !important; color: var(--ink) !important; border: 1px solid transparent !important; border-radius: 12px !important; box-shadow: none !important;
}
.contact-form :is(input, select, textarea) { border-radius: 12px !important; }
.contact-form :is(input, select, textarea):focus { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(200, 16, 46, .12) !important; background: #fff !important; outline: none; }

/* ---------- Footer: light and small ---------- */
.site-footer { background: var(--mist) !important; border-top: 1px solid var(--hair) !important; color: var(--muted) !important; }
.site-footer::before, .site-footer::after { display: none !important; }
.site-footer :is(p, span, small, li) { color: var(--muted) !important; }
.footer-brand strong { color: var(--ink) !important; }
.footer-nav a { color: var(--text) !important; font-weight: 500; font-size: .86rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--ink) !important; }
.site-footer a { color: var(--text); }
.footer-meta, .photo-credits { font-size: .76rem !important; }

/* ---------- News and blog: let the photos lead ---------- */
.news-item, .blog-card { overflow: hidden; }
.blog-card.is-feature { background: var(--ink) !important; }
.news-tabs [role=tab] { border: 0; background: var(--mist); font-weight: 600; }
.news-stories .news-tabs [role=tab] { background: #fff; }
.news-tabs [role=tab][aria-selected=true] { background: var(--ink); color: #fff; }

/* ---------- Ticker: part of the header glass ---------- */
.ticker { background: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(0, 0, 0, .06); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-card h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* Refined layer, round 2 */
.hero-wash { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 58%, rgba(255, 255, 255, .55) 100%) !important; }
.feature, .feature--light { background: #fff !important; }
.feature--gray { background: var(--mist) !important; }
.chev-flight, .contact:not(.page-section) .contact-form::before, .contact:not(.page-section)::after { display: none !important; }
.contact:not(.page-section) .contact-form { border: 0 !important; }

/* ---------- Motion (design.js): headings by character, text from alternating sides, pictures fade and rise ---------- */
:root { --a-ease: cubic-bezier(.16, 1, .3, 1); }   /* distances, speeds and on/off switches come from site-theme.css (Editor › Design) */
html.anim-on :is(.a-l, .a-r, .a-up, .a-img) {
  opacity: 0; transition: opacity var(--a-dur, .9s) var(--a-ease), transform var(--a-dur, .9s) var(--a-ease); transition-delay: var(--d, 0s);
}
html.anim-on .a-l { transform: translate3d(calc(-1 * var(--dx)), 0, 0); }
html.anim-on .a-r { transform: translate3d(var(--dx), 0, 0); }
html[dir="rtl"].anim-on .a-l { transform: translate3d(var(--dx), 0, 0); }
html[dir="rtl"].anim-on .a-r { transform: translate3d(calc(-1 * var(--dx)), 0, 0); }
html.anim-on .a-up { transform: translate3d(0, var(--dy), 0); }
html.anim-on .a-img { transform: translate3d(0, var(--dy), 0) scale(.96); transition-duration: var(--a-dur-img, 1.2s); }
html.anim-on :is(.a-l, .a-r, .a-up, .a-img).is-in { opacity: 1; transform: none; }

.ch-w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
html.anim-on .ch-split .ch {
  opacity: 0; transform: translate3d(0, .5em, 0) rotate(6deg); transform-origin: 0 100%;
  transition: opacity calc(var(--ch-dur, .7s) * .75) var(--a-ease), transform var(--ch-dur, .7s) var(--a-ease);
  transition-delay: calc(var(--i, 0) * var(--cs, 26ms) + var(--d, 0s));
}
html.anim-on .ch-split.is-in .ch { opacity: 1; transform: none; }
html.anim-on img.gs { filter: grayscale(1) !important; transition: filter var(--gs-dur, 1.8s) ease, opacity var(--a-dur, .9s) var(--a-ease), transform var(--a-dur, .9s) var(--a-ease); }
html.anim-on img.gs.gs-in { filter: grayscale(0) !important; }
@media (prefers-reduced-motion: reduce) { html.anim-on img.gs { filter: none !important; } }
@media print { html.anim-on img.gs { filter: none !important; } }
@media (prefers-reduced-motion: reduce) { html.anim-on :is(.a-l, .a-r, .a-up, .a-img), html.anim-on .ch-split .ch { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media print { html.anim-on :is(.a-l, .a-r, .a-up, .a-img), html.anim-on .ch-split .ch { opacity: 1 !important; transform: none !important; } }

/* ---------- Footer widgets: latest news and newest blog posts (built from the bots' data) ---------- */
.footer-widgets { max-width: 1150px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); border-bottom: 1px solid var(--hair); }
.fw-title { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; margin: 0 0 18px; }
.fw-title a { color: inherit; text-decoration: none; }
.fw-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fw-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; margin: 0 -12px; border-radius: 16px; transition: background-color .2s; }
.fw-item:hover { background: #fff; }
.fw-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; background: #e8e9ec; }
.fw-text { display: grid; gap: 3px; min-width: 0; }
.fw-meta { margin: 0; font-size: .74rem; font-weight: 700; color: var(--red) !important; }
.fw-link { color: var(--text) !important; font-weight: 700; font-size: .93rem; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-link:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.fw-src { margin: 0; font-size: .72rem; line-height: 1.4; color: var(--muted) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-src a { color: var(--muted) !important; }
.fw-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--red) !important; text-decoration: none; }
.fw-more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .footer-widgets { grid-template-columns: 1fr; } .fw-item { grid-template-columns: 80px minmax(0, 1fr); } .fw-thumb { width: 80px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .fw-item { transition: none; } }

/* ---------- Opening: the whole page shows in black and white, then color blooms in ----------
   A see-through layer over the screen turns everything beneath it gray (backdrop-filter), holds, then lifts.
   It never blocks clicks. Hold, fade and style come from site-theme.css (Editor › Design). */
@property --intro-r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent var(--intro-r), #000 calc(var(--intro-r) + 22%));
  mask-image: radial-gradient(circle at 50% 45%, transparent var(--intro-r), #000 calc(var(--intro-r) + 22%));
  animation: tse-intro-bloom var(--intro-fade, 2.6s) cubic-bezier(.45, 0, .2, 1) var(--intro-hold, 5s) forwards;
}
@keyframes tse-intro-bloom { 0% { --intro-r: 0%; opacity: 1; } 75% { opacity: 1; } 100% { --intro-r: 130%; opacity: 0; visibility: hidden; } }
@keyframes tse-intro-even { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
html.intro-even body::after, html.intro-even-css body::after { -webkit-mask-image: none; mask-image: none; animation-name: tse-intro-even; }
@media (prefers-reduced-motion: reduce) { body::after { -webkit-mask-image: none; mask-image: none; animation-name: tse-intro-even; } }
@media print { body::after { display: none; } }
html.no-intro body::after { display: none !important; }
/* The header (with the ticker), the content and the footer also turn themselves gray, in step with the opening layer,
   so they stay black and white even in browsers that draw fixed and frosted bars above other layers. */
@keyframes tse-intro-self { from { filter: grayscale(1); } to { filter: none; } }
body > :is(.site-header, main, .site-footer) { animation: tse-intro-self var(--intro-fade, 2.6s) ease var(--intro-hold, 5s) backwards; }
html.no-intro body > :is(.site-header, main, .site-footer) { animation: none !important; }
@media print { body > :is(.site-header, main, .site-footer) { animation: none; } }

/* ---------- Homepage headline: letters flip up out of a blur and draw together into the line ---------- */
html.anim-on .ch-split.ch-hero .ch {
  opacity: 0; filter: blur(12px);
  transform: perspective(700px) translate3d(calc(var(--o, 0) * .9em), .42em, 0) rotateX(-82deg) scale(1.18);
  transform-origin: 50% 100%;
  transition: opacity calc(var(--hero-dur, 1.5s) * .6) ease-out, filter calc(var(--hero-dur, 1.5s) * .8) ease-out, transform var(--hero-dur, 1.5s) cubic-bezier(.16, 1.12, .3, 1);
  transition-delay: calc(var(--i, 0) * var(--hero-step, 55ms) + .3s);
}
html.anim-on .ch-split.ch-hero.is-in .ch { opacity: 1; filter: blur(0); transform: none; }
@media (max-width: 760px) { html.anim-on .ch-split.ch-hero .ch { transform: perspective(500px) translate3d(calc(var(--o, 0) * .5em), .4em, 0) rotateX(-75deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { html.anim-on .ch-split.ch-hero .ch { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; } }
@media print { html.anim-on .ch-split.ch-hero .ch { opacity: 1 !important; filter: none !important; transform: none !important; } }
