*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.bg-mono-black {
  --tw-bg-opacity: 1;
  background-color: rgb(10 10 10 / var(--tw-bg-opacity, 1));
}

.text-accent-red {
  --tw-text-opacity: 1;
  color: rgb(230 57 70 / var(--tw-text-opacity, 1));
}

.text-mono-white {
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity, 1));
}

/* Loading Screen */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mono-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loading-screen.loading-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: ringRotate 1.2s linear infinite;
}

@keyframes ringRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-logo {
  width: 80px;
  height: auto;
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

:root {
  --mono-black: #0a0a0a;
  --mono-white: #fafafa;
  --mono-gray: #1a1a1a;
  --mono-gray-light: #2a2a2a;
  --accent-red: #e63946;
  --accent-red-dark: #c1121f;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-jp: "Noto Serif JP", serif;
  /* Spacing */
  --sidebar-width: 80px;
  --sidebar-expanded: 220px;
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1400px;
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--mono-black);
  color: var(--mono-white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: var(--sidebar-width);
}

::-moz-selection {
  background: var(--accent-red);
  color: var(--mono-white);
}

::selection {
  background: var(--accent-red);
  color: var(--mono-white);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.section-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent-red);
  line-height: 1;
}

.section-title {
  display: flex;
  flex-direction: column;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.title-jp {
  font-family: var(--font-jp);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
}

.section-line {
  flex: 1;
  min-width: 50px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
  margin-top: 1.5rem;
}

.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.98),
    rgba(20, 20, 20, 0.95)
  );
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 0;
  transition: width var(--transition-smooth);
  overflow: hidden;
}

.nav-sidebar:hover {
  width: var(--sidebar-expanded);
}

.nav-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent-red) 50%,
    transparent
  );
  opacity: 0.5;
}

.nav-brand {
  text-align: center;
  padding: 0 1rem;
}

.brand-logo {
  width: 50px;
  height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand-year {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.15em;
  display: block;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  transition: var(--transition-fast);
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--mono-white);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--mono-white);
}

.link-indicator {
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: transparent;
  border-radius: 0 4px 4px 0;
  transition: var(--transition-fast);
}

.nav-link.active .link-indicator {
  background: var(--accent-red);
  box-shadow:
    0 0 15px var(--accent-red),
    0 0 30px rgba(230, 57, 70, 0.3);
}

.link-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  min-width: 28px;
  transition: var(--transition-fast);
}

.nav-link.active .link-number {
  color: var(--accent-red);
}

.link-text,
.link-jp {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
}

.link-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.link-jp {
  font-family: var(--font-jp);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
  margin-left: auto;
  transition-delay: 0.05s;
}

.nav-sidebar:hover .link-text,
.nav-sidebar:hover .link-jp {
  opacity: 1;
  transform: translateX(0);
}

.nav-link.active .link-jp {
  color: rgba(230, 57, 70, 0.5);
}

.nav-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.nav-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-socials a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.nav-socials a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

.nav-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.nav-scroll-hint span {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.2);
  writing-mode: vertical-rl;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-red), transparent);
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%,
  100% {
    opacity: 0.3;
    height: 40px;
  }

  50% {
    opacity: 1;
    height: 55px;
  }
}

/* Mobile Menu Toggle */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mono-white);
  transition: var(--transition-fast);
}

/* Progress Bar */

.progress-bar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-red);
}

.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 2rem);
}

