/* AZWork home: light, one-shot A-to-Z typography; the official logo is unchanged. */
.home .hero { width: calc(100% - 96px); max-width: 1080px; margin-inline: auto; display: grid; grid-template-columns: minmax(0,.48fr) minmax(0,.52fr); grid-template-areas: "kicker brand" "copy brand"; column-gap: 40px; padding: 62px 0 64px; align-items: center; }
.hero-kicker { grid-area: kicker; color: #414a45; font-size: 14px; margin: 0 0 22px; align-self: end; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; min-width: 0; text-align: left; }
.hero-statement { margin: 0; font-size: clamp(38px,3.6vw,48px); font-weight: 700; line-height: 1.23; letter-spacing: -.035em; }
.hero-statement > span { display: inline-block; }
.hero-description { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.hero-actions svg { transition: transform .18s; }
.hero-actions .primary-link:hover svg { transform: translateX(2px); }
.hero-actions .secondary-link:hover svg { transform: translateY(2px); }
.consultation-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.home-services { border-top: 1px solid var(--line); padding-top: 42px; padding-bottom: 80px; }
.home-services .section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.home-services .section-heading h2 { font-size: 30px; }
.home-services .section-heading > a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.service-list summary { display: grid; grid-template-columns: minmax(0,1fr) 280px 24px; gap: 24px; align-items: center; min-height: 94px; padding: 20px 0; }
.service-list summary::after { display: none; }
.service-list summary:hover .question { color: var(--deep-green); }
.question { font-size: 21px; font-weight: 600; }
.service-name { color: var(--muted); font-size: 13px; font-weight: 400; }
.service-list details[open] summary > svg { transform: rotate(45deg); }
.service-list .home-service-detail { padding: 0 48px 30px 8px; max-width: 760px; }
.home-service-detail p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.home-service-detail a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.approach { background: var(--surface); padding-block: 80px; }
.approach-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
.approach h2 { font-size: 36px; line-height: 1.5; }
.approach-copy p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.home-contact { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 82px; }
.home-contact h2 { font-size: 26px; }
.home-proof { border-top: 1px solid var(--line); }
.home-proof .proof-grid { margin-top: 36px; }
.home-service-detail a { min-height: 44px; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 1000px) and (min-width: 761px) {
 .home .hero { width: calc(100% - 64px); column-gap: 20px; padding-block: 46px; grid-template-columns: minmax(0,.48fr) minmax(0,.52fr); }
 .hero-statement { font-size: 36px; }
 .hero-actions { gap: 12px; }
 .hero-actions .primary-link { padding-inline: 16px; }
 .hero-actions .secondary-link { font-size: 13px; }
 .service-list summary { grid-template-columns: minmax(0,1fr) 225px 22px; gap: 16px; }
 .question { font-size: 18px; }
}
@media (max-width: 760px) {
 .home .hero { width: calc(100% - 44px); display: flex; flex-direction: column; padding: 22px 0 34px; }
 .hero-kicker { align-self: auto; text-align: center; font-size: 12px; margin: 0 0 2px; }
 .hero-copy { order: 2; width: 100%; text-align: center; }
 .hero-statement { font-size: 31px; line-height: 1.23; letter-spacing: -.035em; }
 .hero-description { font-size: 14px; margin-top: 22px; line-height: 1.85; }
 .hero-actions { justify-content: center; flex-wrap: nowrap; gap: 16px; margin-top: 22px; }
 .hero-actions .primary-link { font-size: 13px; padding-inline: 16px; gap: 12px; }
 .hero-actions .secondary-link { font-size: 12px; gap: 6px; }
 .hero-actions svg { width: 17px; height: 17px; }
 .consultation-note { font-size: 12px; max-width: 310px; margin: 14px auto 0; }
 .home-services { padding-top: 27px; padding-bottom: 46px; }
 .home-services .section-heading { gap: 10px; margin-bottom: 20px; }
 .home-services .section-heading h2 { font-size: 21px; }
 .home-services .section-heading > a { font-size: 12px; gap: 2px; }
 .home-services .section-heading > a svg { width: 15px; height: 15px; }
 .service-list summary { grid-template-columns: minmax(0,1fr) 20px; row-gap: 5px; min-height: 97px; padding-block: 20px; }
 .question { font-size: 17px; line-height: 1.8; }
 .service-name { grid-column: 1; grid-row: 2; padding-left: 8px; font-size: 12px; }
 .service-list summary > svg { grid-column: 2; grid-row: 1 / 3; width: 19px; height: 19px; }
 .service-list .home-service-detail { padding: 0 6px 25px; }
 .home-service-detail p { font-size: 14px; }
 .home-service-detail a { font-size: 13px; }
 .approach { padding-block: 45px; }
 .approach-inner { grid-template-columns: minmax(0,1fr); gap: 25px; }
 .approach h2 { font-size: 30px; }
 .approach-copy p { font-size: 14px; }
 .home-contact { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 48px; }
 .home-contact h2 { font-size: 22px; }
}
@media (max-width: 359px) {
 .hero-statement { font-size: 26px; }
 .hero-actions { gap: 10px; }
 .hero-actions .primary-link { gap: 6px; padding-inline: 11px; }
 .hero-actions .secondary-link { gap: 4px; }
 .hero-description { font-size: 13px; }
 .home-services .section-heading { display: block; }
 .home-services .section-heading > a { margin-top: 8px; }
 .question { font-size: 15px; }
}
@media (max-height: 740px) and (max-width: 760px) {
 .home .hero { padding-top: 16px; padding-bottom: 26px; }
 .hero-description { margin-top: 18px; }
 .hero-actions { margin-top: 18px; }
}

/* A/Z/W reuse the official SVG paths. The W follows the track until takeoff,
   backflips once outside the track clip and lands at its final logo position
   exactly when Z stops. Only transforms and opacity animate. */
.hero-brand-motion {
  --az-logo-width: 320px;
  --az-cell: calc(var(--az-logo-width) * .265);
  --az-run: 1.7s;
  --az-land-at: 1.42s;
  --az-land: .28s;
  --az-reveal-at: 1.9s;
  --az-reveal: .5s;
  --az-flip-at: 1.02s;
  --az-flip-duration: .68s;
  --az-flip-height: 48px;
  grid-area: brand;
  align-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 228px;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.hero-brand-motion .final-logo {
  display: block;
  width: var(--az-logo-width);
  max-width: 100%;
  height: auto;
  opacity: 1;
  position: relative;
  z-index: 1;
}
.alphabet-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: var(--az-logo-width);
  height: calc(var(--az-logo-width) * 80 / 342);
  opacity: 0;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", ui-rounded, "Noto Sans JP", sans-serif;
  font-size: calc(var(--az-logo-width) * .175);
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: #0b1728;
  white-space: nowrap;
}
.alphabet-anchor { position: absolute; inset: 0; transform-origin: 16% 55%; }
.alphabet-lettermark { display: block; width: var(--az-logo-width); height: auto; }
.alphabet-window {
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: calc(var(--az-logo-width) * 72 / 342);
  width: calc(var(--az-logo-width) * .9);
  overflow: hidden;
}
.alphabet-track { display: flex; align-items: center; width: max-content; height: 100%; }
.alphabet-track > span {
  --letter-x: 0em;
  --letter-y: 0em;
  --letter-tilt: 0deg;
  --letter-scale: 1;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 var(--az-cell);
  width: var(--az-cell);
  height: 100%;
  opacity: .48;
  transform: translate(var(--letter-x),var(--letter-y)) rotate(var(--letter-tilt)) scale(var(--letter-scale));
}
/* Avoid a regimented ticker without introducing random jumping or flashing. */
.alphabet-track > span:nth-child(6n+1) { --letter-x: -.03em; --letter-y: -.12em; --letter-tilt: -7deg; --letter-scale: .94; }
.alphabet-track > span:nth-child(6n+2) { --letter-x: .06em; --letter-y: .1em; --letter-tilt: 5deg; --letter-scale: 1.06; opacity: .6; }
.alphabet-track > span:nth-child(6n+3) { --letter-x: -.06em; --letter-y: -.05em; --letter-tilt: -3deg; --letter-scale: 1.02; }
.alphabet-track > span:nth-child(6n+4) { --letter-x: .04em; --letter-y: .14em; --letter-tilt: 8deg; --letter-scale: .91; opacity: .38; }
.alphabet-track > span:nth-child(6n+5) { --letter-x: -.04em; --letter-y: -.16em; --letter-tilt: -6deg; --letter-scale: 1.08; opacity: .55; }
.alphabet-track > span:nth-child(6n) { --letter-x: .03em; --letter-y: .04em; --letter-tilt: 3deg; --letter-scale: .97; }
.alphabet-track > .alphabet-z { opacity: 1; transform: none; }
.alphabet-z .alphabet-lettermark {
  position: absolute;
  top: 50%;
  left: calc(var(--az-logo-width) * -72 / 342);
  transform: translateY(-50%);
}
.hero-brand-motion.is-playing .alphabet-layer {
  opacity: 1;
  animation: az-letters-out .16s ease-out calc(var(--az-reveal-at) + .2s) both;
}
.hero-brand-motion.is-playing .alphabet-track {
  animation: az-alphabet-pass var(--az-run) linear both;
}
/* W is not clipped by alphabet-window; the track keeps an empty W cell.
   5.3603947L aligns the official W centre with the 22nd cell before takeoff. */
.alphabet-free-w { position: absolute; inset: 0; }
.alphabet-w-glyph { display: block; width: 100%; height: 100%; transform-origin: 54.73% 52.43%; }
.hero-brand-motion.is-playing .alphabet-free-w {
  animation: az-w-travel var(--az-run) linear both;
}
.hero-brand-motion.is-playing .alphabet-w-glyph {
  animation: az-w-backflip var(--az-flip-duration) cubic-bezier(.35,0,.65,1) var(--az-flip-at) both;
}
.hero-brand-motion.is-playing .alphabet-anchor {
  animation: az-anchor-settle var(--az-land) ease-out var(--az-land-at) both;
}
.hero-brand-motion.is-playing .alphabet-z {
  animation: az-endpoint-settle var(--az-land) ease-out var(--az-land-at) both;
}
.hero-brand-motion.is-playing .final-logo {
  animation: az-logo-reveal var(--az-reveal) cubic-bezier(.2,.6,.25,1) var(--az-reveal-at) both;
}
@keyframes az-alphabet-pass {
  0% { transform: translateX(0); }
  10% { transform: translateX(calc(-1 * var(--az-cell))); }
  /* Give W enough visible travel for its hop; keep the total duration. */
  60% { transform: translateX(calc(-19 * var(--az-cell))); }
  84% { transform: translateX(calc(-21 * var(--az-cell))); }
  94% { transform: translateX(calc(-23 * var(--az-cell))); }
  100% { transform: translateX(calc(-24 * var(--az-cell))); }
}
/* After 60%, W leaves the conveyor and takes its own arc home. */
@keyframes az-w-travel {
  0% { transform: translateX(calc(var(--az-logo-width) * 5.3603947)); }
  10% { transform: translateX(calc(var(--az-logo-width) * 5.0953947)); }
  60% { transform: translate(calc(var(--az-logo-width) * .3253947),0); animation-timing-function: cubic-bezier(.18,.65,.35,1); }
  80% { transform: translate(calc(var(--az-logo-width) * .20),calc(-1 * var(--az-flip-height))); animation-timing-function: cubic-bezier(.55,0,.8,.45); }
  100% { transform: translate(0,0); }
}
@keyframes az-w-backflip {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes az-anchor-settle {
  from { transform: translate(calc(var(--az-logo-width) * -.095),-4px) rotate(-6deg) scale(.94); }
  to { transform: none; }
}
@keyframes az-endpoint-settle {
  from { transform: translate(3px,-7px) rotate(7deg) scale(.94); }
  to { transform: none; }
}
@keyframes az-letters-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes az-logo-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0); opacity: 1; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-brand-motion { --az-logo-width: 280px; height: 210px; }
}
@media (max-width: 760px) {
  .hero-brand-motion {
    --az-logo-width: clamp(200px,60vw,240px);
    --az-run: 1.15s;
    --az-land-at: .94s;
    --az-land: .21s;
    --az-reveal-at: 1.25s;
    --az-reveal: .42s;
    --az-flip-at: .69s;
    --az-flip-duration: .46s;
    --az-flip-height: 20px;
    order: 1;
    width: min(290px,100%);
    height: 120px;
    margin: 0 0 4px;
    flex: none;
  }
  .alphabet-window { top: -12px; bottom: -12px; }
}
@media (max-height: 740px) and (max-width: 760px) {
  .hero-brand-motion { height: 112px; margin-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-motion *, .hero-actions svg { animation: none !important; transition: none !important; }
  .hero-brand-motion .alphabet-layer { opacity: 0 !important; }
  .hero-brand-motion .final-logo { opacity: 1 !important; clip-path: none !important; transform: none !important; }
}

/* Avoid the no-JS navigation taking a row before deferred scripts initialize.
   Browsers with JavaScript disabled retain the existing, visible fallback menu. */
@media (max-width: 760px) and (scripting: enabled) {
  .no-js .home .global-nav { display: none; }
  .no-js .home .menu-button { display: flex; }
}


/* Desktop-only A-to-Z trail: two static hairlines, never a second animation.
   Confined to the visual column; no layout, logo, or mobile changes. */
@media (min-width: 1024px) {
  .home .hero { position: relative; isolation: isolate; }
  .home .hero::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 0;
    bottom: 24px;
    width: 52%;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 560 400%22 fill=%22none%22%3E%3Cpath d=%22M38 104C153 58 327 46 471 75C499 81 502 103 478 118L181 292C161 304 166 325 190 329C293 348 430 338 517 295%22 stroke=%22%230b725c%22 stroke-opacity=%22.06%22 stroke-width=%221%22 stroke-linecap=%22round%22 vector-effect=%22non-scaling-stroke%22/%3E%3Cpath d=%22M126 348C278 381 451 358 528 279%22 stroke=%22%230b1728%22 stroke-opacity=%22.04%22 stroke-width=%221%22 stroke-linecap=%22round%22 vector-effect=%22non-scaling-stroke%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
}


/* Homepage-only extra sections formerly supplied by quiet-pages.css. */
.home-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.home-resources > a {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.home-resources h3 {
  margin-bottom: 12px;
  font-size: 20px;
}
.home-resources p {
  color: var(--muted);
  font-size: 14px;
}
.home-resources .small-label { display: block; }
.home-resources .ui-icon {
  margin-top: 24px;
  color: var(--deep-green);
}
.works-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}
.works-experience-grid article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.works-experience-grid article > span {
  color: var(--orange);
  font-size: 12px;
}
.works-experience-grid h3 {
  margin: 16px 0;
  font-size: 23px;
}
.works-experience-grid p {
  color: var(--muted);
  font-size: 15px;
}
.note-feed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 30px;
}
.note-feed-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}
.note-meta span { color: var(--deep-green); }
.note-thumbnail {
  overflow: hidden;
  aspect-ratio: 1.91;
  margin-bottom: 20px;
}
.note-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note-feed-item h3 {
  margin-bottom: 14px;
  font-size: 20px;
}
.note-feed-item p {
  color: var(--muted);
  font-size: 14px;
}
.note-arrow {
  margin-top: 18px;
  color: var(--deep-green);
  font-size: 22px;
}
.note-profile-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.note-profile-row a { color: var(--deep-green); }

@media (max-width: 760px) {
  .home-resources,
  .works-experience-grid,
  .note-feed-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-resources,
  .works-experience-grid { gap: 28px; }
  .note-feed-list { gap: 30px; }
  .note-thumbnail { max-width: 500px; }
}

/* Icon-only desktop entrance. Keep homepage rules in this fingerprinted file. */
.home .header-desktop {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #64736b;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.home .header-desktop svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.home .header-desktop:hover,
.home .header-desktop:focus-visible {
  color: var(--deep-green);
  background: var(--surface);
  border-color: var(--line);
}
@media (min-width: 761px) and (max-width: 1000px) {
  .home .header-inner { gap: 12px; }
  .home .global-nav { gap: 14px; }
}
@media (max-width: 760px) {
  .home .header-inner { gap: 6px; }
  .home .header-desktop { margin-left: auto; }
  .home .header-contact { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home .header-desktop { transition: none; }
}

@media (max-width: 359px) {
  .home .header-inner { gap: 5px; }
  .home .brand-logo { width: 86px; }
  .home .header-contact { font-size: 11px; padding-inline: 9px; }
}
