/*
Theme Name: NEXUS Portal
Description: Bilingual brand portal for NEXUS Inc.
Version: 1.1.4
Requires at least: 6.4
Requires PHP: 8.1
Author: NEXUS
Text Domain: nexus-portal
*/

@font-face {
	font-family: "Inter Tight";
	src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--ink: #101011;
	--paper: #eeede8;
	--white: #fbfaf7;
	--accent: #229f92;
	--muted: #bdbbc2;
	--line-light: #cecdc5;
	--gutter: clamp(24px, 5.55vw, 104px);
	--display: "Inter Tight", "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--body: "Inter Tight", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html.splash-active { overflow: hidden; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--white);
	font-family: var(--body);
	-webkit-font-smoothing: antialiased;
}

body, h1, h2, h3, p, ul { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--accent); }

.wrap {
	width: min(100% - var(--gutter) * 2, 1400px);
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	z-index: 100001;
	inset: 8px auto auto 8px;
	transform: translateY(-150%);
	padding: 12px 18px;
	color: var(--ink);
	background: var(--accent);
}

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

.site-header {
	position: relative;
	z-index: 3;
	border-bottom: 1px solid #ffffff15;
	background: #111112;
}

.site-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 28px;
	min-height: 73px;
}

.brand-home { justify-self: start; display: inline-flex; align-items: center; }
.wordmark { width: 144px; height: auto; }

.site-nav, .language-links {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 650;
}

.site-nav { justify-content: center; gap: clamp(20px, 3.4vw, 55px); }
.site-nav a, .footer-nav a { padding-block: 8px; transition: color .2s ease; }
.site-nav a:hover, .footer-nav a:hover, .site-nav a[aria-current="page"], .footer-nav a[aria-current="page"] { color: var(--accent); }

.language-links {
	justify-self: end;
	gap: 9px;
	font-size: 12px;
	letter-spacing: .04em;
	color: #908e96;
}

.language-links a { padding-block: 8px; transition: color .2s ease; }
.language-links a:hover, .language-links [aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; }

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	overflow: hidden;
	min-height: clamp(550px, 74svh, 800px);
	background: #1b1413;
}

