:root {
  --teal: #007a85;
  --teal-dark: #005e66;
  --teal-soft: #e8f3f4;
  --ink: #3c3c3b;
  --muted: #6e7475;
  --paper: #f8f8f5;
  --white: #fff;
  --line: rgba(60, 60, 59, .14);
  --shadow: 0 24px 70px rgba(29, 55, 58, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Bai Jamjuree", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); max-width: 970px; margin-bottom: 28px; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.6rem); margin-bottom: 24px; }
h3 { font-size: 1.5rem; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.nav { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 270px; }
.brand img { width: 78px; height: 36px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-copy span { color: var(--teal); font-size: .67rem; letter-spacing: .14em; margin-top: 6px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 600; }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px;
  background: var(--teal); transition: right .2s;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { color: white !important; background: var(--teal); padding: 13px 19px !important; border-radius: 999px; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); }

.hero { position: relative; overflow: hidden; min-height: calc(100vh - 90px); display: grid; align-items: center; padding: 100px 0 120px; }
.hero::before {
  content: ""; position: absolute; width: 48vw; height: 48vw; max-width: 740px; max-height: 740px;
  right: -12vw; top: -8vw; border: 1px solid rgba(0,122,133,.2); border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(0,122,133,.025), 0 0 0 180px rgba(0,122,133,.018);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; }
.hero h1 span { color: var(--teal); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 700; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost:hover { background: var(--ink); color: white; }
.hero-card { position: relative; overflow: hidden; min-height: 500px; padding: 30px; background: var(--ink); border-radius: var(--radius); color: white; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,31,32,.03) 25%, rgba(26,40,41,.92) 100%); z-index: 1; }
.hero-card > * { position: relative; z-index: 2; }
.hero-card .hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .hero-mark { position: absolute; z-index: 2; top: 28px; left: 28px; width: 115px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.hero-card p { color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .11em; }
.hero-card strong { display: block; font-size: 1.45rem; line-height: 1.25; }
.hero-stats { margin-top: 35px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-stats span { display: block; color: rgba(255,255,255,.62); font-size: .8rem; margin-top: 3px; }

.intro-grid, .split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 60px; }
.principle { padding: 30px 28px 0 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: 28px; }
.principle b { color: var(--teal); font-size: .75rem; letter-spacing: .12em; }
.principle h3 { margin: 18px 0 12px; }

.bg-paper { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 55px; }
.service-card {
  min-height: 310px; display: flex; flex-direction: column; padding: 30px; background: white;
  border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.service-no { color: var(--teal); font-weight: 700; font-size: .75rem; letter-spacing: .12em; }
.service-card h3 { margin-top: auto; margin-bottom: 15px; }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-card.featured { background: var(--teal); color: white; border-color: var(--teal); }
.service-card.featured .service-no, .service-card.featured p { color: rgba(255,255,255,.75); }

.project-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 330px 330px; gap: 18px; margin-top: 55px; }
.project {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px;
  display: flex; align-items: flex-end; color: white; isolation: isolate; background: var(--ink);
}
.project:first-child { grid-row: 1 / 3; }
.project::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(18,28,29,.9) 100%); }
.project img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.035); }
.project small { display: block; opacity: .75; text-transform: uppercase; letter-spacing: .12em; }
.project h3 { font-size: clamp(1.7rem, 3vw, 3rem); margin: 8px 0 0; max-width: 500px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 55px; }
.portfolio-card { grid-column: span 6; overflow: hidden; background: var(--paper); border-radius: var(--radius); }
.portfolio-card.wide { grid-column: span 8; }
.portfolio-card.narrow { grid-column: span 4; }
.portfolio-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e8e9e6; }
.portfolio-card.portrait .portfolio-card-media { aspect-ratio: 4 / 5; }
.portfolio-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-card:hover .portfolio-card-media img { transform: scale(1.025); }
.portfolio-card-copy { padding: 26px 28px 30px; }
.portfolio-card-copy small { display: block; color: var(--teal); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.portfolio-card-copy h3 { margin: 11px 0 10px; font-size: clamp(1.45rem, 2vw, 2rem); }
.portfolio-card-copy p { color: var(--muted); margin-bottom: 0; }
.illustrative-badge { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.project-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; margin-bottom: 15px; }

.studio-gallery { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 290px 290px; gap: 18px; margin-top: 55px; }
.studio-gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--paper); }
.studio-gallery figure:first-child { grid-row: 1 / 3; }
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.studio-gallery figure:hover img { transform: scale(1.025); }
.studio-gallery figcaption { position: absolute; left: 20px; bottom: 20px; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding: 110px 0 90px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 0; }
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.detail-item { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 34px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.detail-item .num { color: var(--teal); font-weight: 700; }
.detail-item p { color: var(--muted); margin: 0; }

.about-panel { position: relative; min-height: 650px; padding: 50px; border-radius: var(--radius); overflow: hidden; color: white; background: var(--teal); }
.about-panel::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(20,35,36,.82) 100%); z-index: 1;
}
.about-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.about-panel blockquote { position: absolute; z-index: 2; bottom: 35px; left: 50px; right: 50px; margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; }
.profile-title { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.profile-title img { width: 58px; height: 58px; object-fit: contain; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-list { display: grid; gap: 26px; margin-top: 42px; }
.contact-photo { overflow: hidden; margin-top: 38px; border-radius: 18px; aspect-ratio: 4 / 3; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-item small { display: block; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.contact-item a:hover { color: var(--teal); }
.form { padding: 42px; background: var(--paper); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 15px 16px; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,122,133,.1); }
.field textarea { resize: vertical; min-height: 150px; }
.privacy { color: var(--muted); font-size: .78rem; margin: 18px 0; }
.map { width: 100%; height: 430px; border: 0; display: block; filter: grayscale(.75) contrast(1.05); }

.cta-band { padding: 80px 0; color: white; background: var(--teal); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-band h2 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.cta-band .btn { border-color: white; color: white; flex: 0 0 auto; }
.cta-band .btn:hover { background: white; color: var(--teal); }

.site-footer { background: var(--ink); color: white; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; padding-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 15px; }
.footer-logo img { width: 100px; filter: brightness(0) invert(1); }
.footer-logo strong { display: block; }
.footer-logo span { color: #54c0c9; font-size: .7rem; letter-spacing: .13em; }
.footer-col h4 { color: #71c7ce; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.7); margin: 0 0 8px; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.45); font-size: .75rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a:hover { color: white; }
.legal-copy { max-width: 850px; }
.legal-copy h2 { margin-top: 55px; font-size: 2rem; }
.legal-copy h3 { margin-top: 36px; font-size: 1.25rem; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.whatsapp {
  position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%; color: white; background: #25d366;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); font-weight: 900; transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.07); }

@media (max-width: 900px) {
  .nav { height: 78px; }
  .brand { min-width: auto; }
  .brand img { width: 65px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 20px; right: 20px; top: 70px; padding: 20px;
    display: none; align-items: stretch; flex-direction: column; gap: 4px; background: white;
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero { min-height: auto; padding: 75px 0 90px; }
  .hero-grid, .intro-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-card img { margin-bottom: 45px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 350px); }
  .project:first-child { grid-row: auto; }
  .portfolio-card, .portfolio-card.wide, .portfolio-card.narrow { grid-column: span 12; }
  .portfolio-card.portrait .portfolio-card-media { aspect-ratio: 16 / 10; }
  .project-intro { grid-template-columns: 1fr; gap: 25px; }
  .studio-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 380px); }
  .studio-gallery figure:first-child { grid-row: auto; }
  .detail-item { grid-template-columns: 50px 1fr; }
  .detail-item p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .brand-copy { display: none; }
  .hero h1 { font-size: 3.2rem; }
  .services-grid, .principles, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .principle + .principle { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 25px; }
  .form { padding: 25px; }
  .field.full, .footer-grid > :first-child { grid-column: auto; }
  .cta-band .container, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .about-panel { min-height: 450px; padding: 30px; }
  .about-panel blockquote { left: 30px; right: 30px; bottom: 30px; }
}
