/* Homepage: the name's reversal is the visual motif. */
.home .hero {
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  padding: 72px 0 80px;
  min-height: 0;
}
.home .hero .kicker {
  font-family: var(--sans);
  letter-spacing: 0.1em;
  font-size: 11px;
}
.home .hero h1 {
  font-size: clamp(32px, 3.8vw, 51px);
  line-height: 1.65;
}
.name-study {
  position: relative;
  margin: 0;
  padding: 28px 32px 22px;
  min-height: 300px;
  background: var(--surface-blue);
  border: 1px solid var(--line);
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.study-top {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  margin: 0;
}
.study-word {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  height: 140px;
}
.name-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
  opacity: 0;
}
.name-tiles > span {
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 500;
  color: var(--ink);
  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1), opacity .5s;
}
.name-tiles > span:nth-child(even) { color: var(--accent); }
.name-study.is-reversed .name-tiles > span {
  transform: translateX(calc(var(--move) * 100%));
}
.study-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.roman-group {
  display: flex;
  justify-content: center;
  flex: 0 1 0;
  min-width: max-content;
  transition: flex-grow .6s ease-in-out;
}
.roman-text {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  transition: opacity .5s;
}
.roman-text img {
  width: .7em;
  height: .77em;
  margin-right: .015em;
  align-self: center;
}
.name-study.is-playing .name-tiles { opacity: 1; }
.name-study.is-playing .roman-group { flex-grow: 1; }
.name-study.is-playing .roman-text { opacity: 0; }
.name-study.is-playing .roman-group.is-latin .roman-text { opacity: 1; }
.name-study.is-playing .name-tiles > .is-latin { opacity: 0; }
.name-study.is-settled .roman-group { flex-grow: 0; }
.name-study.is-resetting * { transition: none !important; }
.study-replay {
  align-self: flex-end;
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 32px;
  color: var(--muted);
  font: 12px var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.study-replay[hidden] { display: none; }
.study-replay:hover { color: var(--accent); }
.study-replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .name-tiles > span, .roman-group, .roman-text { transition: none; }
}
.business-block {
  padding: 54px 0 65px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
}
.business-heading h2 {
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0 0 24px;
}
.business-heading h2 span {
  color: var(--accent);
}
.business-heading > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.business-details {
  padding-top: 6px;
}
.business-details article {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.business-details article:first-child {
  padding-top: 0;
}
.business-symbol {
  font-size: 25px;
  color: var(--accent);
  line-height: 1.4;
}
.business-details h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
}
.business-details p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.work-block {
  padding: 45px 0 65px;
}
.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}
.work-heading h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}
.work-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.home .projects {
  display: block;
}
.home .project {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin: 0;
}
.home .project-visual {
  height: 260px;
  margin: 0;
  border-radius: 3px;
}
.home .project-number {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  top: 20px;
  left: 24px;
}
.project-copy {
  align-self: center;
  padding: 20px 0 20px 55px;
}
.home .project h3 {
  font-size: 30px;
  margin: 10px 0 16px;
}
.home .project p {
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 20px;
}
.home .project:nth-child(2) .project-visual {
  grid-column: 2;
  grid-row: 1;
}
.home .project:nth-child(2) .project-copy {
  grid-column: 1;
  grid-row: 1;
  padding: 20px 45px 20px 0;
}
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 55px;
  border-top: 2px solid var(--ink);
  padding: 50px 0 65px;
}
.about-heading h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.about-heading > p:last-child {
  font-size: 12px;
  color: var(--muted);
}
.home .contact {
  background: var(--night);
  color: var(--on-night);
  border-radius: 3px 3px 38px 3px;
}
.home .contact p {
  color: var(--on-night-muted);
}
.home .contact-mail {
  color: var(--on-night);
  border-color: #788ba8;
}
.home .contact-mail:hover {
  color: var(--white);
  border-color: var(--white);
}
.home .contact a:focus-visible {
  outline-color: #a9c0ff;
}
.home .contact .kicker {
  display: none;
}
@media (max-width: 1000px) {
  .home .hero {
    gap: 32px;
  }
  .name-study {
    padding: 22px 20px;
  }
  .home .hero h1 {
    font-size: 35px;
  }
  .business-block {
    gap: 40px;
  }
  .project-copy {
    padding-left: 32px;
  }
  .home .project:nth-child(2) .project-copy {
    padding-right: 32px;
  }
  .work-heading {
    display: block;
  }
  .work-heading p {
    margin-top: 10px;
  }
  .home .project h3 {
    font-size: 25px;
  }
  .about-block {
    gap: 35px;
  }
}
@media (max-width: 700px) {
  .home .hero {
    grid-template-columns: 1fr;
    padding: 45px 0;
    gap: 34px;
  }
  .home .hero h1 {
    font-size: clamp(28px, 7.8vw, 40px);
  }
  .name-study {
    width: 100%;
    max-width: 400px;
    justify-self: center;
    padding: 25px;
  }
  .name-tiles span {
    font-size: 32px;
  }
  .business-block {
    grid-template-columns: 1fr;
    padding: 35px 0 40px;
    gap: 16px;
  }
  .business-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
  }
  .business-heading h2 {
    font-size: 34px;
    margin: 0;
  }
  .business-heading > p {
    font-size: 12px;
    margin: 0;
  }
  .business-details h3 {
    font-size: 15px;
  }
  .work-block {
    padding: 25px 0 35px;
  }
  .work-heading h2 {
    font-size: 21px;
  }
  .home .project {
    grid-template-columns: 1fr;
    padding: 20px 0 30px;
  }
  .home .project-visual {
    height: 240px;
  }
  .project-copy,
  .home .project:nth-child(2) .project-copy {
    padding: 25px 0 0;
    grid-column: auto;
    grid-row: auto;
  }
  .home .project:nth-child(2) .project-visual {
    grid-column: auto;
    grid-row: auto;
  }
  .home .project h3 {
    font-size: 25px;
  }
  .home .project p {
    font-size: 13px;
  }
  .about-block {
    grid-template-columns: 1fr;
    padding: 35px 0 40px;
    gap: 28px;
  }
    .about-heading > p:last-child {
    margin-bottom: 0;
  }
  .home .contact-mail {
    font-size: clamp(16px, 4.7vw, 19px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .name-tiles span {
    transition: none;
  }
}

.ai-visual { background: var(--surface-blue); }
.ai-topics { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 36px); min-height: 100px; }
.ai-topics span { font: 500 clamp(24px, 3.4vw, 42px) var(--mono); letter-spacing: -.04em; color: var(--night); }
.ai-topics span + span { border-left: 1px solid var(--drawing-light); padding-left: clamp(14px, 3vw, 36px); }

.about-heading .about-title{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.about-title .brand{flex:none}
