/* Tenshi Systems Engineering */

/* Lato (Google Fonts, SIL Open Font License; files and LICENSE in fonts/lato/), hosted with the site. It has no Japanese
   or Korean letters, so those fall back to the system's Japanese and Korean fonts. */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/lato/lato-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/lato/lato-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lato/lato-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/lato/lato-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lato/lato-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/lato/lato-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/lato/lato-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 900; font-display: swap; src: url(fonts/lato/lato-900-italic.woff2) format("woff2"); }

/* Roboto (Google Fonts via Fontsource, SIL Open Font License; files and LICENSE in fonts/roboto/), hosted with the site. Used for headings. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto/roboto-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto/roboto-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto/roboto-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto/roboto-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/roboto/roboto-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/roboto/roboto-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/roboto/roboto-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/roboto/roboto-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/roboto/roboto-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/roboto/roboto-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --red: #c8102e;
  --red-deep: #9e0c22;
  --red-dark: #7e0a1b;
  --ink: #3d4249;     /* headings: dark gray, not black */
  --text: #5b616a;    /* body text: medium gray */
  --muted: #6e757e;   /* secondary text: lighter gray (still readable on white) */
  --line: #d7dce2;
  --pale: #f5f6f8;
  --white: #fff;
  --radius: 11.5px;
  --shadow: 0 20.7px 57.5px rgba(22, 32, 48, .14), 0 2px 9.2px rgba(22, 32, 48, .06);
  --font: "Lato", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --font-heading: "Roboto", var(--font);   /* headings; Japanese and other scripts fall back to the body fonts */
  --font-ja: "Lato", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}
html:lang(ja) { --font: var(--font-ja); }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { font-size: 115%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 18.4px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--red); }
img, svg { display: block; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 18.4px; top: -69px; z-index: 100;
  background: var(--red); color: #fff; padding: 11.5px 18.4px; border-radius: 6.9px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 13.8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9.2px;
  min-height: 50.6px; padding: 11.5px 25.3px; border-radius: 6.9px;
  font: 700 .9rem/1.2 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--red); color: #fff; border: 1px solid var(--red-dark);
  box-shadow: 0 6.9px 20.7px rgba(200, 16, 46, .28);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 11.5px 27.6px rgba(200, 16, 46, .32); }
.btn-primary:active { transform: none; }
.btn-primary:focus-visible { outline-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 2px solid var(--red);
  -webkit-backdrop-filter: saturate(1.2) blur(9.2px); backdrop-filter: saturate(1.2) blur(9.2px);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18.4px;
}
.brand { display: flex; align-items: center; gap: 11.5px; text-decoration: none; min-width: 0; }
.brand-logo { width: 30.3px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-en { color: var(--ink); font-weight: 700; font-size: 0.807rem; line-height: 1.25; }
.brand-ja { color: var(--muted); font-family: var(--font-ja); font-size: 0.478rem; letter-spacing: .04em; line-height: 1.3; }

.lang-switch { display: flex; align-items: center; gap: 2px; flex: none; }
.lang-switch button {
  min-width: 30.6px; min-height: 36px; padding: 3.6px 9.2px; border: 0; border-radius: 4.6px; background: none; cursor: pointer;
  color: var(--muted); font: 600 .8rem/1 var(--font); letter-spacing: .03em;
  transition: color .2s, background-color .2s;
}
.lang-switch button[lang="ja"] { font-family: var(--font-ja); }
.lang-switch button:hover { color: var(--ink); background: var(--pale); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--red); }
.lang-sep { color: #9aa1aa; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(644px, 66vh, 782px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px var(--gutter) 76px;
  background: #eef2f6;
}
.hero-slides, .slide, .hero-wash { position: absolute; inset: 0; }
.hero-slides { z-index: -4; }
.slide {
  background: center 60% / cover no-repeat;
  opacity: 0; transition: opacity 1.8s ease;
  filter: saturate(.75) brightness(1.1) contrast(.9);
  transform-origin: 50% 70%;
}
.slide.is-active { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero-wash {
  z-index: -3;
  background:
    radial-gradient(ellipse 45% 60% at 50% 48%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .32) 45%, rgba(255, 255, 255, .55) 100%);
}
.hero-stripes {
  position: absolute; top: 0; bottom: 0; z-index: -1; width: min(34vw, 414px); pointer-events: none;
}
.hero-stripes--left { left: 0; }
.hero-stripes--right { right: 0; transform: scaleX(-1); }
.hero-stripes span { position: absolute; inset: 0; }
.hero-stripes span:nth-child(1) { /* solid red wedge */
  background: linear-gradient(160deg, #e0263f 0%, var(--red) 55%, var(--red-deep) 100%);
  clip-path: polygon(0 30%, 52% 30%, 0 74%);
  opacity: .9;
}
.hero-stripes span:nth-child(2) { /* thin red line */
  background: var(--red);
  clip-path: polygon(0 88%, 78% 0, 79% 0, 0 89.4%);
  opacity: .85;
}
.hero-stripes span:nth-child(3) { /* pale glass band */
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .15));
  clip-path: polygon(16% 0, 46% 0, 0 46%, 0 22%);
}
.hero-stripes--right span:nth-child(1) { clip-path: polygon(0 44%, 40% 44%, 0 72%); }
.hero-stripes--right span:nth-child(2) { clip-path: polygon(0 78%, 70% 0, 71% 0, 0 79.4%); }

.hero-card {
  position: relative; width: 100%; max-width: 736px;
  padding: 46px clamp(23px, 5vw, 50.6px) 39.1px;
  background: rgba(255, 255, 255, .95);
  border-radius: 13.8px; box-shadow: var(--shadow);
  text-align: center;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20.7px); } to { opacity: 1; transform: none; } }
.hero-logo {
  width: clamp(110.4px, 23vw, 142.6px); height: auto; margin: 0 auto 25.3px;
}
.hero-card h1 {
  font-size: clamp(1.75rem, 5.06vw, 2.6rem); font-weight: 800; letter-spacing: -.015em;
  text-wrap: balance;
}
html:lang(ja) .hero-card h1 { letter-spacing: .02em; line-height: 1.3; word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
html:lang(ja) :is(.hero-lead, .service-card p, .contact-intro p, .band-text, .service-card h3) { word-break: auto-phrase; }
.hero-lead { margin: 20.7px auto 29.9px; max-width: 46ch; font-size: .95rem; color: var(--text); text-wrap: pretty; }

.slide-controls {
  position: absolute; right: var(--gutter); bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 13.8px;
  padding: 6.9px 9.2px 6.9px 16.1px; border-radius: 1148.85px;
  background: rgba(255, 255, 255, .82); box-shadow: 0 4.6px 16.1px rgba(22, 32, 48, .1);
}
.slide-caption { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-width: 5.5em; }
html:lang(ja) .slide-caption { letter-spacing: .2em; }
.slide-dots { display: flex; gap: 2px; }
.dot {
  width: 27.6px; height: 27.6px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.dot::before {
  content: ""; width: 10.35px; height: 10.35px; border-radius: 50%;
  border: 1.5px solid #8f98a3; transition: background-color .25s, border-color .25s, transform .25s;
}
.dot:hover::before { border-color: var(--red); }
.dot[aria-current="true"]::before { background: var(--red); border-color: var(--red); transform: scale(1.15); }
.slide-pause {
  width: 34.5px; height: 34.5px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
}
.slide-pause svg { width: 13.8px; height: 13.8px; fill: currentColor; }
.slide-pause .i-play, .slide-pause.is-paused .i-pause { display: none; }
.slide-pause.is-paused .i-play { display: inline; }

/* ---------- Red band ---------- */
.band {
  position: relative; overflow: hidden;
  min-height: 144px; padding: 40px var(--gutter);
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse 40% 90% at 50% 50%, rgba(255, 90, 110, .35), transparent 70%),
    linear-gradient(90deg, #a10c23 0%, #c8102e 30%, #d3142f 50%, #c8102e 70%, #a10c23 100%);
}
.band::before, .band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: min(42vw, 644px);
  background: url(img/chevrons.svg) left center / auto 100% no-repeat;
  pointer-events: none;
}
.band::before { left: 0; }
.band::after { right: 0; transform: scaleX(-1); }
.band-text {
  position: relative; z-index: 1;
  color: #fff; font-weight: 300; font-size: clamp(1.7rem, 4.14vw, 2.6rem); letter-spacing: .01em; line-height: 1.25;
  text-shadow: 0 2px 13.8px rgba(80, 0, 12, .35);
  font-family: var(--font);
}
html:lang(ja) .band-text { font-family: var(--font-ja); letter-spacing: .12em; }

/* Still version (reduced motion, no JavaScript): the slogan with the taglines in a row beneath it */
.band { grid-auto-flow: row; gap: 16.1px; }
.band-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6.9px 0; max-width: 1127px; }
.band-list li:not(.band-text) {
  color: rgba(255, 255, 255, .9); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 0 16.1px;
}
.band-list li:not(.band-text) + li:not(.band-text) { border-left: 1px solid rgba(255, 255, 255, .45); }
html:lang(ja) .band-list li:not(.band-text) { letter-spacing: .06em; text-transform: none; }
.band-list .band-text { flex-basis: 100%; margin-bottom: 9.2px; }
.band-stage, .band-line, .band-sheen { display: none; }

