/* Page-scoped additions to the original production landing design. */
.landing-service-card .profile-image-note { min-height: 0; margin: 0 0 .35rem; font-size: .76rem; }
.profile-pricing-link { display: inline-flex; margin-top: .85rem; }
html[lang="th"] .landing-hero h1 { line-height: 1.32; }
.profile-hero-source { display: block; font-size: .77em; white-space: nowrap; }
.profile-hero-result { display: block; white-space: nowrap; }
html[lang="th"] .landing-hero-lead { line-height: 1.85; }
.profile-about-hero .landing-hero-lead { font-size: 1.05rem; }
.profile-company-facts .landing-value-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-company-facts .landing-value-strip article { border-top: 0; }
.profile-company-facts .landing-value-strip article + article { border-left: 1px solid var(--landing-line); }
.profile-outcomes .landing-service-card p { min-height: 0; }
.profile-story-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.profile-story-media { margin: 0; min-width: 0; }
.profile-story-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .65rem; }
.profile-story-media figcaption { color: var(--landing-muted); font-size: .86rem; line-height: 1.7; padding-top: .8rem; }
.profile-workpiece-gallery { position: relative; }
.profile-workpiece-stage { display: grid; aspect-ratio: 3 / 2; overflow: hidden; border-radius: .65rem; background: var(--landing-soft); }
.profile-workpiece-stage img { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.profile-workpiece-controls { position: absolute; right: .65rem; bottom: .65rem; display: flex; align-items: center; padding-inline: .2rem; background: #fff; border-radius: .4rem; opacity: 0; pointer-events: none; }
.profile-workpiece-controls[hidden] { display: none; }
.profile-workpiece-gallery:hover .profile-workpiece-controls, .profile-workpiece-controls:focus-within { opacity: 1; pointer-events: auto; }
.profile-workpiece-controls > div { display: flex; }
.profile-workpiece-controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; padding: 0; background: transparent; color: var(--landing-ink); cursor: pointer; }
.profile-workpiece-controls [data-workpiece-index]::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: var(--landing-muted); }
.profile-workpiece-controls [aria-pressed="true"]::before { background: var(--landing-blue); }
.profile-workpiece-controls button:focus-visible { outline: 3px solid var(--landing-blue); outline-offset: 2px; }
.workpiece-play, [data-paused="true"] .workpiece-pause { display: none; }
[data-paused="true"] .workpiece-play { display: inline-block; }
@media (hover: none) { .profile-workpiece-controls { opacity: 1; pointer-events: auto; } }
.profile-story-grid .landing-section-heading { text-align: left; margin: 0 0 1.6rem; }
.profile-visual-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.profile-visual-steps li { display: flex; gap: 1.3rem; align-items: flex-start; }
.profile-visual-steps li > span { color: var(--landing-blue); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.profile-visual-steps h3 { margin: 0; font-size: 1.12rem; }
.profile-visual-steps p { margin: .35rem 0 0; color: var(--landing-muted); font-size: .95rem; }
.profile-short-copy { color: var(--landing-muted); line-height: 1.8; margin: 1.1rem 0; }
.profile-story-grid-reverse { grid-template-columns: 1fr 1.05fr; }
.profile-real-part img { background: #30343b; }
.profile-collaboration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 1rem 2rem; }
.profile-collaboration-grid article { border-top: 1px solid var(--landing-line); padding-top: 1rem; }
.profile-collaboration-grid p { color: var(--landing-muted); line-height: 1.8; margin: .75rem 0 0; }
.profile-collaboration-grid a { display: inline-flex; align-items: center; gap: .6rem; color: var(--landing-blue); font-weight: 600; margin-top: 1rem; }
.profile-collaboration-grid h3 { color: var(--landing-ink); font-size: 1.2rem; margin: .25rem 0 0; line-height: 1.55; }
.landing-cta img { right: 1.4rem; width: 24%; max-height: 85%; object-fit: cover; aspect-ratio: 1.3; border-radius: .6rem; filter: none; }
.profile-acknowledgements { padding-block: 1.5rem 2.5rem; }
.profile-acknowledgements h2 { font-size: .9rem; }
.profile-acknowledgements p { color: var(--landing-muted); font-size: .85rem; margin: .5rem 0 0; }
@media(max-width: 767px) {
    html[lang="th"] .landing-hero h1 { font-size: 1.9rem; line-height: 1.45; }
    .profile-company-facts .landing-value-strip { grid-template-columns: 1fr; }
    .profile-company-facts .landing-value-strip article + article { border-left: 0; border-top: 1px solid var(--landing-line); }
    .profile-story-grid, .profile-story-grid-reverse { grid-template-columns: 1fr; gap: 1.8rem; }
    .profile-story-grid-reverse .profile-story-media { order: -1; }
    .profile-story-grid .landing-section-heading { margin-bottom: 1.3rem; }
    .profile-collaboration-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .landing-cta img { display: block; position: relative; inset: auto; width: min(100%, 20rem); height: auto; max-height: none; transform: none; justify-self: center; margin-top: 1rem; }
    .landing-cta { padding-bottom: 1rem; }
    .landing-cta img { right: auto; width: min(100%, 20rem); max-height: none; }
}

/* Straight-edged part showcase and a customer-partnership About hero. */
.profile-home-hero .landing-hero-grid { width: var(--landing-container); margin-inline: auto; padding: 4rem 0 5rem; min-height: 37rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.profile-home-showcase { margin: 0; min-width: 0; align-self: center; background: #20252a; }
.profile-home-showcase img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.profile-home-showcase figcaption { padding: 1rem 1.25rem; color: #fff; font-size: .88rem; border-top: 1px solid #48515a; }
.profile-partnership-hero { background: #fff; color: var(--landing-ink); }
.profile-partnership-hero .landing-hero-grid { width: var(--landing-container); margin-inline: auto; min-height: 0; padding: 3rem 0 2rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.profile-partnership-hero .landing-hero-copy { padding: 0; text-align: left; min-width: 0; }
.profile-partnership-hero h1 { max-width: 32rem; margin: 0; color: var(--landing-ink); font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1.25; }
.profile-partnership-hero .landing-hero-lead { margin: 1.5rem 0 0; color: var(--landing-muted); max-width: 34rem; }
.profile-partnership-hero .landing-actions { margin-top: 1.6rem; }
.profile-partnership-photo { margin: 0; min-width: 0; }
.profile-partnership-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.profile-company-facts { margin-top: 0; padding-top: 1.5rem; }
.profile-cutout-cta img { display: block; width: 30%; max-height: 100%; aspect-ratio: 3 / 2; object-fit: contain; border: 0; border-radius: 0; background: transparent; right: -.5rem; filter: none; }
@media(max-width: 1023px) {
    .profile-home-hero .landing-hero-grid { gap: 2rem; padding-block: 3rem 4rem; }
    .profile-cutout-cta { padding-right: 30%; }
    .profile-cutout-cta img { top: 50%; bottom: auto; transform: translateY(-50%); }
}
@media(max-width: 767px) {
    .profile-home-hero .landing-hero-grid { grid-template-columns: 1fr; padding-block: 2.5rem 3.5rem; min-height: 0; gap: 1.5rem; }
    .profile-hero-source, .profile-hero-result { white-space: normal; }
    .profile-partnership-hero .landing-hero-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 1.5rem 2rem; }
    .profile-partnership-photo { order: -1; }
    html[lang] .profile-partnership-hero h1 { font-size: clamp(2.3rem, 8vw, 3rem); line-height: 1.4; }
    .profile-cutout-cta { padding-right: 2.2rem; }
    .profile-cutout-cta img { position: relative; inset: auto; transform: none; width: min(100%, 22rem); margin: 0; }
}

/* A shared photo ratio fills every homepage service card without letterboxing. */
#landing-services .landing-service-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }

/* Four ordered stages from concept through validated production preparation. */
.profile-rapid-workflow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-rapid-workflow-grid .landing-service-card > img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--landing-soft); }
.profile-rapid-workflow-grid h3 { line-height: 1.55; }
@media(max-width: 1099px) {
    .profile-rapid-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 767px) {
    .profile-rapid-workflow-grid { grid-template-columns: 1fr; }
    .profile-rapid-workflow-grid .landing-service-card > img { align-self: start; }
}

/* About owns its presentation choreography; global reveal gates must never hide it. */
[data-motion="ready"] .profile-about :is(.landing-hero-copy > *, .landing-section-heading, .landing-service-grid > article, .landing-value-strip article, .landing-cta) {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}
.profile-about .profile-rapid-workflow-grid { isolation: isolate; }
/* Open sequence for the company profile; service tiles remain on the homepage. */
.profile-about .landing-section-heading { text-align: left; max-width: 52rem; }
.profile-about .landing-section-heading h2 { text-wrap: balance; }
.profile-about .landing-section-heading span { max-width: 65ch; margin-top: .8rem; }
.profile-about .profile-customers .landing-section-heading p { margin: .8rem 0 0; }
.profile-about .profile-company-facts { padding-top: 0; margin-top: 0; }
.profile-about .profile-company-facts .landing-value-strip { border: 0; border-block: 1px solid var(--landing-line); border-radius: 0; box-shadow: none; }
.profile-about .profile-company-facts article { padding: 1.25rem 1.5rem; }
.profile-about .profile-company-facts article:first-child { padding-left: 0; }
.profile-about .profile-company-facts :is(i, .svg-inline--fa) { display: none; }
.profile-about .profile-rapid-workflow-grid { gap: 1.5rem; }
.profile-about .profile-rapid-workflow-grid > article { display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.profile-about .profile-rapid-workflow-grid > article:hover { transform: none; box-shadow: none; }
.profile-about .profile-rapid-workflow-grid > article > img { border-radius: 0; transform: none; }
.profile-about .profile-rapid-workflow-grid > article > div { padding: 1.2rem 0 0; display: flex; flex: 1; flex-direction: column; justify-content: start; }
.profile-about .profile-rapid-workflow-grid h3 { font-size: 1.12rem; padding-top: 1rem; border-top: 1px solid var(--landing-line); }
.profile-about .profile-rapid-workflow-grid p { line-height: 1.8; }
.profile-about .profile-rapid-workflow-grid a { align-self: start; margin-top: auto; min-height: 2.75rem; padding-block: 1rem .25rem; }
.profile-workflow-note { margin: 1.5rem 0 0; font-size: .85rem; color: var(--landing-muted); }
.profile-production-spec { border-block: 1px solid var(--landing-line); padding-block: 1.25rem; margin-block: 1.5rem; }
.profile-production-spec h3 { margin: 0 0 1rem; font-size: 1rem; }
.profile-production-spec dl { margin: 0; display: grid; gap: .65rem; }
.profile-production-spec dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.profile-production-spec dt { color: var(--landing-muted); font-weight: 400; }
.profile-production-spec dd { margin: 0; text-align: right; font-weight: 600; }
.profile-production-spec p { font-size: .85rem; color: var(--landing-muted); margin: 1rem 0 0; }
.profile-text-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .65rem; color: var(--landing-blue); font-weight: 600; text-underline-offset: .25em; }
.profile-about .profile-collaboration-grid a { min-height: 2.75rem; }
.profile-about .landing-cta-section { padding-top: 4rem; }
.profile-about .landing-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .4fr); gap: 3rem; align-items: center; min-height: 0; padding: 3rem 0; border-top: 1px solid var(--landing-line); border-radius: 0; background: #fff; color: var(--landing-ink); }
.profile-about .landing-cta::after { content: none; }
.profile-about .landing-cta p { color: var(--landing-muted); margin-top: .8rem; }
.profile-about .landing-cta img { display: block; position: static; inset: auto; width: 100%; max-height: none; height: auto; aspect-ratio: 1; object-fit: contain; transform: none; border-radius: 0; margin: 0; }
.profile-about a:focus-visible { outline: 3px solid var(--landing-blue); outline-offset: 4px; }
.profile-about ::selection { color: #fff; background: var(--landing-blue); }
@media(max-width: 767px) {
    .profile-about .profile-partnership-photo { order: 0; }
    .profile-about .profile-partnership-hero .landing-actions { justify-content: flex-start; }
    .profile-about .profile-company-facts article { padding-inline: 0; }
    .profile-about .profile-rapid-workflow-grid { gap: 2.5rem; }
    .profile-about .profile-rapid-workflow-grid > article > img { aspect-ratio: 3 / 2; min-height: 0; }
    .profile-about .profile-collaboration-grid { padding-bottom: 0; }
    .profile-about .landing-cta { grid-template-columns: 1fr; gap: 1.5rem; }
    .profile-about .landing-cta img { max-width: 15rem; justify-self: start; }
}
/* Armed only by the page controller after observer creation; no-JS content stays visible. */
.profile-about.profile-about[data-presentation-state="ready"] [data-presentation-pending] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    .profile-about.profile-about[data-presentation-state="ready"] [data-presentation-pending] { opacity: 1; transform: none; }
    .profile-about :is(.landing-service-card, .landing-service-card > img, .landing-button) { transition-duration: 0s; }
}

/* Manual capability carousel: native horizontal reading remains available without JS. */
.profile-capability-controls { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; align-items: end; gap: 1.5rem; margin-block: 2rem 1.5rem; }
.profile-capability-controls[hidden] { display: none; }
.profile-capability-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.profile-capability-controls button { min-height: 2.75rem; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--landing-muted); font: inherit; cursor: pointer; padding: .5rem 0; }
.profile-capability-choices button { font-weight: 600; }
.profile-capability-choices button[aria-pressed="true"] { border-color: var(--landing-blue); color: var(--landing-ink); font-weight: 600; }
.profile-capability-controls button:hover { color: var(--landing-blue); }
.profile-capability-controls button:focus-visible, .profile-capability-track:focus-visible { outline: 3px solid var(--landing-blue); outline-offset: 3px; }
.profile-capability-paging { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .75rem; width: 100%; }
.profile-capability-paging button { display: grid; place-items: center; min-width: 2.75rem; color: var(--landing-ink); border: 1px solid var(--landing-line); }
.profile-capability-paging button:disabled { opacity: .4; cursor: default; }
.profile-capability-paging span { display: grid; place-items: center; min-height: 3.5rem; color: var(--landing-muted); font-size: .85rem; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-capability-track { position: relative; display: flex; column-gap: 2rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 1.5rem; }
.profile-capability-track::-webkit-scrollbar { display: none; }
.profile-capability-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); scroll-snap-align: start; padding-bottom: 1rem; }
.profile-capability-slide h3 { margin: 0; color: var(--landing-ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.5; }
.profile-capability-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; gap: 1rem; }
.profile-capability-bento figure { min-width: 0; margin: 0; }
.profile-capability-bento figure:first-child { grid-column: 1 / -1; }
.profile-capability-bento[data-photo-count="4"] figure:first-child { grid-column: auto; }
.profile-capability-bento img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--landing-soft); }
.profile-capability-details { margin: 1.5rem 0; border-top: 1px solid var(--landing-line); }
.profile-capability-details > div { padding-block: .85rem; border-bottom: 1px solid var(--landing-line); }
.profile-capability-details dt { color: var(--landing-ink); font-size: .9rem; font-weight: 600; }
.profile-capability-details dd { margin: .35rem 0 0; color: var(--landing-muted); font-size: .9rem; line-height: 1.8; }
.profile-capability-spec { margin: 1.5rem 0; padding-block: 1rem; border-block: 1px solid var(--landing-line); }
.profile-capability-spec > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; }
.profile-capability-spec dt { color: var(--landing-muted); font-weight: 400; }
.profile-capability-spec dd { margin: 0; text-align: right; font-weight: 600; }
@media(max-width: 1099px) {
    .profile-capability-controls { grid-template-columns: minmax(0, 1fr); }
    .profile-capability-paging { max-width: 21rem; justify-self: end; }
}
@media(max-width: 767px) {
    .profile-capability-slide { grid-template-columns: 1fr; align-content: start; gap: 1.5rem; }
    .profile-capability-paging { max-width: none; }
    .profile-capability-bento { gap: .75rem; }
}
