:root {
  --bg: #f4f8fc;
  --hdr: rgba(244, 248, 252, 0.9);
  --ink: #0a2540;
  --muted: #4a6178;
  --line: #d5e3f0;
  --accent: #0b78cf;
  --hl: #e5700f;
  --panel: #0a2540;
  --card: #ffffff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071524;
    --hdr: rgba(7, 21, 36, 0.9);
    --ink: #eaf3fc;
    --muted: #9fb6cc;
    --line: #1b3550;
    --accent: #4db5ff;
    --hl: #ff9a3d;
    --card: #0e2238;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071524;
  --hdr: rgba(7, 21, 36, 0.9);
  --ink: #eaf3fc;
  --muted: #9fb6cc;
  --line: #1b3550;
  --accent: #4db5ff;
  --hl: #ff9a3d;
  --card: #0e2238;
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--hdr);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--hl);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
  max-width: 62ch;
}
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

/* header */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 11;
  background: var(--hdr);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font: 800 1.35rem var(--display);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 44px;
  width: auto;
}
nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
nav a:hover {
  color: var(--accent);
}
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.burger span {
  position: absolute;
  right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.45s cubic-bezier(0.77, 0, 0.18, 1),
    width 0.35s,
    top 0.35s,
    opacity 0.25s;
}
.burger span:nth-child(1) {
  top: 14px;
  width: 22px;
}
.burger span:nth-child(2) {
  top: 21px;
  width: 14px;
  background: var(--hl);
}
.burger span:nth-child(3) {
  top: 28px;
  width: 18px;
}
.burger[aria-expanded="false"]:hover span:nth-child(2) {
  width: 22px;
}
.burger[aria-expanded="true"] {
  background: #229fff;
  border-color: #229fff;
  color: #06223d;
}
.burger[aria-expanded="true"] span:nth-child(1),
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  width: 22px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.m-only {
  display: none;
}
html.menu-open {
  overflow: hidden;
}
@media (max-width: 820px) {
  .burger {
    display: block;
  }
  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(100vh - 65px - env(safe-area-inset-top, 0px));
    height: calc(100dvh - 65px - env(safe-area-inset-top, 0px));
    overflow: auto;
    background: #0a2540
      radial-gradient(
        60% 40% at 100% 0%,
        rgba(34, 159, 255, 0.38),
        transparent 70%
      )
      no-repeat;
    color: #f2f8ff;
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 43px) -33px);
    transition:
      clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1),
      visibility 0s 0.7s;
  }
  nav.open {
    visibility: visible;
    clip-path: circle(150vmax at calc(100% - 43px) -33px);
    transition:
      clip-path 0.85s cubic-bezier(0.77, 0, 0.18, 1),
      visibility 0s;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1.25rem 1.5rem 2.5rem;
    counter-reset: n;
  }
  nav li {
    counter-increment: n;
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.4s,
      transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  nav.open li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 0.07s + 0.3s);
  }
  nav li a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font: 800 clamp(2rem, 9vw, 2.7rem)/1.1 var(--display);
    letter-spacing: -0.02em;
    color: #f2f8ff;
  }
  nav li a::before {
    content: counter(n, decimal-leading-zero);
    font: 600 0.85rem var(--body);
    letter-spacing: 0.06em;
    color: #ff8a2b;
  }
  nav li a:hover {
    color: #229fff;
  }
  nav li.m-only {
    display: block;
    margin-top: 1.75rem;
  }
  nav li.m-only a {
    display: inline-flex;
    border: 0;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: #ff8a2b;
    color: #0a2540;
    font: 600 1.05rem var(--body);
    letter-spacing: 0;
  }
  nav li.m-only a::before {
    content: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  nav,
  nav.open,
  nav li,
  nav.open li,
  .burger,
  .burger span {
    transition: none !important;
  }
}