.hero-photo, .hero::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.hero-photo { max-width: none; object-fit: cover; object-position: 57% 55%; }
.hero::after {
	content: "";
	background:
		linear-gradient(90deg, #120f0e62 0%, #17100f37 41%, transparent 72%),
		linear-gradient(0deg, #13100e7a 0%, transparent 34%);
}

.hero-inner { padding-block: clamp(66px, 8.7vw, 144px); }
.hero-content { max-width: 1190px; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hero-eyebrow { margin-bottom: 25px; color: var(--accent); }
.hero-eyebrow::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 1px;
	background: currentColor;
}

.hero h1 {
	font: 850 clamp(48px, 8.9vw, 140px)/.865 var(--display);
	letter-spacing: -.045em;
}

.hero h1 span { color: var(--accent); margin-left: .02em; }
.hero-description {
	max-width: 480px;
	margin-top: clamp(24px, 3vw, 39px);
	font-size: clamp(14px, 1.28vw, 18px);
	font-weight: 550;
	line-height: 1.85;
	text-wrap: pretty;
	color: #f0edf4;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 52px;
	width: max-content;
	max-width: 100%;
	padding: 0 20px 0 23px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.button-accent { margin-top: 28px; color: var(--ink); background: var(--accent); }
.button-accent:hover { color: var(--accent); border-color: var(--accent); background: var(--ink); }
.button-accent:focus-visible { outline-color: var(--accent); }
.button-dark { color: var(--accent); background: var(--ink); }
.button-dark:hover { color: var(--ink); border-color: var(--ink); background: transparent; }

.arrow {
	position: relative;
	display: inline-block;
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
	color: inherit;
}
.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow::before { top: 1px; right: 1px; width: 8px; height: 8px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; }
.arrow::after { top: 6px; right: 0; width: 13px; height: 1.5px; transform: rotate(-45deg); background: currentColor; }
.arrow-down { transform: rotate(135deg); }

.about { border-top: 1px solid #ffffff17; background: #101011; }
.about-inner {
	display: grid;
	grid-template-columns: minmax(160px, .78fr) 2fr;
	gap: clamp(24px, 5vw, 95px);
	padding-block: clamp(76px, 10vw, 145px);
}

.about-eyebrow { align-self: start; padding-top: .7rem; color: #d1ced6; }
.marker { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.about h2 {
	max-width: 1000px;
	font-size: clamp(33px, 4.75vw, 72px);
	font-weight: 760;
	line-height: 1.18;
	letter-spacing: -.05em;
	text-wrap: balance;
}
:lang(ja) .about h2 { letter-spacing: -.085em; }
.about-body {
	max-width: 660px;
	margin-top: clamp(23px, 3.1vw, 39px);
	color: var(--muted);
	font-size: clamp(15px, 1.38vw, 20px);
	line-height: 1.95;
	text-wrap: pretty;
}

.about-body p + p { margin-top: 1.2em; }
.about-statement {
	max-width: 660px;
	margin-top: clamp(28px, 4vw, 52px);
	padding-inline-start: 18px;
	border-inline-start: 2px solid var(--accent);
	color: var(--white);
	font-size: clamp(18px, 2vw, 28px);
	font-weight: 720;
	line-height: 1.55;
	text-wrap: pretty;
}

.brands {
	padding-block: clamp(80px, 10vw, 148px);
	background: var(--paper);
	color: var(--ink);
	color-scheme: light;
}

.brands-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 34px;
	margin-bottom: clamp(32px, 5.4vw, 72px);
}
.brands-heading h2, .contact h2 {
	font: 820 clamp(61px, 9.15vw, 135px)/.9 var(--display);
	letter-spacing: -.055em;
}
.brands-heading h2 span { color: #18766d; }
.brands-heading > p {
	max-width: 390px;
	padding-bottom: .15em;
	color: #41403e;
	font-size: clamp(14px, 1.24vw, 18px);
	line-height: 1.75;
	text-wrap: pretty;
}

.brands-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(26px, 4vw, 62px) clamp(18px, 2.4vw, 38px);
}
.project-link { display: block; height: 100%; }
.project-image {
	aspect-ratio: 1.68;
	overflow: hidden;
	background: #cfcec6;
}
.project-image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.project-link:hover img { transform: scale(1.05); }
.project-excellentmarine .project-image { position: relative; }
.project-excellentmarine .project-image::after {
	position: absolute;
	inset: 0 0 auto;
	height: 28%;
	background: url("assets/images/excellentmarine-fuji.webp") center / 100% 100% no-repeat;
	mask-image: linear-gradient(#000 86%, transparent);
	pointer-events: none;
	content: "";
}
.project-excellentmarine .project-link:hover img { transform: none; }

.project-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: clamp(18px, 2.5vw, 30px) 0 22px;
	border-bottom: 1px solid var(--line-light);
}

.project-category {
	margin-bottom: 9px;
	color: #4f4d47;
	font-size: 12px;
	font-weight: 730;
	line-height: 1.4;
	letter-spacing: .075em;
	text-transform: uppercase;
}
.project h3 {
	margin-bottom: 9px;
	font: 760 clamp(23px, 2.9vw, 43px)/1 var(--display);
	letter-spacing: -.035em;
	text-wrap: pretty;
}
.project-description {
	max-width: 46ch;
	color: #45443e;
	font-size: clamp(13px, 1.1vw, 16px);
	line-height: 1.65;
	text-wrap: pretty;
}
.project-action {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 720;
}

.project-arrow {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid #8c8a81;
	border-radius: 50%;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.project-link:hover .project-arrow { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.project:last-child { grid-column: 1 / -1; }
.project:last-child .project-link {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(18px, 2.4vw, 38px);
}
.project:last-child .project-detail { padding-inline: clamp(0px, 2.1vw, 35px) 0; }
.project:last-child .project-image img { object-position: 50% 57%; }

.contact {
	padding-block: clamp(65px, 8vw, 114px);
	background: var(--accent);
	color: var(--ink);
	color-scheme: light;
}
.contact-inner { display: grid; gap: clamp(24px, 4vw, 46px); }
.contact .marker { background: var(--ink); }
.contact h2 { margin-top: 24px; }
.contact h2 span { color: #12433f; }
.contact-description {
	max-width: 63ch;
	margin-top: 22px;
	font-size: clamp(14px, 1.3vw, 18px);
	line-height: 1.8;
}

.contact-disclosure { max-width: 900px; scroll-margin-top: 25px; }
.contact-disclosure summary { list-style: none; cursor: pointer; }
.contact-disclosure summary::-webkit-details-marker { display: none; }
.contact-toggle { position: relative; width: 15px; height: 15px; }
.contact-toggle::before, .contact-toggle::after {
	position: absolute;
	inset: 7px 0 auto;
	height: 1px;
	background: currentColor;
	content: "";
}
.contact-toggle::after { transform: rotate(90deg); }
.contact-disclosure[open] .contact-toggle::after { transform: none; }

.contact-panel {
	margin-top: 22px;
	padding: clamp(19px, 4vw, 45px);
	border: 1px solid #10101142;
	border-radius: 3px;
	background: var(--paper);
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field-subject, .contact-field-message { grid-column: 1 / -1; }
.contact-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 680; }
.contact-field input, .contact-field textarea {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #88867d;
	border-radius: 3px;
	background: #fbfaf7;
	color: var(--ink);
	font: inherit;
}
.contact-field textarea { resize: vertical; }
.contact-field [aria-invalid="true"] { border-color: #9d3024; }
.contact-field-error { margin-top: 5px; color: #8f241d; font-size: 13px; }
.contact-honeypot { display: none; }
.contact-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 24px;
}
.contact-form-footer p { max-width: 46ch; color: #44413b; font-size: 13px; line-height: 1.6; }
.contact-form-footer button { cursor: pointer; }
.contact-form-footer button:disabled { opacity: .68; cursor: wait; }
.contact-notice {
	margin-bottom: 18px;
	padding: 12px 16px;
	border-inline-start: 3px solid #9d3024;
	background: #f8e3df;
	color: #542019;
	line-height: 1.5;
}
.contact-notice a { text-decoration: underline; }
.contact-notice-success { border-color: #18766d; background: #dceee9; color: #10443e; }


.site-footer { border-top: 1px solid #ffffff18; }
.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 28px;
	align-items: center;
	min-height: 110px;
	padding-block: 23px;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 25px; font-size: 13px; font-weight: 650; }
.footer-inner small { justify-self: end; color: #b4b1b9; font-size: 12px; white-space: nowrap; }
.wp-content { min-height: 60vh; padding-block: 80px; }
.wp-content a { text-decoration: underline; }

@media (max-width: 1020px) {
	.project-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 750px) {
	.site-header-inner { min-height: 65px; gap: 12px 20px; }
	.site-nav { gap: 17px; }
	.wordmark { width: 122px; }
	.hero { align-items: end; min-height: max(560px, 77svh); }
	.hero-photo { object-position: 58% 50%; }
	.hero::after {
		background:
			linear-gradient(90deg, #17110e58, #21170b0f),
			linear-gradient(0deg, #13100edb, #13100e30 62%, transparent 86%);
	}
	.hero-inner { padding-block: 80px 65px; }
	.hero h1 { font-size: clamp(40px, 10vw, 73px); }
	.about-inner { grid-template-columns: 1fr; gap: 22px; }
	.about-eyebrow { padding-top: 0; }
	.brands-heading { flex-direction: column; align-items: start; gap: 20px; }
	.brands-heading > p { padding-bottom: 0; }
	.brands-heading h2, .contact h2 { font-size: clamp(52px, 12vw, 92px); }
	.footer-inner { grid-template-columns: 1fr auto; gap: 10px 18px; }
	.footer-nav { justify-content: start; grid-row: 2; grid-column: 1 / -1; gap: 0 19px; }
	.footer-inner small { grid-column: 2; grid-row: 1; }
}

@media (max-width: 560px) {
	.site-header-inner { grid-template-columns: 1fr auto; }
	.site-header .language-links { grid-column: 2; grid-row: 1; }
	.site-nav { grid-column: 1 / -1; justify-content: start; }
	.has-menu-toggle .site-header-inner { grid-template-columns: 1fr auto 38px; }
	.has-menu-toggle .menu-toggle {
		display: grid;
		grid-column: 3;
		grid-row: 1;
		place-content: center;
		gap: 5px;
		width: 38px;
		height: 38px;
		border: 1px solid #ffffff35;
		border-radius: 50%;
		background: transparent;
		color: var(--white);
		cursor: pointer;
	}
	.menu-toggle span { display: block; width: 14px; height: 1px; background: currentColor; transition: transform .2s ease; }
	.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
	.has-menu-toggle .site-nav { display: none; }
	.has-menu-toggle .site-nav.is-open {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: grid;
		gap: 0;
		padding: 9px var(--gutter) 17px;
		border-top: 1px solid #ffffff18;
		background: var(--ink);
	}
	.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
	.hero-eyebrow { font-size: 10px; margin-bottom: 19px; }
	.hero-inner { padding-bottom: 57px; }
	.hero { min-height: clamp(520px, 75svh, 670px); }
	.hero h1 { font-size: clamp(24px, 9.35vw, 52px); }
	.hero-description { max-width: 33ch; }
	.contact-fields { grid-template-columns: 1fr; gap: 16px; }
	.brands-grid { grid-template-columns: 1fr; gap: 29px; }
	.project:last-child { grid-column: auto; }
	.project:last-child .project-link { display: block; }
	.project:last-child .project-detail { padding-inline: 0; }
	.project-arrow { width: 41px; height: 41px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