.hero-grid {
  width: 100%;
  max-width: var(--container-max);
  position: relative;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

.stroke-text {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: clamp(200px, 28vw, 320px);
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-label {
  font-family: var(--font-jp);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3em;
}

.hero-year {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-red);
  letter-spacing: 0.2em;
}

.hero-name-container {
  margin-bottom: 2rem;
}

.hero-name {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.name-line {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 9rem);
  letter-spacing: 0.08em;
  color: var(--mono-white);
  transition: var(--transition-fast);
}

.name-line.accent {
  color: var(--accent-red);
  text-shadow: 0 0 40px rgba(230, 57, 70, 0.3);
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.subtitle-line {
  width: clamp(30px, 8vw, 60px);
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.subtitle-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 50%;
}

.hero-image-container {
  position: absolute;
  right: clamp(2rem, 8vw, 6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.image-frame {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  height: clamp(220px, 28vw, 350px);
  overflow: hidden;
  z-index: 5;
  background: var(--mono-gray);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-red);
  transform: translate(12px, 12px);
  z-index: 10;
  pointer-events: none;
}

.image-frame::after {
  content: "01";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--accent-red);
  opacity: 0.15;
  line-height: 1;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  filter: grayscale(20%) contrast(1.1);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.hero-image:hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.image-decoration {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.image-decoration::before {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
}

.image-decoration::after {
  content: "PROFILE";
  position: absolute;
  top: -25px;
  left: 0;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* Scroll Indicator */

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    height: 60px;
  }

  50% {
    opacity: 1;
    height: 80px;
  }
}

.section-container {
  min-height: 100vh;
  padding: var(--section-padding) clamp(1rem, 4vw, 2rem);
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-main {
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--accent-red);
  opacity: 0.2;
  position: absolute;
  top: -2rem;
  left: -1rem;
  line-height: 1;
}

.about-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.text-accent-red {
  color: var(--accent-red);
  font-weight: 600;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--mono-white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: var(--transition-fast);
}

.about-cta:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: var(--mono-gray);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent-red);
  transition: height var(--transition-fast);
  border-radius: 0 2px 2px 0;
}

.info-card:hover::before {
  height: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 57, 70, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-red);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tags span {
  padding: 0.35rem 0.7rem;
  background: var(--mono-gray-light);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.tech-tags span:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mono-gray-light), var(--mono-gray));
}

.card-logo {
  width: 70px;
  height: 70px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: brightness(1.2);
  transition: var(--transition-fast);
}

.logo-card:hover .card-logo {
  transform: scale(1.1);
}

.projects-section {
  background: linear-gradient(135deg, var(--mono-gray), var(--mono-black));
}

.projects-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
}

.project-card {
  display: flex;
  flex-direction: row;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.project-visual {
  background: var(--mono-gray-light);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  min-height: clamp(250px, 40vw, 400px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.project-visual::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-index {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--accent-red);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.project-name-jp {
  font-family: var(--font-jp);
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
}

.project-info {
  padding: clamp(1rem, 3vw, 2rem) 0;
  flex: 1;
  min-width: 0;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.meta-divider {
  color: var(--accent-red);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.project-desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  word-break: break-word;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.project-stack span {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
}

.project-stack span:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--mono-white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-red);
}

.project-link i {
  transition: transform var(--transition-fast);
}

.project-link:hover i {
  transform: translateX(5px);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 3rem;
}

.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--mono-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot-active {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  transform: rotate(45deg);
}

.experience-section {
  background: linear-gradient(
    180deg,
    var(--mono-black),
    var(--mono-gray) 50%,
    var(--mono-black)
  );
}

.exp-subsection {
  margin-bottom: 4rem;
}

.exp-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.subsection-icon {
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: var(--mono-white);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.15em;
  color: var(--mono-white);
}

.subsection-jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

.subsection-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.5), transparent);
  margin-left: 1rem;
  min-width: 50px;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.exp-card-compact {
  background: var(--mono-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.exp-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1);
}

.exp-card-compact.featured {
  background: linear-gradient(
    135deg,
    var(--mono-gray),
    rgba(230, 57, 70, 0.08)
  );
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.exp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--mono-gray-light);
  border-bottom: 2px solid var(--accent-red);
}

.exp-year-badge {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mono-white);
  background: rgba(230, 57, 70, 0.2);
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.1em;
}

.exp-year-badge.active {
  background: var(--accent-red);
  animation: pulse 2s ease-in-out infinite;
}