/* hero: Google search result */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a2540;
  color: #f2f8ff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background-image:
    radial-gradient(
      60% 80% at 90% 10%,
      rgba(255, 138, 43, 0.22),
      transparent 60%
    ),
    radial-gradient(
      50% 60% at 0% 100%,
      rgba(34, 159, 255, 0.32),
      transparent 60%
    );
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #c9ddf0;
  margin: 1.5rem 0 2rem;
  max-width: 34ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.hero .btn {
  border-color: #f2f8ff;
  color: #f2f8ff;
}
.hero .btn.main {
  background: #ff8a2b;
  border-color: #ff8a2b;
  color: #0a2540;
}
.side {
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.serp {
  background: #fff;
  color: #202124;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  font-family: Arial, Helvetica, sans-serif;
}
.serp-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.serp-bar svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #5f6368;
  stroke-width: 2;
  stroke-linecap: round;
}
.res {
  padding: 1rem 0;
  border-top: 1px solid #eceef0;
}
.res.top {
  border-top: 0;
  padding-top: 0;
}
.url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4d5156;
}
.fav {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #229fff;
  color: #06223d;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
}
.ttl {
  color: #1a0dab;
  font-size: 1.15rem;
  margin: 0.35rem 0 0.2rem;
  line-height: 1.3;
}
.res p {
  margin: 0;
  font-size: 0.88rem;
  color: #4d5156;
  line-height: 1.5;
}
.rate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4d5156;
}
.stars {
  color: #f5a300;
  font-size: 1.05rem;
  letter-spacing: 2px;
}
.stars span {
  display: inline-block;
  opacity: 0;
  transform: scale(0.4);
  animation: pop 0.4s calc(var(--i) * 0.15s + 0.6s) forwards;
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.sk {
  height: 10px;
  border-radius: 5px;
  background: #e8eaed;
  margin: 0.55rem 0;
}
.cap {
  margin: 0.9rem 0.25rem 0;
  font-size: 0.8rem;
  color: #9fc3e6;
}
@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .side {
    justify-self: stretch;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stars span {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn {
    transition: none;
  }
}

/* about */
.about .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.about h2 {
  margin-bottom: 1rem;
}
.about .role {
  color: var(--muted);
  font-size: 1.1rem;
}
.about strong {
  color: var(--accent);
}
@media (max-width: 820px) {
  .about .wrap {
    grid-template-columns: 1fr;
  }
}

/* services */
.services {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.services h2 {
  margin-bottom: 2.5rem;
}
.svc {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1rem 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.svc:last-child {
  border-bottom: 1px solid var(--line);
}
.svc p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .svc {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* projects */
.projects h2 {
  margin-bottom: 0.75rem;
}
.projects .sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem 1.5rem;
}
.proj {
  text-decoration: none;
  display: block;
}
.shot {
  position: relative;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), var(--line));
  display: grid;
  place-items: center;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.shot::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hl);
  box-shadow:
    14px 0 0 var(--line),
    28px 0 0 var(--line);
  z-index: 3;
}
.shot span {
  font: 700 1.15rem var(--display);
  color: var(--muted);
  padding-top: 26px;
}
.shot img {
  position: absolute;
  inset: 26px 0 0;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: top;
}
.proj:hover .shot {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.proj h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.25rem;
}
.proj p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* feedback */
.feedback {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.feedback h2 {
  margin-bottom: 2.5rem;
}
.quotes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}
blockquote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--hl);
}
blockquote p {
  font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.5 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
blockquote footer {
  font-weight: 600;
  color: var(--muted);
  position: static;
  background: none;
  border: 0;
  backdrop-filter: none;
}
@media (max-width: 820px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

/* contact */
.contact {
  background: var(--panel);
  color: #fff;
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact h2 {
  margin-bottom: 1rem;
}
.contact p {
  color: #c9ddf0;
}
.tel {
  display: block;
  font: 800 clamp(2rem, 6vw, 3.2rem) var(--display);
  text-decoration: none;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.4rem;
}
.meta a {
  font-weight: 600;
}
form {
  display: grid;
  gap: 1rem;
  align-content: start;
}
label {
  font-weight: 600;
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}
input,
textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  color: #0a2540;
  width: 100%;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ff8a2b;
  outline-offset: 2px;
}
.contact .btn {
  background: #ff8a2b;
  color: #0a2540;
  border-color: #ff8a2b;
  font: 600 1rem var(--body);
  cursor: pointer;
  justify-self: start;
}
#status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}
@media (max-width: 820px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}

footer.site {
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: static;
  background: none;
  border: 0;
  backdrop-filter: none;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
}
footer.site p {
  margin: 0;
}

.steps {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  max-width: 70ch;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}
.steps b {
  color: var(--ink);
}
.services .how {
  margin-top: 3.5rem;
}
.trust {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.trust h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.trust p {
  color: var(--muted);
  font-size: 0.97rem;
}
.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.case .shot {
  text-decoration: none;
}
.case h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.case dl {
  margin: 0 0 1.25rem;
}
.case dt {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.9rem;
}
.case dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}
.visit {
  font-weight: 600;
  text-underline-offset: 4px;
}
.visit:hover {
  color: var(--accent);
}
@media (max-width: 820px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .case {
    grid-template-columns: 1fr;
  }
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.2s;
}
.tile:hover {
  transform: translateY(-4px);
}
.tile h3 {
  font-size: 1.6rem;
  margin: 0.9rem 0 0.5rem;
}
.tile p {
  margin: 0;
  max-width: 46ch;
}
.ic {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t1 {
  grid-column: span 3;
  background: #229fff;
  color: #06223d;
}
.t2 {
  grid-column: span 3;
  background: #0a2540;
  color: #eaf3fc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.t3 {
  grid-column: span 4;
  background: #ff8a2b;
  color: #231000;
}
.t4 {
  grid-column: span 2;
  background: var(--bg);
  border: 1px solid var(--line);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-top: auto;
  padding-top: 1.25rem;
}
.bars i {
  flex: 0 0 26px;
  background: #229fff;
  border-radius: 6px 6px 2px 2px;
}
.posts {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.posts i {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(35, 16, 0, 0.14);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1.3rem;
}
.bundle {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--hl);
  max-width: 60ch;
}
@media (max-width: 820px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile {
    grid-column: auto !important;
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}
