/*
Theme Name: Med Physics Elegant
Theme URI: https://www.med-physics.com/newsite/
Author: John Stratakis / OpenAI
Description: A Customizer-friendly classic WordPress theme for med-physics.com, with editable homepage sections, menus, pages and posts.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: med-physics-elegant
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #102f3d;
  --ink-soft: #4b6571;
  --navy: #082f49;
  --navy-2: #0e4a5a;
  --teal: #2b7a8b;
  --teal-dark: #155e75;
  --mint: #c7e2e4;
  --blue: #5c8fa6;
  --paper: #f3f7f7;
  --paper-2: #e5eef0;
  --white: #fcfbf5;
  --line: rgba(16, 47, 61, 0.14);
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.13);
  --shadow-soft: 0 12px 32px rgba(8, 47, 73, 0.09);
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 48px));
  --font-sans: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 10px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.article-header {
  background: rgba(247, 250, 249, 0.92);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(5, 30, 40, 0.07);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--teal);
  transition: right 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  right: 0;
}

.nav-contact {
  padding: 11px 18px;
  color: var(--white) !important;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(6, 27, 37, 0.15);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--teal-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 148px 0 92px;
  background:
    radial-gradient(circle at 82% 34%, rgba(32, 169, 149, 0.22), transparent 29%),
    linear-gradient(135deg, #f8fbfa 0%, #eef5f3 60%, #deece9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.37;
  background-image:
    linear-gradient(rgba(11, 38, 49, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 38, 49, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, black 45%, black);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(52px, 6.3vw, 82px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--teal-dark);
}

.hero-intro {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.62;
}

.hero-intro strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(6, 27, 37, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(11, 38, 49, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--teal-dark);
  background: var(--white);
}

.arrow {
  font-size: 18px;
  line-height: 0;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 0.92;
  justify-self: end;
}

.visual-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 55% 42%, rgba(78, 197, 180, 0.29), transparent 26%),
    linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 70%);
  border-radius: 44% 44% 28px 28px;
  box-shadow: 0 36px 80px rgba(6, 27, 37, 0.25);
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.orbit-graphic {
  position: absolute;
  inset: 5% 4% 15%;
  margin: auto;
}

.orbit-graphic .ring,
.orbit-graphic .axis,
.orbit-graphic .beam {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.orbit-graphic .ring {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.orbit-graphic .ring-bold {
  stroke: var(--mint);
  stroke-width: 2;
}

.orbit-graphic .axis {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 4 8;
}

.orbit-graphic .beam {
  stroke: var(--teal);
  stroke-width: 22;
  stroke-linecap: round;
  opacity: 0.3;
}

.orbit-graphic .core {
  fill: var(--mint);
  filter: drop-shadow(0 0 18px rgba(191, 233, 225, 0.55));
}

.visual-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.visual-caption small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-caption strong {
  display: block;
  max-width: 250px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.18;
}

.visual-index {
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.floating-tag {
  position: absolute;
  right: -22px;
  top: 23%;
  z-index: 2;
  padding: 12px 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discipline-strip {
  position: relative;
  z-index: 4;
  margin-top: -40px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.discipline-item {
  position: relative;
  padding: 25px 25px 23px;
}

.discipline-item + .discipline-item::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 0;
  width: 1px;
  background: var(--line);
}

.discipline-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.discipline-item strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding-block: 84px;
}

.section-white {
  background: var(--white);
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.section-dark::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -250px;
  top: -280px;
  border: 1px solid rgba(191, 233, 225, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(191, 233, 225, 0.025),
    0 0 0 160px rgba(191, 233, 225, 0.02);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h2,
.profile-copy h2,
.research-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(39px, 4.2vw, 59px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-head > p,
.profile-copy > p,
.research-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-dark .eyebrow {
  color: var(--mint);
}

.section-dark .section-head > p,
.section-dark .research-copy > p,
.section-dark .contact-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(5, 30, 40, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(32, 169, 149, 0.4);
  box-shadow: var(--shadow-soft);
}

.tool-number {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.tool-card h3 {
  margin: 42px 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}

.tool-card p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-link::after {
  content: "↗";
  font-size: 17px;
  transition: transform 160ms ease;
}

.card-link:hover::after,
.card-link:focus-visible::after {
  transform: translate(2px, -2px);
}

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

.service-card {
  min-height: 245px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(32, 169, 149, 0.45);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--paper-2);
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 25px;
}

.service-card h3 {
  margin: 2px 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.14;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.research-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(450px, 1fr);
  gap: 90px;
  align-items: center;
}

.research-copy .button {
  margin-top: 30px;
}

.section-dark .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.section-dark .button-secondary:hover,
.section-dark .button-secondary:focus-visible {
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.07);
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 25px;
  align-items: center;
  min-height: 150px;
  padding: 25px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(191, 233, 225, 0.34);
}

.project-year {
  color: var(--mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
}

.project-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1fr);
  gap: 90px;
  align-items: center;
}

.profile-portrait {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 60% 36%, rgba(32, 169, 149, 0.34), transparent 28%),
    linear-gradient(145deg, var(--navy-2), var(--navy) 74%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.profile-portrait::before,
.profile-portrait::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.profile-portrait::before {
  width: 350px;
  height: 350px;
  top: 70px;
  left: -80px;
  box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025);
}

.profile-portrait::after {
  width: 190px;
  height: 190px;
  top: 150px;
  left: 20px;
}

.profile-monogram {
  position: absolute;
  left: 38px;
  top: 34px;
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
}

.profile-card-copy {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 38px;
}

.profile-card-copy small {
  display: block;
  color: var(--mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-card-copy strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.profile-copy p + p {
  margin-top: 18px;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  padding: 14px 16px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.news-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:first-child {
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  border-color: transparent;
}

.news-card:hover,
.news-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.news-meta {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-card:first-child .news-meta {
  color: var(--mint);
}

.news-card h3 {
  margin: 45px 0 14px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.12;
}

.news-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.news-card:first-child p {
  color: rgba(255, 255, 255, 0.66);
}

.news-card .card-link {
  margin-top: auto;
}

.news-card:first-child .card-link {
  color: var(--mint);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  gap: 100px;
  align-items: center;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 16px;
  align-items: center;
  padding: 19px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  transition: background 160ms ease, border-color 160ms ease;
}

a.contact-item:hover,
a.contact-item:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(191, 233, 225, 0.3);
}

.contact-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--mint);
  border: 1px solid rgba(191, 233, 225, 0.25);
  border-radius: 50%;
  font-size: 16px;
}

.contact-item small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-item strong {
  font-size: 15px;
  font-weight: 650;
}

.article-shell {
  min-height: 70vh;
  padding: 156px 0 100px;
  background:
    radial-gradient(circle at 86% 6%, rgba(32, 169, 149, 0.12), transparent 24%),
    var(--paper);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-back:hover,
.article-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-header-block {
  max-width: 910px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.article-header-block h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 5.8vw, 72px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.article-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.article-intro-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.source-link {
  flex: none;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 70px;
  align-items: start;
  margin-top: 58px;
}

.article-aside {
  position: sticky;
  top: 120px;
  padding-top: 7px;
}

.article-aside small {
  display: block;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-aside p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-content {
  min-width: 0;
  color: #1c3943;
  font-size: 17px;
  line-height: 1.78;
}

.article-content > div > :first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2.2em 0 0.7em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

.article-content h2 {
  font-size: 35px;
}

.article-content h3 {
  font-size: 28px;
}

.article-content h4 {
  font-size: 22px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.article-content li {
  margin-bottom: 0.55em;
  padding-left: 0.35em;
}

.article-content li::marker {
  color: var(--teal-dark);
  font-weight: 800;
}

.article-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content a:hover,
.article-content a:focus-visible {
  color: var(--ink);
}

.article-content strong,
.article-content b {
  color: var(--ink);
}

.article-content hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

.article-content img {
  height: auto;
  margin: 28px 0;
  border-radius: 14px;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 150px 24px 80px;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
}

.not-found p {
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.66);
  background: #04141b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 55px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 25px;
}

.footer-grid p {
  margin: 7px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--mint);
}

.copyright {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid rgba(32, 169, 149, 0.45);
  outline-offset: 4px;
}

@media (max-width: 1020px) {
  :root {
    --shell: min(100% - 36px, 900px);
  }

  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 6.8vw, 68px);
  }

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

  .tool-card {
    min-height: 285px;
  }

  .research-grid,
  .profile-grid,
  .contact-grid {
    gap: 55px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card:first-child {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 45px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 90px 36px 40px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-contact {
    margin-top: 16px;
    padding: 17px 22px;
    border: 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 750;
  }

  .hero {
    min-height: auto;
    padding: 132px 0 90px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .discipline-strip {
    margin-top: -26px;
  }

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

  .discipline-item:nth-child(3)::before {
    display: none;
  }

  .discipline-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 90px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-grid,
  .research-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .research-copy,
  .profile-copy,
  .contact-copy {
    max-width: 680px;
  }

  .profile-portrait {
    min-height: 460px;
  }

  .contact-grid {
    gap: 45px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-aside {
    position: static;
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 45px;
    text-align: center;
  }

  .copyright {
    margin: 0 !important;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100vw - 30px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(43px, 13.7vw, 62px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    aspect-ratio: 0.9;
  }

  .visual-caption {
    left: 23px;
    right: 23px;
    bottom: 23px;
  }

  .visual-caption strong {
    font-size: 21px;
  }

  .floating-tag {
    right: 10px;
    top: 18%;
  }

  .discipline-grid,
  .tool-grid,
  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .discipline-item + .discipline-item::before {
    display: none;
  }

  .discipline-item:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .tool-card {
    min-height: 270px;
  }

  .service-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
  }

  .project-card {
    grid-template-columns: 1fr auto;
  }

  .project-year {
    grid-column: 1 / -1;
  }

  .profile-portrait {
    min-height: 420px;
  }

  .credential-list {
    grid-template-columns: 1fr;
  }

  .news-card:first-child {
    grid-column: auto;
  }

  .article-shell {
    padding: 126px 0 80px;
  }

  .article-header-block {
    padding-bottom: 38px;
  }

  .article-header-block h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .article-intro-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-content {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress classic-theme integration */