.exp-type-badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.exp-card-content {
  padding: 1.5rem;
}

.exp-card-content .exp-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--mono-white);
}

.exp-card-content .exp-company {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-card-content .exp-company i {
  color: var(--accent-red);
  font-size: 0.75rem;
}

.exp-card-content .exp-desc {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.exp-card-content .exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-card-content .exp-tags span {
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.exp-card-content .exp-tags span:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.org-timeline {
  position: relative;
  padding-left: clamp(1rem, 3vw, 2rem);
}

.org-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-red),
    rgba(255, 255, 255, 0.1)
  );
}

.exp-card-alt {
  background: var(--mono-gray);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: auto 1fr;
}

.exp-card-alt:hover {
  transform: translateX(10px);
  box-shadow: -5px 0 30px rgba(230, 57, 70, 0.1);
}

.exp-card-alt.featured {
  background: linear-gradient(
    135deg,
    var(--mono-gray),
    rgba(230, 57, 70, 0.08)
  );
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.exp-card-header {
  background: var(--mono-gray-light);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: clamp(80px, 12vw, 100px);
  border-right: 3px solid var(--accent-red);
}

.exp-year-badge {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--mono-white);
  background: rgba(230, 57, 70, 0.2);
  padding: 0.5rem 1rem;
  letter-spacing: 0.1em;
}

.exp-year-badge.active {
  background: var(--accent-red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
  }
}

.exp-type {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.exp-card-body {
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

.exp-card-alt .exp-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--mono-white);
}

.exp-card-alt .exp-company {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-card-alt .exp-company i {
  color: var(--accent-red);
  font-size: 0.75rem;
}

.exp-card-alt .exp-desc {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.exp-card-alt .exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-card-alt .exp-tags span {
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.exp-card-alt .exp-tags span:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.exp-card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(230, 57, 70, 0.05) 50%
  );
  pointer-events: none;
}

.education-section {
  background: var(--mono-gray);
}

.edu-timeline {
  position: relative;
  padding-left: clamp(2rem, 5vw, 4rem);
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    var(--accent-red),
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 2rem 0;
  position: relative;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.edu-item:hover,
.edu-item.active {
  opacity: 1;
}

.edu-dot {
  position: absolute;
  left: calc(-1 * clamp(2rem, 5vw, 4rem) - 6px);
  top: 2.5rem;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--mono-gray);
  transition: var(--transition-fast);
}

.edu-item.active .edu-dot {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red);
}

.edu-period {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.1em;
  color: var(--accent-red);
  min-width: clamp(80px, 15vw, 120px);
}

.edu-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.edu-content p {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.5);
}

.edu-content em {
  color: var(--accent-red);
  font-style: normal;
}

.contact-section {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding-bottom: 2rem;
}

.contact-bg-text {
  position: absolute;
  bottom: -5%;
  right: -5%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 20rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 2rem;
}

.contact-heading .accent {
  color: var(--accent-red);
}

.contact-text {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--mono-white);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  transition: var(--transition-fast);
}

.contact-item:hover {
  color: var(--accent-red);
}

.contact-item i {
  font-size: 1.25rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--mono-white);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.contact-social:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-5px);
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}

