:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #e8f0ff;
  --text: #14233d;
  --muted: #4b5f80;
  --line: #d4e2fb;
  --primary: #0a63f6;
  --primary-deep: #0043c4;
  --primary-soft: #d8e8ff;
  --header-dark: #071d43;
  --shadow: 0 18px 46px rgba(8, 44, 105, 0.12);
  --shadow-soft: 0 8px 24px rgba(7, 38, 95, 0.09);
  --radius: 0;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 2% 4%, rgba(9, 97, 246, 0.08), transparent 24%),
    radial-gradient(circle at 96% 24%, rgba(9, 97, 246, 0.07), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 120;
  padding: 8px 12px;
  border-radius: 0;
  background: #0f2452;
  color: #fff;
}

.skip-link:focus {
  top: 10px;
}

.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 24, 64, 0.34);
  backdrop-filter: blur(14px);
  transition: background-color 0.26s ease, border-color 0.26s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 28, 72, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 0;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.drawer-backdrop {
  display: none;
}

.global-nav__list,
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.global-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  opacity: 0.72;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(106deg, rgba(5, 24, 64, 0.86) 0%, rgba(5, 24, 64, 0.6) 44%, rgba(5, 24, 64, 0.24) 100%),
    radial-gradient(circle at 78% 12%, rgba(10, 99, 246, 0.31), transparent 42%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  padding-top: 84px;
}

.hero__content {
  width: min(100%, 740px);
  color: #fff;
}

.glass-panel {
  padding: 38px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.07));
  box-shadow: 0 28px 64px rgba(4, 22, 57, 0.31);
  backdrop-filter: blur(8px);
}

.hero__eyebrow {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

.hero__title {
  margin: 14px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.95rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero__lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(145deg, #1d77ff, var(--primary));
  color: #fff;
  box-shadow: 0 12px 24px rgba(9, 87, 220, 0.24);
}

.btn--primary:hover {
  background: linear-gradient(145deg, #2a81ff, #0b59df);
  transform: translateY(-2px);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--primary);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.section {
  position: relative;
  padding: 96px 0;
}

.section::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 0;
  background: radial-gradient(circle, rgba(10, 99, 246, 0.12), transparent 72%);
  top: -60px;
  right: 4%;
  pointer-events: none;
}

.section--about::before,
.section--works::before {
  left: 0;
  right: auto;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading__en {
  margin: 0;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(1.52rem, 1.08rem + 1.32vw, 2.2rem);
  line-height: 1.36;
}

.section-heading__note {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(8, 44, 105, 0.14);
  border-color: #bacef5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  align-items: start;
}

.about-photo {
  overflow: hidden;
  margin: 0;
}

.about-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-body {
  padding: 28px;
}

.about-body p {
  margin: 0;
  color: var(--muted);
}

.about-body p + p {
  margin-top: 12px;
}

.feature-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.feature-item {
  position: relative;
  padding-left: 36px;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9.75' stroke='%230B66FF' stroke-width='1.7'/%3E%3Cpath d='M8 12.2L10.8 15L16 9.8' stroke='%230B66FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.feature-item__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.feature-item__desc {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-learning {
  margin: 30px 0 0;
  padding: 12px 14px;
  border: 1px solid #dbe6fb;
  background: #f7faff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  margin-left: auto;
}

.about-learning__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.about-learning__text {
  margin: 0;
  color: #46618f;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  font-family: "Montserrat", sans-serif;
}

.about-learning__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
}

.about-learning__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.about-learning__link:hover,
.about-learning__link:focus-visible {
  transform: translateY(-1px);
}

.about-learning__link:focus-visible {
  outline: 2px solid #0a63f6;
  outline-offset: 2px;
}

.section--skills {
  background: linear-gradient(180deg, #eff4ff 0%, #edf3ff 100%);
}

.skills-panel {
  margin-top: 6px;
}

.skill-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  min-height: 142px;
  padding: 24px 24px 22px;
  border: 1px solid #e4ebf8;
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(10, 55, 130, 0.14);
  border-color: #cbdcf8;
}

.skill-card__icon {
  width: 70px;
  height: 50px;
  border-radius: 0;
  display: grid;
  place-items: center;
}

.skill-card__logo {
  max-width: 44px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.skill-card__logo--wide {
  max-width: 58px;
}

.skill-card__label {
  display: block;
  margin-top: 14px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  font-weight: 700;
  color: #1a2233;
}

.skill-card__icon--html {
  background: #f8f1ea;
}

.skill-card__icon--css,
.skill-card__icon--jq,
.skill-card__icon--wp {
  background: #e8eef9;
}

.skill-card__icon--sass {
  background: #f8ebf4;
}

.skill-card__icon--js {
  background: #f8f2de;
}

.skill-highlight {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: center;
  padding: 36px 46px;
  border: 1px solid #dde6f5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(15, 47, 104, 0.08);
}

.skill-highlight__icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #2563ff;
}

.skill-highlight__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-highlight__body h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.15rem + 0.35vw, 1.5rem);
  color: #2b344a;
}

.skill-highlight__body p {
  margin: 10px 0 0;
  color: #4c5973;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.service-card__head {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 14px;
}

.service-card__icon {
  width: 78px;
  height: 78px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #eef4ff;
  border: 1px solid #d8e6ff;
}

.service-card__icon svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__icon--coding svg rect,
.service-card__icon--coding svg path,
.service-card__icon--coding svg circle {
  stroke: #0d356f;
  stroke-width: 2.4;
}

.service-card__icon--coding svg path:last-child {
  stroke: #ff6a00;
}

.service-card__icon--wordpress {
  background: #f5f7fc;
}

.service-card__icon--wordpress img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
}

.service-card li + li {
  margin-top: 6px;
}

.service-card.offset-up:hover {
  transform: translateY(-16px);
}

.service-card.offset-down:hover {
  transform: translateY(8px);
}

.section--works {
  background: var(--surface-soft);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.work-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-thumb {
  position: relative;
  overflow: hidden;
}

.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 70, 0.3);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #0a63f6;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.card-link-overlay__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.95);
  transform: scale(0.92);
  transition: transform 0.24s ease, background-color 0.2s ease;
}

