:root {
  --ink: #243039;
  --muted: #68757a;
  --paper: #fffdf7;
  --cream: #f5f0e6;
  --teal: #59adb0;
  --sun: #f5b832;
  --line: #e6e5dc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, .gallery-track:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 1220px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.eyebrow { margin: 0 0 1rem; color: #357f82; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.accent { color: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 253, 247, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { font-family: Arial, sans-serif; font-size: 2.1rem; font-weight: 900; letter-spacing: -.1em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--sun); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); }
.site-header nav a { font-size: .84rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .footer-inner a:hover { color: #278b90; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 218px; padding: .85rem 1.1rem; border-radius: 2px; font-size: .85rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 1.4rem; line-height: 1; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #415e64; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #fff2ca; }
.hero { position: relative; display: flex; align-items: flex-start; min-height: min(780px, 90vh); overflow: hidden; background: var(--cream); }
.hero-copy { position: relative; z-index: 1; padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(19rem, 29vw, 30rem); }
.hero h1 { max-width: 900px; margin: 0 0 1.4rem; font-size: clamp(3.4rem, 7vw, 7.2rem); font-weight: 850; }
.hero h1 em, .contact-section em { font-style: normal; color: #278b90; }
.hero-copy > p:not(.eyebrow) { margin-bottom: 2rem; font-size: clamp(.95rem, 1.4vw, 1.2rem); font-weight: 600; }
.hero-art { position: absolute; bottom: 0; left: 50%; width: max(100%, 1150px); max-width: none; transform: translateX(-50%); object-fit: cover; object-position: center bottom; }
.section { padding-block: clamp(5rem, 9vw, 9rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2, .about-copy h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.3rem); }
.section-heading > p { max-width: 290px; margin-bottom: .3rem; color: var(--muted); font-size: .9rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem 1.6rem; }
.project-card { display: block; text-decoration: none; min-width: 0; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #e9ece9; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.05); }
.card-arrow { position: absolute; right: .75rem; bottom: .75rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--paper); border-radius: 50%; font-size: 1.2rem; opacity: 0; transform: translateY(7px); transition: opacity .2s, transform .2s; }
.project-card:hover .card-arrow, .project-card:focus-visible .card-arrow { opacity: 1; transform: none; }
.project-caption { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 1rem; }
.project-caption h2, .project-caption h3 { margin: 0; font-size: 1.03rem; letter-spacing: -.02em; }
.project-caption span { color: var(--muted); font-size: .72rem; text-align: right; }
.about-section { background: #e8f1ec; }
.about-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.about-portrait { display: grid; place-items: center; min-height: 380px; background: #d3e7de; border-radius: 50% 50% 4px 4px; overflow: hidden; }
.about-portrait img { width: min(80%, 430px); max-height: 430px; object-fit: contain; }
.about-copy .about-name { margin-top: 1.6rem; font-weight: 800; }
.about-copy p:not(.eyebrow):not(.about-name) { max-width: 610px; color: #495b5a; font-size: .96rem; line-height: 2; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { min-height: 350px; padding: 2rem; background: var(--cream); }
.service-number { display: block; margin-bottom: 3rem; color: #41979a; font-size: .8rem; font-weight: 800; }
.service-card h3 { margin-bottom: 1.5rem; font-size: 2rem; }
.service-card p { color: #536064; font-size: .87rem; line-height: 1.85; }
.service-card p[lang="en"] { margin-top: 1.3rem; font-size: .78rem; }
.contact-section { background: #3f999e; color: white; }
.contact-inner { padding-block: clamp(1rem, 5vw, 5rem); }
.contact-section .eyebrow { color: #daeeee; }
.contact-section h2 { margin-bottom: 2rem; font-size: clamp(3.3rem, 7vw, 7.5rem); }
.contact-section em { color: #fee3a1; }
.contact-section p:not(.eyebrow) { margin-bottom: 2rem; }
.contact-address { margin: 1rem 0 0 !important; opacity: .88; font-size: .8rem; }
.site-footer { background: var(--ink); color: #e7eeea; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 125px; }
.footer-inner p, .footer-inner a { margin: 0; font-size: .78rem; }
.footer-inner a { text-decoration: none; }
.archive-page, .project-page { padding-block: clamp(3rem, 7vw, 7rem); }
.archive-page h1 { margin-bottom: .5rem; font-size: clamp(3.2rem, 6vw, 6rem); }
.archive-page > p:not(.eyebrow) { margin-bottom: 3rem; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 3.3rem; color: #31878a; font-size: .83rem; font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.project-intro { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.project-intro h1 { margin: 0; font-size: clamp(3rem, 6vw, 6.5rem); overflow-wrap: anywhere; }
.project-subtitle { margin: 1rem 0 0; color: var(--muted); font-size: 1.1rem; }
.project-meta { margin: 0; border-top: 1px solid var(--line); }
.project-meta div { display: grid; grid-template-columns: 80px 1fr; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .77rem; }
.project-meta dt { color: var(--muted); }
.project-meta dd { margin: 0; font-weight: 700; }
.gallery-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--teal) var(--cream); }
.project-video { max-width: 1050px; margin: 0 auto 2rem; }
.project-video-frame { aspect-ratio: 16 / 9; background: var(--ink); }
.project-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-video-link { margin: .7rem 0 0; text-align: right; font-size: .83rem; }
.project-video-link a { color: var(--teal); }
.gallery-slide { flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 0; scroll-snap-align: start; background: var(--cream); }
.gallery-slide img { width: 100%; height: min(68vw, 650px); object-fit: contain; }
.gallery-slide figcaption { padding: .4rem 1rem; color: var(--muted); font-size: .75rem; text-align: right; }
.gallery-hint { margin-top: .6rem; color: var(--muted); font-size: .78rem; text-align: right; }
.project-body { max-width: 780px; margin: 4rem auto 0; font-size: 1.05rem; line-height: 2; }
.project-body p { margin-bottom: 1.5rem; }
.project-body .button { margin-top: 1rem; line-height: 1.4; }
.bottom-back { margin-top: 5rem; margin-bottom: 0; }
@media (max-width: 850px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-number { margin-bottom: 2rem; }
  .about-grid { gap: 3rem; }
  .project-intro { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 7rem; }
  .wrap { width: min(100% - 2rem, 1220px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: .3rem; padding-block: .65rem; }
  .wordmark { font-size: 1.7rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .site-header nav a { font-size: .7rem; }
  .hero { min-height: 650px; }
  .hero-copy { padding-top: 3.5rem; padding-bottom: 21rem; }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 4.5rem); }
  .hero-art { width: 750px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .project-caption span { max-width: 45%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { min-height: 300px; max-width: 390px; }
  .contact-section h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .footer-inner { flex-wrap: wrap; padding-block: 2rem; }
  .footer-inner p { order: 3; width: 100%; }
  .gallery-slide img { height: 75vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .project-image img, .card-arrow { transition: none; } }

/* The home page follows the archived site's section rhythm, using original CSS. */
@font-face { font-family: Dosis; src: url('../fonts/Dosis-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Dosis; src: url('../fonts/Dosis-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Dosis; src: url('../fonts/Dosis-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { --ink: #4e4037; --paper: #fff; --teal: #31bdc1; --line: #eee; }
body { color: var(--ink); background: white; font-family: "Dosis", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
h1, h2, h3 { letter-spacing: 0; }
html { scroll-padding-top: 80px; }
.site-header { background: #fff; border: 0; box-shadow: none; }
.header-inner { min-height: 80px; width: calc(100% - 52px); max-width: none; }
.wordmark { color: #222; }
.wordmark span { color: #f8bc00; }
.site-header nav { gap: 0; align-items: center; }
.site-header nav a { display: block; padding: 28px 17px; font-family: "Dosis",sans-serif; font-size: 16px; font-weight: 600; }
.site-header nav a:hover { color: var(--teal); }
.hero { display: block; min-height: 0; height: min(63vw, 760px); background: #59adb0; }
.hero-art { inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: center; }
.hero h1 { position: absolute; z-index: 1; top: 22%; left: 0; width: 100%; max-width: none; margin: 0; padding: 0 20px; color: white; font-family: "Dosis", sans-serif; font-size: clamp(32px, 4.25vw, 54px); font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; }
.about-section { padding: 64px 0 70px; background: #4e4037; color: white; }
.about-section h2, .services-section h2, .contact-banner h2 { margin: 0 0 25px; font-family: "Dosis",sans-serif; font-size: 44px; font-weight: 700; text-align: center; text-transform: uppercase; }
.about-portrait { display: block; width: 200px; height: 200px; min-height: 0; max-width: none; margin: 0 auto 32px; border-radius: 50%; background: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.about-grid h3 { margin: 0 0 20px; font-size: 22px; text-align: center; text-transform: uppercase; }
.about-grid p { margin: 0; font-size: 15px; line-height: 1.8; }
.work-section { padding: 0; }
.work-section > h2 { margin: 0; padding: 58px 20px; font-family: "Dosis",sans-serif; font-size: 24px; font-weight: 400; line-height: 1.4; text-align: center; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.project-card { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.project-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.project-card:hover > img, .project-card:focus-visible > img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 20px; color: white; background: linear-gradient(transparent 45%,rgba(0,0,0,.68)); opacity: 0; transition: opacity .2s; }
.project-card:hover .project-overlay, .project-card:focus-visible .project-overlay { opacity: 1; }
.project-plus { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--teal); font: 35px/1 Arial,sans-serif; transform: translate(-50%,-50%); }
.project-title { font-size: 22px; text-align: center; }
.services-section { padding-block: 70px 90px; }
.services-section h2 { color: #4e4037; }
.services-intro { margin: 0 0 50px; text-align: center; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.service-card { display: flex; gap: 20px; min-height: 0; padding: 0; background: none; }
.service-icon { flex: 0 0 70px; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--teal); color: white; font-size: 34px; }
.service-card h3 { margin: 0 0 8px; font-size: 24px; text-transform: uppercase; }
.service-card p, .service-card p[lang="en"] { margin: 0 0 4px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.contact-section { background: white; color: var(--ink); }
.contact-banner { padding: 65px 20px; min-height: 285px; background: linear-gradient(rgba(58,29,4,.35),rgba(58,29,4,.35)),url('../images/ricamonyaki.jpg') center / cover; color: white; text-align: center; }
.contact-banner h2 { margin-bottom: 25px; }
.contact-banner a { color: var(--teal); font-size: 24px; text-decoration: none; text-transform: uppercase; }
.contact-banner a:hover { text-decoration: underline; }
.contact-message { padding: 60px 20px 75px; text-align: center; }
.contact-message h3 { margin-bottom: 20px; color: var(--teal); font-size: 30px; text-transform: uppercase; }
.contact-message p { margin: 0 0 5px; font-size: 17px; }
.site-footer { background: #4e4037; }
@media (max-width: 850px) {
 .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .service-grid { gap: 25px; }
 .service-card { display: block; }
 .service-icon { margin-bottom: 18px; }
}
@media (max-width: 600px) {
 html { scroll-padding-top: 105px; }
 .header-inner { width: calc(100% - 28px); min-height: 70px; padding-block: 10px; }
 .site-header nav { justify-content: space-between; width: 100%; }
 .site-header nav a { padding: 8px 3px; font-size: 14px; }
 .hero { height: 72vw; min-height: 300px; }
 .hero h1 { top: 16%; font-size: clamp(27px,7vw,40px); }
 .about-section { padding: 48px 0; }
 .about-section h2, .services-section h2, .contact-banner h2 { font-size: 38px; }
 .about-grid { grid-template-columns: 1fr; gap: 30px; }
 .work-section > h2 { padding: 42px 20px; font-size: 21px; }
 .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .project-overlay { opacity: 1; padding: 8px; }
 .project-plus { display: none; }
 .project-title { font-size: 15px; }
 .services-section { padding-block: 50px; }
 .service-grid { grid-template-columns: 1fr; gap: 30px; }
 .service-card { display: flex; }
 .contact-banner a { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .project-card > img, .project-overlay { transition: none; } }