.footer-divider {
  color: var(--accent-red);
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 60px;
    --sidebar-expanded: 180px;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .about-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    gap: 2rem;
  }

  .project-visual {
    min-height: 280px;
    width: 100%;
  }

  /* Hero Image Tablet */

  .hero-content {
    padding-right: clamp(180px, 25vw, 250px);
  }

  .hero-image-container {
    right: clamp(1rem, 4vw, 3rem);
  }

  .image-frame {
    width: clamp(140px, 20vw, 200px);
    height: clamp(180px, 25vw, 260px);
  }

  .exp-card-alt {
    grid-template-columns: 1fr;
  }

  .exp-card-header {
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 3px solid var(--accent-red);
    padding: 1rem 1.5rem;
  }

  .exp-type {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    padding-left: 0;
    padding-bottom: 70px;
  }

  /* Bottom Navigation */

  .nav-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    width: 100% !important;
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    background: rgba(10, 10, 10, 0.98);
  }

  .nav-sidebar:hover {
    width: 100% !important;
  }

  .nav-sidebar::before {
    display: none;
  }

  .nav-brand,
  .nav-scroll-hint,
  .nav-socials,
  .nav-footer {
    display: none;
  }

  .nav-links {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .nav-link {
    flex-direction: column;
    padding: 0.5rem 0.25rem;
    gap: 0.15rem;
    flex: 1;
    max-width: 60px;
  }

  .link-indicator {
    display: none;
  }

  .nav-link.active {
    background: rgba(230, 57, 70, 0.1);
    border-radius: 8px;
  }

  .link-number {
    font-size: 0.9rem;
    min-width: auto;
  }

  .nav-link.active .link-number {
    color: var(--accent-red);
  }

  .link-text {
    opacity: 1;
    transform: none;
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .link-jp {
    display: none;
  }

  .progress-bar {
    left: 0;
    top: 0;
  }

  /* Hero Mobile */

  .hero-section {
    padding: 3rem 1rem;
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero-intro {
    justify-content: center;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-image-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 2rem;
    order: -1;
  }

  .image-frame {
    width: clamp(120px, 35vw, 160px);
    height: clamp(150px, 45vw, 200px);
  }

  .image-frame::after {
    font-size: 2rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .image-decoration {
    display: none;
  }

  .scroll-indicator {
    bottom: 1rem;
    left: 1.5rem;
    transform: none;
  }

  .scroll-text {
    writing-mode: horizontal-tb;
    font-size: 0.55rem;
  }

  .scroll-line {
    height: 40px;
  }

  /* Sections Mobile */

  .section-container {
    padding: clamp(3rem, 6vw, 4rem) 1rem;
    min-height: auto;
  }

  .section-header {
    gap: 0.75rem;
  }

  .section-line {
    display: none;
  }

  /* About Mobile */

  .about-cards {
    grid-template-columns: 1fr;
  }

  .quote-mark {
    font-size: 4rem;
    top: -1.5rem;
    left: -0.5rem;
  }

  /* Projects Mobile */

  .carousel-slide {
    width: 100%;
    min-width: 100%;
  }

  .project-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .project-visual {
    min-height: 200px;
    padding: 1.5rem;
    width: 100%;
  }

  .project-visual::before {
    display: none;
  }

  .project-index {
    font-size: 2.5rem;
    top: 0.5rem;
    left: 1rem;
  }

  .project-name {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .project-info {
    padding: 0 0.5rem;
    width: 100%;
  }

  .project-title {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .project-desc {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .project-stack {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .project-stack span {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  .carousel-controls {
    gap: 1rem;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  /* Experience Mobile */

  .subsection-line {
    display: none;
  }

  .exp-card-alt:hover {
    transform: none;
  }

  .exp-card-decoration {
    display: none;
  }

  /* Education Mobile */

  .edu-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .edu-dot {
    left: calc(-1 * clamp(2rem, 5vw, 4rem) - 6px);
    top: 0.25rem;
  }

  /* Contact Mobile */

  .contact-item {
    gap: 1rem;
  }

  .contact-item i {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-social {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 400px) {
  .nav-link {
    padding: 0.4rem 0.2rem;
  }

  .link-number {
    font-size: 0.8rem;
  }

  .link-text {
    font-size: 0.45rem;
  }

  .hero-subtitle {
    gap: 0.5rem;
  }

  .subtitle-line {
    width: 20px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.bg-mono-black {
  background-color: var(--mono-black);
}

.text-mono-white {
  color: var(--mono-white);
}

.overflow-x-hidden {
  overflow-x: hidden;
}