.card-link-overlay svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-card:hover .card-thumb::before,
.archive-card:hover .card-thumb::before,
.card-thumb:focus-within::before {
  opacity: 1;
}

.work-card:hover .card-link-overlay,
.archive-card:hover .card-link-overlay,
.card-link-overlay:focus-visible {
  opacity: 1;
}

.work-card:hover .card-link-overlay__icon,
.archive-card:hover .card-link-overlay__icon,
.card-link-overlay:focus-visible .card-link-overlay__icon {
  transform: scale(1);
}

.card-link-overlay:hover .card-link-overlay__icon {
  background: #ffffff;
}

.card-link-overlay:focus-visible {
  outline: none;
}

.card-link-overlay:focus-visible .card-link-overlay__icon {
  outline: 2px solid #0a63f6;
  outline-offset: 2px;
}

.work-card__body {
  padding: 18px;
}

.work-card__cat {
  margin: 0;
  color: var(--primary);
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.08em;
}

.work-card h3 {
  margin: 8px 0 6px;
  font-size: 1.14rem;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.lifted {
  --offset-shift: -10px;
  transform: translateY(-10px);
}

.works-action {
  margin-top: 28px;
  text-align: center;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.contact-intro p {
  color: var(--muted);
}

.contact-form {
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.contact-form.card:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.about-photo.card:hover,
.about-body.card:hover,
.service-card.card:hover {
  transform: translateY(var(--offset-shift, 0px));
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.skill-card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
  border-color: #e4ebf8;
}

.skill-highlight:hover {
  transform: none;
  box-shadow: 0 9px 24px rgba(15, 47, 104, 0.08);
  border-color: #dde6f5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fafdff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.form-note {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.contact-form .btn[type="submit"] {
  min-width: 132px;
  margin-top: 30px;
}

.form-status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #3b4f73;
}

.form-status.is-success {
  color: #156d37;
}

.form-status.is-error {
  color: #9b2032;
}

.site-footer {
  background: linear-gradient(160deg, #06193b 0%, #082655 100%);
  padding: 34px 0;
  color: #d5e4ff;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.85rem;
}

.footer-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #d5e4ff;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 24px);
  width: 50px;
  height: 50px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: linear-gradient(155deg, #1777ff 0%, #0b56d7 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(7, 38, 95, 0.28);
  cursor: pointer;
  z-index: 120;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:hover {
  background: linear-gradient(155deg, #2983ff 0%, #155fdc 100%);
}

.to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.page-works .site-header {
  background: rgba(7, 31, 78, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-works .global-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.archive-hero {
  padding: 150px 0 66px;
  background:
    linear-gradient(180deg, #eff5ff 0%, #f6f9ff 100%);
}

.archive-hero__inner {
  max-width: 760px;
}

.archive-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 1.28rem + 1.6vw, 2.7rem);
  line-height: 1.35;
}

.archive-hero p {
  margin: 14px 0 0;
  color: var(--muted);
}

.archive-works.section {
  padding-top: 54px;
}

.archive-meta {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.archive-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(10, 55, 130, 0.16);
}

.archive-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.archive-card__body {
  padding: 18px;
}

.archive-card__cat {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
}

.archive-card h2 {
  margin: 8px 0 6px;
  font-size: 1.12rem;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
}

.works-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #dbe6fb;
  border-radius: 0;
  background: #f7faff;
}

.works-note__title {
  margin: 0;
  color: #46618f;
  font-size: 0.78rem;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.07em;
}

.works-note p {
  margin: 6px 0 0;
  color: #4b5e7c;
  font-size: 0.9rem;
}

.works-note span {
  color: #22375e;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.archive-back {
  margin-top: 32px;
  text-align: center;
}

.offset-up {
  --offset-shift: -12px;
  transform: translateY(-12px);
}

.offset-down {
  --offset-shift: 12px;
  transform: translateY(12px);
}

.work-card:hover {
  transform: translateY(calc(var(--offset-shift, 0px) - 6px));
  box-shadow: 0 22px 48px rgba(10, 55, 130, 0.16);
}

.archive-card:hover {
  transform: translateY(calc(var(--offset-shift, 0px) - 6px));
  box-shadow: 0 22px 48px rgba(10, 55, 130, 0.16);
}

@media (max-width: 1024px) {
  .about-grid,
  .works-grid,
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-highlight {
    grid-template-columns: 64px 1fr;
    padding: 30px 28px;
    margin-top: 34px;
  }

  .works-grid article:last-child {
    grid-column: 1 / -1;
  }

  .lifted,
  .offset-up,
  .offset-down {
    --offset-shift: 0px;
    transform: none;
  }
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(7, 31, 78, 0.64);
  }

  .to-top {
    display: grid;
    width: 46px;
    height: 46px;
    right: 12px;
    bottom: 12px;
  }

  .header-inner {
    min-height: 62px;
    flex-wrap: nowrap;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
    z-index: 141;
  }

  body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 38, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 130;
  }

  body.nav-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100dvh;
    padding-top: 74px;
    background: linear-gradient(180deg, #0b2858 0%, #0a234f 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -18px 0 36px rgba(6, 17, 38, 0.3);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 140;
  }

  body.nav-open .global-nav {
    transform: translateX(0);
  }

  body.is-breakpoint-switching .drawer-backdrop,
  body.is-breakpoint-switching .global-nav,
  body.is-breakpoint-switching .nav-toggle__bar {
    transition: none;
  }

  .global-nav__list {
    width: auto;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 24px;
  }

  .global-nav a {
    display: block;
    padding: 14px 2px;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.98rem;
  }

  .page-works .global-nav a[aria-current="page"] {
    color: #ffffff;
    font-weight: 700;
  }

  .hero {
    min-height: 88vh;
  }

  .glass-panel {
    padding: 22px;
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .section {
    padding: 74px 0;
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .about-grid,
  .service-grid,
  .works-grid,
  .archive-grid,
  .contact-wrap,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    padding: 128px 0 52px;
  }

  .about-learning {
    align-items: center;
    width: 100%;
    margin-left: 0;
  }

  .archive-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card {
    min-height: 126px;
  }

  .service-card__head {
    grid-template-columns: 68px 1fr;
    gap: 12px;
  }

  .service-card__icon {
    width: 68px;
    height: 68px;
  }

  .service-card__icon svg {
    width: 52px;
    height: 52px;
  }

  .service-card__icon--wordpress img {
    width: 44px;
    height: 44px;
  }

  .skill-highlight {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
    background: #fff;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}
