/* ==========================================================================
   home.css — homepage-only pieces, layered on base/components/project.css
   ========================================================================== */

/* hero: taller, two-line statement with a teal second line */
.hero--home { min-height: 92vh; }
.hero--home h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.15; }
.hero--home .hero-accent { display: block; color: var(--c-teal); }
.hero--home .hero-lead { max-width: 40rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--c-teal-deep); font-weight: 700; font-size: var(--t-sm); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--c-teal); }
.section-head--flush { margin-bottom: var(--s-3); }

/* mission / vision */
.mv-grid { display: grid; gap: var(--s-3); }
@media (min-width: 576px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  position: relative; padding: 2rem 1.6rem; border-radius: 6px;
  background: var(--c-white); border: 1px solid var(--c-line);
  box-shadow: 0 18px 40px -28px rgba(21, 39, 41, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(21, 39, 41, .45); }
.mv-card i { font-size: 1.6rem; color: var(--c-teal); margin-bottom: 1rem; }
.mv-card h3 { font-size: var(--t-lg, 1.25rem); margin-bottom: .6rem; }
.mv-card p { margin: 0; font-size: .98rem; }
.mv-card--dark { background: var(--c-slate); border-color: var(--c-slate); color: rgba(255, 255, 255, .78); }
.mv-card--dark h3 { color: #fff; }
@media (min-width: 576px) { .mv-card--dark { transform: translateY(2.5rem); } .mv-card--dark:hover { transform: translateY(calc(2.5rem - 6px)); } }

/* dark services band */
.section--dark { background: var(--c-slate-deep); color: rgba(255, 255, 255, .72); }
.section--dark .section-head h2 { color: #fff; }
.section--dark .sec-index { -webkit-text-stroke-color: rgba(76, 160, 168, .3); }
.section--dark .float-shape { border-color: rgba(76, 160, 168, .35); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.services-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; overflow: hidden; padding: 2.4rem 2rem 2.2rem; background: var(--c-slate-deep);
  transition: background-color .5s ease;
}
.service::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--c-teal);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.service:hover { background: #1a3134; }
.service:hover::after { transform: scaleX(1); }
.service-no {
  position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--f-display); font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
  transition: -webkit-text-stroke-color .5s ease, transform .6s var(--ease-out);
}
.service:hover .service-no { -webkit-text-stroke-color: var(--c-teal); transform: translateY(-4px); }
.service i {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.4rem;
  border: 1px solid rgba(76, 160, 168, .5); border-radius: 50%; color: var(--c-teal); font-size: 1.3rem;
  transition: background-color .5s ease, color .5s ease, transform .6s var(--ease-out);
}
.service:hover i { background: var(--c-teal); color: #fff; transform: rotate(-8deg) scale(1.06); }
.service h3 { color: #fff; font-size: 1.25rem; margin-bottom: .6rem; }
.service p { margin: 0; font-size: .97rem; }

/* project tiles */
.projects-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .projects-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; } .project-tile--wide { grid-column: span 2; grid-row: span 2; } }
.project-tile {
  position: relative; display: block; overflow: hidden; border-radius: 6px; min-height: 260px;
  background: var(--c-slate); color: #fff;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(21, 39, 41, .92) 0%, rgba(21, 39, 41, .25) 55%, rgba(21, 39, 41, 0) 100%);
  transition: opacity .5s ease;
}
.project-tile:hover { box-shadow: 0 26px 50px -24px rgba(21, 39, 41, .6); color: #fff; }
.project-tile:hover img { transform: scale(1.08); }
.tile-body { position: absolute; z-index: 2; inset-inline: 1.4rem; bottom: 1.3rem; display: grid; gap: .2rem; }
.tile-body small { color: #9fd3d8; font-size: var(--t-sm); }
.tile-body strong { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; }
.project-tile--wide .tile-body strong { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.tile-body::after {
  content: "\2190"; position: absolute; left: 0; bottom: .1rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-teal); color: #fff; font-size: 1.1rem;
  opacity: 0; transform: translateX(12px); transition: opacity .4s ease, transform .5s var(--ease-out);
}
.project-tile:hover .tile-body::after { opacity: 1; transform: none; }

/* chairman */
.chair-card {
  position: relative; padding: 2.6rem 2.2rem; background: var(--c-white); border-radius: 6px;
  border-inline-start: 4px solid var(--c-teal); box-shadow: 0 30px 60px -36px rgba(21, 39, 41, .45);
}
.chair-mark { position: absolute; top: -22px; inset-inline-end: 1.8rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-teal); color: #fff; }
.chair-role { color: var(--c-teal-deep); font-weight: 700; font-size: var(--t-sm); }
.chair-name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .3rem 0 .2rem; }
.chair-en { color: var(--c-grey); font-size: .95rem; margin-bottom: 1rem; }
.board-figure { position: relative; overflow: hidden; border-radius: 6px; background: #fff; padding: 1rem; box-shadow: 0 20px 44px -30px rgba(21, 39, 41, .4); }
.board-figure img { width: 100%; height: auto; }

/* profile */
.profile-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--s-4); }
.gallery-more { text-align: center; margin-top: var(--s-4); }

/* contact */
.contact-form label { display: block; font-weight: 500; font-size: var(--t-sm); margin-bottom: .35rem; color: var(--c-ink); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-line); border-radius: 4px; background: #fff;
  font: inherit; color: var(--c-ink); transition: border-color .3s ease, box-shadow .3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(76, 160, 168, .2); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: .7rem; }
.contact-list i { width: 1.6rem; color: var(--c-teal); }
.contact-list a { color: var(--c-ink); }
.map-frame { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 44px -30px rgba(21, 39, 41, .4); }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }
.form-note { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1rem; background: rgba(76, 160, 168, .12); color: var(--c-teal-deep); font-weight: 500; }
.form-note--err { background: #fbeaea; color: #a33; }

@media (prefers-reduced-motion: reduce) {
  .mv-card, .service, .service i, .project-tile, .project-tile img { transition: none; }
}

/* ==========================================================================
   brand colour pass: teal + logo grey carry the page (like the original site)
   ========================================================================== */
.home .hero::after {
  background:
    radial-gradient(circle 420px at var(--hx, 30%) var(--hy, 40%), rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(270deg, rgba(47, 111, 117, .78) 0%, rgba(76, 160, 168, .25) 75%),
    linear-gradient(180deg, rgba(47, 111, 117, .15) 0%, rgba(47, 111, 117, .55) 100%);
}
.home .hero--home .hero-accent { color: #fff; opacity: .92; }
.home .hero-type { color: #dff1f2; }

.home .facts { background: var(--c-teal); }
.home .facts .fact + .fact { border-color: rgba(255, 255, 255, .25); }
.home .facts dt { color: rgba(255, 255, 255, .8); }

.home .section--dark { background: var(--c-teal); color: rgba(255, 255, 255, .88); }
.home .section--dark .section-head::after { background: #fff; }
.home .services-grid { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .22); }
.home .service { background: var(--c-teal); }
.home .service:hover { background: var(--c-teal-deep); }
.home .service::after { background: #fff; }
.home .service i { border-color: rgba(255, 255, 255, .6); color: #fff; }
.home .service:hover i { background: #fff; color: var(--c-teal-deep); }
.home .service-no { display: none; }
.home .section--dark .sec-index { -webkit-text-stroke-color: rgba(255, 255, 255, .28); }
.home .section--dark .float-shape { border-color: rgba(255, 255, 255, .35); }

.home #projects { background: var(--c-grey); }
.home #projects .section-head h2 { color: #fff; }
.home #projects .sec-index { -webkit-text-stroke-color: rgba(255, 255, 255, .2); }
.home #projects .float-shape { border-color: rgba(76, 160, 168, .5); }
.home .project-tile::before { background: linear-gradient(0deg, rgba(47, 111, 117, .92) 0%, rgba(47, 111, 117, .2) 55%, transparent 100%); }
.home .tile-body small { color: #dff1f2; }
.home .tile-body::after { background: #fff; color: var(--c-teal-deep); }

.home .mv-card--dark { background: var(--c-teal); border-color: var(--c-teal); color: rgba(255, 255, 255, .9); }
.home .mv-card--dark i { color: #fff; }
.home .chair-card { border-inline-start-color: var(--c-teal); }

.home .site-footer { background: var(--c-teal-deep); }
.home .site-footer li i, .home .site-footer a:hover { color: #bfe3e6; }

/* logo tiles (e.g. Moon Beach): show the whole logo on white, caption below it */
.project-tile--logo { background: #fff; }
.project-tile--logo img { object-fit: contain; padding: 1.5rem 1.5rem 4.5rem; }
.home .project-tile--logo::before { background: linear-gradient(0deg, rgba(47, 111, 117, .95) 0%, rgba(47, 111, 117, .95) 26%, transparent 26.5%); }
.project-tile--logo:hover img { transform: scale(1.04); }
.home .project-tile--logo::before { background: none; }
.home .project-tile--logo .tile-body small { color: var(--c-grey); }
.home .project-tile--logo .tile-body strong { color: var(--c-teal-deep); }
.home .project-tile--logo:hover .tile-body::after { background: var(--c-teal); color: #fff; }

/* card names must read on any photo: solid dark base + text shadow */
.home .project-tile:not(.project-tile--logo)::before {
  background: linear-gradient(0deg, rgba(21, 39, 41, .95) 0%, rgba(30, 53, 56, .8) 28%, rgba(47, 111, 117, .25) 60%, transparent 100%);
}
.home .project-tile:not(.project-tile--logo) .tile-body { text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .35); }
.home .project-tile:not(.project-tile--logo) .tile-body strong { color: #fff; }
.home .project-tile:not(.project-tile--logo) .tile-body small { color: #c9ecef; font-weight: 700; }
.home .project-tile:not(.project-tile--logo) .tile-body {
  inset-inline: 0; bottom: 0; padding: 3.2rem 1.4rem 1.2rem;
  background: linear-gradient(0deg, rgba(21, 39, 41, .92) 0%, rgba(21, 39, 41, .7) 55%, transparent 100%);
}
.home .project-tile:not(.project-tile--logo) .tile-body::after { left: 1.4rem; bottom: 1.2rem; }

/* LTR (English homepage) */
[dir="ltr"] .service::after { transform-origin: left; }
[dir="ltr"] .service-no { left: auto; right: 1.4rem; }
[dir="ltr"] .tile-body::after { content: "\2192"; left: auto; right: 0; transform: translateX(-12px); }
[dir="ltr"] .project-tile:hover .tile-body::after { transform: none; }
[dir="ltr"] .home .project-tile:not(.project-tile--logo) .tile-body::after { left: auto; right: 1.4rem; }
[dir="ltr"] .home .hero::after {
  background:
    radial-gradient(circle 420px at var(--hx, 70%) var(--hy, 40%), rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(90deg, rgba(47, 111, 117, .78) 0%, rgba(76, 160, 168, .25) 75%),
    linear-gradient(180deg, rgba(47, 111, 117, .15) 0%, rgba(47, 111, 117, .55) 100%);
}
@media (min-width: 576px) { [dir="ltr"] .mv-card--dark { transform: translateY(2.5rem); } }

/* phones: project cards keep a clear landscape shape */
@media (max-width: 575.98px) {
  .projects-grid { gap: .9rem; }
  .project-tile, .project-tile--wide { min-height: 0; aspect-ratio: 4 / 3; }
  .project-tile--logo { aspect-ratio: 4 / 3.4; }
  .project-tile--logo img { padding: 1rem 1rem 4rem; }
  .tile-body strong { font-size: 1.25rem; }
  .services-grid .service { padding: 1.8rem 1.4rem; }
  .mv-card--dark { transform: none; }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .project-tile.is-in img { animation: settle 1.8s var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
}

/* touch screens: decor.js marks the card in the middle of the screen .is-hot (desktop hover look)
   and .is-press for a moment on tap */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .project-tile, .service, .mv-card, .news-card, .file-card, .video-poster { transition: transform .5s var(--ease-out), box-shadow .5s ease, background .4s ease; }
  .project-tile { transform: perspective(900px) rotateX(var(--rx, 0deg)); }
  .is-press { transform: scale(.97) !important; transition-duration: .15s !important; }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .project-tile.is-hot { box-shadow: 0 26px 50px -24px rgba(21, 39, 41, .6); }
  .project-tile.is-hot img { transform: scale(1.06); }
  .project-tile.is-hot .tile-body::after { opacity: 1; transform: none; }
  .home .service.is-hot { background: var(--c-teal-deep); }
  .home .service.is-hot::after { transform: scaleX(1); }
  .home .service.is-hot .service-no { -webkit-text-stroke-color: #fff; transform: translateY(-4px); }
  .home .service.is-hot i { background: #fff; color: var(--c-teal-deep); transform: rotate(-8deg) scale(1.06); }
  .mv-card.is-hot { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(21, 39, 41, .45); }
}

/* phones: the banner shows whole (not cropped behind the text), text sits beneath it */
@media (max-width: 767.98px) {
  .hero--home { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 0; background: var(--c-teal-deep); }
  .hero--home .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; overflow: hidden; }
  .hero--home .hero-media img { object-fit: cover; }
  .hero--home .hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--c-teal-deep)); }
  .home .hero--home::after { display: none; }
  .hero--home .hero-content { padding-top: 1.4rem; padding-bottom: 2.4rem; }
  .hero--home h1 { font-size: 2.4rem; }
  .js .hero--home .hero-media img { transform: scale(1.08); }
  .js .hero--home.is-ready .hero-media img { transform: none; }
}

/* company profile: two cover tiles, like the project cards, with a language badge */
.profile-tiles { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); margin-bottom: var(--s-5, 3rem); }
.profile-tile {
  position: relative; display: block; min-height: 340px; overflow: hidden; border-radius: 8px; color: #fff;
  isolation: isolate; box-shadow: 0 20px 44px -26px rgba(21, 39, 41, .55);
  transition: box-shadow .5s ease, transform .5s var(--ease-out);
}
.profile-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.profile-tile { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-deep) 100%); }
.profile-tile--en { background: linear-gradient(135deg, #6a6b6e 0%, var(--c-grey, #58595c) 45%, #3a3b3e 100%); }
.profile-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background:
  repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 48px); }
.profile-tile::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; inset-inline-end: -60px; top: -70px; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; transition: transform 1s var(--ease-out); }
.profile-tile:hover::before, .profile-tile.is-hot::before { transform: scale(1.15); }
.profile-tile:hover, .profile-tile.is-hot { color: #fff; transform: translateY(-4px); box-shadow: 0 30px 56px -26px rgba(21, 39, 41, .7); }
.profile-tile:hover img, .profile-tile.is-hot img { transform: scale(1.07); }
.profile-badge {
  position: absolute; top: 1.1rem; inset-inline-start: 1.1rem; padding: .3rem .9rem; border-radius: 99px;
  background: #fff; color: var(--c-teal-deep); font-weight: 800; font-size: .95rem; letter-spacing: .05em;
}
.profile-body { position: absolute; inset-inline: 1.6rem; bottom: 1.5rem; display: grid; gap: .35rem; justify-items: start; }
.profile-body > i { font-size: 2.4rem; margin-bottom: .3rem; color: #dff1f2; }
.profile-body strong { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.profile-body small { color: #e3f1f2; font-size: 1rem; }
.profile-open {
  margin-top: .8rem; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.3rem; border-radius: 4px;
  background: #fff; color: var(--c-teal-deep); font-weight: 700;
}
.profile-tile--en .profile-open { color: var(--c-ink); }
@media (prefers-reduced-motion: no-preference) {
  .profile-badge { animation: badge-pulse 2.4s ease-in-out infinite; }
  @keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 60% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
}
@media (max-width: 767.98px) {
  .profile-tiles { grid-template-columns: 1fr; }
  .profile-tile { min-height: 330px; }
  .profile-open { width: 100%; justify-content: center; }
}
