:root {
  --bg: #eaf8ff;
  --bg-soft: rgba(255,255,255,.05);
  --bg-card: rgba(255,255,255,.08);
  --line: rgba(92,183,233,.32);
  --text: #12324d;
  --muted: rgba(18,50,77,.72);
  --accent: #42cfff;
  --accent-2: #1d9fff;
  --shadow: 0 16px 42px rgba(22,95,145,.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1120px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(66,207,255,.28), transparent 34%),
    radial-gradient(circle at top right, rgba(29,159,255,.18), transparent 30%),
    linear-gradient(180deg, #f5fcff 0%, #e5f5ff 44%, #f0faff 100%);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  letter-spacing: .02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container { width: var(--container); margin: 0 auto; }
.section { padding: 56px 0; position: relative; }
.section:first-of-type { padding-top: 56px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(234,248,255,.8);
  border-bottom: 1px solid rgba(92,183,233,.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.2;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 0px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(66,207,255,.16);
}

.site-nav .nav-cta {
  color: var(--text);
  background: rgba(66,207,255,.2);
  border: 1px solid rgba(92,183,233,.44);
}

.hero {
  padding: 72px 0 36px;
  position: relative;
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .3;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -120px;
  background: rgba(66,207,255,.44);
}

.hero::after {
  left: -120px;
  bottom: -180px;
  background: rgba(29,159,255,.32);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,252,255,.8));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(32px, 4vw, 56px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.52), transparent 50%),
    radial-gradient(circle at 12% 18%, rgba(66,207,255,.2), transparent 30%);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1a86c2;
  margin: 0 0 18px;
  opacity: .95;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 8.5em;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  font-weight: 700;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(29,159,255,.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,.78);
  border-color: rgba(92,183,233,.4);
}

.hero-notes {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(92,183,233,.36);
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  min-height: 620px;
  padding: 20px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(241,250,255,.8)),
    radial-gradient(circle at top right, rgba(66,207,255,.24), transparent 32%),
    radial-gradient(circle at bottom left, rgba(29,159,255,.18), transparent 34%);
}

.visual-main,
.visual-sub {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(92,183,233,.3);
  background: rgba(23,107,162,.12);
}

.visual-main {
  min-height: 390px;
}

.visual-main img,
.visual-sub img { width: 100%; height: 100%; object-fit: cover; }

.visual-main::after,
.visual-sub::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.76));
  pointer-events: none;
}

.visual-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
}

.visual-caption p {
  margin: 0;
  font-size: 12px;
  color: #e7f8ff;
  opacity: .9;
}

.visual-caption strong {
  display: block;
  font-size: 19px;
  margin-top: 4px;
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

.section-kicker {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1a86c2;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 700;
}

.works-grid {
  display: grid;
  gap: 24px;
}

.work-card {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,250,255,.84));
  box-shadow: var(--shadow);
}

.work-media {
  display: grid;
  gap: 12px;
}

.work-main {
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(92,183,233,.3);
  cursor: pointer;
  background: rgba(23,107,162,.12);
}

.work-main img,
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumb {
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(92,183,233,.3);
  background: rgba(23,107,162,.12);
  cursor: pointer;
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 8px 4px;
}

.case-tag {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1a86c2;
}

.work-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.18;
}

.work-copy p {
  margin: 0;
  color: var(--muted);
}

.point-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.point-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.point-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #2faadf;
  opacity: .9;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.work-sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 8px;
  color: rgba(18,50,77,.66);
  font-size: 13px;
  letter-spacing: .01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18,50,77,.28);
  transition: color .2s ease, text-decoration-color .2s ease;
}

.work-sub-link:hover {
  color: #1a86c2;
  text-decoration-color: rgba(26,134,194,.42);
}

.note-box {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(92,183,233,.34);
}

.note-box p { margin: 0; }
.note-box .quote-name {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #1b8ac7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card,
.mood-card,
.cta-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,250,255,.84));
  box-shadow: var(--shadow);
}

.about-card p,
.mood-card p,
.cta-card p { color: var(--muted); margin: 0; }

.about-card h3,
.mood-card h3,
.cta-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.mini-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(92,183,233,.34);
}

.mini-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.mini-card p { margin: 0; color: var(--muted); }

.cta-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
}

.cta-note {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(92,183,233,.34);
}

.cta-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.trust-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(92,183,233,.34);
}

.trust-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.trust-card p { margin: 0; color: var(--muted); }

.site-footer {
  padding: 36px 0 56px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(92,183,233,.3);
}

.footer-inner p { margin: 0; }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(16,60,95,.56);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox-frame {
  width: min(1100px, 100%);
  margin: 0;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(92,183,233,.36);
  background: #f5fbff;
  box-shadow: var(--shadow);
}

.lightbox-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f5fbff;
}

.lightbox-frame figcaption {
  padding: 18px 20px 20px;
  color: var(--muted);
  border-top: 1px solid rgba(92,183,233,.28);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(23,107,162,.22);
  color: #ffffff;
  cursor: pointer;
  z-index: 1;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .cta-card,
  .trust-wrap,
  .mini-grid { grid-template-columns: 1fr; }
  
  .work-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .work-copy {
    display: contents;
  }
  
  .work-copy > div:first-child {
    order: -1;
  }
  
  .work-media {
    order: 0;
  }
  
  .hero-copy,
  .hero-visual { min-height: auto; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .site-header .container { min-height: 68px; }
  .site-nav {
    gap: 2px;
    justify-content: flex-end;
  }
  .site-nav a {
    padding: 8px 8px;
    font-size: 14px;
  }
  .hero { padding-top: 32px; }
  .hero-copy,
  .about-card,
  .mood-card,
  .cta-card,
  .work-card { padding: 20px; }
  .thumb-row,
  .visual-row { grid-template-columns: 1fr 1fr; }
  .work-main { min-height: 220px; }
  .thumb { height: 88px; }
}

@media (max-width: 520px) {
  .thumb-row,
  .visual-row { grid-template-columns: 1fr; }
  .hero-actions,
  .work-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero h1 { font-size: 2rem; }
}