/* Animated version: one line at a time, written in word by word */
.band-anim .band-list { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band-anim .band-stage {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 .3em;
  min-height: 3.4rem; max-width: 1150px; margin: 0; perspective: 690px;
}
html:lang(ja).band-anim .band-stage { gap: 0; }
.band-anim .band-stage.is-tag { font-size: clamp(1.35rem, 3.33vw, 2.15rem); letter-spacing: .02em; }
.band-unit {
  display: inline-block; opacity: 0; transform-origin: 50% 100%;
  animation: unit-in .9s cubic-bezier(.2, .75, .2, 1) forwards;
  animation-delay: calc(var(--i) * var(--step, 90ms));
}
.band-stage.is-out .band-unit { opacity: 1; animation: unit-out .55s ease-in forwards; animation-delay: calc(var(--i) * 25ms); }
@keyframes unit-in {
  from { opacity: 0; transform: translateY(.55em) rotateX(-70deg); filter: blur(9.2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes unit-out { to { opacity: 0; transform: translateY(-.4em); filter: blur(6.9px); } }

.band-anim .band-line {
  display: block; position: relative; z-index: 1; width: 82.8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 13.8px rgba(255, 255, 255, .8);
  transform: scaleX(0);
}
.band-anim .band-line.is-on { animation: line-grow 1.2s .3s cubic-bezier(.2, .75, .2, 1) forwards; }
@keyframes line-grow { to { transform: scaleX(1); } }

.band-anim .band-sheen {
  display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-100%);
}
.band-anim .band-sheen.is-on { animation: sheen 1.6s ease-out; }
@keyframes sheen { to { transform: translateX(100%); } }

/* ---------- Services ---------- */
.services {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 48px) var(--gutter) clamp(48px, 7vw, 80px);
  background: var(--red);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.services-grid {
  position: relative; z-index: 1;
  max-width: 943px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18.4px;
}
.service-card {
  background: #fff; border-top: 3px solid var(--red-dark); border-radius: 6.9px;
  padding: 25.3px 23px 27.6px;
  box-shadow: 0 10px 30px rgba(70, 0, 12, .3), 0 1px 2px rgba(70, 0, 12, .2);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(70, 0, 12, .38); }
.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 13.8px; }
.service-pic {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  margin: 0 0 16.1px; border-radius: 4.6px; background: var(--pale);
  filter: saturate(.85); transition: filter .3s, transform .4s;
}
.service-card:hover .service-pic { filter: saturate(1); }
.service-card p { font-size: .84rem; line-height: 1.65; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: clamp(48px, 8vw, 96px) var(--gutter); background: #fff; border-top: 1px solid var(--line); }
.contact:focus { outline: none; }
.contact-inner {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32.2px, 5vw, 73.6px); align-items: start;
}
.eyebrow { color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 11.5px; }
.contact-intro h2 { font-size: clamp(1.6rem, 3.45vw, 2.1rem); font-weight: 800; margin-bottom: 18.4px; position: relative; padding-bottom: 18.4px; }
.contact-intro h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 55.2px; height: 3px; background: var(--red); }
.contact-intro p { color: var(--text); }
.contact-direct { margin-top: 20.7px; font-size: .92rem; }
.contact-email { font-weight: 700; overflow-wrap: anywhere; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18.4px 20.7px;
  padding: clamp(23px, 4vw, 36.8px); background: var(--pale); border-radius: var(--radius); border-top: 3px solid var(--red);
}
.field { display: flex; flex-direction: column; gap: 6.9px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.req { color: var(--red); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50.6px; padding: 11.5px 13.8px;
  border: 1px solid #c3c9d1; border-radius: 6.9px; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 161px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .18);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff7f8; }
.error { color: #b00d27; font-size: .8rem; font-weight: 600; min-height: 0; }
.error:empty { display: none; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 13.8px; flex-wrap: wrap; }
.req-note { font-size: .8rem; color: var(--muted); }
.req-note span:first-child { color: var(--red); }
.form-status { font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1d6b3a; }
.form-status.is-error { color: #b00d27; }

/* ---------- Footer ---------- */
.site-footer { background: #15171b; color: #c9ced5; border-top: 3px solid var(--red); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 28px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18.4px 36.8px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 13.8px; }
.footer-logo { width: 52.9px; height: auto; flex: none; }
.footer-brand strong { display: block; color: #fff; font-size: .95rem; }
.footer-brand span { display: block; font-family: var(--font-ja); font-size: .72rem; color: #9aa1aa; }
.footer-meta { font-size: .82rem; }
.photo-credits { flex-basis: 100%; margin-top: 4.6px; padding-top: 16.1px; border-top: 1px solid #2c3036; font-size: .72rem; line-height: 1.7; color: #8e959e; }
.photo-credits a { color: #b9bfc7; }
.photo-credits a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; max-width: 598px; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-logo { width: 41.4px; }
  .brand-en { font-size: 0.697rem; }
  .brand-ja { font-size: 0.51rem; letter-spacing: 0; }
  .lang-switch button { min-width: 46px; padding: 4.6px 6.9px; font-size: .75rem; }
  .hero { min-height: 0; padding: 28px var(--gutter) 170px; align-items: flex-start; }
  .hero-card { padding-top: 34.5px; }
  .hero-stripes { width: 30vw; }
  .hero-stripes span:nth-child(1) { opacity: .6; clip-path: polygon(0 12%, 70% 12%, 0 34%); }
  .hero-stripes--right span:nth-child(1) { clip-path: polygon(0 70%, 70% 70%, 0 90%); }
  .band::before, .band::after { width: 26vw; }
  .slide-controls { right: 50%; transform: translateX(50%); bottom: 20.7px; }
  .contact-form { grid-template-columns: 1fr; }
  .band { min-height: 112px; padding: 28px var(--gutter); }
  .band-anim .band-stage { min-height: 4.6rem; }
  .band-anim .band-stage.is-tag { font-size: 1.3rem; }
  .band-list li:not(.band-text) { font-size: .7rem; padding: 0 11.5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .brand-ja { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: opacity .3s; }
  .slide.is-active, .hero-card { animation: none; }
  .btn, .service-card { transition: none; }
  .btn-primary:hover, .service-card:hover { transform: none; }
}

/* ======================================================================
   Service cards: nine in three sets, falling characters behind them
   ====================================================================== */
.svc-rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
.services { isolation: isolate; }
.svc-carousel { position: relative; z-index: 1; max-width: 943px; margin: 0 auto; }

/* Without JavaScript all nine cards show, three per row. With it, the sets share one spot and take turns. */
.svc-sets { display: grid; gap: 18.4px; }
.svc-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18.4px; }
.svc-js .svc-set { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.svc-js .svc-set.is-active, .svc-js .svc-set.is-leaving { visibility: visible; }
.svc-js .svc-set.is-active { pointer-events: auto; }
.svc-js .svc-set.is-active .service-card { animation: card-in .8s cubic-bezier(.2, .75, .2, 1) both; }
.svc-js .svc-set.is-leaving .service-card { animation: card-out .5s ease-in both; }
.svc-js .svc-set .service-card:nth-child(2) { animation-delay: .12s; }
.svc-js .svc-set .service-card:nth-child(3) { animation-delay: .24s; }
.svc-js .svc-set.is-leaving .service-card:nth-child(2) { animation-delay: .05s; }
.svc-js .svc-set.is-leaving .service-card:nth-child(3) { animation-delay: .1s; }
@keyframes card-in { from { opacity: 0; transform: translateX(140px); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translateX(-90px); } }
.svc-js.is-back .svc-set.is-active .service-card { animation-name: card-in-back; }
.svc-js.is-back .svc-set.is-leaving .service-card { animation-name: card-out-back; }
@keyframes card-in-back { from { opacity: 0; transform: translateX(-140px); } to { opacity: 1; transform: none; } }
@keyframes card-out-back { to { opacity: 0; transform: translateX(90px); } }

.service-card { display: flex; flex-direction: column; }
.service-card p { margin-bottom: 18.4px; }
.btn-more {
  display: flex; align-items: center; justify-content: center; gap: 10px; align-self: stretch;
  margin-top: auto; min-height: 46px; padding: 11px 20px; border-radius: 6.9px;
  background: var(--red-dark); color: #fff; text-decoration: none; text-align: center;
  font: 700 .82rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(126, 10, 27, .25);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
html:lang(ja) .btn-more, html:lang(ko) .btn-more { letter-spacing: .04em; }
.btn-more:hover { background: #650816; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(126, 10, 27, .32); }
.btn-more-arrow { transition: transform .2s; }
.btn-more:hover .btn-more-arrow { transform: translateX(3px); }
.btn-more:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 3px; }

.svc-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.svc-controls[hidden] { display: none; }
.svc-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(126, 10, 27, .35); color: #fff;
  transition: background-color .2s, border-color .2s;
}
.svc-arrow:hover { background: rgba(126, 10, 27, .7); border-color: #fff; }
.svc-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-pause .i-play { fill: currentColor; stroke: none; display: none; }
.svc-pause.is-paused .i-pause { display: none; }
.svc-pause.is-paused .i-play { display: inline; }
.svc-pause { margin-left: 8px; }
.svc-dots { display: flex; gap: 2px; }
.svc-dot { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.svc-dot::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .25s, width .25s; }
.svc-dot[aria-current="true"]::before { background: #fff; width: 28px; }
.svc-arrow:focus-visible, .svc-dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 860px) {
  .svc-set { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ======================================================================
   Service pages
   ====================================================================== */
.svc-hero {
  position: relative; overflow: hidden; color: #fff; text-align: left;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(44px, 7vw, 84px);
  background:
    radial-gradient(ellipse 50% 90% at 70% 40%, rgba(255, 90, 110, .3), transparent 70%),
    linear-gradient(90deg, #a10c23 0%, #c8102e 45%, #d3142f 70%, #a10c23 100%);
}
.svc-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(42vw, 644px); transform: scaleX(-1);
  background: url(img/chevrons.svg) left center / auto 100% no-repeat; pointer-events: none;
}
.svc-hero-inner { position: relative; z-index: 1; max-width: 1150px; margin: 0 auto; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: .8rem; line-height: 1.5; }
/* Every crumb on one baseline: site-theme.css spaces list items apart (li + li margin-top), which pushed all but the
   first crumb down; crumbs, links and separators share the list's font size and line height. */
.crumbs ol > li:not(#_):not(#__) { display: inline-flex; align-items: baseline; margin: 0 !important; padding: 0; font-size: inherit !important; line-height: inherit !important; }
.crumbs ol > li > a:not(#_):not(#__) { display: inline; font-size: inherit !important; line-height: inherit !important; padding: 0; text-underline-offset: .18em; }
.crumbs li + li::before { content: "/"; margin: 0 10px; margin-inline: .7em; opacity: .6; font-size: inherit; line-height: inherit; }
.crumbs a { color: #fff; opacity: .85; }
.crumbs a:hover { opacity: 1; }
.crumbs [aria-current] { font-weight: 700; }
.svc-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -.015em; text-shadow: 0 2px 14px rgba(80, 0, 12, .3); }
html:lang(ja) .svc-hero h1, html:lang(ko) .svc-hero h1 { letter-spacing: .02em; }
.svc-hero-lead { margin-top: 14px; max-width: 46ch; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }

.svc-body { padding: clamp(44px, 7vw, 88px) var(--gutter); }
.svc-body-inner {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.svc-intro { font-size: 1.08rem; color: var(--ink); margin-bottom: 28px; }
.svc-copy h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.svc-offers { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.svc-offers li { position: relative; padding-left: 26px; }
.svc-offers li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.svc-figure { margin: 0; }
.svc-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }

.svc-process { padding: clamp(44px, 7vw, 80px) var(--gutter); background: var(--pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-process-inner { max-width: 1150px; margin: 0 auto; }
.svc-process h2, .svc-others h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 26px; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.svc-step { background: #fff; border-top: 3px solid var(--red); border-radius: 6.9px; padding: 22px 20px 24px; box-shadow: 0 6px 20px rgba(22, 32, 48, .07); }
.svc-step-num { display: block; color: var(--red); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.svc-step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.svc-step p { font-size: .88rem; color: var(--muted); }

.svc-cta {
  padding: clamp(44px, 7vw, 76px) var(--gutter); text-align: center; color: #fff;
  background:
    radial-gradient(ellipse 40% 90% at 50% 50%, rgba(255, 90, 110, .35), transparent 70%),
    linear-gradient(90deg, #a10c23 0%, #c8102e 30%, #d3142f 50%, #c8102e 70%, #a10c23 100%);
}
.svc-cta h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 300; }
.svc-cta p { margin: 12px auto 24px; max-width: 46ch; color: rgba(255, 255, 255, .9); }
.btn-light { background: #fff; color: var(--red); border: 1px solid #fff; box-shadow: 0 6px 18px rgba(80, 0, 12, .25); }
.btn-light:hover { background: #fff5f6; transform: translateY(-1px); }
.btn-light:focus-visible { outline-color: #fff; }

.svc-others { padding: clamp(44px, 7vw, 80px) var(--gutter); }
.svc-others-inner { max-width: 1150px; margin: 0 auto; }
.svc-other-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-other {
  display: block; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc-other img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-other span { display: block; padding: 12px 14px 14px; font-weight: 700; font-size: .92rem; }
.svc-other:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 32, 48, .1); border-color: var(--red); }
.svc-back { margin-top: 28px; }
.svc-back a { font-weight: 700; }

@media (max-width: 860px) {
  .svc-body-inner { grid-template-columns: minmax(0, 1fr); }
  .svc-figure { order: -1; }
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-other-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .svc-steps { grid-template-columns: minmax(0, 1fr); }
  .svc-other-list { gap: 10px; }
  .svc-other span { font-size: .82rem; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-js .svc-set .service-card { animation: none !important; }
  .btn-more, .btn-more-arrow, .svc-other { transition: none; }
}

/* ======================================================================
   Language picker (flags) and Korean / German type
   ====================================================================== */
html:lang(ko) {
  --font: "Lato", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Nanum Gothic", system-ui, sans-serif;
}
html:lang(ko) :is(h1, h2, h3, .hero-lead, .band-text, .service-card p, .svc-intro, .svc-hero-lead) { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(de) :is(h1, h2, h3) { hyphens: auto; overflow-wrap: break-word; }

.lang-picker { position: relative; flex: none; }
.flag { width: 26px; height: auto; aspect-ratio: 3 / 2; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); overflow: hidden; }
.lang-current {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
  color: var(--ink); font: 800 .78rem/1 var(--font); letter-spacing: .06em;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.lang-current:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(200, 16, 46, .14); }
.lang-current[aria-expanded="true"] { border-color: var(--red); background: #fff7f8; }
.lang-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.lang-current[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 200px;
  list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(22, 32, 48, .18), 0 0 0 1px rgba(22, 32, 48, .06);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .75, .2, 1);
}
.lang-menu::before {
  content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: #fff;
  transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(22, 32, 48, .06);
}
.lang-picker.is-open .lang-menu { opacity: 1; transform: none; }
.lang-menu li { position: relative; }
.lang-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left;
  color: var(--ink); font: 600 .9rem/1.2 var(--font);
  transition: background-color .15s, color .15s;
}
.lang-menu button[lang="ja"] { font-family: var(--font-ja); }
.lang-menu button[lang="ko"] { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: #fff1f3; color: var(--red-deep); outline: none; }
.lang-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.lang-menu .flag { width: 30px; }
.lang-menu span { flex: 1; }
.lang-check { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang-menu button[aria-pressed="true"] { font-weight: 800; }
.lang-menu button[aria-pressed="true"] .lang-check { visibility: visible; }

@media (max-width: 560px) {
  .lang-current { gap: 6px; padding: 6px 8px; }
  .lang-current .flag { width: 22px; }
  .lang-menu { min-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu, .lang-caret { transition: none; }
}

/* ======================================================================
   Header at double size (logo, names, language picker, spacing)
   ====================================================================== */
.site-header { border-bottom-width: 3px; }
.header-inner { max-width: 1300px; padding: 16px var(--gutter); gap: 24px; }
.brand { gap: 20px; }
.brand-logo { width: 96px; }
.brand-en { font-size: 1.615rem; line-height: 1.15; }
.brand-ja { font-size: 1.156rem; line-height: 1.3; }
.lang-current { min-height: 64px; gap: 14px; padding: 10px 20px 10px 14px; font-size: 1.3rem; border-width: 1.5px; }
.lang-current .flag { width: 48px; border-radius: 5px; }
.lang-caret { width: 22px; height: 22px; }
.lang-menu { top: calc(100% + 14px); min-width: 240px; }
.lang-menu button { min-height: 52px; font-size: 1.05rem; gap: 14px; }
.lang-menu .flag { width: 36px; }
/* Links to #contact and #services land below the taller sticky header. */
[id] { scroll-margin-top: 150px; }

@media (max-width: 860px) {
  .brand-logo { width: 72px; }
  .brand-en { font-size: 1.19rem; }
  .brand-ja { font-size: 0.85rem; }
  .lang-current { min-height: 54px; gap: 10px; padding: 8px 14px 8px 10px; font-size: 1.05rem; }
  .lang-current .flag { width: 36px; }
  [id] { scroll-margin-top: 120px; }
}
@media (max-width: 560px) {
  .header-inner { padding: 12px var(--gutter); gap: 12px; }
  .brand { gap: 12px; }
  .brand-logo { width: 54px; }
  .brand-en { font-size: 0.892rem; }
  .brand-ja { font-size: 0.629rem; letter-spacing: 0; }
  .lang-current { min-height: 46px; gap: 8px; padding: 6px 10px; font-size: .9rem; }
  .lang-current .flag { width: 30px; }
  .lang-caret { width: 16px; height: 16px; }
  .lang-menu { min-width: 200px; }
  [id] { scroll-margin-top: 96px; }
}
@media (max-width: 360px) {
  .brand-logo { width: 46px; }
  .brand-en { font-size: 0.807rem; }
}

/* ======================================================================
   Main menu (Home, About, Services, Contact)
   ====================================================================== */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 12px 16px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font: 700 1.05rem/1 var(--font); letter-spacing: .02em; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover { color: var(--red); background: #fff4f6; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #e7e9ec; text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1180px) {
  .brand-en { font-size: 1.275rem; }
  .brand-ja { font-size: 0.892rem; }
  .brand-logo { width: 80px; }
  .main-nav a { padding: 10px 12px; font-size: .98rem; }
  .main-nav a::after { left: 12px; right: 12px; }
}
/* Tablets and phones: the menu gets its own row under the logo and language button (above this, app.js tightens the
   header in steps and only stacks it if it still does not fit). */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .main-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .main-nav ul { justify-content: space-between; }
  .main-nav li { flex: 1; text-align: center; }
  .lang-picker { margin-left: auto; }
}
@media (max-width: 560px) {
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 10px 4px; font-size: .84rem; }
  .main-nav a::after { left: 10px; right: 10px; bottom: 3px; }
}

/* ======================================================================
   About, Services and Contact pages
   ====================================================================== */
.svc-hero.has-art .svc-hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 32px; }
.page-art { width: 100%; max-width: 320px; height: auto; justify-self: end; filter: drop-shadow(0 8px 24px rgba(80, 0, 12, .25)); }
@media (max-width: 760px) {
  .svc-hero.has-art .svc-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .page-art { display: none; }
}

.page-section { padding: clamp(48px, 7vw, 88px) var(--gutter); }
.page-section.tinted { background: var(--pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-inner { max-width: 1150px; margin: 0 auto; }
.page-inner.narrow { max-width: 820px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.media-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 14px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--red); }
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.sub-title { font-size: 1.15rem; font-weight: 800; margin: 26px 0 8px; }
.page-lead { font-size: 1.08rem; color: var(--ink); margin-bottom: 14px; }
.page-section p + p { margin-top: 12px; }
.page-section .btn { margin-top: 22px; }

.name-card {
  position: relative; overflow: hidden; padding: 30px 28px; border-radius: 14px; color: #fff;
  background: radial-gradient(260px 160px at 100% 0%, rgba(255, 120, 140, .35), transparent 70%), linear-gradient(140deg, #c8102e, #7e0a1b);
  box-shadow: 0 18px 40px rgba(126, 10, 27, .25);
}
.name-kanji { position: absolute; right: -6px; bottom: -28px; font-size: 7.5rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .12); font-family: var(--font-ja); }
.name-card h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.name-card p { position: relative; color: rgba(255, 255, 255, .94); }

.value-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value-card { background: #fff; border-radius: 12px; padding: 26px 22px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(22, 32, 48, .06); transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22, 32, 48, .1); }
.value-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; color: var(--red); background: #fff1f3; }
.value-icon .icon { width: 30px; height: 30px; }
.value-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.value-card p { font-size: .92rem; color: var(--muted); }

.page-photo { margin: 0; }
.page-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

.red-section { background: var(--red); }
.section-intro { max-width: 60ch; margin: 0 auto 30px; text-align: center; color: #fff; font-size: 1.05rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18.4px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-note { color: var(--muted); margin-bottom: 20px; }
.contact-aside { display: grid; gap: 18px; }
.aside-title { font-size: 1.2rem; font-weight: 800; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-icon { width: 26px; height: 26px; flex: none; color: var(--red); }
.info-list b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
html:lang(ja) .info-list b, html:lang(ko) .info-list b { letter-spacing: .02em; text-transform: none; }
.info-list a, .info-list span { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.info-list a { color: var(--red); }
.chat-card { padding: 22px 20px; border-radius: 12px; color: #fff; background: linear-gradient(140deg, #c8102e, #7e0a1b); box-shadow: 0 14px 32px rgba(126, 10, 27, .22); }
.chat-card .info-icon { color: #fff; width: 30px; height: 30px; margin-bottom: 8px; }
.chat-card h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.chat-card p { color: rgba(255, 255, 255, .92); font-size: .92rem; }
.btn-dark { margin-top: 14px; background: #111; color: #fff; border: 1px solid #111; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-dark:focus-visible { outline-color: #fff; }
.contact-page .contact-form { grid-template-columns: 1fr 1fr; }

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--red); }
.faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .split, .media-split { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav a::after, .value-card, .faq summary::after { transition: none; }
  .value-card:hover { transform: none; }
}

/* ======================================================================
   First-visit language pop-up (app.js, askLanguage)
   ====================================================================== */
.lang-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; overflow: auto;
  background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(22, 10, 14, .45);
  animation: ld-in .38s cubic-bezier(.2, .9, .3, 1.15) both;
}
.lang-dialog::backdrop { background: rgba(30, 6, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ld-fade .3s ease both; }
.lang-dialog.is-closing { animation: ld-out .2s ease-in both; }
@keyframes ld-in { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes ld-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes ld-fade { from { opacity: 0; } }

.ld-top {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 60px 22px 24px; color: #fff; overflow: hidden;
  background: radial-gradient(300px 140px at 100% 0%, rgba(255, 120, 140, .4), transparent 70%), linear-gradient(135deg, #c8102e, #7e0a1b);
}
.ld-top::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 220px; transform: scaleX(-1); opacity: .6;
  background: url(img/chevrons.svg) left center / auto 100% no-repeat; pointer-events: none;
}
.ld-logo { position: relative; z-index: 1; width: 58px; height: auto; flex: none; border-radius: 8px; background: #fff; padding: 4px; }
.ld-brand { position: relative; z-index: 1; margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.ld-brand span { display: block; font-weight: 400; font-size: .8rem; opacity: .9; font-family: var(--font-ja); }
.ld-close {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff;
}
.ld-close:hover { background: rgba(255, 255, 255, .28); }
.ld-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ld-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.ld-body { padding: 26px 24px 22px; }
.ld-title { margin: 0 0 20px; text-align: center; font-weight: 800; line-height: 1.35; }
.ld-title span { display: block; }
.ld-title span:first-child { font-size: 1.4rem; font-family: var(--font-ja); }
.ld-title span:not(:first-child) { font-size: .86rem; font-weight: 600; color: var(--muted); }
.ld-title [lang="ko"] { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }

.ld-options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-option {
  width: 100%; min-height: 96px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 10px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}
.ld-option:hover, .ld-option:focus-visible { border-color: var(--red); background: #fff6f7; box-shadow: 0 10px 24px rgba(200, 16, 46, .16); transform: translateY(-2px); outline: none; }
.ld-option:focus-visible { box-shadow: 0 0 0 3px rgba(200, 16, 46, .35); }
.ld-flag { width: 48px; height: auto; aspect-ratio: 3 / 2; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 4px 10px rgba(0, 0, 0, .12); }
.ld-native { font-size: 1.1rem; font-weight: 800; }
.ld-option[lang="ja"] .ld-native { font-family: var(--font-ja); }
.ld-option[lang="ko"] .ld-native { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
.ld-english { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ld-note { margin: 18px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.ld-note span { display: block; }

@media (max-width: 420px) {
  .ld-top { padding: 18px 56px 18px 18px; }
  .ld-logo { width: 46px; }
  .ld-body { padding: 22px 16px 18px; }
  .ld-option { min-height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-dialog, .lang-dialog::backdrop, .lang-dialog.is-closing { animation: none; }
  .ld-option { transition: none; }
  .ld-option:hover { transform: none; }
}

/* ======================================================================
   Homepage consultation section in dark red
   ====================================================================== */
.contact:not(.page-section) {
  position: relative; overflow: hidden; border-top: 0; color: #fff;
  background:
    radial-gradient(ellipse 50% 70% at 20% 30%, rgba(200, 16, 46, .45), transparent 70%),
    linear-gradient(135deg, #7e0a1b 0%, #640716 55%, #4a0510 100%);
}
.contact:not(.page-section)::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: min(42vw, 560px); opacity: .5;
  background: url(img/chevrons.svg) left center / auto 100% no-repeat; pointer-events: none;
}
.contact:not(.page-section) .contact-inner { position: relative; z-index: 1; }
.contact:not(.page-section) .eyebrow { color: #ffb3bf; }
.contact:not(.page-section) .contact-intro h2 { color: #fff; }
.contact:not(.page-section) .contact-intro h2::after { background: #ff5c74; }
.contact:not(.page-section) .contact-intro p { color: rgba(255, 255, 255, .88); }
.contact:not(.page-section) .contact-email { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
.contact:not(.page-section) .contact-email:hover { text-decoration-color: #fff; }
.contact:not(.page-section) a:focus-visible { outline-color: #fff; }
.contact:not(.page-section) .contact-form {
  background: #fff; border-top: 4px solid #ff5c74; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(30, 0, 6, .45);
}
.contact:not(.page-section) .btn-primary { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 16px rgba(126, 10, 27, .35); }
.contact:not(.page-section) .btn-primary:hover { background: #650816; }
.contact:not(.page-section) .form-status.is-ok { color: #1d6b3a; }

/* The red band's slogan and taglines in capitals (Japanese and Korean have no capitals, so they stay as they are). */
.band-stage, .band-list .band-text { text-transform: uppercase; letter-spacing: .1em; }
.band-anim .band-stage.is-tag { letter-spacing: .1em; }
.band-list li:not(.band-text) { text-transform: uppercase; }
html:lang(ja) .band-stage, html:lang(ko) .band-stage, html:lang(ja) .band-list .band-text, html:lang(ko) .band-list .band-text { letter-spacing: .12em; }

/* ======================================================================
   Homepage consultation form: black and reds, no white
   ====================================================================== */
.contact:not(.page-section) .contact-form {
  position: relative; border-top: 0; border-radius: 16px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(200, 16, 46, .22), transparent 70%),
    linear-gradient(160deg, #1a080c 0%, #0d0406 100%);
  border: 1px solid rgba(255, 70, 95, .28);
  box-shadow: 0 30px 70px rgba(10, 0, 3, .6), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 110, 130, .12);
}
.contact:not(.page-section) .contact-form::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #ff2d4f, #c8102e, #ff2d4f, transparent);
  box-shadow: 0 0 18px rgba(255, 45, 79, .6);
}
.contact:not(.page-section) .field label { color: #f3d6db; }
.contact:not(.page-section) .req { color: #ff4d67; }
.contact:not(.page-section) .optional { color: #b98790; }
.contact:not(.page-section) .field input,
.contact:not(.page-section) .field select,
.contact:not(.page-section) .field textarea {
  background: #22090f; color: #fbe9ec; border: 1px solid #5a1622; border-radius: 9px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
}
.contact:not(.page-section) .field input::placeholder,
.contact:not(.page-section) .field textarea::placeholder { color: #8f5c66; }
.contact:not(.page-section) .field input:hover,
.contact:not(.page-section) .field select:hover,
.contact:not(.page-section) .field textarea:hover { border-color: #8e1a2c; }
.contact:not(.page-section) .field input:focus,
.contact:not(.page-section) .field select:focus,
.contact:not(.page-section) .field textarea:focus {
  background: #2a0b12; border-color: #ff2d4f; box-shadow: 0 0 0 3px rgba(255, 45, 79, .25), 0 0 18px rgba(255, 45, 79, .25);
}
/* The service list: a red arrow instead of the browser's own, and dark options. */
.contact:not(.page-section) .field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23ff4d67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  color-scheme: dark;
}
.contact:not(.page-section) .field select option { background: #1a080c; color: #fbe9ec; }
.contact:not(.page-section) .field.has-error input,
.contact:not(.page-section) .field.has-error textarea { background: #2e0a12; border-color: #ff4d67; }
.contact:not(.page-section) .error { color: #ff8fa0; }
.contact:not(.page-section) .req-note { color: #b98790; }
.contact:not(.page-section) .req-note span:first-child { color: #ff4d67; }
.contact:not(.page-section) .form-status.is-ok { color: #ffb3bf; }
.contact:not(.page-section) .form-status.is-error { color: #ff8fa0; }
.contact:not(.page-section) .contact-form .btn-primary {
  min-width: 132px; border: 1px solid #ff4d67; color: #fff;
  background: linear-gradient(135deg, #e0263f 0%, #a10c23 60%, #6e0818 100%);
  box-shadow: 0 8px 22px rgba(200, 16, 46, .45), 0 0 0 1px rgba(0, 0, 0, .35);
  letter-spacing: .08em; text-transform: uppercase;
}
.contact:not(.page-section) .contact-form .btn-primary:hover {
  background: linear-gradient(135deg, #ff3b55 0%, #c8102e 60%, #7e0a1b 100%);
  box-shadow: 0 12px 28px rgba(255, 45, 79, .5);
}
.contact:not(.page-section) .contact-form .btn-primary:focus-visible { outline: 3px solid #ff4d67; outline-offset: 3px; }
html:lang(ja) .contact:not(.page-section) .contact-form .btn-primary,
html:lang(ko) .contact:not(.page-section) .contact-form .btn-primary { letter-spacing: .04em; }
/* Browser autofill would otherwise paint the fields pale yellow or white. */
.contact:not(.page-section) .field input:-webkit-autofill {
  -webkit-text-fill-color: #fbe9ec; box-shadow: 0 0 0 1000px #22090f inset; caret-color: #fbe9ec;
}

/* ======================================================================
   Team page (team.html) and the About page's "Meet the team"
   ====================================================================== */
.team-section {
  color: #f6dfe3;
  background:
    radial-gradient(ellipse 50% 60% at 15% 20%, rgba(200, 16, 46, .35), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 90%, rgba(200, 16, 46, .25), transparent 70%),
    linear-gradient(160deg, #1a070b 0%, #0d0406 100%);
}
.team-section .section-intro { color: #f3d6db; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.team-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid rgba(255, 70, 95, .3); border-radius: 16px; color: #f6dfe3; font: inherit;
  background: linear-gradient(160deg, #2a0a10, #12050a);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out, box-shadow .3s, border-color .3s;
}
.team-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px 220px at var(--gx) var(--gy), rgba(255, 90, 115, .28), transparent 70%);
}
.team-card:hover, .team-card:focus-visible { border-color: #ff4d67; box-shadow: 0 26px 54px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 45, 79, .25); }
.team-card:hover::after, .team-card:focus-visible::after { opacity: 1; }
.team-card:focus-visible { outline: 3px solid #ff4d67; outline-offset: 4px; }
.team-photo { display: block; overflow: hidden; aspect-ratio: 5 / 6; }
.team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-text { display: grid; gap: 4px; padding: 18px 18px 20px; border-top: 3px solid #c8102e; }
.team-name { font-size: 1.1rem; font-weight: 900; color: #fbe9ec; }
.team-role { font-size: .88rem; color: #ffb3bf; }
.team-view { margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff8fa0; }
html:lang(ja) .team-view, html:lang(ko) .team-view { letter-spacing: .02em; }
.team-card:hover .team-view span[aria-hidden] { display: inline-block; transform: translateX(3px); transition: transform .2s; }
.team-note { margin-top: 26px; text-align: center; font-size: .88rem; color: #b98790; }

/* The profile window */
.team-dialog {
  width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255, 70, 95, .35); border-radius: 20px; overflow: auto;
  color: #f6dfe3; background: radial-gradient(420px 260px at 100% 0%, rgba(200, 16, 46, .3), transparent 70%), linear-gradient(160deg, #1a070b, #0d0406);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 50px rgba(200, 16, 46, .2);
  animation: ld-in .35s cubic-bezier(.2, .9, .3, 1.15) both;
}
.team-dialog::backdrop { background: rgba(10, 0, 3, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ld-fade .3s ease both; }
.team-dialog.is-closing { animation: ld-out .18s ease-in both; }
.td-close {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(255, 77, 103, .5); background: rgba(13, 4, 6, .6); color: #f6dfe3;
}
.td-close:hover { background: rgba(200, 16, 46, .5); }
.td-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.td-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.td-body.is-in { animation: td-swap .35s ease-out both; }
@keyframes td-swap { from { opacity: 0; transform: translateX(16px); } }
.td-photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.td-text { padding: 40px 34px 30px; }
.td-role { margin: 0 0 6px; color: #ff8fa0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html:lang(ja) .td-role, html:lang(ko) .td-role { letter-spacing: .04em; }
.td-name { color: #fbe9ec; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; margin-bottom: 14px; }
.td-bio { color: #f3d6db; margin: 0 0 22px; }
.td-skills-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b98790; }
.td-skills { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.td-skills a {
  display: inline-block; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700;
  color: #ffd0d7; background: #2a0a10; border: 1px solid rgba(255, 77, 103, .45); transition: background-color .2s, border-color .2s;
}
.td-skills a:hover { background: #4a0f1a; border-color: #ff4d67; }
.td-contact.btn-primary { background: linear-gradient(135deg, #e0263f, #7e0a1b); border-color: #ff4d67; }
.td-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; border-top: 1px solid rgba(255, 70, 95, .2); }
.td-nav button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 77, 103, .5); background: #1a070b; color: #ffb3bf;
}
.td-nav button:hover { background: #3a0c15; color: #ffd0d7; }
.td-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.td-count { min-width: 60px; text-align: center; font-weight: 700; color: #b98790; font-size: .9rem; }
.team-dialog :focus-visible { outline: 3px solid #ff4d67; outline-offset: 2px; }

/* About page: a row of faces leading to the team page */
.team-teaser { background: var(--pale); border-top: 1px solid var(--line); }
.teaser-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.teaser-faces { list-style: none; margin: 0; padding: 0; display: flex; }
.teaser-faces li { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(22, 32, 48, .18); }
.teaser-faces li + li { margin-left: -22px; }
.teaser-faces img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .td-body { grid-template-columns: minmax(0, 1fr); }
  .td-photo { min-height: 0; max-height: 300px; }
  .td-text { padding: 26px 22px 22px; }
  .teaser-inner { grid-template-columns: minmax(0, 1fr); }
  .teaser-faces li { width: 76px; height: 76px; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card, .team-photo img, .team-card::after { transition: none; transform: none; }
  .team-dialog, .team-dialog::backdrop, .td-body.is-in, .team-dialog.is-closing { animation: none; }
}

/* ======================================================================
   Technology page (technology.html)
   ====================================================================== */
.tech-section {
  color: #f6dfe3;
  background:
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(200, 16, 46, .3), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 60%, rgba(200, 16, 46, .2), transparent 70%),
    linear-gradient(170deg, #1a070b 0%, #0d0406 100%);
}
.tech-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.tech-filter button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer; font: 700 .9rem/1 var(--font);
  color: #ffb3bf; background: #22090f; border: 1px solid rgba(255, 77, 103, .4); transition: background-color .2s, color .2s, border-color .2s;
}
.tech-filter button:hover { background: #3a0c15; color: #ffd0d7; border-color: #ff4d67; }
.tech-filter button[aria-pressed="true"] { color: #fbe9ec; background: linear-gradient(135deg, #e0263f, #7e0a1b); border-color: #ff4d67; box-shadow: 0 6px 18px rgba(200, 16, 46, .35); }
.tech-filter button:focus-visible { outline: 3px solid #ff4d67; outline-offset: 2px; }

.tech-group + .tech-group { margin-top: 56px; }
.tech-group.is-in { animation: td-swap .4s ease-out both; }
.tech-group-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.tech-group-pic { width: 120px; height: 80px; flex: none; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 70, 95, .35); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.tech-group-title { color: #fbe9ec; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; }
.tech-group-text { margin: 4px 0 0; color: #d9a9b2; }

.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tech-card {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #2a0a10, #14060a); border: 1px solid rgba(255, 70, 95, .25);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tech-card:hover { transform: translateY(-4px); border-color: #ff4d67; box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 24px rgba(255, 45, 79, .2); }
/* Each logo is drawn in the site's pink-red through a mask, so they all share one colour. */
.tech-logo {
  display: block; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 12px; position: relative;
  background: #1a070b; border: 1px solid rgba(255, 77, 103, .35);
}
.tech-logo::before {
  content: ""; position: absolute; inset: 11px; background: #ff6a80;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background-color .25s;
}
.tech-card:hover .tech-logo::before { background: #ffd0d7; }
.tech-card:hover .tech-logo { box-shadow: 0 0 18px rgba(255, 45, 79, .45); }
.tech-name { color: #fbe9ec; font-size: 1.05rem; font-weight: 900; margin-bottom: 6px; }
.tech-desc { color: #e3bcc3; font-size: .9rem; line-height: 1.55; margin: 0 0 16px; }
.tech-link { margin-top: auto; align-self: flex-start; color: #ff8fa0; font-size: .82rem; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.tech-link:hover { color: #ffd0d7; text-decoration: underline; text-underline-offset: 3px; }
.tech-link:focus-visible { outline: 3px solid #ff4d67; outline-offset: 3px; border-radius: 4px; }
.tech-note { margin-top: 48px; text-align: center; font-size: .8rem; color: #b98790; }

@media (max-width: 560px) {
  .tech-group-head { gap: 14px; }
  .tech-group-pic { width: 84px; height: 60px; }
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
  .tech-filter button { padding: 9px 14px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-card, .tech-logo::before, .tech-filter button { transition: none; }
  .tech-card:hover { transform: none; }
  .tech-group.is-in { animation: none; }
}
/* Five menu items: a little tighter on small phones. */
@media (max-width: 420px) {
  .main-nav a { padding: 10px 2px; font-size: .76rem; }
}

.brand-en { white-space: nowrap; }
@media (max-width: 400px) { .brand-en { white-space: normal; } }

/* Service cards: dark red with white text (homepage and Services page) */
.service-card {
  background: linear-gradient(160deg, #8e0b20 0%, #6e0818 55%, #4a0510 100%);
  border-top: 3px solid #ff4d67; color: #fff;
  box-shadow: 0 14px 34px rgba(40, 0, 8, .45), inset 0 1px 0 rgba(255, 140, 155, .15);
}
.service-card h3 { color: #fff; }
.service-card p { color: rgba(255, 255, 255, .9); }
.service-pic { filter: saturate(.9); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.btn-more { background: #1a070b; border: 1px solid #ff4d67; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.btn-more:hover { background: #0d0406; box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 14px rgba(255, 45, 79, .3); }
.btn-more:focus-visible { outline-color: #fff; }

/* ======================================================================
   Chinese, Arabic and Farsi type, and the right-to-left layout (Arabic, Farsi)
   ====================================================================== */
html:lang(zh) { --font: "Lato", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif; }
html:lang(ar) { --font: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, "Geeza Pro", system-ui, sans-serif; }
html:lang(fa) { --font: "Segoe UI", "Vazirmatn", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }
.lang-menu button[lang="zh"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.lang-menu button[dir="rtl"], .ld-option[dir="rtl"] .ld-native { font-family: "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif; }
html:lang(zh) :is(h1, h2, h3, .hero-lead, .band-text, .service-card p) { word-break: auto-phrase; }
/* Arabic script has no capitals and its letters join, so no wide letter spacing or forced capitals. */
html:lang(ar), html:lang(fa) { --rtl: 1; }
html[dir="rtl"] :is(.band-stage, .band-text, .btn-more, .eyebrow, .td-role, .td-skills-title, .team-view, .info-list b, .ld-english, .tech-link, .tk-intro-cap b, .tk-intro-cap em) { letter-spacing: 0 !important; text-transform: none; }
html[dir="rtl"] .band-anim .band-stage { gap: 0 .35em; }

/* Mirror what was placed on the left or right. */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .svc-hero { text-align: right; }
html[dir="rtl"] .hero-card, html[dir="rtl"] .section-title.center, html[dir="rtl"] .section-intro, html[dir="rtl"] .svc-cta, html[dir="rtl"] .ld-title, html[dir="rtl"] .ld-note, html[dir="rtl"] .tech-note, html[dir="rtl"] .team-note { text-align: center; }
html[dir="rtl"] .section-title::after, html[dir="rtl"] .contact-intro h2::after { left: auto; right: 0; }
html[dir="rtl"] .section-title.center::after { right: 50%; transform: translateX(50%); }
html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .main-nav a::after { transform-origin: right; }
html[dir="rtl"] .lang-picker { margin-left: 0; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
html[dir="rtl"] .lang-menu::before { right: auto; left: 22px; }
html[dir="rtl"] .lang-menu button { text-align: right; }
html[dir="rtl"] .crumbs li + li::before { content: "\\"; }
html[dir="rtl"] .svc-offers li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .svc-offers li::before { left: auto; right: 2px; }
html[dir="rtl"] .faq summary { padding: 18px 20px 18px 52px; }
html[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
html[dir="rtl"] .btn-more-arrow, html[dir="rtl"] .team-view span[aria-hidden], html[dir="rtl"] .tk-links a i { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .btn-more:hover .btn-more-arrow { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .contact:not(.page-section) .field select { background-position: left 14px center; padding-right: 12px; padding-left: 40px; }
html[dir="rtl"] .contact:not(.page-section)::before { left: auto; right: 0; transform: scaleX(-1); }
html[dir="rtl"] .svc-hero::after { right: auto; left: 0; transform: none; }
html[dir="rtl"] .teaser-faces li + li { margin-left: 0; margin-right: -22px; }
html[dir="rtl"] .td-close { right: auto; left: 14px; }
html[dir="rtl"] .ld-close { right: auto; left: 14px; }
html[dir="rtl"] .ld-top { padding: 22px 24px 22px 60px; }
html[dir="rtl"] .td-nav { flex-direction: row-reverse; }
html[dir="rtl"] .tech-group-head, html[dir="rtl"] .info-list li { text-align: right; }
/* Email addresses, code-like names and the company's English name stay left to right inside Arabic text. */
html[dir="rtl"] :is(.contact-email, .tech-name, .brand-en, input[type="email"], input[type="tel"]) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .brand-en, html[dir="rtl"] .tech-name { text-align: right; }

/* The language pop-up holds ten languages: a tighter grid. */
.ld-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ld-option { min-height: 74px; grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 10px 14px; text-align: start; }
.ld-option .ld-flag { grid-row: span 2; width: 40px; }
.ld-native { font-size: 1rem; }
.ld-option:not(:has(.ld-english)) .ld-native { grid-row: span 2; }
@media (min-width: 640px) { .lang-dialog { width: min(620px, calc(100vw - 32px)); } }
@media (max-width: 420px) { .ld-option { min-height: 62px; padding: 8px 10px; } .ld-option .ld-flag { width: 32px; } }

/* Mid-sized screens: the name and logo shrink a little so they never run into the menu. */
@media (min-width: 1241px) and (max-width: 1500px) {
  .brand-logo { width: clamp(64px, 6vw, 96px); }
  .brand { gap: 14px; }
  .brand-en { font-size: clamp(1.063rem, 1.488vw, 1.615rem); }
  .brand-ja { font-size: clamp(0.722rem, 0.977vw, 1.156rem); }
  .main-nav a { padding: 10px 11px; font-size: clamp(.9rem, 1.05vw, 1.05rem); }
  .main-nav a::after { left: 11px; right: 11px; }
  .lang-current { min-height: 54px; padding: 8px 14px 8px 10px; font-size: 1.1rem; }
  .lang-current .flag { width: 38px; }
}

/* Band capitals: even tracking, clear gaps between words, and the line kept centred. */
.band-stage, .band-list .band-text { letter-spacing: .07em; }
.band-anim .band-stage { gap: .12em .42em; }
.band-anim .band-stage.is-tag { letter-spacing: .06em; }
.band-unit:last-child { margin-inline-end: -.07em; }   /* the last letter's tracking would push the line off centre */
html:lang(ja) .band-stage, html:lang(zh) .band-stage, html:lang(ko) .band-stage { gap: 0; }

/* Band: tight, heavy capitals (Lato Black) instead of light and airy. */
.band-stage, .band-list .band-text { font-weight: 900; letter-spacing: .012em; line-height: 1.08; }
.band-anim .band-stage { gap: .08em .24em; }
.band-anim .band-stage.is-tag { letter-spacing: .008em; }
.band-unit:last-child { margin-inline-end: 0; }
.band-text { text-shadow: 0 2px 0 rgba(90, 0, 14, .35), 0 6px 24px rgba(80, 0, 12, .35); }
/* Japanese and Chinese lines (shown first in every language) are set solid, with no gaps between words. */
.band-anim .band-stage:is([lang="ja"], [lang="zh"]) { gap: 0; font-weight: 700; letter-spacing: .02em; }

/* When the header measures that the name and menu don't fit side by side (app.js, fitHeader), the menu takes its
   own row under the logo and language button, exactly as on narrower screens. */
.site-header.is-stacked .header-inner { flex-wrap: wrap; row-gap: 6px; }
.site-header.is-stacked .main-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: 6px; }
.site-header.is-stacked .main-nav ul { justify-content: space-between; }
.site-header.is-stacked .main-nav li { flex: 1; text-align: center; }
.site-header.is-stacked .lang-picker { margin-inline-start: auto; }
.main-nav a { white-space: nowrap; }
/* The name keeps its natural width, so the header's fit check measures what is actually on screen. */
.brand, .brand-text { flex-shrink: 0; }
@media (max-width: 400px) { .brand, .brand-text { flex-shrink: 1; } }
/* Phones: the name may wrap onto two lines again, so it always fits beside the language button. */
@media (max-width: 600px) {
  .brand, .brand-text { flex-shrink: 1; min-width: 0; }
  .brand-en { white-space: normal; }
  .brand-ja { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 380px) {
  .lang-current { gap: 5px; padding: 6px 8px; }
  .lang-current .flag { width: 26px; }
  .brand-logo { width: 42px; }
}
/* Small phones: menu items wrap onto a second centred line instead of running off the edge (long German words). */
@media (max-width: 620px) {
  .main-nav ul, .site-header.is-stacked .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 0 4px; }
  .main-nav li, .site-header.is-stacked .main-nav li { flex: 0 1 auto; }
  .main-nav a { padding: 9px 8px; }
  .main-nav a::after { left: 8px; right: 8px; }
}

/* ======================================================================
   Header sizes chosen by app.js (fitHeader): full size, compact, tight, then the menu on its own row.
   ====================================================================== */
.site-header.is-compact .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 18px; }
.site-header.is-compact .brand { gap: 12px; }
.site-header.is-compact .brand-logo { width: 62px; }
.site-header.is-compact .brand-en { font-size: 1.105rem; }
.site-header.is-compact .brand-ja { font-size: 0.748rem; }
.site-header.is-compact .main-nav ul { gap: 2px; }
.site-header.is-compact .main-nav a { padding: 9px 10px; font-size: .92rem; letter-spacing: 0; }
.site-header.is-compact .main-nav a::after { left: 10px; right: 10px; }
.site-header.is-compact .lang-current { min-height: 46px; gap: 9px; padding: 6px 12px 6px 9px; font-size: 1rem; }
.site-header.is-compact .lang-current .flag { width: 32px; }

.site-header.is-tight .brand-logo { width: 52px; }
.site-header.is-tight .brand-en { font-size: 0.952rem; }
.site-header.is-tight .brand-ja { font-size: 0.646rem; }
.site-header.is-tight .main-nav a { padding: 8px 7px; font-size: .84rem; }
.site-header.is-tight .main-nav a::after { left: 7px; right: 7px; }
.site-header.is-tight .lang-current { min-height: 42px; padding: 5px 10px 5px 8px; font-size: .92rem; }
.site-header.is-tight .lang-current .flag { width: 28px; }

/* When the menu needs its own row: a compact, centred row instead of items spread across the width. */
.site-header.is-stacked .header-inner { row-gap: 2px; padding-bottom: 6px; }
.site-header.is-stacked .main-nav { padding-top: 4px; }
.site-header.is-stacked .main-nav ul { justify-content: center; flex-wrap: wrap; gap: 0 6px; }
.site-header.is-stacked .main-nav li { flex: 0 1 auto; }

/* ======================================================================
   Service cards: the old set leaves first, then the new set slides in (no overlapping cards).
   ====================================================================== */
.svc-js .svc-set.is-leaving .service-card { animation: card-out .32s ease-in both; animation-delay: 0s !important; }
.svc-js .svc-set.is-active .service-card { animation-delay: .34s; }
.svc-js .svc-set.is-active .service-card:nth-child(2) { animation-delay: .44s; }
.svc-js .svc-set.is-active .service-card:nth-child(3) { animation-delay: .54s; }
@keyframes card-out { to { opacity: 0; transform: translateX(-40px); } }
/* The very first set on page load needs no wait. */
.svc-js:not(.has-moved) .svc-set.is-active .service-card { animation-delay: 0s; }
.svc-js:not(.has-moved) .svc-set.is-active .service-card:nth-child(2) { animation-delay: .1s; }
.svc-js:not(.has-moved) .svc-set.is-active .service-card:nth-child(3) { animation-delay: .2s; }

/* ======================================================================
   Service pages, expanded: larger type, offer cards, benefits, product logos
   ====================================================================== */
.svc-page .svc-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.svc-page .svc-hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 52ch; }
.svc-page .svc-body { padding-top: clamp(52px, 7vw, 96px); padding-bottom: clamp(52px, 7vw, 96px); }
.svc-page .svc-body-inner { align-items: start; }
.svc-page .svc-intro { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.65; color: var(--ink); margin-bottom: 28px; }
.svc-for {
  margin: 0 0 30px; padding: 20px 22px; border-radius: 12px; border-inline-start: 4px solid var(--red);
  background: linear-gradient(135deg, #fff4f6, #fff);
  box-shadow: 0 8px 22px rgba(22, 32, 48, .06);
}
.svc-for h3 { font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
html[dir="rtl"] .svc-for h3, html:lang(ja) .svc-for h3, html:lang(zh) .svc-for h3, html:lang(ko) .svc-for h3 { letter-spacing: .02em; }
.svc-for p { font-size: 1.05rem; color: var(--ink); }
.svc-page .svc-figure img { aspect-ratio: 4 / 3.2; }

.svc-wide { max-width: 1150px; margin: 0 auto; }
.section-title.light { color: #fff; }
.section-title.light::after { background: #ff5c74; }

.svc-offer-section { padding: clamp(48px, 7vw, 88px) var(--gutter); background: var(--pale); border-top: 1px solid var(--line); }
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.offer-card {
  position: relative; padding: 26px 24px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(22, 32, 48, .06); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.offer-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 16px 34px rgba(22, 32, 48, .1); }
.offer-num { display: block; font-size: 2rem; font-weight: 900; line-height: 1; color: var(--red); margin-bottom: 12px; }
.offer-card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; }
.offer-card p { font-size: 1rem; color: var(--text); line-height: 1.6; }

.svc-benefits {
  padding: clamp(48px, 7vw, 88px) var(--gutter); color: #fff;
  background: radial-gradient(ellipse 50% 70% at 15% 20%, rgba(200, 16, 46, .45), transparent 70%), linear-gradient(140deg, #7e0a1b, #4a0510);
}
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefit-card { padding: 28px 24px; border-radius: 14px; background: rgba(13, 4, 6, .35); border: 1px solid rgba(255, 92, 116, .35); }
.benefit-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #e0263f, #a10c23); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.benefit-icon svg { width: 30px; height: 30px; }
.benefit-card h3 { color: #fff; font-size: 1.25rem; font-weight: 900; margin-bottom: 8px; }
.benefit-card p { color: rgba(255, 255, 255, .88); font-size: 1.02rem; }

.svc-tech-section { padding: clamp(48px, 7vw, 88px) var(--gutter); }
.svc-tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.svc-tech {
  display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 24px 14px 18px; text-decoration: none;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(22, 32, 48, .06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-tech:hover { transform: translateY(-4px); border-color: var(--brand, var(--red)); box-shadow: 0 16px 34px rgba(22, 32, 48, .12); }
.svc-tech-logo {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; position: relative;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
}
.svc-tech-logo::before {
  content: ""; position: absolute; inset: 14px; background: var(--brand);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.svc-tech-name { font-weight: 900; color: var(--ink); text-align: center; font-size: .98rem; }
.svc-tech-more { margin-top: 24px; }
.svc-tech-more a { font-weight: 900; color: var(--red); text-decoration: none; }
.svc-tech-more a:hover { text-decoration: underline; text-underline-offset: 4px; }
html[dir="rtl"] .svc-tech-more span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

@media (max-width: 860px) {
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .svc-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .offer-card, .svc-tech { transition: none; }
  .offer-card:hover, .svc-tech:hover { transform: none; }
}

/* Technology page: each product logo in its real brand colour on a white tile. */
.tech-logo { background: #fff; border: 1px solid rgba(255, 255, 255, .6); width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.tech-logo::before { inset: 12px; background: var(--brand, #ff6a80); }
.tech-card:hover .tech-logo::before { background: var(--brand, #ffd0d7); }
.tech-card:hover .tech-logo { box-shadow: 0 0 0 3px var(--brand), 0 10px 22px rgba(0, 0, 0, .4); }

/* ======================================================================
   Projects menu (a dropdown under Projects) and the Projects pages
   ====================================================================== */
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 7px; vertical-align: .18em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
  transition: transform .2s;
}
.main-nav .has-sub:hover > a::before, .main-nav .has-sub:focus-within > a::before { transform: rotate(225deg) translate(-2px, -2px); }
.main-nav .sub-nav {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 50%; z-index: 60; min-width: 230px;
  display: block; padding: 8px; margin: 0; list-style: none; border-radius: 10px;
  background: #16191e; border-top: 3px solid var(--red); box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
html[dir="rtl"] .main-nav .sub-nav { transform: translate(50%, 6px); }
.main-nav .sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-nav .has-sub:hover > .sub-nav, .main-nav .has-sub:focus-within > .sub-nav {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s;
}
html[dir="rtl"] .main-nav .has-sub:hover > .sub-nav, html[dir="rtl"] .main-nav .has-sub:focus-within > .sub-nav { transform: translate(50%, 0); }
.main-nav .sub-nav li, .site-header.is-stacked .main-nav .sub-nav li { flex: none; text-align: start; }
.main-nav .sub-nav a, .site-header.is-compact .main-nav .sub-nav a, .site-header.is-tight .main-nav .sub-nav a {
  display: block; padding: 10px 14px; border-radius: 7px; font-size: .95rem; font-weight: 700; color: #fff; background: none;
}
.main-nav .sub-nav a::after { display: none; }
.main-nav .sub-nav a:hover, .main-nav .sub-nav a:focus-visible, .main-nav .sub-nav a[aria-current="page"] { background: var(--red); color: #fff; }
.main-nav .sub-nav a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Projects overview and cards */
.prj-hero-logos { display: flex; justify-content: center; gap: 18px; }
.prj-hero-logos img { width: clamp(96px, 12vw, 150px); height: auto; border-radius: 50%; box-shadow: 0 14px 34px rgba(60, 0, 10, .45); }
.prj-hero-logos img:nth-child(2) { transform: translateY(26px); }
.prj-hero-logo { display: flex; justify-content: center; }
.prj-logo { width: clamp(150px, 18vw, 220px); height: auto; border-radius: 50%; box-shadow: 0 16px 40px rgba(60, 0, 10, .5); }
.prj-intro { max-width: 70ch; }
.prj-group-head { display: flex; gap: 18px; align-items: flex-start; margin: 34px 0 26px; }
.prj-group-icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #e0263f, #7e0a1b); box-shadow: 0 8px 20px rgba(126, 10, 27, .3); }
.prj-group-icon .prj-ico { width: 32px; height: 32px; }
.prj-group-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.prj-group-head p { color: var(--text); font-size: 1.05rem; max-width: 62ch; }
.prj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.prj-card {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: start; padding: 24px;
  border-radius: 16px; color: #fff; background: linear-gradient(150deg, #7e0a1b, #3d040d);
  border: 1px solid rgba(255, 92, 116, .3); box-shadow: 0 16px 36px rgba(60, 0, 10, .25);
  transition: transform .25s, box-shadow .25s;
}
.prj-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(60, 0, 10, .35); }
.prj-card-media { display: block; border-radius: 50%; }
.prj-card-logo { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: transform .3s; }
.prj-card:hover .prj-card-logo { transform: rotate(-4deg) scale(1.04); }
.prj-card h3 { font-size: 1.5rem; font-weight: 900; margin: 4px 0 8px; }
.prj-card h3 a { color: #fff; text-decoration: none; }
.prj-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prj-card-tag { color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.55; }
.prj-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #ff9aaa; }
.prj-body .prj-kicker { color: var(--red); margin-bottom: 14px; }
html:lang(ja) .prj-kicker, html:lang(zh) .prj-kicker, html:lang(ko) .prj-kicker, html[dir="rtl"] .prj-kicker { letter-spacing: .02em; }
.prj-ico { width: 20px; height: 20px; flex: none; }
.prj-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prj-chip { padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; background: rgba(13, 4, 6, .4); border: 1px solid rgba(255, 92, 116, .35); }
.prj-chip code, .prj-ed-meta code { font: 700 .9em/1 ui-monospace, Consolas, monospace; }
.prj-chip-free { background: #fff; color: var(--red); border-color: #fff; }
.prj-body .prj-chip { color: var(--ink); background: var(--pale); border-color: var(--line); }
.prj-body .prj-chip-free { background: var(--red); color: #fff; border-color: var(--red); }
.prj-card-actions, .prj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.prj-btn { min-height: 46px; padding: 10px 18px; gap: 8px; }
.prj-btn-view { background: #16191e; color: #fff; }
.prj-btn-view:hover { background: #000; transform: translateY(-1px); }
.prj-btn-view .prj-ico { transition: transform .2s; }
.prj-btn-view:hover .prj-ico { transform: translateX(3px); }
html[dir="rtl"] .prj-btn-view .prj-ico { transform: scaleX(-1); }
.prj-btn-cf { background: #f16436; color: #fff; }
.prj-btn-cf:hover { background: #d94f22; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(241, 100, 54, .35); }
.prj-btn-dl { background: var(--red); color: #fff; }
.prj-btn-dl:hover { background: #a10c23; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(200, 16, 46, .3); }
.prj-btn-note { font-weight: 400; opacity: .8; font-size: .82em; }
.prj-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.prj-card .prj-btn:focus-visible, .prj-editions .prj-btn:focus-visible { outline-color: #fff; }

/* Project pages */
.prj-page .svc-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.prj-page .svc-hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 48ch; }
.prj-body .svc-intro { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink); }
.prj-shot img { aspect-ratio: auto; object-fit: contain; background: #0d0406; border-radius: 12px; box-shadow: 0 16px 38px rgba(22, 32, 48, .2); }
.prj-ed-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.prj-ed { padding: 26px 24px; border-radius: 14px; background: rgba(13, 4, 6, .38); border: 1px solid rgba(255, 92, 116, .35); }
.prj-ed-game { font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #ff9aaa; }
.prj-ed h3 { color: #fff; font-size: 1.45rem; font-weight: 900; margin: 6px 0 8px; }
.prj-ed p { color: rgba(255, 255, 255, .9); }
.prj-ed-meta { margin-top: 10px; font-size: .92rem; }
.prj-cf-note { margin-top: 24px; max-width: 70ch; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.prj-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.prj-shot-fig { margin: 0; }
.prj-shot-fig img { width: 100%; height: auto; border-radius: 12px; background: #0d0406; box-shadow: 0 12px 30px rgba(22, 32, 48, .16); }
.prj-shot-fig figcaption { margin-top: 10px; font-size: .95rem; color: var(--text); }
.prj-page .svc-step p { font-size: 1rem; color: var(--ink); }
.prj-fair { padding: clamp(40px, 6vw, 72px) var(--gutter); background: #16191e; color: #fff; }
.prj-fair-inner { display: flex; gap: 22px; align-items: flex-start; }
.prj-fair .benefit-icon { flex: none; margin: 0; }
.prj-fair .benefit-icon .prj-ico { width: 30px; height: 30px; }
.prj-fair h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; color: #fff; }
.prj-fair p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 70ch; }
.prj-more { background: var(--pale); border-top: 1px solid var(--line); }
.prj-more .prj-group-title { margin-bottom: 22px; }

@media (max-width: 860px) {
  .main-nav .sub-nav { min-width: 210px; }
}
@media (max-width: 560px) {
  .prj-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .prj-card-media { width: 140px; margin: 0 auto; }
  .prj-card .prj-chips, .prj-card-actions { justify-content: center; }
  .prj-group-head, .prj-fair-inner { flex-direction: column; }
  .prj-hero-logos img:nth-child(2) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav .sub-nav, .main-nav .has-sub > a::before, .prj-card, .prj-card-logo { transition: none; }
  .prj-card:hover, .prj-card:hover .prj-card-logo { transform: none; }
}

/* Company logo wrapper (header on every page, homepage card). No animation. */
.logo-dazzle { position: relative; display: inline-flex; flex: none; }
.logo-dazzle--hero { display: flex; width: fit-content; margin: 0 auto 25.3px; }
.logo-dazzle--hero .hero-logo { margin: 0; }
/* Hero logo glow: a soft medium-gray shadow cast by a rounded layer cut to the logo tile, sitting behind the picture.
   It used to be a shadow effect applied to the picture itself, which the opening animations kept redrawing
   (the black-and-white picture effect swapped it out, the scaled reveal drew it at low resolution), so it loaded
   blocky and popped in late. A plain box-shadow stays smooth from the first frame. */
.logo-dazzle--hero { isolation: isolate; }
.logo-dazzle--hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 3.7%; border-radius: 23%;   /* the opaque rounded tile inside tenshi-logo.png (512 x 512 two-tone mark) */
  box-shadow: 0 9.2px 30px 2px rgba(110, 110, 110, .38);   /* measured to match the old 0 9.2px 16.1px rgba(110,110,110,.45) picture shadow */
}
/* The logo and its glow arrive together (design.js reveals the wrapper): fade and rise only, no scaling */
html.anim-on .logo-dazzle--hero.a-img:not(.is-in) { transform: translate3d(0, var(--dy), 0); }

/* Hero card: half-transparent white over the skyline, frosted so the text stays readable */
.hero-card { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .6); }
.hero-card .hero-lead { color: var(--ink); }

/* Technology page: the real full-colour product logos (img/tech-color) on white tiles */
.tech-logo--color { display: grid; place-items: center; }
.tech-logo--color::before { display: none; }
.tech-logo--color img { width: 36px; height: 36px; object-fit: contain; transition: transform .25s; }
.tech-card:hover .tech-logo--color img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .tech-logo--color img { transition: none; } .tech-card:hover .tech-logo--color img { transform: none; } }

/* Service pages: the same full-colour product logos */
.svc-tech-logo--color::before { display: none; }
.svc-tech-logo--color { background: color-mix(in srgb, var(--brand) 9%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff); }
.svc-tech-logo--color img { width: 38px; height: 38px; object-fit: contain; transition: transform .25s; }
.svc-tech:hover .svc-tech-logo--color img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .svc-tech-logo--color img { transition: none; } .svc-tech:hover .svc-tech-logo--color img { transform: none; } }

/* Buttons are text only, centred (no icons or arrows) */
.btn, .btn-more, .prj-btn { justify-content: center; text-align: center; }
.prj-btn { flex-wrap: wrap; column-gap: .45em; row-gap: 0; }

/* ======================================================================
   Every service in detail (services.html) and "In depth" (service pages)
   ====================================================================== */
.svc-icon {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #e0263f, #7e0a1b); box-shadow: 0 8px 18px rgba(126, 10, 27, .28);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.svc-icon-lg svg { width: 40px; height: 40px; }
.svc-detail-section { background: var(--pale); border-top: 1px solid var(--line); }
.svc-detail-list { display: grid; gap: 30px; margin-top: 34px; }
.svc-detail {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 44px); align-items: center;
  padding: clamp(18px, 3vw, 30px); border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(22, 32, 48, .07); scroll-margin-top: 120px;
}
.svc-detail:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc-detail:nth-child(even) .svc-detail-pic { order: 2; }
.svc-detail-pic { position: relative; margin: 0; }
.svc-detail-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.svc-icon-badge { position: absolute; left: 16px; bottom: -18px; width: 62px; height: 62px; border-radius: 16px; border: 3px solid #fff; }
.svc-icon-badge svg { width: 34px; height: 34px; }
html[dir="rtl"] .svc-icon-badge { left: auto; right: 16px; }
.svc-detail-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.svc-detail-short { font-weight: 700; color: var(--red); font-size: 1.05rem; margin-bottom: 14px; }
.svc-detail-body > p:not(.svc-detail-short) { color: var(--text); font-size: 1.02rem; line-height: 1.7; margin-bottom: 12px; }
.svc-detail-tags { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-detail-tags li { padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--red-dark, #7e0a1b); background: #fff1f3; border: 1px solid #f6c9d1; }

.svc-depth { padding: clamp(44px, 6vw, 76px) var(--gutter); background: #fff; border-top: 1px solid var(--line); }
.svc-depth-inner { display: flex; gap: clamp(18px, 3vw, 32px); align-items: flex-start; }
.svc-depth p { font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.75; color: var(--text); max-width: 75ch; margin-top: 14px; }

@media (max-width: 860px) {
  .svc-detail, .svc-detail:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .svc-detail:nth-child(even) .svc-detail-pic { order: 0; }
  .svc-detail-pic { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  .svc-depth-inner { flex-direction: column; }
  .svc-detail-title .svc-icon { width: 40px; height: 40px; }
}

/* ======================================================================
   Consultation section: a flight of chevrons
   Seven striped arrows leave the static chevrons on the left, glide across the whole section
   with a glowing leading edge, drift, soften into a blur and dissolve. Staggered so the motion
   never stops but never crowds; they pass behind the text and form.
   ====================================================================== */
.contact:not(.page-section)::before { opacity: .28; }
.chev-flight { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
html[dir="rtl"] .chev-flight { transform: scaleX(-1); }
.chev {
  --h: 62%; --top: 19%; --dur: 13s; --o: .55; --drift: 0px;
  position: absolute; left: 0; top: var(--top); height: var(--h); aspect-ratio: 1 / 1;
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%);
  background:
    linear-gradient(90deg, transparent 0 40%, rgba(255, 150, 168, .38) 78%, rgba(255, 225, 230, .7) 100%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .26) 0 1.6px, transparent 1.6px 6px),
    rgba(126, 10, 27, .32);
  opacity: 0; transform: translate3d(-110%, 0, 0);
  animation: chev-fly var(--dur) cubic-bezier(.45, .05, .35, 1) infinite;
  animation-delay: calc(var(--i) * var(--dur) / -7 - 1s);
  will-change: transform, opacity, filter;
}
/* Each arrow its own size, height, speed, strength and drift */
.chev:nth-child(1) { --h: 86%; --top: 7%;  --dur: 15s;  --o: .5;  --drift: -18px; }
.chev:nth-child(2) { --h: 44%; --top: 10%; --dur: 11s;  --o: .6;  --drift: 14px; }
.chev:nth-child(3) { --h: 62%; --top: 34%; --dur: 13s;  --o: .45; --drift: -10px; }
.chev:nth-child(4) { --h: 30%; --top: 62%; --dur: 9.5s; --o: .65; --drift: 20px; }
.chev:nth-child(5) { --h: 72%; --top: 22%; --dur: 17s;  --o: .35; --drift: 8px; }
.chev:nth-child(6) { --h: 38%; --top: 54%; --dur: 12s;  --o: .55; --drift: -16px; }
.chev:nth-child(7) { --h: 24%; --top: 18%; --dur: 10.5s; --o: .6; --drift: 12px; }
@keyframes chev-fly {
  0%   { opacity: 0;                         transform: translate3d(-110%, 0, 0) scale(.92); filter: blur(0); }
  10%  { opacity: var(--o); }
  55%  { opacity: calc(var(--o) * .8);       filter: blur(0); }
  85%  { opacity: calc(var(--o) * .25);      filter: blur(2px); }
  100% { opacity: 0;                         transform: translate3d(calc(100vw + 10%), var(--drift), 0) scale(1.12); filter: blur(5px); }
}
/* A soft light that sweeps behind the flight now and then */
.chev-flight::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 116, .14), transparent);
  transform: translateX(-100%); animation: chev-sweep 9s ease-in-out infinite 2s;
}
@keyframes chev-sweep { 0% { transform: translateX(-100%); opacity: 0; } 20% { opacity: 1; } 70%, 100% { transform: translateX(300%); opacity: 0; } }

/* Phones: fewer, lighter arrows */
@media (max-width: 700px) {
  .chev:nth-child(n + 5) { display: none; }
  .chev { --o: .35; }
}
/* Reduced motion: the original still chevrons only */
@media (prefers-reduced-motion: reduce) {
  .chev-flight { display: none; }
  .contact:not(.page-section)::before { opacity: .5; }
}

/* More breathing room between each service card picture and its text */
.service-card .service-pic { margin-bottom: 28px; }

/* ======================================================================
   About page: mission and vision, the web speciality, the journey, standards,
   the Osaka minimap and working worldwide
   ====================================================================== */
/* Intros on light backgrounds (the default .section-intro is white, for red sections) */
.svc-detail-section .section-intro, .ab-journey .section-intro { color: var(--text); }

.ab-icon {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #e0263f, #7e0a1b); box-shadow: 0 8px 18px rgba(126, 10, 27, .28);
}
.ab-icon svg { width: 26px; height: 26px; }
.ab-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.ab-icon-lg svg { width: 34px; height: 34px; }

.ab-mv { padding-top: 0; }
.ab-mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ab-mv-card { padding: 30px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: 0 14px 34px rgba(22, 32, 48, .07); }
.ab-mv-card h2 { font-size: 1.45rem; font-weight: 900; margin: 16px 0 8px; color: var(--ink); }
.ab-mv-card p { font-size: 1.06rem; line-height: 1.7; color: var(--text); }

.ab-web { color: #fff; background: radial-gradient(ellipse 50% 60% at 15% 10%, rgba(200, 16, 46, .5), transparent 70%), linear-gradient(140deg, #7e0a1b, #3d040d); }
.ab-web-intro { max-width: 78ch; margin: 0 0 34px; text-align: start; color: rgba(255, 255, 255, .9); font-size: 1.1rem; line-height: 1.7; }
.ab-focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ab-focus { padding: 28px 26px; border-radius: 16px; background: rgba(13, 4, 6, .4); border: 1px solid rgba(255, 92, 116, .35); }
.ab-focus-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ab-focus h3 { color: #fff; font-size: 1.5rem; font-weight: 900; }
.ab-focus p { color: rgba(255, 255, 255, .88); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.ab-checks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 92, 116, .3); display: grid; gap: 10px; }
.ab-checks li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-weight: 700; font-size: .95rem; }
.ab-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff3b55; color: #fff; margin-top: 1px; }
.ab-check svg { width: 14px; height: 14px; stroke-width: 2.6; }

.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.ab-step { position: relative; padding: 26px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(22, 32, 48, .06); transition: transform .25s, border-color .25s; }
.ab-step:hover { transform: translateY(-3px); border-color: var(--red); }
.ab-step-num { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--red); margin-bottom: 10px; }
.ab-step h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; color: var(--ink); }
.ab-step p { color: var(--text); font-size: 1rem; line-height: 1.6; }

.ab-std-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ab-std-card { padding: 26px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.ab-std-card .ab-icon { margin-bottom: 14px; }
.ab-std-card h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: 6px; color: var(--ink); }
.ab-std-card p { color: var(--text); font-size: .96rem; line-height: 1.6; }

.ab-find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.ab-facts { margin: 26px 0 0; display: grid; gap: 18px; }
.ab-facts dt { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--red); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
html[dir="rtl"] .ab-facts dt, html:lang(ja) .ab-facts dt, html:lang(zh) .ab-facts dt, html:lang(ko) .ab-facts dt { letter-spacing: .02em; }
.ab-dt-icon { display: inline-grid; color: var(--red); }
.ab-dt-icon svg { width: 20px; height: 20px; }
.ab-facts dd { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.6; }
.ab-facts dd b { display: block; color: var(--ink); font-size: 1.1rem; }

/* The minimap: a framed, red-tinted map with a pulsing pin, compass and coordinates */
.minimap { margin: 0; }
.minimap-frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 3px solid var(--red); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 24px 50px rgba(126, 10, 27, .28);
  background: #2a0910;
}
.minimap-frame iframe { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 0; filter: grayscale(1) sepia(.35) hue-rotate(-30deg) saturate(2.2) contrast(1.02); }
.minimap-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(60, 4, 14, .45)); }
.minimap-ping { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #ff3b55; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); z-index: 2; pointer-events: none; }
.minimap-ping::before, .minimap-ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #ff3b55; animation: mm-ping 2.4s ease-out infinite; }
.minimap-ping::after { animation-delay: 1.2s; }
@keyframes mm-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.minimap-compass { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: rgba(22, 6, 10, .85); border: 2px solid #ff3b55; pointer-events: none; }
.minimap-compass::before { content: ""; position: absolute; top: -8px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 8px solid #ff3b55; border-top: 0; }
.minimap-coords { position: absolute; left: 14px; top: 20px; z-index: 2; padding: 6px 12px; border-radius: 999px; font: 700 .8rem/1 ui-monospace, Consolas, monospace; color: #fff; background: rgba(22, 6, 10, .85); border: 1px solid rgba(255, 92, 116, .6); pointer-events: none; direction: ltr; }
.minimap-corners { position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) left top / 22px 3px no-repeat, linear-gradient(#fff, #fff) left top / 3px 22px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 22px 3px no-repeat, linear-gradient(#fff, #fff) right bottom / 3px 22px no-repeat;
  opacity: .85; }
.minimap figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: .92rem; }
.minimap figcaption a { color: var(--red); font-weight: 700; }

.ab-global { padding: clamp(40px, 6vw, 72px) var(--gutter); background: #16191e; color: #fff; }
.ab-global-inner { display: flex; gap: 24px; align-items: flex-start; }
.ab-global h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; color: #fff; }
.ab-global p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; line-height: 1.75; max-width: 78ch; }

@media (max-width: 1000px) {
  .ab-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ab-mv-grid, .ab-find-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-steps, .ab-std-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-global-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .minimap-ping::before, .minimap-ping::after { animation: none; opacity: 0; }
  .ab-step { transition: none; }
  .ab-step:hover { transform: none; }
}

/* ======================================================================
   Contact page: the premium pitch beside the form (the form stays in view as you read)
   ====================================================================== */
@media (min-width: 981px) { .contact-page .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (min-width: 981px) {
  .contact-page .contact-main { position: sticky; top: 120px; }
}
.contact-pitch {
  position: relative; padding: clamp(26px, 3vw, 36px); border-radius: 18px; overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, #fff7f8 100%); border: 1px solid #f3d3d9; border-top: 4px solid var(--red);
  box-shadow: 0 18px 40px rgba(126, 10, 27, .1);
}
.contact-pitch::after {
  content: "天使"; position: absolute; right: -10px; bottom: -34px; font: 900 7.5rem/1 var(--font-ja); color: var(--red); opacity: .045; pointer-events: none;
}
html[dir="rtl"] .contact-pitch::after { right: auto; left: -10px; }
.pitch-kicker { font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
html[dir="rtl"] .pitch-kicker, html:lang(ja) .pitch-kicker, html:lang(zh) .pitch-kicker, html:lang(ko) .pitch-kicker { letter-spacing: .03em; }
.pitch-title { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 900; line-height: 1.2; color: var(--ink); margin-bottom: 16px; text-wrap: balance; }
.contact-pitch p { color: var(--text); font-size: 1rem; line-height: 1.75; margin-bottom: 14px; }
.contact-pitch .pitch-lead { font-size: 1.08rem; color: var(--ink); }
html:not([dir="rtl"]):not(:lang(ja)):not(:lang(zh)):not(:lang(ko)) .pitch-lead::first-letter {
  float: left; font-size: 3.3em; line-height: .9; font-weight: 900; color: var(--red); margin: 4px 10px 0 0;
}
.contact-pitch h3 { font-size: 1.12rem; font-weight: 900; color: var(--ink); margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.contact-pitch h3::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red); flex: none; }
.pitch-why, .pitch-next { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pitch-why li { position: relative; padding-inline-start: 30px; color: var(--text); line-height: 1.6; }
.pitch-why li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  -webkit-mask: radial-gradient(circle, #000 0 100%); mask: none;
}
.pitch-why li::after { content: ""; position: absolute; inset-inline-start: 7px; top: 7px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.pitch-next { counter-reset: n; }
.pitch-next li { counter-increment: n; position: relative; padding: 12px 14px; padding-inline-start: 52px; border-radius: 12px; background: #fff; border: 1px solid #f0d4d9; color: var(--text); line-height: 1.6; }
.pitch-next li::before {
  content: counter(n); position: absolute; inset-inline-start: 12px; top: 12px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 900; color: #fff; background: linear-gradient(135deg, #e0263f, #7e0a1b);
}
.contact-pitch .pitch-omote { padding: 14px 16px; border-radius: 12px; background: #16191e; color: rgba(255, 255, 255, .9); }
.pitch-sign { margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid #f0d4d9; display: grid; gap: 4px; }
.pitch-sign span { font-style: italic; color: var(--text); }
.pitch-sign b { color: var(--red); font-weight: 900; }

/* ======================================================================
   Homepage feature content area: full-screen dark red, like the consultation form card.
   Text runs down the left; a large photo floats to the right.
   ====================================================================== */
.feature {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .86);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: clamp(44px, 5vw, 72px) var(--gutter);
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(200, 16, 46, .28), transparent 70%),
    radial-gradient(700px 480px at 0% 100%, rgba(126, 10, 27, .35), transparent 70%),
    linear-gradient(160deg, #1a080c 0%, #12050a 55%, #0d0406 100%);
  border-top: 1px solid rgba(255, 70, 95, .28);
}
.feature::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #ff2d4f, #c8102e, #ff2d4f, transparent);
  box-shadow: 0 0 18px rgba(255, 45, 79, .6);
}
.feature-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; }
.feature-inner::after { content: ""; display: block; clear: both; }
.feature-figure {
  float: right; width: min(50%, 600px); margin: 4px 0 20px clamp(28px, 4vw, 56px);
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 70, 95, .28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 110, 130, .12);
}
.feature-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 68% 70%; }
.feature .eyebrow { color: #ffb3bf; }
.feature h2 {
  color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; text-wrap: balance;
  margin-bottom: 18px; padding-bottom: 16px; position: relative;
}
.feature h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 55px; height: 3px; background: #ff5c74; }
.feature h3 { color: #f3d6db; font-size: 1.2rem; font-weight: 800; margin: 30px 0 12px; }
.feature p { margin: 0 0 14px; font-size: .92rem; line-height: 1.65; max-width: 62ch; }
.feature .feature-lead { color: #fff; font-size: 1.05rem; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 62ch; font-size: .92rem; }
.feature-list li { position: relative; padding-left: 22px; line-height: 1.6; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: #ff2d4f; box-shadow: 0 0 10px rgba(255, 45, 79, .6); }
@media (max-width: 760px) {
  .feature { min-height: 0; }
  .feature-figure { float: none; width: 100%; margin: 0 0 28px; }
  .feature-figure img { aspect-ratio: 4 / 3; }
}

/* Feature areas 2 and 3: alternate the photo side and the colour scheme. */
.feature-body { display: flow-root; }
.feature--left .feature-figure { float: left; margin: 4px clamp(28px, 4vw, 56px) 20px 0; }
#feature-2 .feature-figure img { object-position: 42% 62%; }
#feature-3 .feature-figure img { object-position: 42% 66%; }

/* Charcoal and black */
.feature--charcoal {
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(200, 16, 46, .14), transparent 70%),
    linear-gradient(160deg, #2a2b30 0%, #18191c 55%, #0b0b0d 100%);
  border-top-color: rgba(255, 255, 255, .1);
}
.feature--charcoal::before { background: linear-gradient(90deg, transparent, #8a8d94, #c8102e, #8a8d94, transparent); box-shadow: 0 0 14px rgba(200, 16, 46, .35); }
.feature--charcoal .feature-figure { border-color: rgba(255, 255, 255, .14); }
.feature--charcoal .eyebrow { color: #ff8597; }
.feature--charcoal h2::after { background: #c8102e; }

/* White and light gray */
.feature--light {
  color: var(--text);
  background:
    radial-gradient(800px 500px at 90% 10%, rgba(200, 16, 46, .06), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #f5f5f7 55%, #e9eaed 100%);
  border-top-color: #e1e2e6;
}
.feature--light::before { background: linear-gradient(90deg, transparent, #c8102e, transparent); box-shadow: none; }
.feature--light .feature-figure { border-color: #dcdde1; box-shadow: 0 24px 50px rgba(22, 25, 30, .16); }
.feature--light .eyebrow { color: var(--red); }
.feature--light h2 { color: var(--ink); }
.feature--light h2::after { background: var(--red); }
.feature--light .feature-lead { color: var(--ink); }
.feature--light .feature-list li::before { background: var(--red); box-shadow: none; }

@media (max-width: 760px) {
  .feature--left .feature-figure { float: none; margin: 0 0 28px; }
}

/* Hero: the frosted white panel runs the full width of the screen; its content stays in a centred column. */
.hero-card {
  width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter));
  border-radius: 0; border-left: 0; border-right: 0;
  padding-inline: max(var(--gutter), calc((100% - 736px) / 2));
}

/* Feature areas in right-to-left languages (Arabic, Farsi): underline and list markers on the reading side */
.feature h2::after { left: auto; inset-inline-start: 0; }
.feature-list li { padding-left: 0; padding-inline-start: 22px; }
.feature-list li::before { left: auto; inset-inline-start: 0; }

/* Feature areas: white and light gray for readability, red only as an accent. Area 2 is the light gray one. */
.feature--gray {
  background:
    radial-gradient(800px 500px at 10% 15%, rgba(200, 16, 46, .05), transparent 70%),
    linear-gradient(160deg, #f4f4f6 0%, #eceef1 100%);
}
.feature--light .feature-figure { border-color: #dcdde1; }
.feature--light p, .feature--light .feature-list { color: var(--text); }

/* ======================================================================
   Light content areas across the whole site: white and light gray backgrounds, dark text, red only as an accent.
   The homepage consultation section (.contact, near the footer) keeps its dark red look on purpose.
   These sections were designed dark, with many differently weighted rules, so this block uses !important,
   scoped to the sections listed here.
   ====================================================================== */
: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) {
  background: #fff !important; color: var(--text) !important; text-shadow: none !important;
}
/* light gray ones, so neighbouring areas stay distinct */

/* ======================================================================
   Homepage parallax bands: full-width photographs between the Design,
   Development and Optimization panels. The inner image layer is taller
   than the band; app.js shifts it with translate3d on scroll. Do not use
   background-attachment: fixed (broken on iOS).
   ====================================================================== */
.parallax {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--px-h, 70vh);
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  background: #12050a;
}
.parallax-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.parallax-layer {
  position: absolute;
  left: 0;
  width: 100%;
  top: -30%;
  height: 160%;
  will-change: transform;
  pointer-events: none;
}
.parallax-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px-pos, center center);
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--px-overlay, #1a080c);
  opacity: var(--px-op, 0.4);
  pointer-events: none;
}
.parallax[data-overlay="gradient"] .parallax-overlay {
  background: var(--px-grad, var(--px-overlay, #1a080c));
  opacity: 1;
}
.parallax-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  text-align: center;
  pointer-events: none;
}
.parallax-title {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.parallax-text {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 40em;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
/* site-theme.css greys out every heading; the band titles sit on a photo, so keep them white */
.parallax h2.parallax-title:not(#_):not(#__),
.parallax h2.parallax-title:not(#_):not(#__) * { color: #fff !important; }
/* Band effects (Tenshi Editor › Parallax › Effects). Settings come in as data-fx-* attributes and --pxl-* / --pxg-*
   properties; app.js adds .pxfx-on when it runs the effects and .pxfx-in once the band is on screen, so without
   JavaScript the band simply shows in color with a plain heading. */
.parallax-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Fireflies (Tenshi Editor › Parallax › Effects › Fireflies): app.js adds the .pxff dots; each drifts on its own
   random path (--x1..--y3, --ffd) while its glow pulses (--ff-pulse × --ffp). Paused while the band is off screen. */
.parallax-fireflies { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--ff-op, .85); }
.pxff {
  position: absolute; width: var(--ffs, 4px); height: var(--ffs, 4px); margin: calc(var(--ffs, 4px) / -2);
  animation: pxff-drift var(--ffd, 20s) ease-in-out var(--ffdl, 0s) infinite alternate; will-change: transform;
}
.pxff i {
  --ffc: var(--ff-color, #f5e663); --ffg: var(--ff-glow, 16px);
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, #fffbe0 0 30%, var(--ffc) 70%);
  box-shadow: 0 0 calc(var(--ffg) / 4) calc(var(--ffg) / 10) var(--ffc),
    0 0 var(--ffg) calc(var(--ffg) / 4) color-mix(in srgb, var(--ffc) 90%, transparent),
    0 0 calc(var(--ffg) * 2) calc(var(--ffg) / 2) color-mix(in srgb, var(--ffc) 40%, transparent);
  animation: pxff-pulse calc(var(--ff-pulse, 2.5s) * var(--ffp, 1)) ease-in-out var(--ffpl, 0s) infinite;
}
.parallax-fireflies.is-paused .pxff, .parallax-fireflies.is-paused .pxff i { animation-play-state: paused; }
@keyframes pxff-drift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(var(--x1), var(--y1), 0); }
  66% { transform: translate3d(var(--x2), var(--y2), 0); }
  100% { transform: translate3d(var(--x3), var(--y3), 0); }
}
@keyframes pxff-pulse { 0%, 100% { opacity: .25; transform: scale(.75); } 45% { opacity: 1; transform: scale(1); } 60% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .parallax-fireflies { display: none; } }
@media print { .parallax-fireflies { display: none; } }
/* Snow (Tenshi Editor › Parallax › Effects › Snow): flakes drawn by app.js on this canvas; none for reduced motion. */
.parallax-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .parallax-snow { display: none; } }
@media print { .parallax-snow { display: none; } }
.pxl-w { display: inline-block; white-space: nowrap; }
.pxl-c { display: inline-block; }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on .pxl-split .pxl-c {
  opacity: 0;
  transition: opacity calc(var(--pxl-dur, .8s) * .75) ease-out, transform var(--pxl-dur, .8s) cubic-bezier(.16, 1, .3, 1), filter var(--pxl-dur, .8s) ease-out;
  transition-delay: calc(var(--pxl-delay, .1s) + var(--i, 0) * var(--pxl-step, 40ms));
}
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-letters="rise"] .pxl-split .pxl-c { transform: translate3d(0, .5em, 0) rotate(6deg); transform-origin: 0 100%; }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-letters="blur"] .pxl-split .pxl-c { filter: blur(10px); transform: scale(1.25); }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-letters="flip"] .pxl-split .pxl-c { transform: perspective(600px) translate3d(0, .35em, 0) rotateX(-80deg); transform-origin: 50% 100%; }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on.pxfx-in .pxl-split .pxl-c { opacity: 1; transform: none; filter: none; }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-gray] .parallax-layer img {
  filter: grayscale(var(--pxg-amt, 1));
  transition: filter var(--pxg-dur, 1.8s) ease var(--pxg-delay, .25s);
}
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on.pxfx-in[data-fx-gray="enter"] .parallax-layer img { filter: grayscale(0); }
:is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-gray="scroll"] .parallax-layer img {
  filter: grayscale(calc(var(--pxg-amt, 1) * (1 - var(--pxg-p, 0))));
  transition: filter .15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-rain { display: none; }
  :is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on .pxl-split .pxl-c { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  :is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-gray] .parallax-layer img { filter: none !important; transition: none !important; }
}
@media print {
  .parallax-rain { display: none; }
  :is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on .pxl-split .pxl-c { opacity: 1 !important; transform: none !important; filter: none !important; }
  :is(.parallax, .px-hero, .px-panel, [data-pxfx]).pxfx-on[data-fx-gray] .parallax-layer img { filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    top: 0;
    height: 100%;
    will-change: auto;
    transform: none !important;
  }
}

:is(.svc-hero, .svc-cta, section.band, .ab-global, .prj-fair, .pat-section, .svc-benefits) { background: #f4f4f6 !important; }
.svc-hero { border-bottom: 3px solid var(--red); }
section.band { border-block: 1px solid #e3e4e8; }

/* decorations drawn for dark backgrounds */
:is(.svc-hero, section.band, section.services, .pat-section, .team-section, .tech-section, .ab-web)::before,
:is(.svc-hero, section.band, section.services, .pat-section, .team-section, .tech-section, .ab-web)::after { display: none !important; }
.svc-rain, .band-line, .band-sheen { display: none !important; }
.svc-hero .page-art { color: var(--red); opacity: .55; }

/* text */
: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)
  :is(h1, h2, h3, h4, h5, strong, b, dt, .band-text, .band-unit, .band-stage, .team-name, .tech-name, .tech-group-title, .pat-sub) { color: var(--ink) !important; text-shadow: none !important; }
: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)
  :is(p, li, span, small, dd, figcaption, label, code, .section-intro, .team-role, .tech-desc, .tech-group-text) { color: var(--text) !important; text-shadow: none !important; }
section.band .band-list li:not(.band-text) + li:not(.band-text) { border-left-color: var(--red) !important; }

/* red accents */
: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)
  :is(.eyebrow, .pat-num, .team-view, .team-view span, a:not(.btn):not(.btn-more):not(.prj-btn)) { color: var(--red) !important; }
.svc-hero :is(.breadcrumbs, nav) a, .svc-hero li a { color: var(--red) !important; }
: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)
  :is(.ab-icon, .ab-check, .benefit-icon, .svc-icon) { background: #fbe8eb !important; color: var(--red) !important; border-color: #f3c6cd !important; box-shadow: none !important; }
:is(.ab-icon, .ab-check, .benefit-icon, .svc-icon) :is(svg, span) { color: var(--red) !important; }

/* cards: white with a hairline and a soft shadow */
: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) {
  background: #fff !important; border: 1px solid #e3e4e8 !important; box-shadow: 0 10px 28px rgba(22, 25, 30, .07) !important; color: var(--text) !important;
}

/* buttons and fields */
: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; color: #fff !important; box-shadow: 0 6px 16px rgba(200, 16, 46, .22) !important; }
:is(.btn-primary, .svc-cta .btn-light) * { color: #fff !important; }
:is(section.services, .red-section) .btn-more,
.svc-benefits .prj-btn { background: #fff !important; border: 1px solid var(--red) !important; color: var(--red) !important; }
:is(section.services, .red-section) .btn-more *, .svc-benefits .prj-btn * { color: var(--red) !important; }
:is(.tech-section, .pat-section) :is(input, select, textarea) { background: #fff !important; color: var(--ink) !important; border: 1px solid #cfd2d8 !important; }
:is(.tech-section, .pat-section) :is(input, textarea)::placeholder { color: #8a8f99 !important; }

/* Light content areas, part 2: cards and panels that carried their own dark or red backgrounds */
:is(.prj-card, .name-card, .chat-card) {
  background: #fff !important; border: 1px solid #e3e4e8 !important; border-top: 3px solid var(--red) !important;
  box-shadow: 0 10px 28px rgba(22, 25, 30, .08) !important; color: var(--text) !important;
}
:is(.prj-card, .name-card, .chat-card) :is(h2, h3, h4, strong, b) { color: var(--ink) !important; text-shadow: none !important; }
:is(.prj-card, .name-card, .chat-card) :is(p, li:not(.prj-chip), span:not(.prj-group-icon):not(.ab-icon), small, dd, dt) { color: var(--text) !important; text-shadow: none !important; }
:is(.prj-card, .name-card, .chat-card) a:not(.btn) { color: var(--red) !important; }
.prj-section .prj-intro, .prj-section .section-intro { color: var(--text) !important; }
.prj-section .section-title { color: var(--ink) !important; }
.prj-btn-view { background: #fff !important; border: 1px solid var(--red) !important; color: var(--red) !important; }
.prj-btn-view * { color: var(--red) !important; }
.contact-pitch .pitch-omote { background: #f4f4f6 !important; color: var(--text) !important; border-left: 3px solid var(--red); }
.contact-page .btn-dark, .chat-card .btn-dark { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
section.band :is(.band-unit, .band-stage, .band-text) { color: var(--ink) !important; }
.name-card .name-kanji { color: var(--red) !important; opacity: .08 !important; }
.tech-filter button { background: #fff !important; border: 1px solid #e3b5bd !important; color: var(--red) !important; box-shadow: none !important; }
.tech-filter button:hover { border-color: var(--red) !important; }
.tech-filter button[aria-pressed="true"] { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }

/* Headings in Roboto everywhere (h1 to h6). font-family only, so each heading keeps its own size and weight. */
:is(h1, h2, h3, h4, h5, h6) { font-family: var(--font-heading) !important; }

/* ---------- Stock ticker (top of every page; filled by app.js from data/ticker.json) ---------- */
.ticker[hidden] { display: none; }
.ticker { display: flex; align-items: center; gap: 14px; background: var(--white); color: #6b7280; border-bottom: 1px solid var(--line); font-size: .8rem; line-height: 1; padding: 0 var(--gutter); height: 34px; overflow: hidden; }
.ticker-label { margin: 0; flex: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; display: flex; align-items: baseline; gap: 8px; padding-right: 14px; border-right: 1px solid var(--line); }
.ticker-label small { font-weight: 600; text-transform: none; letter-spacing: 0; color: #8b919a; font-size: .74rem; }
.ticker-window { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: tk-scroll var(--tk-duration, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tk-item { display: flex; align-items: baseline; gap: 6px; padding: 0 22px; white-space: nowrap; border-right: 1px solid var(--line); }
.tk-name { font-weight: 700; color: #6b7280; }
.tk-code { color: #8b919a; font-weight: 600; font-size: .72rem; }
.tk-price { font-variant-numeric: tabular-nums; }
.tk-chg { font-variant-numeric: tabular-nums; font-weight: 700; }
.tk-chg.up { color: #15803d; }
.tk-chg.down { color: #c8102e; }
.tk-chg.flat { color: #8b919a; }
.ticker-time { margin: 0; flex: none; color: #8b919a; font-size: .74rem; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 680px) { .ticker-label small, .ticker-time { display: none; } .ticker { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-window { overflow-x: auto; mask-image: none; } }

/* ---------- News page ---------- */
.news-copy p { font-size: 1.05rem; line-height: 1.75; }
.news-head-text { max-width: 62ch; color: var(--muted); margin-bottom: 22px; }
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.news-tabs [role=tab] { appearance: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s, border-color .15s; }
.news-tabs [role=tab]:hover { border-color: var(--red); color: var(--red); }
.news-tabs [role=tab][aria-selected=true] { background: var(--red); border-color: var(--red); color: #fff; }
.news-tabs [role=tab]:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.news-tab-count { font-size: .75rem; background: rgba(0, 0, 0, .08); border-radius: 999px; padding: 2px 8px; }
[aria-selected=true] .news-tab-count { background: rgba(255, 255, 255, .22); }
.news-panel:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; border-radius: 6px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.news-item:hover { box-shadow: var(--shadow); }
.news-item:first-child { grid-column: 1 / -1; flex-direction: row; }
.news-item:first-child .news-fig { flex: 0 0 48%; }
.news-item:first-child .news-fig img { height: 100%; aspect-ratio: auto; min-height: 260px; }
.news-item:first-child h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.news-fig, .blog-fig { margin: 0; position: relative; background: #2a0710; }
.news-fig img, .blog-fig img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.img-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 5px; font-size: .68rem; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-credit a { color: #fff; }
.news-body { padding: 18px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.news-item h3 { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.news-text { margin: 0; line-height: 1.6; }
.news-excerpt { margin: 2px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--red); color: var(--muted); font-size: .92rem; font-style: italic; }
.news-excerpt p { margin: 0; }
.news-source { margin: auto 0 0; padding-top: 8px; font-size: .84rem; color: var(--muted); font-weight: 700; }
.news-source a { font-weight: 700; }
.news-note { margin-top: 22px; font-size: .85rem; color: var(--muted); }
.news-updated { white-space: nowrap; }

/* ---------- Blog page ---------- */
.blog-note { color: var(--muted); margin-bottom: 28px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease; }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.blog-card.is-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; background: linear-gradient(135deg, var(--red-dark), var(--red)); border-color: transparent; color: #fff; }
.blog-card.is-feature .blog-fig img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.blog-card.is-feature .blog-body { padding: clamp(24px, 3.5vw, 40px); justify-content: center; }
.blog-card.is-feature h3, .blog-card.is-feature h3 a, .blog-card.is-feature .blog-meta, .blog-card.is-feature .blog-intro, .blog-card.is-feature .blog-more p, .blog-card.is-feature .blog-read, .blog-card.is-feature .blog-sources, .blog-card.is-feature .blog-sources a { color: #fff; }
.blog-card.is-feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.blog-card.is-feature .blog-cat { background: rgba(255, 255, 255, .18); color: #fff; }
.blog-card.is-feature summary { color: #fff; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.blog-cat { padding: 3px 10px; border-radius: 999px; background: #fff4f6; color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; }
.blog-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-intro { margin: 0; line-height: 1.6; }
.blog-read { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.blog-read::after { content: "→"; }
.blog-read:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-read:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.blog-card.is-feature .blog-read { color: #fff; }
.blog-more summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.blog-more summary::-webkit-details-marker { display: none; }
.blog-more summary::after { content: "→"; transition: transform .2s ease; }
.blog-more[open] summary::after { transform: rotate(90deg); }
.blog-more summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.blog-more .blog-close, .blog-more[open] .blog-open { display: none; }
.blog-more[open] .blog-close { display: inline; }
.blog-more p { margin: 12px 0 0; line-height: 1.65; }
.blog-sources { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.blog-card.is-feature .blog-sources { border-top-color: rgba(255, 255, 255, .3); }
.blog-sources-title { margin: 0 !important; font-weight: 800; }
.blog-ai { margin: 4px 0 0 !important; font-size: .8rem; opacity: .85; font-style: italic; }
.blog-sources ul { margin: 6px 0 0; padding-left: 18px; }
.blog-sources li { margin: 4px 0; line-height: 1.45; }
.blog-src-pub { opacity: .8; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .news-list, .blog-grid { grid-template-columns: 1fr; }
  .news-item:first-child { flex-direction: column; }
  .news-item:first-child .news-fig { flex: none; }
  .news-item:first-child .news-fig img, .blog-card.is-feature .blog-fig img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .blog-card.is-feature { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .news-item, .blog-card, .blog-more summary::after, .news-tabs [role=tab] { transition: none; } }

/* ---------- Blog post page ---------- */
.blog-post-page .svc-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.blog-post-page .svc-hero-lead { max-width: 62ch; }
.blog-post-page .svc-hero .blog-meta { color: rgba(255, 255, 255, .85); margin: 0 0 12px; }
.blog-post-page .svc-hero .blog-cat { background: rgba(255, 255, 255, .18); color: #fff; }
.blog-article { font-size: 1.05rem; line-height: 1.75; }
.blog-article h2 { font-family: var(--font-heading); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 800; margin: 2rem 0 .8rem; line-height: 1.3; }
.blog-article h2:first-child { margin-top: 0; }
.blog-article h3 { font-family: var(--font-heading); font-size: clamp(1.08rem, 1.6vw, 1.25rem); font-weight: 800; margin: 1.4rem 0 .6rem; line-height: 1.35; }
.blog-article p { margin: 0 0 1rem; }
.blog-article ul, .blog-article ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.blog-article ul ul, .blog-article ol ul, .blog-article ul ol, .blog-article ol ol { margin: .3rem 0 .4rem; }
.blog-article li { margin: .4rem 0; line-height: 1.65; }
.blog-article a { color: var(--red); font-weight: 700; }
.blog-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: rgba(42, 7, 16, .06); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
.blog-table-wrap { margin: 0 0 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog-article table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.blog-article th, .blog-article td { text-align: left; vertical-align: top; padding: .7rem .85rem; border: 1px solid rgba(42, 7, 16, .12); }
.blog-article th { background: #f6f1f2; font-weight: 800; font-family: var(--font-heading); }
.blog-article tbody tr:nth-child(even) { background: rgba(42, 7, 16, .03); }
.blog-article .blog-post-fig { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; position: relative; background: #2a0710; }
.blog-article .blog-post-fig img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-back { margin-top: 2rem; }
.blog-back a { font-weight: 700; }

/* ---------- Portal page: two ways in ----------
   Two equal cards (client / admin). Shared padding, 4-row grid (icon, heading,
   text, button) so every row lines up. Subgrid keeps that alignment even when
   one language wraps more; without it, cards still share height and the
   buttons stay on the bottom row. Theme spacing is zeroed inside the cards. */
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.portal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: stretch;
  justify-items: stretch;
  gap: 12px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 22px;
  background: var(--pale);
  box-sizing: border-box;
  min-height: 0;
}
main .portal-card :is(.portal-card-head, h3, p, .btn):not(#_):not(#__) { margin-top: 0 !important; margin-bottom: 0 !important; }
.portal-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; width: 100%; }
main .portal-card :is(h3, .portal-card-head, .portal-card-text):not(#_):not(#__) { text-align: start !important; margin-inline: 0 !important; }
main .portal-card .portal-icon:not(#_):not(#__) { margin-inline: 0 !important; align-self: start; }
.portal-card p { margin: 0; line-height: 1.6; color: var(--text); }
.portal-card-head { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: 100%; min-width: 0; }
.portal-card-text { width: 100%; min-width: 0; }
.portal-card .btn { width: 100%; box-sizing: border-box; min-height: 50.6px; align-self: stretch; }
.portal-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--red); justify-self: start; }
.portal-icon svg { width: 30px; height: 30px; }
.portal-state { font-size: .82rem; font-weight: 700; color: var(--muted); background: #fff; border-radius: 999px; padding: 4px 12px; width: fit-content; }
.portal-state:empty { display: none; }
.portal-card--admin { background: var(--ink); }
.portal-card--admin h3, .portal-card--admin p { color: #fff !important; }
.portal-card--admin p { opacity: .85; }
.portal-card--admin .portal-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.portal-card--admin .portal-state { background: rgba(255, 255, 255, .12); color: #fff; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 721px) {
    main .portal-section .portal-grid:not(#_) {
      grid-template-rows: auto auto 1fr auto;
      column-gap: clamp(19.72px, 2.58vw, 34px) !important;
      row-gap: 12px !important;
    }
    .portal-card { grid-template-rows: subgrid; grid-row: span 4; }
  }
}
@media (max-width: 720px) {
  main .portal-section .portal-grid:not(#_) {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: clamp(19.72px, 2.58vw, 34px) !important;
  }
  .portal-card { grid-template-rows: auto auto 1fr auto; grid-row: auto; gap: 12px; }
}

/* Homepage slogan: vertically centred in the white space between the hero and the service cards
   (equal space above and below; the services section adds none of its own on top). */
section.band { padding-block: clamp(56px, 6.6vw, 96px) !important; }
/* stronger than the Design tab's section spacing in site-theme.css (main :is(...):not(#_)) */
main section.band + section.services:not(#_):not(#__) { padding-top: 0 !important; }

/* ======================================================================
   Menu on its own row (phones, tablets, or a stacked header): always one straight line.
   If it is wider than the screen it scrolls sideways (no scrollbar), with soft fades on the side that has more,
   and app.js (navRow) scrolls the current page's item into view. Dropdowns can't open inside a scrolling row, so there
   each dropdown's pages are shown in the row right after their parent.
   ====================================================================== */
@media (max-width: 860px) {
  .site-header.site-header .main-nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .site-header.site-header .main-nav > ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0 2px; width: max-content; margin-inline: auto; }
  .site-header.site-header .main-nav > ul > li { flex: none; }
  .site-header.site-header .main-nav > ul > li > a { padding: 9px clamp(6px, 2vw, 10px); font-size: clamp(.82rem, 2.05vw, .98rem); }
  .site-header.site-header .main-nav .has-sub > a::before { display: none; }
  /* Dropdown pages follow their parent in the row, smaller and lighter after a thin divider ("About | Team | Technology"),
     so every page can be reached with a tap; no dropdown has to open inside the scrolling row. */
  .site-header.site-header .main-nav .has-sub { display: flex; align-items: center; }
  .site-header.site-header .main-nav .sub-nav {
    position: static; display: flex; align-items: center; gap: 0; min-width: 0; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .site-header.site-header .main-nav .sub-nav::before { display: none; }
  .site-header.site-header .main-nav .sub-nav li { display: flex; align-items: center; flex: none; margin: 0; }
  .site-header.site-header .main-nav .sub-nav li::before { content: ""; flex: none; width: 1px; height: .95em; background: rgba(61, 66, 73, .22); }
  .site-header.site-header .main-nav .sub-nav a {
    padding: 9px clamp(5px, 1.6vw, 8px); border-radius: 0; font-size: clamp(.74rem, 1.85vw, .88rem); font-weight: 400;
    color: var(--muted, #7a8088); background: none; outline-offset: -2px;
  }
  .site-header.site-header .main-nav .sub-nav a:hover { color: var(--ink); background: none; }
  .site-header.site-header .main-nav .sub-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: none; }
  .site-header.site-header .main-nav .sub-nav a:focus-visible { outline: 2px solid var(--red); color: var(--ink); background: none; }
}
.site-header.is-stacked .main-nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.site-header.is-stacked .main-nav > ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0 2px; width: max-content; margin-inline: auto; }
.site-header.is-stacked .main-nav > ul > li { flex: none; }
.site-header.is-stacked .main-nav .sub-nav, .site-header.is-stacked .main-nav .has-sub > a::before { display: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav.has-more-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.main-nav.has-more-end { -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
.main-nav.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* On desktop the menu doesn't scroll, but the About / News / Contact dropdowns stick out past its edge, so app.js can
   think there is more to scroll to; never fade (mask) the row there, or the dropdowns would be cut off. */
@media (min-width: 861px) { .site-header:not(.is-stacked) .main-nav { -webkit-mask-image: none; mask-image: none; } }
.client-portal-button {
    display: inline-block;
    padding: 14px 28px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #374151;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.client-portal-button:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}

/* =========================================
   TENSHI SYSTEMS - HORIZONTAL BRAND LOGO
   ========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.brand-logo,
.site-header.is-compact .brand-logo,
.site-header.is-tight .brand-logo {
    display: block;
    width: clamp(99px, 10.9vw, 141px);   /* the two-tone lockup (601 x 186): same rendered height as the old 300 x 71 wordmark */
    height: auto;
    max-width: 100%;
    object-fit: contain;
    flex: none;
}

.brand .logo-dazzle {
    display: none;
}

@media (max-width: 600px) {
    .brand-logo,
    .site-header.is-compact .brand-logo,
    .site-header.is-tight .brand-logo {
        width: 99px;
    }
}


/* Tenshi - Compact Language Selector (50% smaller) */

.lang-current {
    min-height: 32px !important;
    gap: 7px !important;
    padding: 5px 10px 5px 7px !important;
    font-size: 0.65rem !important;
}

.lang-current .flag {
    width: 24px !important;
}

.lang-caret {
    width: 11px !important;
    height: 11px !important;
}

/* Dropdown menu */
.lang-menu {
    min-width: 120px !important;
    padding: 3px !important;
    top: calc(100% + 7px) !important;
    border-radius: 7px !important;
}

.lang-menu button {
    min-height: 26px !important;
    padding: 4px 6px !important;
    gap: 7px !important;
    font-size: 0.525rem !important;
}

.lang-menu .flag {
    width: 18px !important;
}

.lang-check {
    width: 8px !important;
    height: 8px !important;
}

/* ======================================================================
   Interior page headers with a photograph (Tenshi Editor › Parallax › Interior page headers; data/parallax.json
   "pageHeader", written by tools/build-pages.mjs heroPx). The light-gray title area becomes a full-width photo
   with the homepage bands' parallax layer, overlay and effects (app.js); text turns white over the overlay.
   The :not(#_) pairs outrank the light-section rules above and site-theme.css.
   ====================================================================== */
.svc-hero.px-hero:not(#_):not(#__) {
  position: relative; overflow: hidden; isolation: isolate;
  background: #12050a !important; color: #fff !important; border-bottom: 0 !important;
  min-height: var(--px-h, auto);
  display: flex; flex-direction: column; justify-content: center;
}
.px-hero .svc-hero-inner { width: 100%; }
.px-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.svc-hero.px-hero:not(#_):not(#__) :is(h1, h1 *) { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .45) !important; }
.svc-hero.px-hero:not(#_):not(#__) :is(p, li, span, small, time, .svc-hero-lead) { color: rgba(255, 255, 255, .92) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .5) !important; }
.svc-hero.px-hero:not(#_):not(#__) .crumbs a {
  color: #fff !important; opacity: 1; font-weight: 700;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .75); text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.svc-hero.px-hero:not(#_):not(#__) .crumbs a:is(:hover, :focus-visible) { color: #ffd6dd !important; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.svc-hero.px-hero:not(#_):not(#__) .crumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.svc-hero.px-hero:not(#_):not(#__) .crumbs [aria-current] { color: #fff !important; }
.svc-hero.px-hero:not(#_):not(#__) .crumbs li + li::before { color: #fff; opacity: .7; }
.svc-hero.px-hero:not(#_):not(#__) .page-art { color: #fff !important; opacity: .28; }
.svc-hero.px-hero:not(#_):not(#__) .blog-cat { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
.svc-hero.px-hero:not(#_):not(#__) .blog-meta :is(span, time) { color: rgba(255, 255, 255, .88) !important; }

/* ======================================================================
   Homepage content panel pictures (Tenshi Editor › Parallax › Content panel images; data/parallax.json "panels",
   written by tools/build-pages.mjs panelPx). The rounded frame keeps exactly the size of the plain picture
   (the viewport takes the picture's old aspect ratio); inside it the picture is a little taller than the frame
   and app.js moves it on scroll. Overlay, rain, snow and fireflies sit inside the frame and are clipped by it.
   ====================================================================== */
.feature-figure.px-panel { position: relative; isolation: isolate; }
.px-panel .parallax-viewport { position: relative; inset: auto; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: inherit; }
.px-panel .parallax-layer { top: -12%; height: 124%; }
.px-panel .parallax-layer img:not(#_) { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--px-pos, center center); border-radius: 0; }
.px-panel[data-overlay="gradient"] .parallax-overlay { background: var(--px-grad, var(--px-overlay, #1a080c)); opacity: 1; }
@media (max-width: 760px) { .px-panel .parallax-viewport { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .px-panel .parallax-layer { top: 0; height: 100%; } }

/* Red eyebrow labels sit just above their heading on every panel */
main .eyebrow:not(#_):not(#__) { margin-bottom: 0 !important; }
main .eyebrow + :is(h1, h2, h3):not(#_):not(#__) { margin-top: 30.5px !important; margin-bottom: 17.5px !important; }

/* Desktop: menu centered in the space between the logo and the language button */
@media (min-width: 861px) {
  .site-header:not(.is-stacked) .main-nav:not(#_):not(#__) { margin-inline: auto !important; }
}

/* About: mission/vision icon sits on the same line as its heading */
.ab-mv-card:not(#_):not(#__) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; column-gap: 16px !important; align-items: center !important; }
.ab-mv-card:not(#_):not(#__) > .ab-icon { grid-column: 1 !important; margin: 0 !important; }
.ab-mv-card:not(#_):not(#__) > h2 { grid-column: 2 !important; margin: 0 !important; }
.ab-mv-card:not(#_):not(#__) > p { grid-column: 1 / -1 !important; margin-top: 14px !important; }

/* About: value card icon sits on the same line as its heading */
.value-card:not(#_):not(#__) { display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; column-gap: 14px !important; align-items: center !important; align-content: start !important; text-align: start !important; }
.value-card:not(#_):not(#__) > .value-icon { grid-column: 1 !important; margin: 0 !important; width: 44px !important; height: 44px !important; }
.value-card:not(#_):not(#__) > h3 { grid-column: 2 !important; margin: 0 !important; text-align: start !important; }
.value-card:not(#_):not(#__) > p { grid-column: 1 / -1 !important; margin-top: 14px !important; text-align: start !important; }

/* Card grids: the site-wide "li + li" spacing pushed every card but the first down; grid gap already spaces them */
main :is(.services-grid,.offer-grid,.benefit-grid,.blog-grid,.news-list,.portal-grid,.prj-grid,.prj-ed-grid,.svc-grid,.svc-tech-grid,.team-grid,.tech-grid,.value-grid,.pat-grid,.ab-find-grid,.ab-focus-grid,.ab-mv-grid,.ab-std-grid,.svc-steps,.svc-other-list,.svc-detail-list) > li:not(#_):not(#__) { margin-top: 0 !important; }

/* Team cards: photo and text centered in the card */
.team-card:not(#_):not(#__) { align-items: center !important; text-align: center !important; }
.team-card:not(#_):not(#__) > .team-photo { width: 100% !important; }
.team-card:not(#_):not(#__) > .team-text { width: 100% !important; justify-items: center !important; text-align: center !important; padding-inline: 0 !important; }

/* Homepage services cards ("From Idea to Opportunity" set): airy but not empty, full content width, matched pictures.
   The big gap under the cards was two full section paddings stacked: .services padding-bottom (up to 168px) plus the
   next .feature section's padding-top (up to 168px), both from site-theme.css's section spacing, plus that feature's
   min-height: 100vh with its content centred, which added more empty space above its text on tall screens. */
main section.band:has(+ section.services):not(#_):not(#__) { padding-bottom: clamp(32px, 3.6vw, 52px) !important; }
main section#services.services:not(#_):not(#__) { padding-bottom: 0 !important; }
main section#services + section.feature:not(#_):not(#__) { padding-top: clamp(72px, 8.8vw, 120px) !important; min-height: 0 !important; }
#services .svc-carousel:not(#_):not(#__) { max-width: 1180px !important; }
#services .svc-set:not(#_):not(#__) { gap: clamp(16px, 1.8vw, 24px) !important; align-items: stretch !important; }
#services .service-card:not(#_):not(#__) { display: flex !important; flex-direction: column !important; height: 100% !important; padding: clamp(22px, 2.2vw, 30px) !important; }
#services .service-card:not(#_):not(#__) > h3 { margin: 0 0 clamp(14px, 1.4vw, 18px) !important; }
#services .service-card:not(#_):not(#__) > .service-pic {
  width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 16 / 10 !important;
  object-fit: cover !important; object-position: center 45% !important; border-radius: 14px !important; margin: 0 0 clamp(16px, 1.6vw, 22px) !important;
  mix-blend-mode: darken;   /* a picture with a near-white backdrop (the AI head) melts into the gray card instead of showing a pale box */
}
#services .service-card:not(#_):not(#__) > p { margin: 0 0 18px !important; }
#services .service-card:not(#_):not(#__) > .btn-more { margin-top: auto !important; }
@media (max-width: 719px) {
  #services .svc-set:not(#_):not(#__) { grid-template-columns: minmax(0, 1fr) !important; max-width: 520px !important; margin-inline: auto !important; }
}
@media (min-width: 720px) {
  #services .svc-set:not(#_):not(#__) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: none !important; }
}

/* Footer: the header's lockup as the footer logo, and the SDVOSB badge at the inline-end of the logo row
   (after the search box on wide screens; pinned to the top inline-end corner on phones and tablets). */
.site-footer .footer-brand .footer-logo:not(#_):not(#__) { width: auto !important; height: clamp(34px, 3.2vw, 42px) !important; max-width: 100%; }
.site-footer .footer-inner > .footer-badge:not(#_):not(#__) { order: 1; flex: none; display: block; width: auto; height: clamp(90px, 8.4vw, 112px); }
@media (max-width: 860px) {
  .site-footer .footer-inner > .footer-brand:not(#_):not(#__) { min-height: 72px; padding-inline-end: 88px; }
  .site-footer .footer-inner > .footer-badge:not(#_):not(#__) {
    position: absolute; top: 28px; inset-inline-end: var(--gutter, 16px); height: 72px;
  }
}

/* Footer: the search box sits right under the logo (inline-start column); the SDVOSB badge stays at the row's
   inline-end. No drop shadows inside the footer (the search box's inset well stays). */
.site-footer .footer-inner > .footer-brand:not(#_):not(#__) { flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer .footer-brand > .tse-finder:not(#_):not(#__) { position: relative; z-index: 6; width: 280px; max-width: 100%; margin: 0; }
.site-footer .footer-inner > .footer-badge:not(#_):not(#__) { margin-inline-start: auto; }
.site-footer .tse-finder__form:not(#_):not(#__),
.site-footer .tse-finder .tse-finder__list:not(#_):not(#__),
.site-footer .tse-finder .tse-finder__empty:not(#_):not(#__) { box-shadow: none !important; }
@media (max-width: 860px) {
  .site-footer .footer-inner > .footer-brand:not(#_):not(#__) { align-self: stretch; width: 100%; padding-inline-end: 0; min-height: 0; }
  .site-footer .footer-brand > .footer-logo:not(#_):not(#__) { margin-block: 19px; }   /* centred on the 72px badge row */
  .site-footer .footer-brand > .tse-finder:not(#_):not(#__) { width: 100%; }
}