.admin-bar .site-header {
  top: 32px;
}

.custom-logo-link,
.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
}

.custom-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-title,
.site-description {
  margin: 0;
}

.site-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-description {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
  color: var(--teal-dark);
}

.primary-menu > li:last-child > a {
  padding: 11px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(6, 27, 37, 0.15);
}

.primary-menu > li:last-child > a:hover,
.primary-menu > li:last-child > a:focus {
  color: #fff;
  background: var(--teal-dark);
}

.primary-menu > li:last-child > a::after {
  display: none;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  z-index: 30;
  min-width: 220px;
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
  background: var(--paper-2);
}

.site-main {
  min-height: 60vh;
}

.content-hero {
  padding: 156px 0 64px;
  background:
    radial-gradient(circle at 86% 6%, rgba(32, 169, 149, 0.12), transparent 24%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.content-hero h1 {
  max-width: 950px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 5.8vw, 72px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.entry-content,
.page-content {
  width: min(780px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 58px 0 90px;
  color: #1c3943;
  font-size: 17px;
  line-height: 1.78;
}

.entry-content > :first-child,
.page-content > :first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 2.1em 0 0.7em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
}

.entry-content h2,
.page-content h2 {
  font-size: 35px;
}

.entry-content h3,
.page-content h3 {
  font-size: 28px;
}

.entry-content li,
.page-content li {
  margin-bottom: 0.55em;
}

.entry-content li::marker,
.page-content li::marker {
  color: var(--teal-dark);
  font-weight: 800;
}

.entry-content a,
.page-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content img,
.page-content img {
  height: auto;
  border-radius: 14px;
}

.alignwide {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.archive-header {
  padding: 150px 0 52px;
}

.archive-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.7vw, 70px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.post-list {
  padding-bottom: 80px;
}

.post-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 35px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.post-summary time {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
}

.post-summary h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.6vw, 43px);
  font-weight: 500;
}

.post-summary h2 a {
  text-decoration: none;
}

.post-summary p {
  margin: 0;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover {
  color: #fff;
  background: var(--ink);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 55px;
}

.post-navigation a {
  display: block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 650px;
  margin-top: 30px;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-submit {
  min-height: 48px;
  padding: 11px 20px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.site-footer .site-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--mint);
}

.error-404 {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  text-align: center;
}

.error-404 h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 100000;
  display: block;
  padding: 12px 16px;
  clip: auto !important;
  clip-path: none;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
}

@media (max-width: 820px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .primary-menu {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .menu-open .primary-menu {
    transform: none;
  }

  .primary-menu a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 500;
  }

  .primary-menu > li:last-child > a {
    margin-top: 14px;
    padding: 15px 20px;
    border-bottom: 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 750;
  }

  .primary-menu .sub-menu {
    position: static;
    display: block;
    padding: 0 0 0 15px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-menu .sub-menu a {
    font-family: var(--font-sans);
    font-size: 16px;
  }

  .post-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

@media (max-width: 600px) {
  .site-description {
    display: none;
  }

  .content-hero,
  .archive-header {
    padding-top: 125px;
  }

  .entry-content,
  .page-content {
    font-size: 16px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }
}

